/* Ресетирање */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: #ffffff;
    height: 100vh;

}

/* Видео Позадина */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

/* Главен wrapper */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 4rem;
}


/* --- Централна Содржина --- */
.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 1px;
    white-space: nowrap; /* Ова го принудува текстот да остане секогаш во еден ред */
}

.hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

/* Копче со стаклен Blur ефект */
.btn-glass {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 35px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Ова е ефектот за заматување на позадината */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* --- Видео Контроли --- */
.video-controls {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

#play-pause-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#play-pause-btn:hover {
    opacity: 1;
}

/* --- VIEW OUR COLLECTION СЕКЦИЈА --- */
.collection-section {
    background-color: #ffffff;
    color: #000000;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.collection-header {
    display: flex;
    width: 100%;
    height: 45vh;
    border-bottom: 1px solid #dcdcdc;
}

.collection-text {
    width: 100%; /* Овде претходно беше 50% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.scroll-arrow {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.collection-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.collection-text p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #333;
    max-width: 380px;
    line-height: 1.7;
}

/* Хоризонтален скрол со часовници */
.watches-slider-container {
    width: 100%;
    overflow: hidden; 
    background-color: #ffffff;
}

.watches-slider {
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.watches-slider::-webkit-scrollbar {
    display: none;
}

.watch-card {
    flex: 0 0 33.33%; /* Прикажува 3 часовници на екран наместо 4 за повеќе простор */
    min-width: 450px; /* Ги прави колоните пошироки */
    padding: 4rem 4rem; /* Драстично го зголемува празниот простор (воздухот) од страните */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dcdcdc;
    position: relative;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.4s ease;
}

.watch-card:hover {
    background-color: #fcfcfc;
}

/* Hover анимација на сликите */
.watch-image-wrapper {
    position: relative;
    width: 380px;  /* Дополнително зголемено */
    height: 520px; /* Дополнително зголемено */
    margin-bottom: 2rem;
}

.watch-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.watch-img-hover {
    opacity: 0;
    transform: scale(0.97);
}

.watch-card:hover .watch-img-main {
    opacity: 0;
}

.watch-card:hover .watch-img-hover {
    opacity: 1;
    transform: scale(1);
}

.watch-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #000000;
    text-transform: uppercase;
}

/* Коцката на крајот (See All) */
.see-all-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.see-all-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 60%;
    height: 60%;
    border: 1px solid #000000;
    transition: all 0.4s ease;
}

.see-all-content a {
    text-decoration: none;
    color: #000000;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.see-all-content:hover {
    background-color: #000000;
    color: #ffffff;
}

.see-all-content:hover a {
    color: #ffffff;
}

/* --- HOW ITS MADE СЕКЦИЈА --- */
.built-section {
    background-color: #ffffff;
    color: #333333;
    width: 100%;
    padding-top: 15vh;
    padding-bottom: 5vh;
    position: relative;
}

.built-content {
    text-align: center;
    margin-bottom: 8vh;
    opacity: 0; /* Скриено за почетната анимација */
    transform: translateY(40px);
}

.built-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

.built-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #222;
}

.built-video-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.built-video-inner {
    width: 70%; /* Почетна ширина (сивото поле) */
    height: 70vh; /* Почетна висина */
    background-color: #dcdcdc; /* Сивата боја додека не се вчита видеото */
    overflow: hidden;
    position: relative;
}

.built-video-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Променето од 0 во 1 за видеото да биде веднаш видливо */
    transition: opacity 0.3s ease;
}

/* --- Секција според brioni'.JPG --- */
.grid-collection-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    padding: 20vh 12vw 15vh; 
    background-color: #ffffff;
    width: 100%;
    height: 130vh; 
}
.grid-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.grid-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: #e5e5e5; /* Priвремена сива боја додека не се вчитат твоите слики */
}

/* Пропорции на блоковите за да го добиеме точниот распоред од сликата */
.grid-item.tall {
    flex: 1.8;
}

.grid-item.short {
    flex: 1;
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Мазна анимација */
    
}

/* Зумирање на сликата при hover */
.grid-item:hover img {
    transform: scale(1.05); 
}

/* Текстот врз сликите */
.grid-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;  
    font-weight: 400;
    color: white; 
    z-index: 2;
    pointer-events: none; /* Спречува текстот да го блокира hover ефектот на сликата */
}

