/* ==========================================================================
   FUTURE HUD DESIGN SYSTEM - MOHIM DAS PORTFOLIO
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(15, 15, 20, 0.55);
    --bg-card-hover: rgba(22, 22, 30, 0.75);
    
    --accent-red: #ff3333;
    --accent-red-rgb: 255, 51, 51;
    --accent-red-glow: rgba(255, 51, 51, 0.45);
    --accent-red-dim: rgba(255, 51, 51, 0.15);
    
    --text-white: #f5f5f7;
    --text-muted: #86868b;
    --text-dark: #121212;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --hud-border: 1px solid rgba(255, 51, 51, 0.2);
    --hud-border-hover: 1px solid rgba(255, 51, 51, 0.6);
    --hud-glow-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 15px 0 rgba(255, 51, 51, 0.15);
    --hud-glow-shadow-hover: 0 8px 32px 0 rgba(255, 51, 51, 0.15), 0 0 25px 0 rgba(255, 51, 51, 0.35);
}

/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor to enable custom cursor */
}

/* --- SCROLLBAR CUSTOMIZATION --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 51, 51, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* --- CORE HELPER CLASSES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.accent-color { color: var(--accent-red); }
.text-accent { color: var(--accent-red); font-family: var(--font-heading); text-shadow: 0 0 10px var(--accent-red-glow); }

/* --- DYNAMIC BACKGROUND & WEBGL CANVAS --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* --- DUAL RING CUSTOM CURSOR --- */
#custom-cursor {
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width var(--transition-fast), height var(--transition-fast), border-color var(--transition-fast);
}

#custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 8px var(--accent-red);
}

/* Cursor Hover states */
body.hovered-link #custom-cursor {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 51, 51, 0.1);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.25);
}

/* --- CINEMATIC ENTRANCE LOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loader-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #030303;
    z-index: 1;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}
.panel-left { left: 0; border-right: 1px solid rgba(255, 51, 51, 0.1); }
.panel-right { right: 0; border-left: 1px solid rgba(255, 51, 51, 0.1); }

.loader-bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 51, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 51, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 2;
}

.loader-hud-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-scanner-ring {
    width: 180px;
    height: 180px;
    border: 2px dashed rgba(255, 51, 51, 0.3);
    border-radius: 50%;
    position: absolute;
    animation: rotateRing 8s linear infinite;
}
.ring-inner {
    width: 140px;
    height: 140px;
    border: 1px solid var(--accent-red);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: rotateRingBack 4s linear infinite;
}

.loader-scanner-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    position: absolute;
    box-shadow: 0 0 15px var(--accent-red);
    animation: scanLine 2s ease-in-out infinite;
}

.loader-percentage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 240px;
}
.loader-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 8px;
}
#loader-percentage {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red-glow);
}

.loader-logo-container {
    margin-top: 32px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.loader-logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 8px;
    color: var(--text-white);
    margin-bottom: 4px;
}
.loader-sub-text {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--accent-red);
    letter-spacing: 2px;
}

/* Animations for Loader */
@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes rotateRingBack {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
@keyframes scanLine {
    0%, 100% { transform: translateY(-100px); opacity: 0.2; }
    50% { transform: translateY(100px); opacity: 1; }
}

/* --- GLASSMORPHISM CARD BASICS --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--hud-border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--hud-glow-shadow);
    transition: border var(--transition-medium), box-shadow var(--transition-medium), background var(--transition-medium);
}
.glass-card:hover {
    border: var(--hud-border-hover);
    box-shadow: var(--hud-glow-shadow-hover);
    background: var(--bg-card-hover);
}

/* HUD corner design overlays */
.hud-corners::before, .hud-corners::after,
.hud-box-header::before, .hud-box-header::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent-red);
    pointer-events: none;
    z-index: 5;
}
/* Corners positions */
.hud-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-corners::after { top: 0; right: 0; border-left: none; border-bottom: none; }

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    top: -75px;
    right: -75px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    transition: opacity var(--transition-medium);
}
.glass-card:hover .card-glow {
    opacity: 0.8;
}

