/* ISMENIA Styles - The Oscar de la Renta Aesthetic */

:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-accent: #C41E3A; /* Vibrant Cardinal Red */
    --color-light-gray: #F5F5F5;
    
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 150px;
    opacity: 0; /* Will be animated in JS */
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: normal;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 1.1rem;
    color: #444;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 2rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-outline {
    border: 1px solid currentColor;
    background: transparent;
    color: currentColor;
}

.btn-outline:hover {
    background: currentColor;
    color: var(--color-bg);
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hide default mobile play button - aggressive */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-panel,
video::-webkit-media-controls,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-enclosure {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0 !important;
    pointer-events: none !important;
}

*::-webkit-media-controls-start-playback-button,
*::-webkit-media-controls-play-button,
*::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0 !important;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    transition: opacity 1.5s ease;
}

.video-overlay.faded {
    opacity: 0;
}

/* Hero Content Cinematic Reveal — hidden during video, fades in when paused */
.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    padding: 0 1rem;
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hero-content.revealed .hero-title {
    opacity: 1;
}

.hero-content.revealed .hero-subtitle {
    opacity: 1;
    transition-delay: 0.3s;
}

.hero-content.revealed .btn {
    opacity: 1;
    transition-delay: 0.6s;
}

.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .btn {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.placeholder-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070&auto=format&fit=crop') center/cover;
}




.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.5);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: white;
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Philosophy Section */
.philosophy {
    background-image: url('../assets/so-white.png');
    background-repeat: repeat;
}

/* Image Placeholders */
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background-color: var(--color-light-gray);
    background-image: url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.img-placeholder.tall {
    min-height: 800px;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Collection Carousel Layout */
.collection-carousel {
    position: relative;
    width: 100%;
}

.collection-group {
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    top: 0;
    left: 0;
}

.collection-group.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
}

/* Dots Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-text);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background-color: var(--color-text);
    transform: scale(1.2);
}


.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 600px;
}

.img-carousel.tall {
    min-height: 800px;
}

.img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(1);
}

.img-layer.active {
    opacity: 1;
    animation: kenBurns 15s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.masonry-item:hover .img-carousel {
    transform: scale(1.05);
}

.img-carousel {
    transition: transform 0.8s ease;
}

/* Curtain Overlay Effect */
.curtain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    
    /* The curtain starts fully covering the top and bottom, but we want it to open on hover.
       Alternatively, it starts hidden (height 0) and opens like a curtain dropping down, 
       or we can do a split curtain effect. Let's do a dropdown curtain. */
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.curtain-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
    text-align: center;
}

.curtain-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-light-gray);
}

.curtain-content p {
    font-size: 1rem;
    line-height: 1.5;
}

.masonry-item:hover .img-placeholder {
    transform: scale(1.05);
}

.masonry-item:hover .curtain-overlay {
    transform: translateY(0); /* Drops the curtain down */
}

.masonry-item:hover .curtain-content {
    opacity: 1;
    transform: translateY(0);
}

/* Waitlist Form */
.waitlist {
    background-image: url('../assets/so-white.png');
    background-repeat: repeat;
}

.waitlist-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
    color: #666;
    transition: var(--transition-smooth);
    pointer-events: none;
    text-transform: none;
    letter-spacing: normal;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    padding-top: 1.5rem;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group input:not(:placeholder-shown) {
    outline: none;
    border-bottom-color: var(--color-text);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.waitlist-success {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.8s ease;
}

.waitlist-success h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    padding: 3rem 5%;
    border-top: 1px solid #eee;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-copy {
    font-size: 0.9rem;
    color: #666;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 75px;
    background-color: black;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    transform: translateX(10px);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* GSAP Initial States */
.gsap-reveal, .gsap-slide-up, .gsap-fade-in {
    opacity: 0;
}

.gsap-image-reveal {
    clip-path: inset(100% 0 0 0);
}

/* ----------------------------------
   Responsive Design / Mobile
------------------------------------- */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 1rem 5%;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Typography globally */
    .section-title {
        font-size: 2.5rem;
    }

    /* Layout Grids */
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Philosophy Section */
    .philosophy-text {
        padding: 2rem 0;
    }
    
    .philosophy-vid {
        min-height: 400px !important;
    }

    /* Carousel / Masonry */
    .collection-carousel {
        height: 450px;
    }
    
    .curtain-overlay {
        padding: 1.5rem;
    }
    
    .curtain-content h3 {
        font-size: 1.5rem;
    }
    
    .curtain-content p {
        font-size: 0.85rem;
    }

    /* Waitlist Form */
    .waitlist-card {
        padding: 2rem 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }
    
    .waitlist-success h3 {
        font-size: 2rem;
    }

    /* Footer */
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-logo {
        justify-content: center;
    }

    /* Hide Tooltips on Touch Devices */
    .whatsapp-float .tooltip {
        display: none;
    }
}
