/* ============================================================
   PROMPTLY V2 - CSS DESIGN SYSTEM
   ============================================================ */

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Preloader (Python Style) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-family: 'Space Grotesk', monospace; /* Using a monospaced-feeling font */
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#lang-selector {
    display: none;
    gap: 20px;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

#lang-selector.active {
    display: flex;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s var(--transition);
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-size: 1.2rem;
}

#preloader-content {
    max-width: 600px;
    width: 100%;
    color: #dcdcdc;
    font-size: 1.1rem;
    line-height: 1.6;
}

#preloader-content.hidden {
    display: none;
}

#code-container {
    display: inline;
}

.code-keyword { color: #ff79c6; }
.code-func { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-comment { color: #6272a4; }
.code-obj { color: #8be9fd; }

#cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 3px 0; /* Reduced to 3px as requested */
    transition: all 0.6s var(--transition);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav__logo img {
    height: 110px; /* Normal size */
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.6s var(--transition);
}

.nav.scrolled .nav__logo img {
    height: 80px; /* Reduced but readable */
}

.nav__links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav__links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav__links a:hover {
    opacity: 1;
}

.nav__cta {
    padding: 10px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* --- Language Switcher in Nav --- */
.nav__lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition);
}

.nav__lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.nav__lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.4;
    letter-spacing: 0.05em;
    padding: 2px 4px;
    transition: all 0.3s var(--transition);
    position: relative;
    touch-action: manipulation;
}

.nav__lang-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition);
}

.nav__lang-btn.active {
    opacity: 1;
    color: var(--accent-color);
}

.nav__lang-btn.active::after {
    transform: scaleX(1);
}

.nav__lang-btn:hover {
    opacity: 0.9;
}

.nav__lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    pointer-events: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Fallback for older browsers */
    height: 100svh; /* Better for mobile Safari/Chrome */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.hero__subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.6;
    animation: fadeInUp 1s ease forwards;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    animation: fadeInUp 1.2s 0.2s ease forwards;
    opacity: 0;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#dynamic-word-container {
    position: relative;
    display: inline-block;
}

#word-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

#dynamic-word {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hero__desc {
    font-size: 0.95rem;
    opacity: 0;
    max-width: 450px;
    margin: 20px auto 0;
    font-weight: 300;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s 0.6s ease forwards;
}

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

/* --- Manifesto Section --- */
.manifesto {
    padding: 150px 0 100px; /* Reduced bottom padding */
    text-align: center;
    background-color: var(--bg-color);
}

.manifesto__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--transition);
}

.manifesto__text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto__word-reveal {
    display: inline-flex;
    gap: 2px;
}

.scroll-indicator {
    margin-top: 100px; /* Reduced from 250px */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
}

.scroll-indicator.visible {
    opacity: 1;
}

.arrow-down {
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
    40% {transform: translateY(-10px) rotate(45deg);}
    60% {transform: translateY(-5px) rotate(45deg);}
}

.m-letter {
    display: inline-block;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
}

.m-letter.active {
    /* Color handled by JS now */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- Services Bento Grid --- */
.services {
    padding: 60px 0 120px; /* Reduced top padding */
    background-color: var(--bg-color);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
}

.services-header {
    margin-bottom: 80px;
    text-align: center;
}

.dynamic-service-title {
    position: relative;
    display: block; /* Block for centering */
    font-size: 5rem !important;
    cursor: pointer;
    margin: 0 auto;
    min-height: 1.2em; /* Prevent jump */
    text-align: center;
}

.facelock-reveal {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3.5rem); /* Balanced size */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.3;
    width: 90%;
    max-width: 1000px !important;
    margin: 0 auto;
    display: block;
    text-align: center;
    letter-spacing: -0.02em;
}

.f-letter {
    display: inline;
    transition: color 0.3s ease;
}

.f-letter.active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#services-word-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.services__bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Clean 2-column layout */
    grid-auto-rows: 380px; /* Uniform height for cinematic widescreen cards */
    gap: 30px; /* Widen spacing for premium feel */
}

.bento__item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: inherit;
}

.bento__spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--x) var(--y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (hover: hover) {
    .bento__item:hover .bento__spotlight {
        opacity: 1;
    }
}

.bento__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bento__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.bento__bg img, .bento__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(0.5);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease, filter 0.6s ease;
}

@media (hover: hover) {
    .bento__item:hover .bento__bg img, 
    .bento__item:hover .bento__bg video {
        transform: scale(1.1) translateZ(20px);
        opacity: 0.6;
        filter: grayscale(0);
    }
    .bento__item:hover .bento__bg video.hover-video {
        opacity: 0.6;
    }
    .bento__item:hover .bento__bg img.hover-img {
        opacity: 0;
    }
}

.bento__bg video.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.bento__content {
    position: relative;
    z-index: 2;
    transform: translateZ(40px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) {
    .bento__item:hover .bento__content {
        transform: translateZ(60px) translateY(-5px);
    }
}

.bento__item h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.bento__item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 90%;
    transition: color 0.4s ease;
}