/* HUD Header bar for panels */
.hud-box-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hud-box-header h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-white);
}
.card-icon {
    font-size: 1.1rem;
    color: var(--accent-red);
    margin-right: 12px;
    text-shadow: 0 0 10px var(--accent-red-glow);
}
.card-body {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.hud-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 51, 51, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 51, 0.015) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* --- FLOATING HUD HEADER (NAVBAR) --- */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.hud-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.logo-accent {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

/* Motivation line styling */
.hud-nav-motivation {
    font-family: var(--font-sub);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    max-width: 440px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid var(--accent-red);
    padding-left: 14px;
    margin: 0 24px;
    flex-grow: 1;
    opacity: 0.9;
}
.motivation-cursor {
    color: var(--accent-red);
    margin-right: 4px;
    font-family: var(--font-heading);
    font-weight: bold;
    animation: blink 0.8s infinite;
}

.hud-nav {
    display: flex;
    gap: 12px;
}
.nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem; /* Larger font size for icons */
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-link i {
    transition: transform var(--transition-fast);
}
.nav-link:hover i {
    transform: scale(1.15);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 51, 0.2);
    background: rgba(255, 51, 51, 0.05);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.hud-time-container {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-red);
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--accent-red-glow);
}

/* Scroll progress bar at bottom of nav */
.scroll-progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile Nav Toggle */
.mobile-hud-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}
.mobile-hud-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    transition: all var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 75px; /* Offset below fixed header to prevent navbar overlap */
    right: 0;
    width: 100%;
    height: 85vh; /* display a larger version from below header to middle-bottom of website */
    background-image: 
        linear-gradient(to right, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 1) 35%, rgba(5, 5, 5, 0.4) 55%, transparent 70%, transparent 95%, rgba(5, 5, 5, 1) 100%),
        linear-gradient(to bottom, rgba(5, 5, 5, 1) 0%, transparent 12%, transparent 70%, rgba(5, 5, 5, 1) 100%),
        url('assets/profile.jpeg');
    background-size: contain;
    background-position: right top;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.05);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hud-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 51, 51, 0.08);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-red);
    margin-bottom: 24px;
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-sub);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* Terminal Typing Container */
.typing-container {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-red);
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    border-left: 3px solid var(--accent-red);
    margin-bottom: 32px;
    max-width: 500px;
    display: flex;
    align-items: center;
}
.terminal-prompt {
    margin-right: 12px;
    color: var(--text-muted);
}
.cursor-blink {
    margin-left: 4px;
    animation: blink 0.8s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-bio {
    font-size: 1.15rem;
    color: var(--text-white);
    margin-bottom: 40px;
    max-width: 600px;
    font-style: italic;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    line-height: 1.8;
}

/* premium animated buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 16px 28px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-white);
    border: 1px solid var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-red);
    box-shadow: 0 0 25px var(--accent-red-glow), inset 0 0 15px var(--accent-red-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background-color: rgba(255, 51, 51, 0.05);
    box-shadow: 0 0 15px var(--accent-red-dim);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-muted);
    border: none;
    padding: 16px 16px;
}
.btn-tertiary:hover {
    color: var(--text-white);
}
.btn-tertiary i {
    margin-right: 8px;
    font-size: 0.95rem;
}

/* Portrait HUD Wrapper */
.portrait-hud-wrapper {
    width: 380px;
    height: 480px;
    border: 1px solid rgba(255, 51, 51, 0.25);
    position: relative;
    padding: 10px;
    background: rgba(255, 51, 51, 0.02);
    margin: 0 auto;
}

.portrait-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px dashed rgba(255, 51, 51, 0.2);
    background: rgba(255, 51, 51, 0.01);
}

.hud-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(255, 51, 51, 0) 95%, 
        rgba(255, 51, 51, 0.15) 97%, 
        rgba(255, 51, 51, 0) 100%
    );
    background-size: 100% 25px;
    pointer-events: none;
    z-index: 10;
    animation: scanAnimation 8s linear infinite;
}
@keyframes scanAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 0 480px; }
}

.hud-corners::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.hud-corners::before { bottom: 0; left: 0; border-right: none; border-top: none; }

.hud-reticle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(255, 51, 51, 0.3);
    border-radius: 50%;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 11;
    animation: rotateRing 20s linear infinite;
}