/* На втората секција kaj 6 sliki so се zatemni gi malce da се гледа tekstot
   (drugo nisto ama nisto ne menuvaj) */
.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Subtle darkening overlay */
    z-index: 1; /* Place overlay below text (z-index: 2) but above img */
}

/* toa summer collection naprai go vo eden red ne vo dva
   (drugo nisto ama nisto ne menuvaj) */
.grid-collection-section .grid-item:first-child .grid-text {
    white-space: nowrap;
}

/* --- SHOWCASE СЕКЦИЈА (animacija.JPG) --- */
.showcase-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* Чиста бела за максимален фокус */
    height: 100vh;
    width: 100%;
    color: #000000;
    overflow: hidden;
}

.showcase-center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-3d-model {
    width: 100%;
    height: 85vh; /* Драстично зголемено за да биде како на сликата */
    max-width: 900px;
    --poster-color: transparent;
    outline: none;
}

.showcase-left {
    position: absolute;
    left: 6rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 2; /* Обезбедува да стои над моделот */
}

.showcase-link {
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #000000; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-link-bold {
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 35px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.2); /* Црна рамка бидејќи позадината е бела */
    background: rgba(0, 0, 0, 0.05); /* Многу благ сив ефект наместо стаклен */
    color: #000000;
    font-weight: 400;
    margin-top: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    width: fit-content;
}
.showcase-link-bold:hover {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.4);
}
.showcase-title {
    font-family: 'Lato', sans-serif; 
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: -0.5rem;
}

.showcase-desc {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.4;
    font-weight: 300;
}

.showcase-right {
    position: absolute;
    right: 6rem;
    bottom: 5rem;
    z-index: 2;
}

.showcase-pause-btn {
    background-color: #e5e5e5;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #000000;
    transition: background-color 0.3s ease;
}

.showcase-pause-btn:hover {
    background-color: #d0d0d0;
}


.kopceposledno {
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 35px;
    border-radius: 30px;
    background: rgba(53, 53, 53, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Ова е ефектот за заматување на позадината */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.kopceposledno:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
/* --- EXPLORE FURTHER СЕКЦИЈА (ex.JPG) --- */
.explore-further-section {
    position: relative;
    width: 100%;
    height: 70vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('./sliki/posledna.png'); 
    background-size: cover;
    
    /* СМЕНИ ГО ОВА: Наместо само 'center', додади процент. 
       Пробај со 20% или 30%. Колку е помал процентот (или ако ставиш 'top'), толку повеќе ќе се гледа горниот дел од сликата, односно сликата ќе се "спушти". */
    background-position: center 20%; 
    
    background-repeat: no-repeat;
}

/* Темна фолија преку сликата за да се чита текстот и стакленото копче */
.explore-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.explore-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    transform: translateY(-150px); /* ОВА Е НОВОТО: Го крева целиот блок нагоре. Ако сакаш уште погоре, стави -80px или -100px */
}

.explore-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: black;
    letter-spacing: 1px;
}

/* --- МОБИЛЕН РЕСПОНЗИВ ЗА СТРАНАТА (До 1024px) --- */
@media (max-width: 1024px) {
    
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    /* 1. Hero Секција */
    #bg-video {
        object-fit: cover;
        object-position: center;
        /* Overfill in all directions so no black bars appear on any mobile ratio */
        width: 100%;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
        transform: scale(1.12);
    }

    .hero-title {
        font-size: 2.2rem;
        white-space: normal; 
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-wrapper { 
        padding: 1.5rem; 
        width: 100%;
        box-sizing: border-box;
    }

    /* 2. Best Sellers Slider */
    .collection-section {
        width: 100%;
        overflow: hidden;
    }

    .collection-text h2 { font-size: 2.2rem; }
    .collection-text p { padding: 0 1rem; }
    .collection-header { height: auto; padding: 3rem 0; width: 100%; }
    
    .watches-slider-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .watches-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        padding-left: 1rem; 
        padding-right: 1.5rem; 
        width: 100%;
        -webkit-overflow-scrolling: touch; 
    }
    
    .watch-card {
        min-width: 75vw; 
        padding: 2rem 0.5rem; 
        scroll-snap-align: center;
        border-right: none; 
    }
    
    .watch-image-wrapper {
        width: 100%; 
        max-width: 260px;
        height: 360px; 
        margin: 0 auto 1.5rem auto;
    }

    /* 3. Cartier Summer видео - ОПРАВЕНА АНИМАЦИЈАТА */
