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

:root {
    /* Colors */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #1a1a1a;
    --color-accent-cyan: #00d4ff;
    --color-accent-purple: #b026ff;
    --color-accent-pink: #ff006e;
    --color-accent-tan: #f5deb3;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a8c0;
    --color-text-muted: #6b7394;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-accent-purple) 0%, var(--color-accent-pink) 100%);
    --gradient-mesh: transparent;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html,
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

::selection {
    background: var(--color-accent-cyan);
    color: var(--color-bg-primary);
}

/* ===================================
   PRELOADER ANIMATION
   =================================== */
body.loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Element reveal animations */
.navbar,
.hero-label,
.hero-tagline,
.hero-description,
.cta-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Hero name and subtitle visible from start - revealed when rain clears */

body:not(.loading) .navbar,
body:not(.loading) .hero-label,
body:not(.loading) .hero-tagline,
body:not(.loading) .hero-description,
body:not(.loading) .cta-button {
    opacity: 1;
    transform: translateY(0);
}

body:not(.loading) .navbar {
    transition-delay: 0.2s;
}

body:not(.loading) .hero-label {
    transition-delay: 0.4s;
}

body:not(.loading) .hero-tagline {
    transition-delay: 0.6s;
}

body:not(.loading) .hero-description {
    transition-delay: 0.8s;
}

body:not(.loading) .cta-button {
    transition-delay: 1s;
}

/* ===================================
   CUSTOM CURSOR
   =================================== */
.cursor-dot,
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0.5;
}

body:hover .cursor-dot {
    width: 12px;
    height: 12px;
}

/* ===================================
   BACKGROUND EFFECTS
   =================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* Scan line removed per user request */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Plus Grid */
.plus-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.plus-symbol {
    position: absolute;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-accent-cyan);
    opacity: 0.05;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    user-select: none;
    will-change: opacity, transform, filter;
}

.plus-symbol.active {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--color-accent-cyan));
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 2rem;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-parenthesis {
    font-weight: 800;
    color: transparent;
}

.logo-glitch-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-base);
    letter-spacing: 0.05em;
    padding-bottom: 8px;
}

/* Glitch underline container */
.nav-link .glitch-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    gap: 1px;
}

.nav-link:hover .glitch-underline,
.nav-link.active .glitch-underline {
    opacity: 1;
}