.hud-status-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 51, 51, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 12;
}
.hud-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulse 1.5s infinite;
}
.hud-status-text {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
}

.hud-info-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid rgba(255, 51, 51, 0.2);
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1.6;
    z-index: 12;
}
.hud-info-line {
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.hud-info-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Floating 3D HUD boxes */
.floating-tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}
.floating-element {
    position: absolute;
    padding: 8px 16px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-white);
    letter-spacing: 2px;
    box-shadow: var(--hud-glow-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatAnimation 6s ease-in-out infinite;
}
.floating-element i { color: var(--accent-red); }

.element-1 { top: 10%; left: -50px; animation-delay: 0s; }
.element-2 { top: 40%; right: -60px; animation-delay: 1.5s; }
.element-3 { bottom: 15%; left: -70px; animation-delay: 3s; }
.element-4 { bottom: 35%; right: -40px; animation-delay: 0.8s; }
.element-5 { top: -20px; right: 80px; animation-delay: 2.2s; }

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Scroll indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
}
.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}
.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.5s infinite;
}
.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 3px;
}
@keyframes wheelScroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

/* --- SECTIONS COMMON STYLING --- */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}
.section-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-red);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- ABOUT ME SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-card .card-body {
    padding-top: 12px;
}

.dossier-list {
    list-style: none;
}
.dossier-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dossier-list li:last-child {
    border-bottom: none;
}
.dossier-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.dossier-val {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    text-align: right;
    max-width: 70%;
}

.vision-card .card-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 53px);
    justify-content: space-between;
    gap: 32px;
}

.vision-quote {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-white);
    font-style: italic;
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
}

.vision-graph-container {
    position: relative;
    border: 1px solid rgba(255, 51, 51, 0.15);
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.vision-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.v-bar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.v-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.v-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 51, 51, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.v-fill {
    display: block;
    height: 100%;
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    border-radius: 2px;
    width: 0%; /* Will animate using GSAP */
}

/* --- INTERACTIVE 3D MAP SECTION --- */
.globe-container-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: rgba(10, 10, 15, 0.4);
    overflow: hidden;
}

#canvas3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.globe-info-hud {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 320px;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.25);
    border-radius: 6px;
    padding: 20px;
    z-index: 10;
    box-shadow: var(--hud-glow-shadow);
}
.globe-hud-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--accent-red); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.globe-hud-header h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-white);
}
.globe-hud-text {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 12px;
    font-style: italic;
}
.globe-hud-stats {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.stat-span i { color: var(--accent-red); margin-right: 4px; }

.flight-paths-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.path-item {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.path-item i { color: var(--accent-red); margin: 0 4px; }

/* --- TIMELINE SECTION --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.timeline-progress-bar {
    position: absolute;
    width: 100%;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    top: 0;
    height: 0%; /* Animated via GSAP */
}

.timeline-item {
    padding: 20px 0;
    width: 50%;
    position: relative;
}
.timeline-item.left { left: 0; padding-right: 40px; }
.timeline-item.right { left: 50%; padding-left: 40px; }

.timeline-dot-outer {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: 2px solid rgba(255, 51, 51, 0.3);
    top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: border-color var(--transition-fast);
}
.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-item.left .timeline-dot-outer { right: -12px; }
.timeline-item.right .timeline-dot-outer { left: -12px; }

/* Timeline Card */
.timeline-card {
    padding: 24px;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
}
.timeline-tag {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: var(--text-muted);
}

.timeline-card h3 {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Active Timeline elements */
.timeline-item.active-item .timeline-dot-outer {
    border-color: var(--accent-red);
}
.timeline-item.active-item .timeline-dot {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}
.active-card {
    border-color: rgba(255, 51, 51, 0.4);
    box-shadow: var(--hud-glow-shadow-hover);
}
.active-year { color: var(--accent-red); }
.active-tag {
    border-color: rgba(255, 51, 51, 0.3);
    color: var(--accent-red);
}

/* Future Card */
.future-card {
    border-style: dashed;
}

/* Metrics in Timeline */
.timeline-metrics {
    display: flex;
    gap: 16px;
}
.metric-circle {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.metric-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}
.metric-bg {
    fill: none;
    stroke: rgba(255, 51, 51, 0.05);
    stroke-width: 3;
}
.metric-progress {
    fill: none;
    stroke: var(--accent-red);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}
.metric-val {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-red);
}

.metric-stat {
    border-left: 2px solid var(--accent-red);
    padding-left: 12px;
}
.metric-stat-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-red);
}
.metric-stat-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    height: 480px;
}
.project-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-visual {
    width: 100%;
    height: 220px;
    position: relative;
    background: #09090c;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    overflow: hidden;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.proj-icon {
    font-size: 3.5rem;
    color: rgba(255, 51, 51, 0.25);
    z-index: 2;
    transition: transform var(--transition-slow), color var(--transition-medium);
}
.proj-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 51, 51, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 51, 0.02) 1px, transparent 1px);
    background-size: 15px 15px;
    z-index: 1;
}

