/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-darkest: #030307;
    --bg-dark: #070711;
    --bg-glass: rgba(7, 7, 17, 0.7);
    --bg-glass-hover: rgba(15, 15, 35, 0.85);
    
    --accent-purple: #7c3aed;
    --accent-purple-glow: rgba(124, 58, 237, 0.4);
    --accent-blue: #2563eb;
    --accent-blue-glow: rgba(37, 99, 235, 0.4);
    --accent-cyan: #0ea5e9;
    --accent-cyan-glow: rgba(14, 165, 233, 0.4);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-yellow: #f59e0b;
    --accent-yellow-glow: rgba(245, 158, 11, 0.3);
    --accent-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(124, 58, 237, 0.5);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Effects & Transitions */
    --glass-blur: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.25);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom trailing cursor */
}

/* Hide custom cursor on mobile/tablet or touch devices */
@media (hover: none) {
    body {
        cursor: auto;
    }
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
}

body.touch-device,
body.touch-device *,
body.touch-device a,
body.touch-device button,
body.touch-device input,
body.touch-device textarea,
body.touch-device .bento-card,
body.touch-device .filter-btn {
    cursor: auto !important;
}

body.touch-device .custom-cursor,
body.touch-device .custom-cursor-dot {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button, input, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
    cursor: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent-purple);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
}

.custom-cursor.hovered {
    width: 48px;
    height: 48px;
    background-color: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   SCROLLBAR & SELECTION
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.25);
    border: 2px solid var(--bg-darkest);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.5);
}

::selection {
    background-color: rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Base Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-purple) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Titles */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Ambient Canvas & Blobs */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.blob-bg {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    animation: blobFloat 25s infinite alternate ease-in-out;
}

.blob-purple {
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.blob-blue {
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-cyan {
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: 40%;
    left: 70%;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
    100% { transform: translate(-40px, 60px) scale(0.9); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: height var(--transition-smooth), background-color var(--transition-smooth), border-bottom var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: 70px;
    background-color: rgba(3, 3, 7, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-logo .dot {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: width var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: rgba(3, 3, 7, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    z-index: 5;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.typewriter-text {
    color: var(--accent-cyan);
}

.hero-subtitle .cursor {
    color: var(--accent-cyan);
    animation: cursorBlink 0.8s infinite;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Interactive Dashboard Card */
.hero-dashboard-container {
    perspective: 1000px;
    width: 100%;
}

.dashboard-card {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: rgba(5, 5, 12, 0.75);
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.dashboard-header .dots {
    display: flex;
    gap: 6px;
    margin-right: auto;
}

.dashboard-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: var(--accent-red); }
.dot-yellow { background-color: var(--accent-yellow); }
.dot-green { background-color: var(--accent-green); }

.dashboard-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-purple);
    margin-left: auto;
}

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

@keyframes iconPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.dashboard-body {
    padding: 1.5rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.status-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.status-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-value.active-text {
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
}

.console-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.console-preview p {
    line-height: 1.4;
}

.line-command { color: var(--accent-cyan); }
.line-success { color: var(--accent-green); }
.line-info { color: var(--text-secondary); }
.line-warning { color: var(--accent-yellow); }

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite ease-in-out;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    animation: wheelScroll 1.5s infinite;
}

@keyframes wheelScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-dashboard-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   STATS BANNER
   ========================================================================== */

.stats-banner {
    background: rgba(7, 7, 17, 0.4);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 3rem 0;
    backdrop-filter: blur(10px);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    align-items: stretch;
}

.about-info-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.about-body {
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
}

.skills-mini-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-mini-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
}

/* Disciplines Grid */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.discipline-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.discipline-card:hover {
    transform: translateY(-5px);
}

.discipline-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
}

.discipline-icon {
    width: 22px;
    height: 22px;
}

.purple-glow {
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

.blue-glow {
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
}

.cyan-glow {
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

.green-glow {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.discipline-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.discipline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .disciplines-grid {
        grid-template-columns: 1fr;
    }
    .skills-mini-list {
        grid-template-columns: 1fr;
    }
    .about-info-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   PROJECTS BENTO GRID
   ========================================================================== */

.projects-section {
    padding: 8rem 0;
    background: rgba(3, 3, 7, 0.3);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 400px;
}

.bento-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    height: 100%;
}

.bento-card.card-wide {
    grid-column: span 2;
}

.bento-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 3, 7, 0.9) 20%, rgba(3, 3, 7, 0.4) 60%, rgba(3, 3, 7, 0.1) 100%);
    z-index: 2;
    transition: background var(--transition-smooth);
}

.bento-info {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bento-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bento-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), color var(--transition-fast);
}

.card-link i,
.card-link svg {
    width: 14px;
    height: 14px;
}

/* Card Status Badges */
.card-status {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 4;
    padding: 0.4rem 0.8rem;
    background: rgba(3, 3, 7, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.blink-green {
    background-color: var(--accent-green);
    animation: greenBlink 1.5s infinite;
}

.blink-yellow {
    background-color: var(--accent-yellow);
    animation: yellowBlink 1.5s infinite;
}

.badge-live { color: var(--accent-green); }
.badge-dev { color: var(--accent-yellow); }
.badge-completed { color: var(--text-primary); }
.badge-completed .status-dot { background-color: var(--accent-blue); }
.badge-concept { color: var(--text-muted); }

@keyframes greenBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes yellowBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Bento Hover States */
.bento-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.bento-card:hover .bento-media img {
    transform: scale(1.05);
}

.bento-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(3, 3, 7, 0.95) 30%, rgba(3, 3, 7, 0.5) 70%, rgba(3, 3, 7, 0.2) 100%);
}

.bento-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

.bento-card:hover .card-link:hover {
    color: var(--accent-cyan);
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }
    
    .bento-card.card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 320px;
    }
    
    .card-link {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    background: rgba(7, 7, 17, 0.92);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(30px) scale(0.95);
    transition: transform var(--transition-smooth);
}

.modal.active .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(7, 7, 17, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
    z-index: 100;
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-close-btn i,
.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* Modal Content Styling */
.modal-header-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 17, 1) 0%, rgba(7, 7, 17, 0) 100%);
}

