/* =========================================
   CORE SETUP
   ========================================= */
html {
    overflow-x: hidden;
    width: 100%;
    overscroll-behavior-y: none; 
}

body.mini-decor-body {
    margin: 0;
    padding: 0;
    background-color: #1A1A1A;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.8s ease;
    -webkit-font-smoothing: antialiased;
}

/* SECTION LAYOUT (Desktop Default) */
.mini-decor-section {
    position: relative;
    width: 100%;
    height: 140vh; 
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    transform: translateZ(0);
    will-change: transform; 
}

/* =========================================
   TEXT CONTAINER (DESKTOP DEFAULT)
   ========================================= */
.text-container {
    position: absolute;
    top: 50%; 
    left: 8vw; 
    transform: translateY(-50%);
    z-index: 60;
    width: 55vw;
    pointer-events: none;
    will-change: transform;
}

.mod-title {
    font-size: clamp(40px, 9vw, 150px);
    line-height: 0.9;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    mix-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

/* SLOT MACHINE EFFECT WRAPPER */
.slot-word {
    display: inline-block;
    /* Default state for desktop can be visible or animated via JS */
    transform: translateY(0); 
    opacity: 1;
}

.mod-subtitle {
    font-size: clamp(12px, 1.2vw, 18px);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 25px;
    font-weight: 600;
    opacity: 0.8;
    padding-left: 15px;
    border-left: 2px solid rgba(255,255,255,0.5);
}

/* DARK THEME TEXT */
.mod-title.dark-text {
    color: #fff;
    mix-blend-mode: normal;
    /* Heavy layered shadow to separate large outline font from light background */
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 3px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0,0,0,0.25);
}
.mod-subtitle.dark-text {
    color: #fff;
    border-left-color: #000;
    border-left: 2px solid #000;
    /* Slight shadow for subtitle to lift from background without changing layout */
    text-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}

/* =========================================
   IMAGES & LAYERING (GLOBAL)
   ========================================= */
.collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.img-ph {
    position: absolute;
    height: auto; 
    display: block;
    opacity: 0; 
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    will-change: transform, opacity;
}

/* DESKTOP SIZES */
.img-tall  { width: 22vw; } 
.img-wide  { width: 40vw; } 
.img-sq    { width: 25vw; } 
.img-small { width: 15vw; }