/* Overlay for hover */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}
.project-card:hover .project-overlay {
    transform: translateY(0);
}
.project-card:hover .proj-icon {
    transform: scale(1.1) rotate(10deg);
    color: var(--accent-red);
}

.project-tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.project-tech-tags span {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    background: rgba(255, 51, 51, 0.05);
    border-radius: 3px;
    color: var(--accent-red);
}

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-num {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    display: block;
    margin-bottom: 8px;
}
.project-title {
    font-family: var(--font-sub);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.project-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 51, 51, 0.1);
    padding-top: 16px;
}
.p-stat {
    display: flex;
    flex-direction: column;
}
.p-stat-val {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
}
.p-stat-lbl {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.canvas-project-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sm-btn {
    padding: 10px 18px;
    font-size: 0.7rem;
    width: 100%;
}

/* --- ACHIEVEMENTS SECTION --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.achievement-badge {
    text-align: center;
    padding: 30px 20px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.badge-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-red-dim) 0%, transparent 60%);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.badge-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 51, 51, 0.2);
    background: rgba(255, 51, 51, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px var(--accent-red-dim);
    transition: transform var(--transition-medium), border-color var(--transition-medium);
}
.achievement-badge:hover .badge-icon-container {
    transform: scale(1.1) translateY(-4px);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow), inset 0 0 15px var(--accent-red-glow);
}

.achievement-badge h3 {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.achievement-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.skills-card {
    padding: 32px;
}
.skills-card h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    padding-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-weight: 500;
}
.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 51, 51, 0.08);
    border-radius: 2px;
}
.skill-fill {
    display: block;
    height: 100%;
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    border-radius: 2px;
    width: 0%; /* Animated via GSAP */
}

/* Tools styles */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tool-badge {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}
.tool-badge:hover {
    border-color: rgba(255, 51, 51, 0.3);
    background: rgba(255, 51, 51, 0.04);
    color: var(--accent-red);
}
.tool-badge i { font-size: 0.95rem; }

/* Soft Skills Circles */
.skills-circle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}
.skill-circle-svg {
    width: 80px;
    height: 80px;
}
.circle-bg {
    fill: none;
    stroke: rgba(255, 51, 51, 0.04);
    stroke-width: 3;
}
.circle-fill {
    fill: none;
    stroke: var(--accent-red);
    stroke-width: 3;
    stroke-linecap: round;
    box-shadow: 0 0 10px var(--accent-red);
}

.circle-percentage {
    position: absolute;
    top: 26px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-white);
}

.circle-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- CODELX SECTION --- */
.codelx-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.codelx-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.codelx-subtitle {
    font-family: var(--font-sub);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 24px;
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
}
.codelx-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.codelx-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.codelx-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}
.codelx-stat-box .stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-red);
    display: block;
    margin-bottom: 4px;
}
.codelx-stat-box .stat-lbl {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.codelx-visual-column .roadmap-card {
    padding: 32px;
}
.codelx-visual-column .roadmap-card h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    padding-bottom: 12px;
}

/* Roadmap timeline */
.roadmap-wrapper {
    position: relative;
    padding-left: 40px;
}
.roadmap-track {
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    top: 10px;
    bottom: 10px;
    left: 10px;
}
.roadmap-fill {
    position: absolute;
    width: 100%;
    background: var(--accent-red);
    top: 0;
    height: 33%; /* Animates to current node */
}

