* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Cinzel', serif;
}

.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.slider-section {
    flex: 2;
    max-width: 70vw;         /* slider asla ekranın %70'inden büyük olmasın */
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #000;  /* video yüklenmeden görünmesin */
}


.form-section {
    flex: 0 0 30vw; /* sabit oran */
    max-width: 600px;
    min-width: 400px;
    background-color: #819496;
    padding: 30px;
    overflow-y: auto;
}


.form-section h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    padding: 8px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

button[type="submit"] {
    padding: 10px;
    width: 100%;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.success-message {
    background: #c8e6c9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Swiper */
.swiper-container, .swiper-wrapper, .swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide img,
.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* TAŞMAZ, oran korur */
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 20px;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.site-header {
    background-color: #fff;
    padding: 10px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #5c4431;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007B8A;
}


/* Responsive */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .slider-section {
        height: 50vh;
    }

    .form-section {
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        max-height: 50px;
    }
}

.page-container {
    padding: 60px 40px;
    max-width: 1400px;
    margin: auto;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 300px;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item p {
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
    color: #555;
}

@media (max-width: 768px) {
    .gallery-grid {
        gap: 20px;
    }
    .gallery-item {
        flex: 1 1 90%;
    }
}

.contact-info {
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.contact-form button {
    padding: 12px;
    background: #007B8A;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.contact-form button:hover {
    background: #005f6b;
}

/* 768px altı mobil uyum iyileştirmesi */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .slider-section {
        max-width: 100%;
        width: 100%;
        height: 50vh;
    }

    .form-section {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        min-width: auto;
    }

    .form-section h2,
    .form-section p,
    .form-section label {
        font-size: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group button {
        font-size: 14px;
    }

    .checkbox-group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        max-height: 50px;
    }
}

/* 480px altı ekstra dar ekran */
@media screen and (max-width: 480px) {
    .form-section {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 13px;
        padding: 8px;
    }

    .form-section h2 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto; /* Yüksekliği serbest bırak */
    }

    .slider-section {
        height: auto;
        max-height: 50vh; /* ekranın yarısını kaplasın */
    }

    .form-section {
        height: auto;
        overflow-y: visible;
        flex: none;
        padding-bottom: 40px; /* ekstra boşluk */
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .main-nav ul {
        flex-direction: row;         /* YATAY hale getir */
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 0;
        margin: 10px 0 0 0;
        flex-wrap: wrap;
    }

    .main-nav li {
        text-align: center;
    }

    .main-nav a {
        padding: 10px;
        color: #5c4431;
        font-weight: bold;
        font-size: 14px;
        display: inline-block;
        text-decoration: none;
    }

    .main-nav a:hover {
        color: #007B8A;
    }
}
