:root {
    --bg-color: #05050a;
    --accent-cyan: #00f2ff;
    --accent-blue: #0066ff;
    --accent-purple: #9d00ff;
    --accent-pink: #ff00c8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: 25px;
    --glass-blur-mobile: 8px;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
    will-change: transform, width, height, opacity;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-bg 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    top: -10%;
    left: -10%;
}

.sphere-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float-bg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.lang-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--accent-cyan);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-color: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

input:checked~.lang-label {
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    white-space: nowrap;
    background: linear-gradient(to right,
            var(--accent-cyan),
            var(--accent-purple),
            var(--accent-pink),
            var(--accent-cyan));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-flow 6s linear infinite;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.2));
}

.logo-text::after {
    content: 'EMILIANO MOYANO';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(110deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 60%,
            transparent 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shimmer 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes logo-flow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes logo-shimmer {

    0%,
    60% {
        background-position: -200% 0;
        opacity: 0;
    }

    70% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        background-position: 200% 0;
        opacity: 0;
    }
}

.profile-mini img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Preloader States */
body.loaded {
    overflow: auto;
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.preloader-content {
    width: 300px;
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loader-pulse 2s infinite ease-in-out;
}

.loader-status {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 15px var(--accent-cyan);
    transition: width 0.4s cubic-bezier(0.1, 0, 0.3, 1);
}

.loader-msg {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

@keyframes loader-pulse {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }

    50% {
        opacity: 0.6;
        filter: brightness(0.8);
    }
}

/* Page content initial state */
#app {
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

body.loaded #app {
    opacity: 1;
}

/* The Orb */
.orb-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

#orbContainer1 {
    top: 35%;
    left: 35%;
}

#orbContainer2 {
    top: 65%;
    left: 65%;
}

.iridescent-orb {
    pointer-events: auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(0, 242, 255, 0.1) 30%,
            rgba(112, 0, 255, 0.15) 60%,
            rgba(255, 0, 200, 0.15) 100%);
    box-shadow:
        inset -25px -25px 60px rgba(0, 242, 255, 0.15),
        inset 25px 25px 60px rgba(112, 0, 255, 0.15),
        0 0 120px rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: floating-orb 8s infinite ease-in-out;
    transition: border-radius 1.5s cubic-bezier(0.4, 0, 0.2, 1),
        clip-path 1.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s ease-out,
        box-shadow 0.4s ease-out;
    will-change: transform, border-radius, clip-path, box-shadow;
    clip-path: circle(50% at 50% 50%);
}

/* Electric Shimmer Effect */
.iridescent-orb::before {
    content: '';
    position: absolute;
    inset: -3px;
    padding: 3px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
            transparent,
            var(--accent-cyan),
            transparent 15%,
            var(--accent-purple),
            transparent 40%,
            var(--accent-cyan),
            transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    clip-path: inherit;
    animation: electric-rotation 4s linear infinite;
    opacity: 0.7;
    pointer-events: none;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

@keyframes electric-rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Volumetric Rays */
.orb-container::before,
.orb-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.2;
    filter: blur(10px);
    z-index: -1;
    animation: ray-rotation 20s infinite linear;
}

.orb-container::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-direction: reverse;
    opacity: 0.15;
}

@keyframes ray-rotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orb-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.orb-reflection {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(10px);
}

@keyframes floating-orb {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Glitch & Chromatic Aberration */
.video-glitch-wrapper {
    position: relative;
    display: inline-block;
    background: #000;
    /* Backdrop for masking */
    padding: 10px 40px;
    border-radius: 20px;
    overflow: hidden;
}

.glitch-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 2;
    mix-blend-mode: screen;
    /* Key for showing video on white text */
    pointer-events: none;
}

.glitch-text {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 15vw, 10rem);
    font-weight: 900;
    letter-spacing: -4px;
    margin-bottom: 0;
    line-height: 1;
    position: relative;
    color: #fff;
    /* White base for video to show through */
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: 0.1em;
    z-index: 1;
}

.glitch-text span {
    position: relative;
    display: inline-block;
    animation: chromatic-glow 4s infinite alternate ease-in-out,
        text-float 5s ease-in-out infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.glitch-text span::before,
.glitch-text span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
    will-change: transform, clip-path;
}

.glitch-text span::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-pink);
    clip-path: inset(100% 0 0 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
    color: #fff;
    /* Keep white so video shows even in glitch */
}

.glitch-text span::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-cyan);
    clip-path: inset(100% 0 0 0);
    animation: glitch-anim2 1.5s infinite linear alternate-reverse;
    mix-blend-mode: screen;
    color: #fff;
}

/* Staggered delays for fluidity */
.glitch-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.glitch-text span:nth-child(2) {
    animation-delay: 0.4s;
}

.glitch-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.glitch-text span:nth-child(4) {
    animation-delay: 0.5s;
}

.glitch-text span:nth-child(5) {
    animation-delay: 0.3s;
}

.glitch-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.glitch-text span:nth-child(7) {
    animation-delay: 0.15s;
}

.glitch-text span:nth-child(8) {
    animation-delay: 0.45s;
}

.glitch-text span:nth-child(9) {
    animation-delay: 0.25s;
}

.glitch-text span:nth-child(odd)::before {
    animation-duration: 2.1s;
}

.glitch-text span:nth-child(even)::before {
    animation-duration: 2.7s;
}

.glitch-text span:nth-child(9)::before {
    animation-delay: 0.6s;
    animation-duration: 3.4s;
}

