/* Submenu Sayfaları İçin Ortak CSS */
/* ================================= */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #215020;
    --secondary-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --border-color: rgba(33, 80, 32, 0.1);
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.12);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--secondary-color);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 20s ease-out, opacity var(--transition-slow);
}

.hero-section:hover .hero-image {
    transform: scale(1.05);
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(33, 80, 32, 0.3) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 0 60px;
    color: var(--secondary-color);
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

/* Content Section */
.content-section {
    padding: 120px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Intro Section */
.intro-text {
    max-width: 900px;
    margin: 0 auto 120px;
    text-align: center;
}

.intro-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.intro-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-bottom: 120px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: var(--secondary-color);
    border-radius: 0;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.feature-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-card:hover .feature-image {
    transform: scale(1.1);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(33, 80, 32, 0.8) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover .feature-overlay {
    opacity: 1;
}

.feature-content {
    padding: 40px 30px;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    transition: color var(--transition-base);
}

.feature-card:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    background: #fafafa;
    padding: 100px 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 80px;
}

.gallery-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(
            to top,
            rgba(33, 80, 32, 0.9) 0%,
            transparent 100%
    );
    color: var(--secondary-color);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Details Section */
.details-section {
    padding: 100px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.details-grid.reverse {
    direction: rtl;
}

.details-grid.reverse .details-content {
    direction: ltr;
}

.details-image {
    position: relative;
    overflow: hidden;
}

.details-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.details-image:hover img {
    transform: scale(1.05);
}

.details-content {
    padding: 0 40px;
}

.details-content h3 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.details-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.details-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(33, 80, 32, 0.05) 0%, rgba(33, 80, 32, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    margin: 30px 0;
}

.highlight-box p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #215020 0%, #2d6e2c 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left var(--transition-base);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CATALOG STYLES - GÜNCELLENMIŞ
   ======================================== */

/* Catalog Section */
.catalog-section {
    padding: 60px 0;
    background: #ffffff;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 3x3 Grid Layout */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #f8f8f8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.catalog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.catalog-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-item:hover .catalog-image {
    transform: scale(1.08);
}

/* Sabit ürün adı (altta her zaman görünür) */
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(33, 80, 32, 0.1);
}

.product-info .product-name {
    color: #215020;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Gallery Modal - Güncellenmiş */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Gallery Controls - Güncellenmiş */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.gallery-close:hover {
    transform: scale(1.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    border-radius: 50px;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.gallery-product-name {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details-grid.reverse {
        direction: ltr;
    }

    .details-content {
        padding: 0 20px;
    }

    /* Catalog Responsive */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 30px;
        bottom: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .content-section {
        padding: 80px 0;
    }

    /* Catalog Mobile */
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-container {
        padding: 0 20px;
    }

    .product-info .product-name {
        font-size: 1.1rem;
    }

    .gallery-nav {
        font-size: 20px;
        padding: 15px;
    }

    .gallery-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .gallery-product-name {
        font-size: 18px;
        top: 20px;
    }
}