/* ═══════════════════════════════════════════════
   CONCEWEB — Cinematic Noir Editorial
   Design System Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --color-primary: #FF2D78;
    --color-primary-rgb: 255, 45, 120;
    --color-secondary-rgb: 142, 255, 160;
    --color-whatsapp: #25D366;
    --color-whatsapp-rgb: 37, 211, 102;
}

/* ─── Base & Typography ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #000;
    color: #f0f0f0;
    font-family: "DM Sans", system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

/* ─── Grain Texture Overlay ─── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ─── Cursor Glow ─── */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    will-change: left, top;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5a9d;
}

/* ─── Material Symbols ─── */
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ─── Navigation ─── */
.nav-link {
    position: relative;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-active::after {
    width: 100%;
}

.nav-active {
    color: var(--color-primary) !important;
    transform: none;
}

/* ─── Cinematic Animations (Scroll Triggered) ─── */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }

/* Hero text clip-path reveal */
.hero-text-reveal {
    animation: cinematic-reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.3s;
    clip-path: inset(0 100% 0 0);
}

@keyframes cinematic-reveal {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* Hero entrance */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Float for decorative elements */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(1deg); }
}

.float-anim {
    animation: float-gentle 6s ease-in-out infinite;
}

/* ─── Carousel ─── */
.carousel-track {
    display: flex;
}
.carousel-item {
    min-width: calc(25% - 1.5rem);
    margin-right: 1.5rem;
    scroll-snap-align: start;
}
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    height: 2px !important;
}
.no-scrollbar::-webkit-scrollbar-track,
.no-scrollbar::-webkit-scrollbar-thumb,
.no-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
@media (max-width: 1024px) {
    .carousel-item { min-width: calc(33.333% - 1.5rem); }
}
@media (max-width: 768px) {
    .carousel-item { min-width: calc(100% - 1.5rem); }
}

/* ─── Card Hover Effects ─── */
.card-cinematic {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease;
}

.card-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.card-cinematic:hover::before {
    opacity: 1;
}

.card-cinematic:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-primary-rgb), 0.35) !important;
}

/* ─── Decorative Shapes ─── */
.deco-line-diagonal {
    position: absolute;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.3), transparent);
    transform: rotate(-35deg);
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    pointer-events: none;
}

/* ─── Editorial Headline Styling ─── */
.editorial-headline {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.editorial-headline em,
.editorial-headline .accent {
    font-style: normal;
}

/* ─── Label Monospace Styling ─── */
.mono-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ─── Progress Bar ─── */
.progress-fill {
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Glassmorphism Nav ─── */
.glass-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ─── Button Effects ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300%;
    height: 300%;
}

/* ─── Ambient Shadow for floating elements ─── */
.ambient-shadow {
    box-shadow: 0 24px 64px rgba(var(--color-primary-rgb), 0.06),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ─── Image Mask Diagonal ─── */
.mask-diagonal {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ─── Focus States (Accessibility) ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ─── Form Field Editorial Underline ─── */
.field-editorial {
    border: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.field-editorial:focus {
    border-bottom-color: var(--color-primary);
    background-color: #1a1a1a;
}

/* ─── Parallax Container ─── */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ─── Section Atmosphere Glow ─── */
.atmo-glow-left {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(var(--color-primary-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.atmo-glow-right {
    position: absolute;
    right: -10%;
    bottom: 10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(var(--color-secondary-rgb), 0.04) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(80px);
}

/* ─── WhatsApp Button Enhancement ─── */
.whatsapp-btn {
    box-shadow: 0 8px 32px rgba(var(--color-whatsapp-rgb), 0.3),
                0 0 0 0 rgba(var(--color-whatsapp-rgb), 0.4);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(var(--color-whatsapp-rgb), 0.3), 0 0 0 0 rgba(var(--color-whatsapp-rgb), 0.4); }
    50%      { box-shadow: 0 8px 32px rgba(var(--color-whatsapp-rgb), 0.3), 0 0 0 12px rgba(var(--color-whatsapp-rgb), 0); }
}

/* ─── Responsive Typography Scale ─── */
@media (max-width: 768px) {
    .editorial-headline {
        line-height: 1.0;
    }
}