/* LAYERS */
.layer-back  { z-index: 1; filter: brightness(0.7); }
.layer-mid   { z-index: 15; }
.layer-front { z-index: 20; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

/* DESKTOP POSITIONS - YOUR EXACT CODE */
#section1 .img-ph:nth-of-type(1) { width: 22vw; top: auto; bottom: 55%; right: 15%; left: auto; }
#section1 .img-ph:nth-of-type(2) { width: 40vw; top: auto; bottom: 18%; left: 50%; right: auto; }
#section1 .img-ph:nth-of-type(3) { width: 25vw; top: auto; bottom: 48%; left: 25%; right: auto; }

#section2 .img-ph:nth-of-type(1) { width: 35vw; top: auto; bottom: 12%; left: 50%; right: auto; }
#section2 .img-ph:nth-of-type(2) { width: 50vw; top: auto; bottom: 60%; right: auto; left: 5%; }
#section2 .img-ph:nth-of-type(3) { width: 35vw; top: auto; bottom: 45%; right: 9%; left: auto; }

#section3 .img-ph:nth-of-type(1) { width: 22vw; top: auto; bottom: 62%; right: 5%; left: auto; }
#section3 .img-ph:nth-of-type(2) { width: 60vw; top: auto; bottom: 38%; left: 6%; right: auto; }
#section3 .img-ph:nth-of-type(3) { width: 35vw; top: auto; bottom: 8%; left: 75%; right: auto; transform: translateX(-50%); }

#section4 .img-ph:nth-of-type(1) { width: 22vw; top: auto; bottom: 65%; left: 10%; right: auto; }
#section4 .img-ph:nth-of-type(2) { width: 45vw; top: auto; bottom: 8%; left: 12; right: 0; transform: none; }
#section4 .img-ph:nth-of-type(3) { width: 35vw; top: auto; bottom: 34%; right: 5%; left: auto; }

#section5 .img-ph:nth-of-type(1) { width: 29vw; top: auto; bottom: 55%; left: 65%; right: auto; }
#section5 .img-ph:nth-of-type(2) { width: 60vw; top: auto; bottom: 10%; right: auto; left: 39%; }
#section5 .img-ph:nth-of-type(3) { width: 25vw; top: auto; bottom: 65%; left: 20%; right: auto; transform: translateX(-50%); }

#section6 .img-ph:nth-of-type(1) { width: 22vw; top: auto; bottom: 28%; right: 5%; left: auto; }
#section6 .img-ph:nth-of-type(2) { width: 60vw; top: auto; bottom: 60%; left: 50%; right: auto; transform: translateX(-50%); }
#section6 .img-ph:nth-of-type(3) { width: 25vw; top: auto; bottom: 15%; left: 45%; right: auto; }

#section7 .img-ph:nth-of-type(1) { width: 32vw; top: auto; bottom: 56%; left: 15%; right: auto; }
#section7 .img-ph:nth-of-type(2) { width: 44vw; top: auto; bottom: 60%; right: 6%; left: auto; transform: none; }
#section7 .img-ph:nth-of-type(3) { width: 25vw; top: auto; bottom: 20%; left: 70%; right: auto; transform: translateX(-50%); }

#section8 .img-ph:nth-of-type(1) { width: 22vw; top: auto; bottom: 57%; right: 5%; left: auto; }
#section8 .img-ph:nth-of-type(2) { width: 40vw; top: auto; bottom: 58%; left: 0; right: auto; }
#section8 .img-ph:nth-of-type(3) { width: 25vw; top: auto; bottom: 5%; left: 50%; right: auto; transform: translateX(-50%); }

#section9 .img-ph:nth-of-type(1) { width: 45vw; top: auto; bottom: 59%; left: 50%; right: 0; }
#section9 .img-ph:nth-of-type(2) { width: 38vw; top: auto; bottom: 30%; left: 5%; right: auto; }
#section9 .img-ph:nth-of-type(3) { width: 25vw; top: auto; bottom: 5%; right: 5%; left: auto; }

#section10 .img-ph:nth-of-type(1) { width: 22vw; top: auto; bottom: 48%; right: 5%; left: auto; }
#section10 .img-ph:nth-of-type(2) { width: 40vw; top: auto; bottom: 5%; left: 50%; right: auto; transform: translateX(-50%); }
#section10 .img-ph:nth-of-type(3) { width: 23vw; top: auto; bottom: 62%; left: 5%; right: auto; }

/* FINAL INDEX */
.final-index { height: 100vh; display: flex; align-items: center; justify-content: center; background: #000; }
.final-content { text-align: center; width: 90%; max-width: 1200px; }
.index-header { font-size: clamp(1rem, 2vw, 2rem); color: #666; margin-bottom: 4vh; letter-spacing: 0.3em; font-weight: 400; }
.styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 60px; text-align: left; margin-bottom: 6vh; }
.style-item { color: #fff; text-decoration: none; font-size: clamp(1.1rem, 2.5vw, 2rem); font-weight: 700; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; transition: all 0.3s ease; opacity: 0; display: block; }
.style-item:hover { color: #BF1E2E; padding-left: 20px; border-bottom-color: #BF1E2E; }
.home-return-btn { display: inline-block; color: #fff; text-decoration: none; font-size: 1.05rem; letter-spacing: 0.1em; padding: 15.75px 31.5px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; transition: all 0.3s ease; opacity: 0; margin-bottom: 30px; }
.arrow-icon { margin-right: 10px; }

/* SOCIAL LINKS */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
}

.social-btn-call,
.social-btn-wa {
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.social-btn-call:hover {
    background: #C2B280;
    color: #000;
}

.social-btn-wa:hover {
    background: #25D366;
    color: #fff;
}

.social-links a:nth-child(2):hover {
    background: #E1306C;
    color: #fff;
}

/* UI ELEMENTS */
.logo-link { position: fixed; top: 30px; right: 30px; z-index: 100; mix-blend-mode: difference; }
.mini-decor-logo { width: 50px; height: 50px; border-radius: 50%; }
.fixed-index { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); z-index: 99; display: flex; flex-direction: column; gap: 12px; mix-blend-mode: difference; }
.index-link { text-decoration: none; color: rgba(255,255,255,0.3); font-family: monospace; font-size: 12px; transition: all 0.3s ease; position: relative; padding-right: 10px; text-align: right; }
.index-link.active { color: #fff; font-size: 16px; font-weight: bold; }
.index-link.home-link { font-size: 10.5px; letter-spacing: 1px; margin-bottom: 5px; font-weight: 700; color: #FF073A; }
.index-link.end-link { font-size: 10px; letter-spacing: 1px; }
.index-link.end-link.active { font-size: 14px; color: #BF1E2E; }

/* =========================================
   MOBILE RESPONSIVE (Jitter Fix)
   ========================================= */
@media (max-width: 768px) {
    
    .mini-decor-section {
        height: 100vh; 
        min-height: 600px;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    /* 1. TEXT STABILITY - CENTERED & STATIC */
    /* By removing complex transforms, we stop the jitter */
    .text-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important; /* Force center, override JS */
        width: 90vw;
        z-index: 60; 
        pointer-events: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mod-title {
        font-size: 12vw;
        line-height: 1.1;
        text-shadow: 0 5px 20px rgba(0,0,0,0.8);
        width: 100%;
        align-items: center; /* For stacking words */
    }

    .slot-word {
        display: block; /* Stack vertically on mobile */
        transform: translateY(100%);
        opacity: 0;
    }

    .mod-subtitle {
        border-left: none;
        padding-left: 0;
        margin-top: 15px;
        font-size: 12px;
        border-top: 2px solid #BF1E2E;
        padding-top: 10px;
        display: inline-block;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(5px);
        padding: 8px 16px;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    /* 2. IMAGE LAYOUT - LOCKED POSITIONS */
    /* We use fixed % positions instead of relying on heavy JS parallax */
    .img-ph {
        opacity: 1 !important; 
        max-width: 100vw;
    }

    /* SECTION 1 OVERRIDES */
    #section1 .img-ph:nth-of-type(1) { width: 55vw; top: 10%; left: 5%; }
    #section1 .img-ph:nth-of-type(2) { width: 85vw; top: auto; bottom: 10%; right: 0; }
    #section1 .img-ph:nth-of-type(3) { width: 45vw; top: 40%; right: 5%; }

    /* SECTION 2 OVERRIDES */
    #section2 .img-ph:nth-of-type(1) { width: 80vw; top: 10%; left: 0; }
    #section2 .img-ph:nth-of-type(2) { width: 70vw; top: 45%; right: 5%; }
    #section2 .img-ph:nth-of-type(3) { width: 50vw; top: auto; bottom: 5%; left: 5%; }

    /* SECTION 3 OVERRIDES */
    #section3 .img-ph:nth-of-type(1) { width: 50vw; top: 10%; right: 5%; }
    #section3 .img-ph:nth-of-type(2) { width: 80vw; top: 40%; left: 0; }
    #section3 .img-ph:nth-of-type(3) { width: 60vw; bottom: 5%; left: 50%; transform: translateX(-50%); }

    /* SECTION 4 OVERRIDES */
    #section4 .img-ph:nth-of-type(2) { width: 90vw; top: 10%; left: 50%; transform: translateX(-50%); }
    #section4 .img-ph:nth-of-type(1) { width: 50vw; top: 45%; left: 5%; }
    #section4 .img-ph:nth-of-type(3) { width: 45vw; bottom: 5%; right: 5%; }

    /* SECTION 5 OVERRIDES */
    #section5 .img-ph:nth-of-type(2) { width: 80vw; top: 10%; right: 0; }
    #section5 .img-ph:nth-of-type(1) { width: 45vw; top: 45%; left: 5%; }
    #section5 .img-ph:nth-of-type(3) { width: 70vw; bottom: 5%; left: 50%; transform: translateX(-50%); }

    /* SECTION 6 OVERRIDES */
    #section6 .img-ph:nth-of-type(2) { width: 90vw; top: 10%; left: 50%; transform: translateX(-50%); }
    #section6 .img-ph:nth-of-type(1) { width: 50vw; top: 45%; right: 5%; }
    #section6 .img-ph:nth-of-type(3) { width: 45vw; bottom: 5%; left: 5%; }

    /* SECTION 7 OVERRIDES */
    #section7 .img-ph:nth-of-type(1) { width: 50vw; top: 10%; left: 5%; }
    #section7 .img-ph:nth-of-type(2) { width: 65vw; top: 40%; right: 0; }
    #section7 .img-ph:nth-of-type(3) { width: 50vw; bottom: 5%; left: 50%; transform: translateX(-50%); }

    /* SECTION 8 OVERRIDES */
    #section8 .img-ph:nth-of-type(2) { width: 80vw; top: 10%; left: 0; }
    #section8 .img-ph:nth-of-type(1) { width: 50vw; top: 40%; right: 5%; }
    #section8 .img-ph:nth-of-type(3) { width: 50vw; bottom: 5%; left: 50%; transform: translateX(-50%); }

    /* SECTION 9 OVERRIDES */
    #section9 .img-ph:nth-of-type(1) { width: 95vw; top: 10%; left: 50%; transform: translateX(-50%); }
    #section9 .img-ph:nth-of-type(2) { width: 45vw; top: 45%; left: 5%; }
    #section9 .img-ph:nth-of-type(3) { width: 55vw; bottom: 5%; right: 5%; }

    /* SECTION 10 OVERRIDES */
    #section10 .img-ph:nth-of-type(3) { width: 45vw; top: 10%; left: 5%; }
    #section10 .img-ph:nth-of-type(1) { width: 45vw; top: 20%; right: 5%; }
    #section10 .img-ph:nth-of-type(2) { width: 80vw; bottom: 5%; left: 50%; transform: translateX(-50%); }

    /* UI Adjustments */
    .styles-grid { grid-template-columns: 1fr; gap: 15px; }
    .style-item { font-size: 1.2rem; }
    .fixed-index { right: 5px; gap: 5px; } 
    .index-link { font-size: 0; padding-right: 5px; }
    .index-link::after { width: 4px; height: 4px; }

    /* Social Links Mobile */
    .social-links {
        margin-top: 20px;
        gap: 10px;
    }

    .social-btn-call,
    .social-btn-wa {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}