@media (hover: hover) {
    .bento__item:hover p {
        color: rgba(255, 255, 255, 0.9);
    }

    .bento__item:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.services__footer {
    margin-top: 100px;
    text-align: center;
    width: 100%;
}



/* --- CTA Section --- */
.cta {
    position: relative;
    padding: 200px 0;
    text-align: center;
    overflow: hidden;
}

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

.cta__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
    z-index: 1;
}

.cta__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s var(--transition);
}

.cta__btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
    background: #ffffff;
}

.cta__btn svg {
    transition: transform 0.4s var(--transition);
}

.cta__btn:hover svg {
    transform: translateX(5px);
}

.cta__footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.cta__socials a {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--transition);
}

.cta__socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.cta__credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 0.2em;
    font-family: var(--font-display);
}

/* --- Bento CTA Pill --- */
.bento__cta-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s var(--transition);
    align-self: flex-start;
}

@media (hover: hover) {
    .bento__item:hover .bento__cta-pill {
        background: var(--accent-color);
        color: #000000;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
        border-color: var(--accent-color);
        transform: translateY(-2px);
    }
}

/* --- Premium Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--transition);
}

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

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: opacity 0.5s var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal__container {
    position: relative;
    width: 92%;
    max-width: 1100px;
    max-height: 85vh;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 50px;
    z-index: 2001;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.5s var(--transition), opacity 0.5s var(--transition);
}

.modal.active .modal__container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Custom Scrollbar for Modal Container */
.modal__container::-webkit-scrollbar {
    width: 8px;
}
.modal__container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.modal__container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}
.modal__container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal__close:hover {
    background: var(--accent-color);
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.modal__close svg {
    width: 20px;
    height: 20px;
}

.modal__header {
    margin-bottom: 40px;
    text-align: center;
}

.modal__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.modal__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.modal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.modal__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.modal__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal__card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal__card:hover::before {
    opacity: 1;
}

.modal__card--highlight {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.01);
}

.modal__card--highlight::after {
    content: 'RECOMENDADO';
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.08em;
}

.modal__card-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
}

.modal__card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.modal__card-body {
    flex-grow: 1;
    margin-bottom: 30px;
}

.modal__card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__card-features li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

.modal__card-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    line-height: 1;
    top: -1px;
}

.modal__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.4s var(--transition);
}

.modal__card-btn:hover {
    background: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.modal__card-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modal Responsive override */
@media screen and (max-width: 900px) {
    .modal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .modal {
        align-items: flex-end; /* Slide drawer up from the bottom */
    }
    
    .modal__container {
        width: 100%;
        max-height: 90vh;
        border-radius: 28px 28px 0 0;
        padding: 35px 20px 20px;
        transform: translateY(100%) scale(1);
    }
    
    .modal.active .modal__container {
        transform: translateY(0);
    }
    
    .modal__close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .modal__title {
        font-size: 1.6rem;
    }
    
    .modal__desc {
        font-size: 0.85rem;
    }
    
    .modal__card {
        padding: 25px 20px;
    }
}

/* --- Glitch Effect --- */
.glitch {
    animation: glitchAnim 0.4s ease;
}

@keyframes glitchAnim {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 var(--accent-color), 2px 0 #ff00ff;
        clip-path: inset(44% 0 56% 0);
    }
    20% {
        transform: translate(-3px, 2px);
        clip-path: inset(12% 0 88% 0);
    }
    40% {
        transform: translate(3px, -2px);
        text-shadow: 2px 0 var(--accent-color), -2px 0 #ff00ff;
        clip-path: inset(76% 0 24% 0);
    }
    60% {
        transform: translate(-3px, 1px);
        clip-path: inset(34% 0 66% 0);
    }
    80% {
        transform: translate(2px, -1px);
        text-shadow: -1px 0 var(--accent-color), 1px 0 #ff00ff;
        clip-path: inset(92% 0 8% 0);
    }
    100% {
        transform: translate(0);
        text-shadow: none;
        clip-path: inset(0 0 0 0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================ */

/* --- Tablets & Smaller Desktops (1024px) --- */
@media screen and (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 30px;
    }
    
    .nav__container {
        padding: 0 30px;
    }

    .services__bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
        gap: 20px;
    }


    .dynamic-service-title {
        font-size: 4rem !important;
    }
}

/* --- Phones & Small Tablets (768px) --- */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav__container {
        padding: 0 20px;
    }

    .nav__links {
        gap: 15px;
    }

    .nav__links a:not(.nav__cta) {
        display: none; /* Simplify nav on mobile */
    }

    .nav__lang-toggle {
        padding: 4px 10px;
        gap: 4px;
    }

    .nav__lang-btn {
        font-size: 0.65rem;
    }

    .hero__title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .manifesto {
        padding: 100px 0;
    }

    .manifesto__text {
        font-size: 2.2rem;
    }

    .services__bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento__item {
        grid-column: span 1;
        min-height: 380px;
    }

    .bento__content {
        transform: none;
    }

    .bento__cta-pill {
        pointer-events: none;
    }


    .dynamic-service-title {
        font-size: 3rem !important;
    }

    .facelock-reveal {
        font-size: 1.8rem;
    }

    .cta__content {
        padding: 40px 20px;
    }

    .cta__title {
        font-size: 2.2rem;
    }
}