/* Modal Image Gallery Styles */
.modal-gallery-container {
    width: 100%;
    position: relative;
}

.modal-gallery-main {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
    background: #030307;
}

.modal-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease-in-out;
}

.modal-gallery-main::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(7, 7, 17, 1) 0%, rgba(7, 7, 17, 0) 100%);
}

.modal-gallery-thumbs {
    display: flex;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: rgba(7, 7, 17, 0.5);
    border-bottom: 1px solid var(--border-glass);
    overflow-x: auto;
}

.gallery-thumb {
    cursor: pointer;
    position: relative;
    width: 120px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

.gallery-thumb.active {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 7, 17, 0.85);
    color: var(--text-primary);
    font-size: 0.65rem;
    text-align: center;
    padding: 3px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modal-gallery-main {
        height: 250px;
    }
    .modal-gallery-thumbs {
        padding: 0.75rem 1.5rem;
        gap: 0.75rem;
    }
    .gallery-thumb {
        width: 90px;
        height: 55px;
    }
    .thumb-caption {
        font-size: 0.55rem;
        padding: 2px 0;
    }
}

.modal-content-inner {
    padding: 2.5rem;
}

.modal-title-sec {
    margin-bottom: 2rem;
}

.modal-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--accent-purple);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.modal-title-sec h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

.modal-features-sec h3, .modal-meta-sec h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-features-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.modal-feature-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.modal-meta-sec {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.modal-highlight-box {
    background: rgba(14, 165, 233, 0.04);
    border: 1px dashed rgba(14, 165, 233, 0.25);
    padding: 1rem;
    border-radius: 8px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-actions {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    display: flex;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content-inner {
        padding: 1.8rem;
    }
    
    .modal-header-img {
        height: 200px;
    }
}

/* ==========================================================================
   INTERACTIVE SIMULATION TERMINAL
   ========================================================================== */

.terminal-section {
    padding: 8rem 0;
}

.terminal-window {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: rgba(3, 3, 8, 0.95);
    border: 1px solid var(--border-glass);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
}

.terminal-header .dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.terminal-header .dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 auto;
}

.terminal-actions {
    display: flex;
    gap: 0.6rem;
}

.terminal-actions button {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.terminal-actions button:hover {
    color: var(--text-primary);
}

.terminal-actions button i,
.terminal-actions button svg {
    width: 16px;
    height: 16px;
}

.terminal-body {
    padding: 1.5rem;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.5;
    position: relative;
}

/* Matrix Rain Overlay Canvas */
.matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.term-welcome-msg {
    color: var(--text-muted);
    white-space: pre-wrap;
}

.term-cmd-highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.terminal-prompt {
    color: var(--accent-purple);
    font-weight: 700;
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    caret-color: var(--accent-cyan);
}

/* Command responses styles */
.term-line-input {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.term-line-output {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    white-space: pre-wrap;
}

.term-line-error {
    color: var(--accent-red);
    margin-bottom: 0.6rem;
}

.term-line-success {
    color: var(--accent-green);
    margin-bottom: 0.6rem;
}

.term-line-info {
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
}

.term-ascii {
    color: var(--accent-purple);
    white-space: pre;
    line-height: 1.1;
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
}

.term-table {
    margin-bottom: 0.6rem;
    border-collapse: collapse;
}

.term-table td {
    padding: 2px 12px;
}

.term-table td:first-child {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Shortcuts under Terminal */
.terminal-shortcuts {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.shortcut-btn {
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--text-secondary);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.shortcut-btn:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item-card {
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item-card:hover {
    transform: translateX(5px);
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
}

.contact-icon-wrapper i,
.contact-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.contact-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-container {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon, .textarea-icon {
    position: absolute;
    left: 1.2rem;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.textarea-icon {
    top: 1.2rem;
}

.contact-form-container input, .contact-form-container textarea {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 2.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form-container textarea {
    padding-top: 1rem;
    resize: none;
}

.contact-form-container input:focus, .contact-form-container textarea:focus {
    border-color: var(--border-glass-focus);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

.contact-form-container input:focus + .input-icon,
.contact-form-container textarea:focus + .textarea-icon {
    color: var(--accent-purple);
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: rgba(3, 3, 7, 0.85);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.footer-logo .dot {
    color: var(--accent-cyan);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-time-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.time-icon {
    width: 14px;
    height: 14px;
    animation: rotateClock 10s infinite linear;
}

@keyframes rotateClock {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ADDITIONAL RESPONSIVE REFINEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .about-section,
    .projects-section,
    .terminal-section,
    .contact-section {
        padding: 4.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .terminal-body {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
}