.roadmap-node {
    position: relative;
    margin-bottom: 32px;
}
.roadmap-node:last-child {
    margin-bottom: 0;
}

.roadmap-node .node-dot {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    left: -40px;
    top: 2px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.roadmap-node.current-node .node-dot {
    border-color: var(--accent-red);
}
.roadmap-node.current-node .node-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.roadmap-node .node-content h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.roadmap-node.current-node .node-content h4 {
    color: var(--accent-red);
}
.roadmap-node .node-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}
.node-status {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 1px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--text-muted);
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
}

.contact-form-container {
    padding: 40px;
}
.contact-form-container h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.15);
    padding-bottom: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.contact-form input, .contact-form textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 51, 51, 0.15);
    border-radius: 4px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-dim);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-block {
    width: 100%;
}

/* Success Popup overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}
.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.success-icon {
    font-size: 3.5rem;
    color: var(--accent-red);
    animation: scaleCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes scaleCheck {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
.form-success-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.form-success-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}
.contact-info-list li a {
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.contact-info-list li a:hover {
    color: var(--accent-red);
}
.contact-info-list li i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Floating 3D Social media boxes */
.social-3d-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.social-icon-box {
    text-align: center;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}
.social-icon-box i {
    font-size: 1.8rem;
    color: var(--accent-red);
    transition: transform var(--transition-medium);
}
.social-icon-box:hover i {
    transform: scale(1.15) translateY(-4px);
}
.social-icon-box span {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- OUTRO / CINEMATIC ENDING SECTION --- */
.outro-section {
    padding: 160px 0 0 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, transparent, #020203);
}

.outro-quote {
    font-family: var(--font-sub);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto 32px auto;
    font-style: italic;
    background: linear-gradient(135deg, #ffffff, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.outro-author h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 4px;
    margin-bottom: 6px;
}
.outro-author p {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.logo-ending-canvas-container {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
#outro-logo-canvas {
    width: 100%;
    height: 100%;
}

.cinematic-msg {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 6px;
    margin-bottom: 80px;
    animation: pulse 2s infinite;
}

.hud-footer {
    border-top: 1px solid rgba(255, 51, 51, 0.08);
    padding: 30px 40px;
    text-align: center;
}
.hud-footer p {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hud-nav-motivation { display: none; }
    .hero-title { font-size: 3.5rem; }
    .hero-container { gap: 24px; }
    .portrait-hud-wrapper { width: 320px; height: 420px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: repeat(3, 1fr); }
    .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
    }
    .hero-bg-image {
        background-image: 
            linear-gradient(to right, rgba(5, 5, 5, 1) 0%, transparent 15%, transparent 85%, rgba(5, 5, 5, 1) 100%),
            linear-gradient(to bottom, rgba(5, 5, 5, 1) 0%, transparent 15%, transparent 75%, rgba(5, 5, 5, 1) 100%),
            url('assets/profile.jpeg');
        background-size: contain;
        background-position: center top;
        height: 550px;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    body { cursor: default; } /* Revert to default cursor on mobile touch */
    #custom-cursor, #custom-cursor-dot { display: none; }
    
    .hud-header { padding: 0 20px; }
    .hud-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        z-index: 998;
    }
    .hud-nav.open {
        transform: translateX(0);
    }
    
    .mobile-hud-toggle { display: flex; }
    .mobile-hud-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-hud-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-hud-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual-content { order: -1; }
    .floating-tech-elements { display: none; }
    
    .about-grid { grid-template-columns: 1fr; }
    .globe-container-wrapper { height: 450px; }
    .globe-info-hud { width: 90%; left: 5%; top: 20px; }
    
    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; }
    .timeline-item.left { padding-right: 0; padding-left: 40px; }
    .timeline-item.right { padding-left: 40px; left: 0; }
    .timeline-item.left .timeline-dot-outer, 
    .timeline-item.right .timeline-dot-outer { left: 8px; }
    
    .projects-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
    .codelx-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .outro-quote { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .typing-container { font-size: 0.9rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
    
    .achievements-grid { grid-template-columns: 1fr; }
    .skills-circle-grid { grid-template-columns: 1fr; }
    .social-3d-grid { grid-template-columns: 1fr; }
    
    .portrait-hud-wrapper { width: 280px; height: 360px; }
}