.nav-link .glitch-underline-char {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: var(--color-accent-cyan);
    text-shadow: 0 0 3px var(--color-accent-cyan);
    opacity: 0.8;
    line-height: 1;
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    padding: 0 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-accent-cyan);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-name {
    display: block;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: #ffffff;
    user-select: none;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle-container {
    display: block;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    color: transparent;
    user-select: none;
    text-align: center;
}

.glitch-text-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.tagline-item {
    animation: fadeInUp 0.8s ease both;
}

.tagline-item:nth-child(1) { animation-delay: 0.4s; }
.tagline-item:nth-child(3) { animation-delay: 0.5s; }
.tagline-item:nth-child(5) { animation-delay: 0.6s; }

.tagline-divider {
    color: var(--color-accent-cyan);
}

.hero-description {
    font-size: 1.25rem;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.7s both;
    letter-spacing: 0.02em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    position: relative;
    overflow: visible;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Glitch border container */
.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    padding: 2px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Subtle background glow on hover */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 50px;
    z-index: -2;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-button:hover::after {
    opacity: 0.1;
}

.button-text,
.button-arrow {
    position: relative;
    z-index: 1;
}

.button-arrow {
    transition: transform var(--transition-base);
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Glitch Border Characters */
.glitch-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glitch-char {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent-cyan);
    opacity: 0.8;
    transform-origin: center;
    pointer-events: none;
    transition: opacity 0.1s ease, color 0.3s ease;
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.cta-button:hover .glitch-char {
    color: var(--color-accent-purple);
    text-shadow: 0 0 8px var(--color-accent-purple);
    animation: glitchPulse 0.3s ease infinite;
}

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

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s ease 1s both;
    margin-top: 3rem;
    text-align: center;
}

/* ===================================
   SHARED SECTION STYLES
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent-cyan);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects section specific typography */
.projects .section-title {
    font-family: var(--font-mono);
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.projects .section-description {
    font-family: var(--font-mono);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.project-card:hover::before {
    opacity: 0.05;
}

/* EcoHunt Card Green Hover Glow */
.project-card:has(.eco):hover {
    box-shadow: 0 20px 60px rgba(74, 222, 128, 0.2);
}

/* Auntra Card Tan Hover Glow */
.project-card:has(.auntra):hover {
    box-shadow: 0 20px 60px rgba(245, 222, 179, 0.2);
}

.project-card-inner {
    position: relative;
    z-index: 2;
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    transition: transform var(--transition-slow);
}

.project-image-placeholder.eco {
    color: #4ade80;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder.eco::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    width: 120%;
    height: 120%;
    background-image: url('../images/EcoHunt.png');
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(1.2) saturate(1.5);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
    animation: auraEcoHunt 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.project-image-placeholder.eco::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 25%;
    width: 120%;
    height: 120%;
    background-image: url('../images/[EGG].png');
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(1.2) saturate(1.5);
    opacity: 0;
    transform: translate(50%, -50%) scale(1.2);
    animation: auraEgg 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auraEcoHunt {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }
    25% {
        opacity: 0.9;
        transform: translate(-45%, -55%) scale(1.3);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
    75% {
        opacity: 0.6;
        transform: translate(-55%, -45%) scale(1.25);
    }
}

@keyframes auraEgg {
    0%, 100% {
        opacity: 0.4;
        transform: translate(50%, -50%) scale(1.1);
    }
    25% {
        opacity: 0.6;
        transform: translate(55%, -45%) scale(1.25);
    }
    50% {
        opacity: 0.9;
        transform: translate(50%, -55%) scale(1.3);
    }
    75% {
        opacity: 0.7;
        transform: translate(45%, -50%) scale(1.2);
    }
}

.project-images-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-real-image {
    width: 45%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.project-card:hover .project-real-image {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* EcoHunt Static Images (Foreground) */
.eco-floating-image {
    width: 45%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    z-index: 2;
    position: relative;
}

.project-card:hover .eco-floating-image {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* EcoHunt Floating Emojis (Background - Behind Images) */
.eco-floating-emoji {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 40px;
    line-height: 1;
    will-change: transform;
    pointer-events: none;
    user-select: none;
    transition: filter var(--transition-base);
    z-index: 1;
}

.project-card:hover .eco-floating-emoji {
    filter: drop-shadow(0 4px 8px rgba(74, 222, 128, 0.3));
}

/* SecureDrive Rounded Rectangle Frame */
.secure-image-frame {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 650px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 150, 199, 0.15) 100%);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 212, 255, 0.2);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .secure-image-frame {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.3);
}

/* SecureDrive Static Image (Foreground) */
.secure-floating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.project-image-placeholder.secure {
    color: var(--color-accent-cyan);
    background: transparent;
    position: relative;
    overflow: visible;
}

#securedrive-container {
    padding: 3rem;
}

.project-image-placeholder.secure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background-image: url('../images/SecureDrive.svg');
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(1.2) saturate(1.5);
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.2);
    animation: auraSecureDrive 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auraSecureDrive {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }
    25% {
        opacity: 0.9;
        transform: translate(-48%, -52%) scale(1.3);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
    75% {
        opacity: 0.8;
        transform: translate(-52%, -48%) scale(1.25);
    }
}

/* Auntra Rounded Rectangle Frame */
.auntra-image-frame {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 650px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(176, 38, 255, 0.2);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .auntra-image-frame {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(176, 38, 255, 0.3);
}

/* Auntra Static Image (Foreground) */
.auntra-floating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.project-image-placeholder.auntra {
    color: var(--color-accent-purple);
    background: transparent;
    position: relative;
    overflow: visible;
}

#auntra-container {
    padding: 3rem;
}

.project-image-placeholder.auntra::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background-image: url('../images/Auntra.png');
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(1.2) saturate(1.5);
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.2);
    animation: auraAuntra 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auraAuntra {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }
    25% {
        opacity: 0.9;
        transform: translate(-48%, -52%) scale(1.3);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
    75% {
        opacity: 0.8;
        transform: translate(-52%, -48%) scale(1.25);
    }
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 39, 0.9) 100%);
}

.project-content {
    padding: 2rem;
}

.project-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-accent-cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-accent-cyan);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: gap var(--transition-base);
}

.project-link:hover {
    gap: 1rem;
}

/* EcoHunt Card Green Theme */
.project-card .eco ~ .project-content .project-label,
.project-card:has(.eco) .project-label {
    color: #4ade80;
}