/* --- Small Phones (480px) --- */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav__container {
        padding: 0 15px;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero__desc {
        font-size: 0.85rem;
    }

    .nav__logo img {
        height: 30px;
    }

    .nav__cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .manifesto__text {
        font-size: 1.5rem;
    }

    .scroll-indicator {
        margin-top: 60px;
    }

    .dynamic-service-title {
        font-size: 2rem !important;
    }

    .facelock-reveal {
        font-size: 1.2rem;
    }
    
    .bento__item {
        padding: 20px;
    }

    .cta__btn {
        padding: 15px 25px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   SERVICE PAGES SPECIFIC STYLES
   ========================================================================== */

.service-page {
    background-color: var(--bg-color);
}

.service-page .nav {
    background: rgba(10, 10, 10, 0.8);
}

/* Service Hero */
.sp-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Push content to bottom naturally */
    padding-top: 100px;
    padding-bottom: 25px; /* Premium spacing at the bottom of hero */
    overflow: hidden;
}

.sp-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sp-hero__img, .sp-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.sp-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 1;
}

.sp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.sp-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0; /* Zero margin at the bottom */
    line-height: 0.85; /* Compact line height */
    letter-spacing: -0.02em;
    word-spacing: -0.15em;
}

.sp-hero__desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Service Portfolio */
.sp-portfolio {
    padding: 30px 20px 80px; /* Reduced top padding to tighten spacing with hero */
    text-align: center;
}

.sp-section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px; /* Small clean gap directly under the title */
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.sp-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sp-portfolio__item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.05);
}

.sp-portfolio__item--portrait {
    aspect-ratio: 9/16;
}

.sp-portfolio__item img, .sp-portfolio__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Pricing */
.sp-pricing {
    padding: 40px 20px 100px;
}

.sp-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sp-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
}

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

.sp-card__spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--x) var(--y),
        rgba(0, 212, 255, 0.06),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (hover: hover) {
    .sp-card:hover .sp-card__spotlight {
        opacity: 1;
    }
}

.sp-card--highlight {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.sp-card--highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #666666);
}

.sp-card__header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.sp-card__header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sp-card__tools {
    font-size: 0.85rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-card__features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.sp-card__features li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.sp-card__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    opacity: 0.5;
}

.sp-card__features strong {
    color: #fff;
    font-weight: 600;
}

.sp-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s var(--transition);
    z-index: 2;
    touch-action: manipulation;
}

.sp-card__btn:hover,
.sp-card:hover .sp-card__btn {
    background: var(--accent-gradient);
    color: #000000;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .sp-hero {
        min-height: 42vh; /* Make hero compact and perfect on mobile */
        padding-top: 80px;
        padding-bottom: 15px;
    }
    
    .sp-portfolio {
        padding-top: 15px;
        padding-bottom: 40px;
    }
    
    .sp-section-desc {
        margin-top: 8px;
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 5px;
        margin-bottom: 25px;
    }
    
    .sp-card {
        padding: 30px 20px;
    }
    
    .sp-pricing__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MODEL CATALOG STYLES
   ========================================================================== */

.model-catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.model-catalog__card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.model-catalog__card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
}

.model-catalog__image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.model-catalog__card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-catalog__card video.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    z-index: 1;
}

.model-catalog__card:hover img {
    transform: scale(1.08);
}

.model-catalog__card:hover img.hover-img {
    opacity: 0;
}

.model-catalog__card:hover video.hover-video {
    opacity: 1;
    transform: scale(1.08);
}

.model-catalog__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.model-catalog__card:hover .model-catalog__overlay {
    transform: translateY(0);
}

.model-catalog__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.model-catalog__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.model-catalog__card:hover .model-catalog__tags {
    opacity: 1;
    transform: translateY(0);
}

.model-catalog__tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-catalog__tag--accent {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .model-catalog__grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force a premium 2-column grid on mobile */
        gap: 15px;
        margin-top: 30px;
    }
    
    .model-catalog__overlay {
        transform: translateY(0) !important; /* Always show text on touch/mobile screens */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%) !important;
        padding: 20px 12px 12px !important;
    }
    
    .model-catalog__tags {
        opacity: 1 !important; /* Always show tags on touch/mobile screens */
        transform: translateY(0) !important;
        gap: 4px !important;
        margin-top: 6px !important;
    }
    
    .model-catalog__name {
        font-size: 1.05rem !important;
        margin-bottom: 2px !important;
    }
    
    .model-catalog__tag {
        font-size: 0.55rem !important;
        padding: 1px 6px !important;
    }
}

@media screen and (max-width: 480px) {
    .model-catalog__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px; /* More compact spacing for very small mobile screens */
    }
    
    .model-catalog__overlay {
        padding: 15px 8px 8px !important;
    }
    
    .model-catalog__name {
        font-size: 0.95rem !important;
    }
    
    .model-catalog__tag {
        font-size: 0.5rem !important;
        padding: 1px 4px !important;
    }
}

/* --- Webkit Autoplay/Video Controls Hide Hack --- */
video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-play-button,
video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
