:root {
    --bg-color: #020617; /* Updated to match Aurora */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #E0E0E0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --theme-color: #ffffff;
    /* Default */
    --theme-glow: rgba(255, 255, 255, 0.3);
    --theme-gradient-start: #ffffff;
    --theme-gradient-end: #888888;
}

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

/* --- Premium Visual Enhancements --- */
.title-mask {
    overflow: hidden;
    padding-bottom: 20px;
}

.header,
.scroll-indicator {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.header.show,
.scroll-indicator.show {
    opacity: 1;
}

.ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.ambient-orbs.show {
    opacity: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05); /* Very subtle white/gray */
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03); /* Even more subtle */
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #d4d4d8, #a1a1aa, #ffffff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: auroraFlow 8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes auroraFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 0;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    width: fit-content;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 2rem;
    letter-spacing: 3px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }

    /* Since there are 3 spans, shift by 1 span's width */
}

/* --- Interactive Status Widget --- */
.status-widget {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.status-widget:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.status-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.status-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}

.status-value {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

/* --- Background Watermarks --- */
.bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syncopate', sans-serif;
    font-size: 15vw;
    /* Very large */
    font-weight: 700;
    color: #fff;
    opacity: 0.02;
    /* Extremely subtle */
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 20px;
}

/* --- Terminal Widget (About Section) --- */
.terminal-widget {
    margin-top: 2rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Fira Code', monospace, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
}

.terminal-header {
    background: rgba(25, 25, 25, 1);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    color: #666;
    font-size: 0.75rem;
}

.terminal-body {
    padding: 1.5rem;
    color: #a9b7c6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-body p {
    margin: 0;
    line-height: 1.5;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #a9b7c6;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- GitHub CTA (Projects Section) --- */
.github-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.github-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border-radius: 24px;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6), rgba(10, 10, 10, 0.8));
    border: 1px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.github-cta-card:hover {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.9));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px);
}

.github-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.github-cta-content svg {
    color: #fff;
    margin-bottom: 1rem;
}

.github-cta-content h4 {
    font-family: 'Syncopate', sans-serif;
    color: #fff;
    font-size: 1.2rem;
}

.github-cta-content p {
    color: #888;
    font-size: 0.9rem;
    max-width: 80%;
}