/* Extra glitch layers for modern feel */
.glitch-text-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.05) 0px,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(20% 0 50% 0);
        transform: translate3d(2px, 0, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate3d(-3px, 0, 0);
    }

    40% {
        clip-path: inset(10% 0 80% 0);
        transform: translate3d(2px, 0, 0);
    }

    60% {
        clip-path: inset(40% 0 40% 0);
        transform: translate3d(-2px, 0, 0);
    }

    80% {
        clip-path: inset(80% 0 5% 0);
        transform: translate3d(3px, 0, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate3d(-1px, 0, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(15% 0 75% 0);
        transform: translate3d(-2px, 0, 0);
    }

    25% {
        clip-path: inset(55% 0 15% 0);
        transform: translate3d(3px, 0, 0);
    }

    50% {
        clip-path: inset(25% 0 45% 0);
        transform: translate3d(-2px, 0, 0);
    }

    75% {
        clip-path: inset(65% 0 15% 0);
        transform: translate3d(2px, 0, 0);
    }

    100% {
        clip-path: inset(20% 0 60% 0);
        transform: translate3d(-3px, 0, 0);
    }
}

.user-name {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin-top: 20px;
    color: var(--text-secondary);
}

/* Mobile overrides for Cursor Glow */
@media (max-width: 768px) {
    .cursor-glow {
        width: 150px !important;
        height: 150px !important;
        background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
        opacity: 0.15 !important;
        filter: blur(40px) !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        animation: pulse-glow 5s infinite ease-in-out;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
}

/* Panels Container */
.panels-container {
    display: flex;
    gap: 30px;
    z-index: 3;
    padding: 20px;
    max-width: 1400px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    perspective: 1000px;
}

.glass-panel {
    width: 380px;
    height: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1),
        opacity 0.6s cubic-bezier(0.2, 1, 0.2, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    will-change: transform, opacity;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.panel-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    mix-blend-mode: overlay;
    pointer-events: none;
    filter: saturate(1.5) brightness(0.8);
}

.glass-panel:hover .panel-video {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
}

/* Force video visibility on mobile */
@media (max-width: 768px) {
    .panel-video {
        opacity: 0.3 !important;
        transform: translate(-50%, -50%) scale(1);
    }
}

.glass-panel:hover {
    transform: translateY(-20px) rotateX(10deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 242, 255, 0.1),
        inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.panel-inner {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.icon-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 80px;
    height: 80px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.5));
}

.smartphone-mockup {
    width: 60px;
    height: 110px;
    border: 2px solid var(--accent-purple);
    border-radius: 12px;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
}

.mockup-inner {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 8px;
    opacity: 0.8;
}

.hex-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-panel:hover .hex-bg {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1) rotate(15deg);
}

.hex-bg svg {
    width: 100%;
    height: 100%;
    color: var(--accent-cyan);
}

.glass-panel h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-panel:hover .panel-glow {
    opacity: 1;
}

/* Footer */
.glass-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    z-index: 100;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
    :root {
        --glass-blur: 8px;
    }

    .logo-text {
        font-size: 1.1rem !important;
        letter-spacing: 1px !important;
    }

    .glass-nav,
    .glass-panel,
    .glass-footer {
        backdrop-filter: blur(var(--glass-blur-mobile)) !important;
        -webkit-backdrop-filter: blur(var(--glass-blur-mobile)) !important;
    }

    .glitch-text {
        font-size: 3.2rem !important;
        letter-spacing: -2px !important;
        animation: none !important;
        text-shadow: 0 0 15px rgba(0, 242, 255, 0.5) !important;
        text-transform: uppercase;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none !important;
    }

    .iridescent-orb {
        width: 260px !important;
        height: 260px !important;
        backdrop-filter: blur(4px) !important;
        animation: floating-orb 12s infinite ease-in-out !important;
    }

    .orb-container::before,
    .orb-container::after {
        width: 400px !important;
        animation-duration: 40s !important;
    }

    .panels-container {
        gap: 15px !important;
        perspective: none !important;
    }

    .glass-panel {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }

    .hex-bg {
        display: none !important;
    }

    .hero-section {
        padding-top: 100px !important;
    }

    .user-name {
        font-size: 1.2rem !important;
        letter-spacing: 6px !important;
    }

    .tagline {
        font-size: 0.7rem !important;
        letter-spacing: 3px !important;
    }

    .gradient-sphere {
        opacity: 0.2 !important;
        filter: blur(60px) !important;
    }
}

/* Maximize Button */
.maximize-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1),
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    will-change: transform;
}

.maximize-btn svg {
    width: 20px;
    height: 20px;
}

.maximize-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, visibility;
}

.project-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(15px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    overflow: hidden;
    z-index: 2;
    transform: scale(0.95) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.project-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s ease;
    z-index: 20;
    will-change: transform;
}

.modal-close:hover {
    background: var(--accent-pink);
    transform: rotate(90deg);
}

.modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 60px;
}

.project-view {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    height: 100%;
}

.project-image-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.project-image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 10, 0.5), transparent);
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: auto;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-pink);
    text-transform: uppercase;
}

.detail-value {
    font-size: 1rem;
    color: #fff;
}

.modal-nav {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    padding: 15px 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-color) !important;
    border-radius: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
    margin-top: 15px;
    border: none;
    font-size: 0.9rem;
}

.project-link:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.4);
    background: linear-gradient(45deg, #fff, var(--accent-cyan));
    color: var(--bg-color) !important;
}

.detail-item[data-field="url"] {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.detail-item[data-field="url"] .detail-label {
    display: none;
    /* We don't need the label if it's a big button */
}

@media (max-width: 900px) {
    .project-view {
        grid-template-columns: 1fr;
    }

    .modal-container {
        height: 90vh;
    }

    .modal-content {
        padding: 40px 25px;
    }

    .project-image-container {
        height: 250px;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }
}