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

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    background-color: #000;
}

.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: column; /* Mobile: góra-dół */
}

.box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

/* Zdjęcia w tle */
.kadry {
    background-image: url('img/8.jpg');
}

.slubnie {
    background-image: url('img/9.jpg');
}

/* Domyślna warstwa przyciemniająca (ciemna) - stan spoczynku */
.content {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Startowe przyciemnienie 30% */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s ease;
}

/* Styl dla napisu KADRY */
.box h1 {
    color: #ffffff;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* STYL DLA LOGO ŚLUBNIE */
.slubnie-logo {
    z-index: 2;
    width: 350px; /* Domyślna szerokość na PC */
    max-width: 85%; /* Zabezpieczenie na mobile */
    height: auto;
    transition: transform 0.3s ease;
}


/* EFEKTY NAJECHANIA MYSZKĄ (Tylko komputery) */
@media (hover: hover) {
    
    /* Kolor dla KADRY: #AD6763 (teraz 75%) */
    .kadry:hover .content {
        background-color: rgba(173, 103, 99, 0.75);
    }

    /* Kolor dla ŚLUBNIE: #A7B9CC (teraz 75%) */
    .slubnie:hover .content {
        background-color: rgba(167, 185, 204, 0.75);
    }

    /* Delikatne powiększenie boksu przy najechaniu */
    .box:hover {
        transform: scale(1.02);
        z-index: 10;
    }
    
    /* Opcjonalnie: delikatne powiększenie logo/tekstu przy najechaniu */
    .box:hover .slubnie-logo,
    .box:hover h1 {
        transform: scale(1.05);
    }
}


/* RESPONSYWNOŚĆ - Ekrany poziome (Laptop/PC) */
@media (min-width: 769px) and (orientation: landscape) {
    .main-container {
        flex-direction: row; /* Układ lewo-prawo */
    }
    
    .box {
        height: 100%;
    }
}

/* Optymalizacja pod iOS */
@supports (-webkit-touch-callout: none) {
    .main-container {
        height: -webkit-fill-available;
    }
}

/* Mniejsze logo na telefonach */
@media (max-width: 768px) {
    .slubnie-logo {
        width: 250px;
    }
}