.cta-link {
    margin-top: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.github-cta-card:hover .cta-link::after {
    width: 100%;
}

.github-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.github-cta-card:hover .github-cta-glow {
    opacity: 1;
}

/* --- Functional Widgets (Premium) --- */

.functional-widget-container {
    width: 100%;
    padding: 6rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* 1. Interactive Terminal */
.mac-terminal {
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-btn.close {
    background: #ff5f56;
}

.mac-btn.minimize {
    background: #ffbd2e;
}

.mac-btn.expand {
    background: #27c93f;
}

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-family: monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6e6e6;
    min-height: 150px;
}

.prompt {
    color: var(--primary-color, #00ffff);
    font-weight: bold;
    margin-right: 8px;
}

.typing-text {
    color: #fff;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
}

.hidden {
    display: none;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 2. 3D Lighthouse Dashboard */
.lighthouse-dashboard {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    cursor: default;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dashboard-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 20px;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.metrics-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    transform: translateZ(30px);
}

.metric-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80px;
    max-height: 80px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 2s ease-out forwards;
}

.circular-chart.green .circle {
    stroke: #0cce6b;
    /* Lighthouse Green */
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 100;
    }

    100% {
        stroke-dasharray: 100, 100;
    }
}

.metric-score {
    position: absolute;
    top: 30px;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0cce6b;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Theme Controller */
.theme-controller {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(20, 20, 20, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.theme-label {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.theme-switches {
    display: flex;
    gap: 1rem;
}

.theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--btn-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-btn:hover {
    transform: scale(1.2);
}

.theme-btn.active {
    border-color: #fff;
    box-shadow: 0 0 15px var(--btn-color);
}

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

html {
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* Carbon Fiber Diagonal Pattern */
    background-image: repeating-linear-gradient(45deg,
            #050505,
            #050505 4px,
            #111111 4px,
            #111111 8px);
}

/* --- Three.js Canvas Container --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    /* Below UI */
    pointer-events: none;
    /* Let mouse events pass through to UI if needed, but we actually want mouse events on window, so this is fine */
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

#canvas-container.show {
    opacity: 1;
}

/* --- UI Overlay --- */
.ui-overlay {
    position: relative;
    z-index: 10;
    /* Above Canvas */
    width: 100%;
    pointer-events: none;
    /* Let mouse pass through to parallax/canvas */
}

/* Make interactive elements clickable */
.nav-btn,
.footer {
    pointer-events: auto;
}

/* Make interactive elements clickable */
.nav-btn,
.footer {
    pointer-events: auto;
}

/* Entry Animations */
#canvas-container {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.header,
.footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

body.loaded #canvas-container {
    opacity: 1;
}

body.loaded .header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
    /* Comes in after text transforms */
}

body.loaded .footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

/* --- Header Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 6rem);
    position: fixed;
    top: 2rem;
    left: 3rem;
    z-index: 100;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px 16px 6px 6px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; /* Added for tooltip positioning */
}

/* Tooltip Card Styling */
.profile-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 260px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.header-profile:hover .profile-tooltip,
.header-profile.active .profile-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Invisible bridge to prevent tooltip from closing when moving mouse */
.profile-tooltip::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.tooltip-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.tooltip-header span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.tooltip-label {
    color: #888;
}

.tooltip-value {
    color: #fff;
    font-weight: 500;
}

.tooltip-motto {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.tooltip-footer {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tooltip-hint {
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
}

.header-profile:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    transition: all 0.4s ease;
}

.header-profile:hover .profile-photo {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.2px;
}

.profile-role-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.profile-status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulseProfile 2s infinite;
}

@keyframes pulseProfile {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.profile-role {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.nav-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.header-lang-toggle {
    display: flex;
    gap: 0.8rem;
    margin-left: 1rem;
    align-items: center;
}

.lang-pill {
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.lang-pill.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-pill:hover {
    opacity: 0.8;
}

/* --- Main Hero Content --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    /* Evitar que el glow haga scroll horizontal */
    /* For scroll indicator */
}

/* Elegant Glow Orb */
#cursor-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    /* Detrás de las letras */
    filter: blur(40px);
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded #cursor-glow {
    opacity: 1;
}

.hero-text-container {
    transform-style: preserve-3d;
    position: relative;
    /* Para los anillos absolutos */
    /* Allows child to have 3D space */
}

/* --- Orbital Rings --- */

.hero-title {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -4px;
    /* Constant tracking for clean look */

    /* LOADING STATE: Ultra-Premium Metallic Shimmer */
    color: transparent;
    text-shadow: none;
    -webkit-text-stroke: 0px transparent;

    /* Dark base with a bright white/silver stripe sweeping across */
    background: linear-gradient(110deg,
            #1a1a1a 0%,
            #1a1a1a 40%,
            #ffffff 50%,
            #1a1a1a 60%,
            #1a1a1a 100%);
    background-size: 200% 100%;
    background-position: 200% 0;
    -webkit-background-clip: text;
    background-clip: text;

    /* Smooth transition to final state */
    transition: text-shadow 1s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
    pointer-events: auto;
    cursor: default;

    /* Initial state for Photographic Focus */
    transform: scale(2.5);
    filter: blur(40px);
    opacity: 0;
}

.hero-title.reveal {
    transform: scale(1);
    filter: blur(0px);
    opacity: 1;
}

.hero-title.start-anim {
    /* Shimmer runs for 2s */
    animation: premiumShimmer 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes premiumShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 12px;
    /* Super premium wide tracking */
    text-transform: uppercase;
    text-align: center;
    margin-top: 2rem;
    margin-left: 12px;
    /* Compensate for letter-spacing to truly center */
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 1s;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(calc(-50% - 6px));
    /* Centered minus half the tracking offset */
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

body.loaded .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* --- Final Loaded State for Text --- */
body.loaded .hero-title {
    animation: none;
    opacity: 1;
    transform: scale(1);

    /* Silver Metallic Gradient Fill */
    background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0px transparent;

    /* Thick, solid grey 3D Extrusion */
    text-shadow:
        0px 1px 0px #888,
        0px 2px 0px #808080,
        0px 3px 0px #777,
        0px 4px 0px #707070,
        0px 5px 0px #666,
        0px 6px 0px #606060,
        0px 7px 0px #555,
        0px 8px 0px #505050,
        0px 9px 0px #444,
        0px 10px 0px #404040,
        0px 15px 30px rgba(0, 0, 0, 0.9);
}

/* Reaction on explicit hover over the text (Only when loaded) */
body.loaded .hero-title:hover {
    /* Slightly brighter gradient on hover */
    background: linear-gradient(to bottom, #ffffff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Subtle light glow combined with the 3D base */
    text-shadow:
        0px 0px 25px rgba(255, 255, 255, 0.7),
        0px 1px 0px #888,
        0px 2px 0px #808080,
        0px 3px 0px #777,
        0px 4px 0px #707070,
        0px 5px 0px #666,
        0px 6px 0px #606060,
        0px 7px 0px #555,
        0px 8px 0px #505050,
        0px 9px 0px #444,
        0px 10px 0px #404040,
        0px 15px 30px rgba(0, 0, 0, 0.9);

    transform: translateY(-2px);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 1s ease 1.5s;
    /* Fade in after hero text */
}

body.loaded .scroll-indicator {
    opacity: 1;
}

body.loaded .scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    /* Fast fade out when scrolling */
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
    transition: border-color 0.3s ease;
}

.wheel {
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: color 0.3s ease;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 16px;
        opacity: 0;
    }

    100% {
        top: 6px;
        opacity: 0;
    }
}

.scroll-indicator:hover .mouse {
    border-color: #fff;
}

.scroll-indicator:hover .scroll-text {
    color: #fff;
}

/* --- Footer Info --- */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4rem 0 2rem 0;
}

/* --- About Me Section --- */
.about-section {
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    /* Softer, premium rounded corners */
    overflow: hidden;
    /* Soft, deep ambient shadow */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.03);
    aspect-ratio: 3/4;
    /* Classic portrait ratio */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle glass edge */

    /* Make image slightly smaller as requested */
    max-width: 400px;
    margin: 0 auto;
    /* Center in its column */

    /* Continuous floating animation */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Moody, premium color grading */
    filter: grayscale(40%) contrast(1.15) brightness(0.9);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.08);
    /* Slower, smoother zoom */
    /* Bring back full color and brightness on hover */
    filter: grayscale(0%) contrast(1.1) brightness(1);
}

/* Sweeping light glare effect on hover */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

.about-image-wrapper:hover::after {
    left: 200%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Very subtle gradient to ensure text readability if overlaid */
    background: linear-gradient(to top, rgba(5, 5, 5, 0.5), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    /* Premium Frosted Glass Panel */
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3rem;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    /* Ensure content is positioned above the blur properly */
    position: relative;
    z-index: 5;
}

.section-subtitle {
    font-family: 'Syncopate', sans-serif;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-text {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Syncopate', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Services Section --- */
.services-section {
    padding: 4.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.services-container {
    max-width: 1200px;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-desc {
    color: #aaa;
    line-height: 1.6;
    font-size: 1rem;
}

.service-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover .service-glow {
    opacity: 1;
}

/* --- Projects Section --- */
.projects-section {
    padding: 4.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.projects-container {
    max-width: 1200px;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syncopate', sans-serif;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.2;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
}

.project-desc {
    color: #888;
    line-height: 1.5;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

/* --- Contact Section --- */
.contact-section {
    padding: 4.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    max-width: 1200px;
    width: 100%;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 41px;
    /* Pill shape */
    text-decoration: none;
    position: relative;
    overflow: hidden;
    max-width: 400px;
    /* Unlocked state */
    height: 82px;
    transition: max-width 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 0.4s, background 0.4s, border-color 0.4s, box-shadow 0.4s;
    white-space: nowrap;
    /* Keep text one line while expanding */
}

.contact-card.locked {
    max-width: 82px;
    /* Locked state is a small circle */
    cursor: pointer;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
}

.contact-card:hover .card-icon {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, #444, #222);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1) 0.3s;
    /* Delay text appearance slightly when unlocking */
}

.contact-card.locked .card-details {
    opacity: 0;
    transform: translateX(-20px);
    transition: none;
    /* Hide instantly on load */
}

.card-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.contact-card:hover .card-label {
    color: #ccc;
}

.card-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
    /* Allows the email to wrap nicely */
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.contact-card:hover .card-shine {
    left: 200%;
}

/* Form Styles */
.contact-form-container {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    z-index: 2;
    position: relative;
}

.input-group textarea {
    resize: none;
}

/* Floating Label Magic */
.input-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: #666;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Illuminated Line */
.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #fff, #888);
    transition: width 0.4s ease;
}

.input-group input:focus~.input-line::after,
.input-group textarea:focus~.input-line::after {
    width: 100%;
}

/* Submit Button */
.submit-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* --- Tech Stack Section --- */
.tech-section {
    padding: 4.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.tech-container {
    max-width: 1200px;
    width: 100%;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.tech-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.tech-desc {
    color: #aaa;
    line-height: 1.5;
    font-size: 0.95rem;
}

.tech-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tech-card:hover .tech-glow {
    opacity: 1;
}

/* --- Work Process Section --- */
.process-section {
    padding: 4.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.process-container {
    max-width: 1200px;
    width: 100%;
}

.process-timeline {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    padding-left: 100px;
}

.step-number {
    position: absolute;
    left: 10px;
    top: -10px;
    width: 60px;
    height: 60px;
    background: #050505;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.step-content {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    flex-grow: 1;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.process-step:hover .step-content {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.step-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-desc {
    color: #aaa;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* --- Expanded Footer Styles --- */
.footer {
    padding: 6rem 3rem 2rem 3rem;
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-icon {
    font-size: 32px;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-tagline {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links-group {
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

/* --- Functional HUD Borders --- */
.functional-hud {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInHUD 2s ease forwards 1.5s;
}

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

.hud-left {
    left: 0;
}

.hud-right {
    right: 0;
}

.hud-line {
    position: absolute;
    top: 40px;
    bottom: 40px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hud-left .hud-line {
    right: 20px;
}

.hud-right .hud-line {
    left: 20px;
}

/* --- Header Lang Toggle --- */
.header-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
    pointer-events: auto;
    /* IMPORTANTE: Para que sea clickeable por encima del overlay */
}

.lang-pill {
    padding: 4px 8px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-pill:hover {
    color: #fff;
}

.lang-pill.active {
    background: #fff;
    color: #000;
}

/* --- Hero Separator --- */
.hero-separator {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10%;
    margin-top: -20px;
    z-index: 10;
    position: relative;
}

.separator-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   LIVING STRIP CANVAS ELEMENTS
   ============================================================ */
.living-strip {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: auto;
    cursor: crosshair;
    z-index: 10;
}

.living-strip canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   SECTION BREATH — reactive beat between sections
   ============================================================ */
.section-breath {
    width: 100%;
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

/* Disable old pseudo-element animations — JS handles rendering */
.section-breath::before,
.section-breath::after {
    display: none;
}

.sb-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.2;
    z-index: 2;
    will-change: transform, opacity, box-shadow;
}

.sb-line {
    position: absolute;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    width: 0;
    will-change: width, opacity;
}

.sb-line-left {
    right: 50%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
}

.sb-line-right {
    left: 50%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
}


.premium-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInHUD 2s ease forwards 1.5s;
}

.premium-sidebar-left {
    left: 0;
}

/* Animated Glowing Line */
.sidebar-glow-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05), transparent);
    overflow: hidden;
}

.glow-runner {
    position: absolute;
    top: -100px;
    left: -1px;
    width: 3px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    animation: glowRun 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 10px #fff);
}

@keyframes glowRun {
    0% {
        top: -100px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- HUD Social Overlay --- */
.social-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-left: 20px;
}

.social-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
}

.social-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.close-overlay:hover {
    color: #fff;
    transform: rotate(90deg) scale(1.2);
}

.overlay-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-overlay.active .overlay-content {
    transform: translateY(0);
}

.overlay-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.social-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.tile-icon {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.tile-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}

.social-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-tile:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-15px) scale(1.05);
}

.social-tile:hover::after {
    opacity: 1;
}

.social-tile:hover .tile-icon { color: #fff; transform: scale(1.1); }
.social-tile:hover .tile-label { color: #fff; transform: translateY(-5px); }

/* Brand Specific Colors on Hover */
.social-tile.wa:hover { border-color: rgba(37, 211, 102, 0.4); box-shadow: 0 20px 40px rgba(37, 211, 102, 0.1); }
.social-tile.email:hover { border-color: rgba(234, 67, 53, 0.4); box-shadow: 0 20px 40px rgba(234, 67, 53, 0.1); }
.social-tile.linkedin:hover { border-color: rgba(0, 119, 181, 0.4); box-shadow: 0 20px 40px rgba(0, 119, 181, 0.1); }
.social-tile.ig:hover { border-color: rgba(225, 48, 108, 0.4); box-shadow: 0 20px 40px rgba(225, 48, 108, 0.1); }

/* Staggered entrance */
.social-overlay.active .social-tile:nth-child(1) { transition-delay: 0.1s; }
.social-overlay.active .social-tile:nth-child(2) { transition-delay: 0.2s; }
.social-overlay.active .social-tile:nth-child(3) { transition-delay: 0.3s; }
.social-overlay.active .social-tile:nth-child(4) { transition-delay: 0.4s; }
.social-overlay.active .social-tile:nth-child(5) { transition-delay: 0.5s; }

@media (max-width: 768px) {
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .social-tile { padding: 40px 15px; }
    .overlay-title { margin-bottom: 40px; }
}

/* On mobile: social overlay is always visible as a static section (no popup) */
@media (max-width: 900px) {
    .social-overlay {
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 2rem 1.5rem !important;
        z-index: auto !important;
        transition: none !important;
        display: block;
    }

    .close-overlay {
        display: none !important;
    }

    .overlay-content {
        max-width: 100%;
    }

    .overlay-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Mobile tile: pill card with icon on left, info on right — like the screenshot */
    .social-tile {
        padding: 1rem 1.5rem !important;
        border-radius: 50px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 1.2rem !important;
        align-items: center !important;
        transform: none !important;
    }

    /* Icon: circular badge */
    .tile-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .tile-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Info column: label + value */
    .tile-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }

    .tile-label {
        font-size: 0.65rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        transform: none !important;
    }

    .tile-value {
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        word-break: break-all;
    }

    /* Hide the mobile FAB since social is now always visible */
    .mobile-contact-fab {
        display: none !important;
    }
}

/* tile-info and tile-value: always defined (hidden on desktop by default layout) */
.tile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tile-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}







/* Dot Navigation Right */
.dot-navigation {
    position: absolute;
    left: -6px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    pointer-events: auto;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-dot:hover,
.nav-dot.active {
    background: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-glow);
    transform: scale(1.5);
}

.dot-tooltip {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, right 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dot:hover .dot-tooltip {
    opacity: 1;
    right: 20px;
}

/* Hide on smaller screens */
@media (max-width: 1300px) {
    .functional-hud {
        display: none;
    }
}

/* --- Projects Section --- */
.projects-section {
    padding: 8rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.projects-container {
    max-width: 1200px;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: default;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Syncopate', sans-serif;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 2rem;
}

.project-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.project-card:hover .project-placeholder svg {
    opacity: 1;
    transform: scale(1.1);
    color: #fff;
}

.project-placeholder span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.65rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.project-info {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -1px;
}

.project-desc {
    color: #a1a1a1;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.65rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Syncopate', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .header {
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        padding: 1.2rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        background: transparent;
        border: none;
    }

    .nav {
        display: none !important;
    }

    .header-profile {
        padding: 6px 14px 6px 6px;
        gap: 0.8rem;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        cursor: pointer;
        z-index: 2000;
        max-width: 220px;
    }

    /* Mobile Interaction: Tooltip Reveal - Centered on Screen */
    .header-profile.show-tooltip .profile-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .profile-tooltip {
        position: fixed !important;
        left: 5% !important;
        right: 5% !important;
        top: 80px !important; /* Below the header */
        width: 90% !important;
        max-width: 320px;
        margin: 0 auto;
        transform: translateY(20px) !important;
        z-index: 3000;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        background: rgba(15, 15, 15, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    }

    .profile-name {
        font-size: 0.85rem;
    }

    .profile-role {
        font-size: 0.6rem;
    }

    .profile-photo {
        width: 32px;
        height: 32px;
    }

    /* Safe Zones for Fixed Dock */
    section {
        padding-bottom: 10rem !important; /* Huge padding so the dock never covers content */
    }

    .hero {
        padding-bottom: 0 !important; /* Hero doesn't need bottom padding */
    }

    /* Process Section Proportions Audit */
    .process-section {
        padding: 6rem 1.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-step {
        padding: 1.5rem;
        flex-direction: row; /* Keep number and text side by side but better */
        align-items: flex-start;
        gap: 1.5rem;
    }

    .step-number {
        font-size: 1rem;
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .step-content p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Contact Dock Refinement */
    .premium-sidebar-left {
        position: fixed;
        bottom: 2rem;
        left: 0;
        width: 100%;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        z-index: 1000;
        pointer-events: none;
    }

    /* Subtle background fade behind the dock to prevent text clutter */
    .premium-sidebar-left::before {
        content: '';
        position: absolute;
        bottom: -2rem;
        left: 0;
        width: 100%;
        height: 120px;
        background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, transparent 100%);
        z-index: -1;
    }

    .social-glass-pill {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        background: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50px;
        padding: 0.8rem 1.8rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
        pointer-events: auto;
    }

    .social-magnet svg {
        width: 22px;
        height: 22px;
    }

    .header-lang-toggle {
        display: flex !important; /* Ensure visible on mobile */
        margin-left: auto;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        padding: 4px;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-pill {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 4.5rem);
        padding: 0 1rem;
    }

    /* Mobile About (Stacked) */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Tablet / Desktop Specifics (Side-by-Side) */
@media (min-width: 901px) {
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 6rem;
        align-items: center;
    }
    
    .about-image-wrapper {
        position: sticky;
        top: 100px;
    }
}

/* --- AURORA ANIMATED BACKGROUND --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #020617; /* Very deep rich blue/black */
    overflow: hidden;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    width: 150vw;
    height: 150vh;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(88, 28, 135, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(15, 118, 110, 0.2) 0%, transparent 50%);
    filter: blur(80px);
    animation: auroraSpin 30s linear infinite;
    z-index: -1;
}

.aurora-bg::after {
    background: radial-gradient(circle at 30% 70%, rgba(2, 132, 199, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(126, 34, 206, 0.25) 0%, transparent 50%);
    animation: auroraSpin 40s linear infinite reverse;
}

@keyframes auroraSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.carbon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Carbon Fiber Diagonal Pattern - Semi-transparent to let Aurora show through */
    background-image: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45) 4px,
            rgba(255, 255, 255, 0.02) 4px,
            rgba(255, 255, 255, 0.02) 8px);
    z-index: 1; /* Above the spinning gradient elements */
    pointer-events: none;
}

/* --- TEXT PRELOADER --- */
.text-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020617;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.text-preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.preloader-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(4rem, 12vw, 12rem); /* Matches hero title */
    line-height: 0.9;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -4px;
    margin: 0;
    padding: 0;
    /* Outline styling */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    position: relative;
}

/* The fill that grows from bottom */
.preloader-title::before {
    content: 'MANUEL\A LORENZO';
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 0px transparent;
    background: linear-gradient(to top, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Clip it to hide at first */
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 2.5s cubic-bezier(0.8, 0, 0.2, 1);
}

.text-preloader.loading .preloader-title::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* --- INTERACTIVE CANVAS (RIpples / Spotlight) --- */
#interactive-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* --- HOLOGRAPHIC GLARE CARDS --- */
.project-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    overflow: hidden;
}

.holographic-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* --- PREMIUM CONTACT BUTTON --- */
.premium-contact-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111, #222) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 1;
}

.premium-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.premium-contact-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15), 0 0 15px rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.premium-contact-btn:hover::before {
    transform: translateX(100%);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

.premium-contact-btn:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0.8; }
    50% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* --- NAV DROPDOWN STYLES --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
    pointer-events: auto;
}

.dropdown-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-right: 1.2rem !important;
}

.dropdown-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

/* Invisible bridge to close gap and prevent closing dropdown when mouse slides down */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.active .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: left;
    overflow: hidden;
}

.item-icon {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.item-label {
    transition: color 0.3s ease;
}

.dropdown-item-glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    pointer-events: none;
}

/* Hover Effects */
.dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(6px);
}

.dropdown-item:hover .item-icon {
    transform: scale(1.15);
}

.dropdown-item:hover .dropdown-item-glow {
    transform: translate(-50%, -50%) scale(2.5);
}

/* Brand Specific Hover Highlights */
.dropdown-item.scroll-to-form:hover .item-icon {
    color: var(--primary-color, #00ffff);
    filter: drop-shadow(0 0 4px var(--primary-color, #00ffff));
}

.dropdown-item.wa-item:hover .item-icon {
    color: #25D366;
    filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.5));
}

.dropdown-item.email-item:hover .item-icon {
    color: #EA4335;
    filter: drop-shadow(0 0 4px rgba(234, 67, 53, 0.5));
}

.dropdown-item.linkedin-item:hover .item-icon {
    color: #0077B1;
    filter: drop-shadow(0 0 4px rgba(0, 119, 181, 0.5));
}

.dropdown-item.instagram-item:hover .item-icon {
    color: #E1306C;
    filter: drop-shadow(0 0 4px rgba(225, 48, 108, 0.5));
}

.mobile-contact-fab {
    display: none;
}

/* --- SCROLL REVEAL BLUR EFFECT --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 1s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 900px) {
    /* Existing queries wrapped properly */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    /* Fix Header and Buttons for Mobile */
    .nav {
        display: flex;
        gap: 0.5rem;
        position: relative;
        left: auto;
        transform: none;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-btn {
        display: none; /* Hide standard nav buttons on small mobile to avoid clutter */
    }

    .nav-dropdown {
        display: none !important; /* Hide dropdown container on mobile to prevent layout shifting */
    }

    .step-number {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        flex-shrink: 0;
    }

    .mobile-contact-fab {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-family: 'Inter', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        cursor: pointer;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .header-lang-toggle {
        margin-left: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 6px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links-group {
        gap: 2rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Header layout: shrink so profile + contact + lang fit in one row */
    .header {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 1rem;
    }

    /* Profile pill: look identical to desktop but slightly more compact */
    .header-profile {
        padding: 5px 12px 5px 5px !important;
        border-radius: 50px !important;
        width: auto !important;
        height: auto !important;
        justify-content: flex-start !important;
        cursor: pointer;
    }

    /* Show profile info (name + role) just like on desktop */
    .header-profile .profile-info {
        display: flex !important;
    }

    /* Slightly smaller name text on mobile */
    .profile-name {
        font-size: 0.75rem;
    }

    /* Slightly smaller role text on mobile */
    .profile-role {
        font-size: 0.55rem;
    }

    /* Profile photo slightly smaller on mobile */
    .profile-photo {
        width: 32px;
        height: 32px;
    }

    /* Tooltip fully enabled on mobile - positioned below the pill */
    .profile-tooltip {
        display: block;
        width: 230px;
        left: 0;
        right: auto;
    }

    /* Smaller active/hover highlight on profile pill on mobile */
    .header-profile.active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* Compact mobile contact FAB - icon only */
    .mobile-contact-fab span[data-i18n] {
        display: none;
    }
    
    .mobile-contact-fab {
        padding: 0.6rem;
    }

    .about-section, .services-section, .tech-section, .process-section, .projects-section, .contact-section {
        padding: 3rem 1.2rem;
    }

    .process-step {
        padding: 1.2rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .process-timeline::before {
        display: none;
    }

    .stat-number {
        font-size: 1.5rem;
    }
    
    .terminal-body {
        font-size: 0.7rem;
    }
}