/* === DESIGN TOKENS === */
:root {
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #f967fb;
    --primary-font: 'Outfit', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--primary-font);
    background-color: #030303;
    color: #f5f5f5;
    cursor: none;
    overflow: hidden;
}

::selection { background: rgba(236, 72, 153, 0.3); }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

[dir="rtl"] { font-family: 'Outfit', sans-serif; }

/* === LAYOUT UTILITIES === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.space-y-20 > * + * { margin-top: 5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-20 { gap: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.select-none { user-select: none; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

/* === SNAP SCROLL === */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slide {
    scroll-snap-align: start;
    height: 100vh;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === FILM GRAIN NOISE === */
.noise {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* === MAGNETIC CURSOR === */
#cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
}

#cursor-follower {
    position: fixed;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor-hover #cursor-follower {
    transform: scale(2);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* === GLASS CARDS === */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.glass-card:hover { border-color: rgba(255, 255, 255, 0.2); }

/* === PROGRESS BAR === */
#progress-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
}
#progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #f967fb, #6958d5);
    transition: width 0.1s ease;
}

/* === NAV DOTS === */
.nav-dot {
    width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    display: block;
}
.nav-dot.active {
    height: 32px;
    background: #f967fb;
    border-radius: 4px;
}

/* === RTL === */
.rtl-flip { transition: all 0.6s ease; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* === PROJECT MODAL === */
.project-modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    padding: 5%;
    overflow-y: auto;
}

/* === HEADER === */
.site-header {
    position: fixed; top: 0; width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s;
}