.built-section { 
        padding-top: 10vh; 
        padding-bottom: 0; /* Ова го брише просторот под видеото */
        width: 100%;
        overflow: hidden; 
    }
    
.built-title { 
        font-size: 1.5rem; 
        padding: 0 1.5rem; 
    }
    
.built-video-container {
        width: 100%;
        height: 100vh; /* Го зафаќа цел екран на мобилен */
        overflow: hidden; 
    }

.built-video-inner {
        width: 100% !important; /* Насилно го правиме 100% ширина */
        height: 100vh !important; /* Насилно го правиме 100% висина */
    }

    /* 4. GRID СЕКЦИЈА - ПЕРФЕКТНО РАСПОРЕДЕНО СПОРЕД СЛИКАТА */
    .grid-collection-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Строго 2 колони */
        grid-auto-rows: 10vh !important; /* Математика за висината на коцките */
        gap: 15px !important;
        padding: 5vh 1rem !important;
        height: auto !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ова ги "крши" десктоп колоните за да можеме да ги местиме елементите еден по еден */
    .grid-col { display: contents !important; }

    /* Позиционирање на елементите според твојата слика */
    /* ЛЕВА СТРАНА */
    .grid-col:nth-child(1) .grid-item:nth-child(1) { grid-column: 1; grid-row: 1 / 4; } /* Blazers (Многу висока) */
    .grid-col:nth-child(1) .grid-item:nth-child(2) { grid-column: 1; grid-row: 4 / 6; } /* Ties (Ниска) */
    .grid-col:nth-child(3) .grid-item:nth-child(1) { grid-column: 1; grid-row: 6 / 9; } /* Formal shirts (Висока) */
    
    /* ДЕСНА СТРАНА */
    .grid-col:nth-child(2) .grid-item:nth-child(1) { grid-column: 2; grid-row: 1 / 3; } /* Knitwear (Ниска) */
    .grid-col:nth-child(2) .grid-item:nth-child(2) { grid-column: 2; grid-row: 3 / 7; } /* Suits (Највисока) */
    .grid-col:nth-child(3) .grid-item:nth-child(2) { grid-column: 2; grid-row: 7 / 9; } /* Loafers (Ниска) */

    .grid-item {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }

    .grid-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .grid-collection-section .grid-text {
        white-space: normal !important; 
        text-align: center !important;
        padding: 0 0.5rem !important;
        font-size: 1.1rem !important;
        width: 100% !important;
    }

    /* 5. Showcase 3D модел */
.showcase-section {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.5rem 4rem 1.5rem; /* Сменето: горниот padding е намален на 1rem за да биде одма под видеото */
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .showcase-left {
        position: relative; left: 0; top: 0; transform: none;
        align-items: center; order: 1; margin-bottom: 2rem; width: 100%;
    }
    
    .showcase-center { order: 2; width: 100%; }
    .showcase-3d-model { height: 50vh; width: 100%; }
    
    .showcase-right {
        position: relative; right: 0; bottom: 0;
        order: 3; margin-top: 2rem; display: flex; justify-content: center; width: 100%;
    }

    /* 6. Explore Further (кренато многу погоре) */
    .explore-further-section {
        width: 100%;
        background-position: center top; 
        overflow: hidden;
        height: 60vh; 
    }

    .explore-title { 
        font-size: 2.2rem; 
        text-align: center; 
        margin-bottom: 15px; 
        padding: 0 1rem;
    }
    
    .explore-content {
        transform: translateY(-180px); /* Подигнато високо нагоре */
        padding: 0 1.5rem;
        gap: 10px; 
        width: 100%;
    }
}


/* Специфично прилагодување само за iPhone SE и помали мобилни уреди */
@media (max-width: 375px) and (max-height: 670px) {
    .explore-further-section {
        overflow: visible !important; /* Спречува кратење и сокривање на текстот */
        height: 65vh !important;
    }

    .explore-content {
        transform: translateY(-140px) !important; /* Го намалуваме кревањето за да не избега содржината надвор од екранот */
    }

    .explore-title {
        font-size: 1.8rem !important; /* Го намалуваме текстот за да се прилагоди на тесниот екран */
    }
}