/* ==========================================
   CYBER-NOIR PORTFOLIO - CUSTOM STYLES
   ========================================== */

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* ==========================================
   NAVIGATION STYLES
   ========================================== */
nav {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #808080;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */
.cyber-button {
    padding: 14px 32px;
    background: #2a2a2a;
    color: #e5e5e5;
    border: 1px solid #404040;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    background: #333333;
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cyber-button-alt {
    padding: 12px 24px;
    background: rgba(50, 50, 50, 0.3);
    color: #a0a0a0;
    border: 1px solid #505050;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-button-alt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(80, 80, 80, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cyber-button-alt:hover::before {
    width: 300px;
    height: 300px;
}

.cyber-button-alt:hover {
    background: rgba(60, 60, 60, 0.4);
    border-color: #606060;
    color: #c0c0c0;
    box-shadow: 0 0 12px rgba(80, 80, 80, 0.3);
}

/* ==========================================
   GLASSMORPHISM CARD
   ========================================== */
.glass-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 100, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(120, 120, 120, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* ==========================================
   SKILL CARDS
   ========================================== */
.skill-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.1), rgba(80, 80, 80, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    border-color: #505050;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.5);
    border-radius: 12px;
    color: #a0a0a0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-card:hover .skill-icon {
    background: rgba(80, 80, 80, 0.6);
    color: #d0d0d0;
    transform: scale(1.05);
}

.skill-card h4 {
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.skill-card p {
    position: relative;
    z-index: 1;
}

/* ==========================================
   PROJECT CARDS
   ========================================== */
.project-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(80, 80, 80, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: #606060;
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   TERMINAL WINDOW
   ========================================== */
.terminal-window {
    background: #0d0d0d;
    border: 1px solid rgba(80, 80, 80, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid rgba(80, 80, 80, 0.3);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #b0b0b0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border-bottom: 1px solid rgba(120, 120, 120, 0.4);
    padding: 8px 4px;
    transition: border-color 0.3s ease;
}

.terminal-input:focus {
    border-color: #808080;
    box-shadow: 0 2px 8px rgba(80, 80, 80, 0.2);
}

.terminal-input::placeholder {
    color: rgba(120, 120, 120, 0.5);
}

/* ==========================================
   SOCIAL ICONS
   ========================================== */
.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(100, 100, 100, 0.4);
    border-radius: 12px;
    color: #a0a0a0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::before {
    width: 100px;
    height: 100px;
}

.social-icon:hover {
    border-color: #808080;
    color: #d0d0d0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* ==========================================
   TYPING ANIMATION
   ========================================== */
.typing-text {
    display: inline-block;
    border-right: 3px solid #808080;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #808080;
    }
}

/* ==========================================
   GLOW EFFECTS
   ========================================== */
.glow-text-cyan {
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.8),
    0 0 20px rgba(0, 255, 249, 0.6),
    0 0 30px rgba(0, 255, 249, 0.4);
}

.glow-text-green {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8),
    0 0 20px rgba(0, 255, 65, 0.6),
    0 0 30px rgba(0, 255, 65, 0.4);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 249, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 249, 0.6);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==========================================
   LOADING STATES
   ========================================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 249, 0.3);
    border-top-color: #00fff9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */
@media (max-width: 768px) {
    .cyber-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .skill-card {
        padding: 16px;
    }

    .project-card {
        padding: 20px;
    }

    .terminal-body {
        padding: 16px;
        font-size: 12px;
    }
}

/* ==========================================
   SELECTION STYLES
   ========================================== */
::selection {
    background: rgba(100, 100, 100, 0.4);
    color: #fff;
}

::-moz-selection {
    background: rgba(100, 100, 100, 0.4);
    color: #fff;
}

/* ==========================================
   FOCUS STYLES
   ========================================== */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid rgba(120, 120, 120, 0.5);
    outline-offset: 2px;
}

/* ==========================================
   SMOOTH TRANSITIONS
   ========================================== */
* {
    transition: background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* ==========================================
   MATRIX RAIN CANVAS
   ========================================== */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none;
    }
}

/* ==========================================
   DARK MODE ENHANCEMENTS
   ========================================== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0d0d0d;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   ASCII ART STYLING
   ========================================== */
.ascii-art {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    line-height: 1;
    white-space: pre;
    overflow-x: auto;
    font-family: 'Courier New', 'Courier', monospace;
    letter-spacing: 0;
    color: #888888;
    text-shadow: 0 0 8px rgba(136, 136, 136, 0.3);
    transition: all 0.3s ease;
    text-align: left;
    display: inline-block;
    max-width: 100%;
}

.ascii-art:hover {
    color: #a0a0a0;
    text-shadow: 0 0 12px rgba(160, 160, 160, 0.4);
}

/* Responsive ASCII art sizing */
@media (max-width: 768px) {
    .ascii-art {
        font-size: 3px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ascii-art {
        font-size: 4px;
    }
}

@media (min-width: 1025px) {
    .ascii-art {
        font-size: 5px;
    }
}

/* Scrollbar for ASCII art on mobile */
.ascii-art::-webkit-scrollbar {
    height: 4px;
}

.ascii-art::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.ascii-art::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 2px;
}

.ascii-art::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

