/* DERMALLIANCE - GENERATIONAL UI/UX SYSTEM */

:root {
    /* Colors - Deep Navy Luxury */
    --clr-white: #F1F5F9; /* Very Light Slate Background */
    --clr-navy-light: #E2E8F0; 
    --clr-charcoal: rgb(92, 127, 152); /* Dark Navy Text */
    --clr-accent: #5A7A91; 
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.05);
    
    /* Typography */
    --font-display: 'Roboto Condensed', sans-serif;
    --font-sans: 'Inter', sans-serif;
    
    --space-unit: 1rem;
    --container-padding: 8vw; 
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--clr-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glow-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(90, 122, 145, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.serif-italic {
    font-family: var(--font-display);
    font-style: normal;
}

.vertical-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
}

.scientific-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 2.5rem 0;
    transition: all 0.5s ease;
}

.scientific-row:hover {
    padding-left: 1rem;
    border-bottom-color: var(--clr-accent);
}

.scientific-row:last-child {
    border-bottom: none;
}

.icon-label {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 127, 152, 0.2);
    border-radius: 50%;
    color: var(--clr-charcoal);
    font-size: 16px;
    transition: all 0.5s ease;
}

.scientific-row:hover .icon-label {
    background: var(--clr-charcoal);
    color: var(--clr-white);
    border-color: var(--clr-charcoal);
}

.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--clr-white);
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(90, 122, 145, 0.08) 0%, transparent 70%);
    filter: blur(120px);
    border-radius: 50%;
    animation: move 40s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 { top: -20%; left: -20%; animation-duration: 50s; }
.blob-2 { bottom: -20%; right: -20%; background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%); animation-duration: 60s; animation-delay: -10s; }
.blob-3 { top: 30%; left: 20%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(90, 122, 145, 0.02) 0%, transparent 70%); animation-duration: 45s; animation-delay: -20s; }

@keyframes move {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(15vw, 10vh) rotate(10deg) scale(1.1); }
    66% { transform: translate(-10vw, 20vh) rotate(-5deg) scale(0.9); }
    100% { transform: translate(5vw, -10vh) rotate(5deg) scale(1); }
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader-bar.animate {
    width: 100% !important;
    transition: width 2s ease-in-out;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--clr-white);
    color: var(--clr-charcoal);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 300; /* Skinnier/Light weight */
    font-style: normal;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-gradient-gold {
    background: linear-gradient(
        to right,
        #334155 20%,
        #5A7A91 40%,
        #94A3B8 50%,
        #5A7A91 60%,
        #334155 80%
    );
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.text-gradient-orange {
    background: linear-gradient(
        to right,
        #94a3b8 20%,
        #F97316 40%,
        #FB923C 50%,
        #F97316 60%,
        #94a3b8 80%
    );
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.font-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    text-transform: lowercase;
}

/* --- UTILITIES --- */
.container-custom {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    max-width: 1440px;
    margin: 0 auto;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-white { color: #0F172A !important; }
.text-white\/30 { color: rgba(15, 23, 42, 0.9) !important; }
.text-white\/40 { color: rgba(15, 23, 42, 0.95) !important; }
.text-white\/20 { color: rgba(15, 23, 42, 0.6) !important; }
.text-white\/10 { color: rgba(15, 23, 42, 0.4) !important; }

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    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");
}

/* --- SECTIONS --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
}

.hero-img-reveal {
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-img-reveal.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-img-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-img-reveal.active img {
    transform: scale(1);
}

/* --- BUTTONS --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--clr-charcoal);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--clr-charcoal);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-premium:hover {
    background: var(--clr-charcoal);
    color: var(--clr-white);
}

/* --- BENTOGRID --- */
.bentogrid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 100px 0;
}

.bento-item {
    background: white;
    border-radius: 2.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .bento-item {
        padding: 4rem;
    }
}

/* --- ANIMATIONS --- */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active span {
    transform: translateY(0);
}

/* --- NAV LINKS --- */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-charcoal);
    transition: width 0.3s ease;
}

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

/* --- BENTO ENHANCEMENTS --- */
.bento-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.floating-card {
    animation: floatCard 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- PRELOADER ANIMATION --- */
#loader-bar {
    transition: width 2s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 1s forwards;
}