.project-card .eco ~ .project-content .tech-tag,
.project-card:has(.eco) .tech-tag {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.project-card .eco ~ .project-content .project-link,
.project-card:has(.eco) .project-link {
    color: #4ade80;
}

.project-card .eco ~ .project-content .project-link svg,
.project-card:has(.eco) .project-link svg {
    stroke: #4ade80;
}

/* Auntra Card Tan Theme */
.project-card .auntra ~ .project-content .project-label,
.project-card:has(.auntra) .project-label {
    color: var(--color-accent-tan);
}

.project-card .auntra ~ .project-content .tech-tag,
.project-card:has(.auntra) .tech-tag {
    background: rgba(245, 222, 179, 0.1);
    border: 1px solid rgba(245, 222, 179, 0.2);
    color: var(--color-accent-tan);
}

.project-card .auntra ~ .project-content .project-link,
.project-card:has(.auntra) .project-link {
    color: var(--color-accent-tan);
}

.project-card .auntra ~ .project-content .project-link svg,
.project-card:has(.auntra) .project-link svg {
    stroke: var(--color-accent-tan);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.profile-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    animation: rotate 20s linear infinite;
}

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

.profile-placeholder span {
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    /* GPU acceleration for smooth animations */
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Crossfade slideshow - controlled by JavaScript */
/* First image visible by default */
.profile-slideshow:nth-child(1) {
    opacity: 1;
}

/* Smooth transitions when JavaScript changes opacity */
.profile-slideshow {
    transition: opacity 1s ease-in-out;
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    pointer-events: none;
    animation: borderPulse 3s ease infinite;
    /* GPU acceleration for smooth pulsing */
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Glitch characters for profile border */
.image-border .glitch-char {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent-cyan);
    opacity: 0.8;
    transform-origin: center;
    pointer-events: none;
    text-shadow: 0 0 5px var(--color-accent-cyan);
    transition: opacity 0.1s ease, color 0.3s ease;
    /* GPU acceleration for smooth character animations */
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes borderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.about-text {
    text-align: left;
}

.about-text .section-title {
    font-family: var(--font-mono);
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.about-description {
    margin: 2rem 0;
}

.about-description p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===================================
   TERMINAL SYSTEM STATUS
   =================================== */
.system-terminal {
    margin-top: 3rem;
    background: rgba(0, 212, 255, 0.03);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 0;
    font-family: var(--font-mono);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: var(--color-accent-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Speed Controls */
.terminal-speed-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.speed-hint {
    color: var(--color-text-muted);
    opacity: 1;
    animation: fadeOutHint 3s ease forwards;
    animation-delay: 5s;
    transition: opacity 0.5s ease;
}

.speed-indicator {
    color: var(--color-accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-weight: 700;
    min-width: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.speed-indicator.changed {
    animation: speedPulse 0.3s ease;
}

@keyframes fadeOutHint {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes speedPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
        background: rgba(0, 212, 255, 0.2);
    }
}

.terminal-body {
    padding: 1.5rem;
}

.terminal-line {
    margin-bottom: 1rem;
}

.terminal-prompt {
    color: #4ade80;
    margin-right: 0.5rem;
    font-weight: bold;
}

.terminal-command {
    color: var(--color-text-primary);
    opacity: 0;
    animation: typeIn 1.5s ease-in-out 0.5s forwards;
}

@keyframes typeIn {
    to { opacity: 1; }
}

.terminal-output {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.status-line {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.status-label {
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.status-dots {
    flex: 1;
    margin: 0 0.75rem;
    color: rgba(0, 212, 255, 0.2);
    overflow: hidden;
    white-space: nowrap;
}

.status-value {
    color: var(--color-accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    white-space: nowrap;
}

.status-value.glitch-text {
    position: relative;
}

.status-active {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

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

.terminal-cursor {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

/* Hide cursor by default */
.cursor-blink {
    opacity: 0;
    color: var(--color-accent-cyan);
    margin-left: 0.25rem;
}

/* Show and blink cursor only when terminal is focused */
.system-terminal.terminal-focused .cursor-blink {
    opacity: 1;
    animation: cursorBlink 1s step-end infinite;
}

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

/* Terminal Hint Text */
.terminal-hint {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.hint-text {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Terminal Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    position: relative;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 0;
    margin-left: 0.5rem;
    caret-color: transparent;
}

.terminal-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.terminal-input:focus::placeholder {
    opacity: 0;
}

.input-cursor {
    position: absolute;
    left: calc(1.5rem + var(--input-offset, 0px));
    pointer-events: none;
}

/* Command Output Styling */
.command-output {
    margin: 1rem 0;
    padding-left: 0.5rem;
    animation: fadeInOutput 0.3s ease;
}

@keyframes fadeInOutput {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.command-header {
    color: var(--color-accent-cyan);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.command-section {
    margin: 1rem 0;
}

.section-title {
    color: #4ade80;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.section-item {
    color: var(--color-text-secondary);
    margin: 0.25rem 0;
    margin-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.section-item::before {
    content: '├─ ';
    color: rgba(0, 212, 255, 0.4);
    margin-left: -1rem;
}

.section-item:last-child::before {
    content: '└─ ';
}

/* Progress Bars */
.progress-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.progress-fill {
    display: inline-block;
    color: var(--color-accent-cyan);
}

.progress-empty {
    display: inline-block;
    color: rgba(0, 212, 255, 0.2);
}

.progress-percent {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Loading Animation */
.loading-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    color: var(--color-accent-cyan);
}

.loading-text {
    min-width: 100px;
}

.loading-progress {
    flex: 1;
}

.loading-fill {
    display: inline-block;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

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

/* Error Messages */
.terminal-error {
    color: #ff006e;
    margin: 0.5rem 0;
}

/* Success Messages */
.terminal-success {
    color: #4ade80;
    margin: 0.5rem 0;
}

/* Tree Structure */
.tree-item {
    margin-left: 1rem;
}

.tree-item::before {
    content: '│  ';
    color: rgba(0, 212, 255, 0.3);
}

.tree-branch::before {
    content: '├─ ';
    color: rgba(0, 212, 255, 0.3);
}

.tree-last::before {
    content: '└─ ';
    color: rgba(0, 212, 255, 0.3);
}

/* ===================================
   TERMINAL MODAL SYSTEM
   =================================== */
.terminal-modal {
    position: fixed;
    inset: 0; /* Full viewport coverage */
    z-index: 10000;
    display: none;
    place-items: center; /* Perfect centering */
    padding: 1rem;
}

.terminal-modal.active {
    display: grid; /* Must be grid for place-items to work */
}

.terminal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeIn 300ms ease forwards;
}

.terminal-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    z-index: 10001;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 400ms ease forwards;
    animation-delay: 100ms;
}

.terminal-fullscreen {
    margin-top: 0;
    max-height: 85vh;
}

.terminal-fullscreen .terminal-body {
    max-height: calc(85vh - 60px);
    overflow-y: auto;
    padding-bottom: 2rem;
}

/* Custom Scrollbar for Terminal */
.terminal-fullscreen .terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-fullscreen .terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 4px;
}

.terminal-fullscreen .terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.terminal-fullscreen .terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Firefox Scrollbar */
.terminal-fullscreen .terminal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(0, 212, 255, 0.05);
}

/* Inline Terminal - Make it clickable */
#terminalInline {
    cursor: pointer;
    transition: all 0.3s ease;
}

#terminalInline:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

#terminalInline .terminal-hint {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#terminalInline:hover .terminal-hint {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .terminal-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .terminal-fullscreen {
        max-height: 90vh;
    }

    .terminal-fullscreen .terminal-body {
        max-height: calc(90vh - 60px);
        font-size: 0.85rem;
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: transparent;
    padding: var(--spacing-xl) 0;
}

.contact-content {
    text-align: center;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    color: #ffffff;
}

.contact-description {
    font-size: 1.2rem;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    word-spacing: 0.3em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.social-link svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent-cyan);
    transition: transform var(--transition-base);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Glitch border for social links */
.social-link .glitch-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.social-link .glitch-char {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent-cyan);
    opacity: 0.8;
    transform-origin: center;
    pointer-events: none;
    transition: opacity 0.1s ease, color 0.3s ease;
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.social-link:hover .glitch-char {
    color: var(--color-accent-purple);
    text-shadow: 0 0 8px var(--color-accent-purple);
    animation: glitchPulse 0.3s ease infinite;
}

.social-link svg,
.social-link span {
    position: relative;
    z-index: 1;
}

.footer-bottom {
    padding-top: 0;
    margin-top: 3rem;
    position: relative;
}

.footer-divider {
    width: 100%;
    height: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.footer-divider-char {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #ffffff;
    opacity: 0.6;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: opacity 0.1s ease, color 0.3s ease;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--color-accent-cyan);
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Glitch text character spans */
.glitch-text-char {
    display: inline-block;
    min-width: 0.5ch;
    text-align: center;
    transition: opacity 0.1s ease;
}

/* Preserve text wrapping consistency */
.contact-description,
.contact-title,
.social-link span,
.copyright,
.footer-tagline {
    white-space: normal;
    word-break: keep-all;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .system-terminal {
        font-size: 0.9rem;
    }

    .status-dots {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-glow {
        display: none;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 0rem;
    }

    .logo {
        position: static;
        justify-content: center;
        width: 100%;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-tagline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tagline-divider {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .system-terminal {
        font-size: 0.85rem;
    }

    .terminal-body {
        padding: 1rem;
    }

    .terminal-output {
        padding-left: 0.5rem;
    }

    .status-label,
    .status-value {
        font-size: 0.85rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}