.logo-group { display: flex; align-items: center; gap: 0.75rem; }
.logo-dot { width: 0.5rem; height: 2rem; background: #ec4899; border-radius: 9999px; animation: pulse 2s infinite; }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); } }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* === NAV LINKS === */
.nav-links { display: flex; align-items: center; gap: 3rem; }
.nav-link {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.3em; color: #f5f5f5; text-decoration: none;
    transition: color 0.3s;
}
.nav-link:hover { color: #ec4899; }

/* === BUTTONS === */
.btn-lang {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    background: transparent; color: #f5f5f5; cursor: pointer;
    transition: background 0.3s;
}
.btn-lang:hover { background: rgba(255,255,255,0.05); }
.btn-lang .icon { color: #ec4899; }
.btn-lang span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.btn-primary {
    background: white; color: black;
    padding: 0.5rem 1.5rem; border-radius: 9999px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; border: none; cursor: pointer;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-primary:active { transform: scale(0.95); }

.btn-hero-primary {
    padding: 1rem 3rem; background: white; color: black;
    font-size: 11px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.4em; border-radius: 9999px; border: none; cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
}
.btn-hero-primary:hover { box-shadow: 0 0 60px rgba(255,255,255,0.3); }

.btn-hero-secondary {
    padding: 1rem 3rem;
    border: 1px solid rgba(255,255,255,0.1); background: transparent;
    color: white; font-size: 11px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.4em; border-radius: 9999px; cursor: pointer;
    transition: background 0.3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.05); }

/* === HERO === */
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 72rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 1.25rem; border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 9px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.5em; color: #ec4899;
}
.hero-badge .ping-dot { width: 6px; height: 6px; background: #ec4899; border-radius: 50%; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

.hero-title {
    font-size: clamp(2.5rem, 10vw, 10rem);
    font-weight: 700; letter-spacing: -0.05em;
    background: linear-gradient(to bottom, white, white 60%, rgba(255,255,255,0.1));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.85; user-select: none;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.875rem);
    color: #737373; max-width: 48rem; margin: 0 auto;
    font-weight: 300; line-height: 1.4;
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 4rem; padding: 0 1.5rem; }
.hero-stagger { opacity: 0; transform: translateY(2rem); }

.scroll-hint {
    position: absolute; bottom: 3rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    color: rgba(255,255,255,0.1);
    animation: bounce 1s infinite;
    transition: opacity 1s;
}
.scroll-hint span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.6em; font-weight: 900; }

/* === SECTIONS === */
.section-pad { padding: 0 1rem; }
.section-wide { max-width: 80rem; width: 100%; }
.section-title { font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.section-sub { color: #737373; max-width: 32rem; font-size: 1.125rem; font-weight: 300; line-height: 1.7; }

/* === SERVICES GRID === */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { padding: 2.5rem; border-radius: 1.5rem; }
.service-icon-wrap {
    width: 4rem; height: 4rem; border-radius: 1rem;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.service-icon-wrap svg { width: 2rem; height: 2rem; position: relative; z-index: 10; transition: transform 0.5s; }
.service-card:hover .service-icon-wrap svg { transform: scale(1.25); }
.service-icon-hover {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
}
.service-card:hover .service-icon-hover { opacity: 1; }
.service-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.service-desc { font-size: 0.875rem; color: #737373; font-weight: 300; line-height: 1.7; }
.services-more { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.4em; color: rgba(255,255,255,0.2); text-align: center; margin-top: 3rem; }

/* === PROJECTS === */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.project-card {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
    border-radius: 3rem; background: #171717; cursor: pointer;
    border: none;
}
.project-card img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.2; transition: transform 1s, opacity 1s;
}
.project-card:hover img { transform: scale(1.1); opacity: 0.4; }
.project-overlay {
    position: absolute; inset: 0; padding: 3rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, black, rgba(0,0,0,0.4) 50%, transparent);
}
.project-tag { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5em; }
.project-title { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.025em; }
.project-line { height: 4px; width: 0; transition: width 0.7s; }
.project-card:hover .project-line { width: 6rem; }

/* === CONTACT === */
.contact-wrap {
    width: 100%; max-width: 64rem;
    padding: 3rem 5rem; border-radius: 4rem;
}
.contact-title { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.05em; }
.contact-sub { color: #737373; font-size: 1.125rem; font-weight: 300; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 1rem; }
.form-span-2 { grid-column: span 2; }
.form-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; margin-left: 1rem; }
.form-input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem; padding: 1rem 1.5rem;
    outline: none; color: #f5f5f5; font-size: 0.875rem; font-weight: 300;
    font-family: var(--primary-font);
    transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--focus-color, #ec4899); }
.form-input option { background: black; }
textarea.form-input { resize: none; border-radius: 1.5rem; }
select.form-input { appearance: none; cursor: pointer; }

.btn-submit {
    width: 100%; padding: 1.5rem;
    background: white; color: black;
    font-size: 11px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.5em; border-radius: 9999px; border: none; cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    font-family: var(--primary-font);
}
.btn-submit:hover { box-shadow: 0 0 60px rgba(255,255,255,0.2); }
.btn-submit:active { transform: scale(0.95); }

.contact-footer {
    padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.contact-info-label { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; }
.contact-info-value { font-size: 0.875rem; font-weight: 300; color: #a3a3a3; }
a.contact-info-value { text-decoration: none; transition: color 0.3s; }
a.contact-info-value:hover { color: white; }

.footer-text {
    margin-top: 3rem;
    font-size: 9px; color: rgba(255,255,255,0.05);
    font-weight: 900; text-transform: uppercase;
    letter-spacing: 1em; user-select: none;
    transform: translateY(2rem); opacity: 0;
}

/* === MODAL INTERNALS === */
.modal-close {
    position: fixed; top: 3rem; right: 3rem; z-index: 50;
    width: 3rem; height: 3rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white; cursor: pointer; transition: background 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); }
.modal-body { max-width: 64rem; margin: 0 auto; padding: 5rem 0; }
.modal-tag { color: #ec4899; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5em; font-size: 0.75rem; }
.modal-title { font-size: clamp(3rem, 8vw, 8rem); font-weight: 900; letter-spacing: -0.05em; }
.modal-media { aspect-ratio: 16/9; width: 100%; border-radius: 3rem; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.modal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 5rem; }
.modal-concept-title { font-size: 1.875rem; font-weight: 700; }
.modal-desc { font-size: 1.25rem; color: #a3a3a3; font-weight: 300; line-height: 1.7; }
.modal-stack-title { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.2); }
.modal-stack-list { list-style: none; }
.modal-stack-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 300; color: #d4d4d4; }
.modal-stack-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.modal-footer { grid-column: span 3; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center; }
.btn-visit {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1.5rem 3rem; background: #ec4899; color: white;
    font-size: 11px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.4em; border-radius: 9999px;
    text-decoration: none; transition: box-shadow 0.3s;
}
.btn-visit:hover { box-shadow: 0 0 60px rgba(249,103,251,0.3); }

/* === LOADER === */
.loader {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: #030303; z-index: 10000;
    transition: opacity 1s ease-in-out;
}
.loader h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.05em; animation: pulse 2s infinite; }
.loader-track { width: 12rem; height: 4px; background: rgba(255,255,255,0.05); border-radius: 9999px; overflow: hidden; }
.loader-bar { height: 100%; background: #ec4899; width: 0; }

/* === NAV DOTS CONTAINER === */
.nav-dots {
    position: fixed; right: 2rem; top: 50%; transform: translateY(-50%);
    z-index: 100; display: flex; flex-direction: column; gap: 1rem;
}

/* === COLOR ACCENTS === */
.text-pink { color: #ec4899; }
.text-blue { color: #3b82f6; }
.text-emerald { color: #10b981; }
.text-yellow { color: #eab308; }
.bg-pink-10 { background: rgba(236,72,153,0.1); }
.bg-blue-10 { background: rgba(59,130,246,0.1); }
.bg-emerald-10 { background: rgba(16,185,129,0.1); }
.bg-yellow-10 { background: rgba(234,179,8,0.1); }

/* === SVG ICON SIZE === */
.icon-sm { width: 12px; height: 12px; }
.icon-md { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }

/* ===================== */
/* === MOBILE (<768px) === */
/* ===================== */
@media (max-width: 768px) {
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        background-color: #030303 !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        cursor: auto;
    }
    html {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        background-color: #030303 !important;
    }
    #cursor, #cursor-follower { display: none !important; }
    .slide {
        height: auto !important; min-height: 100vh; min-height: 100dvh;
        padding-top: 80px !important; padding-bottom: 40px !important;
        scroll-snap-align: none !important;
        background: transparent !important;
    }
    .snap-container {
        scroll-snap-type: none !important;
        height: auto !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        background: transparent !important;
    }
    .site-header {
        padding: 0.5rem 1rem !important;
        background: rgba(3,3,3,0.8) !important;
        backdrop-filter: blur(10px) !important;
    }
    .glass-card { padding: 1.25rem !important; background: rgba(255,255,255,0.03) !important; }
    .hero-title { font-size: 2.8rem !important; line-height: 1 !important; }
    .section-title { font-size: 2.2rem !important; line-height: 1.1 !important; }
    .hero-desc, .section-sub { font-size: 0.9rem !important; }
    .hero-cta-group { margin-top: 1.5rem !important; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; padding: 1rem 1.5rem; font-size: 9px; }
    .nav-links { display: none !important; }
    .nav-dots { display: none !important; }
    .services-grid { grid-template-columns: 1fr !important; }
    .projects-grid { grid-template-columns: 1fr !important; }
    .contact-form { grid-template-columns: 1fr !important; }
    .form-span-2 { grid-column: span 1; }
    .contact-wrap { padding: 2rem 1.5rem; border-radius: 2rem; }
    .contact-footer { flex-direction: column; text-align: center; }
    .section-pad { padding: 0 1rem; }
    .modal-grid { grid-template-columns: 1fr !important; }
    .modal-footer { grid-column: span 1; }
    .logo-dot { width: 6px; height: 1.5rem; }
    .logo-text { font-size: 1.125rem; }
    .btn-lang { padding: 0.375rem 0.75rem; }
    .btn-primary { padding: 0.375rem 1rem; }
    .scroll-hint { bottom: 2rem; }
}
