@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #FFFFFF;
    --text-color: #111111;
    --accent-color: #E11D48; /* Logodaki Kırmızı */
    --gray-light: #F5F5F7;
    --gray-medium: #86868b;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --font-main: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITIES & BUTTONS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 60px 0 0 0; }

.section-padding-mission { padding: 60px 0; }

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.btn-outline {
    border-color: var(--text-color);
    background: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--text-color);
    color: #fff;
}

/* =========================================
   3. GLOBAL COMPONENTS (Header, Footer, Menu)
   ========================================= */
/* Header */
.header {
    width: 100%;
    height: var(--header-height);
    background: #fff;
    z-index: 999;
    position: relative;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
}

.logo img { height: 80px; }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu ul { display: flex; gap: 30px; }

.nav-link { font-weight: 500; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--accent-color); }

.header.scrolled .nav-link { color: #000; }
.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--accent-color); }

.header-actions { display: flex; gap: 15px; }

/* Hamburger Menu Icon */
.hamburger {
    display: none; /* Desktopta gizli */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Hamburger Animasyonu (X şekli) */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobil/Desktop Yardımcılar */
.desktop-only { display: inline-block; }
.mobile-only { display: none; }

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 60px 0 20px;
    margin-top: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img { margin-bottom: 20px; }
.footer-desc { color: var(--gray-medium); max-width: 300px; font-size: 0.95rem; }
.footer h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-links li, .footer-contact li { margin-bottom: 12px; color: var(--gray-medium); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent-color); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* =========================================
   4. PAGE: HOME (index.html)
   ========================================= */
.page-home .hero {
    height: 100vh; /* Tam ekran */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px; /* Header arkasında kalması için */
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

.hero-content {
    text-align: left;
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    color: #fff;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-subtitle {
    font-weight: 300;
    opacity: 0.9;
    display: block;
    margin-top: 10px;
}

.page-home .mission-label {
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-home .vision-text {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
    color: #111;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

.page-home .parallax-band {
    height: 720px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
@media screen and (max-width: 768px) {
    .page-home .parallax-band {
        background-attachment: inherit;
    }
}

.page-home .parallax-content h2 {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    text-align: center;
    padding: 0 20px;
}

/* =========================================
   5. PAGE: ABOUT (about.html)
   ========================================= */
.page-about .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about .about-label { font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.page-about .about-title { font-size: 3rem; margin-bottom: 30px; line-height: 1.2; }
.page-about .about-text { color: var(--gray-medium); font-size: 1.1rem; margin-bottom: 20px; }
.page-about .about-img { border-radius: 12px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.page-about .stats-section { background-color: var(--gray-light); margin-top: 60px; padding: 60px 0; }
.page-about .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.page-about .stat-number { font-size: 3rem; color: var(--accent-color); font-weight: 700; margin-bottom: 5px; }

/* =========================================
   6. PAGE: PRODUCTS & DETAIL (products.html / p1.html)
   ========================================= */
/* Filter Menu */
.page-products .filter-menu { display: flex; justify-content: center; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.page-products .filter-btn { border: none; background: none; font-family: var(--font-main); font-size: 1.1rem; color: var(--gray-medium); cursor: pointer; padding: 10px 20px; position: relative; }
.page-products .filter-btn:hover, .page-products .filter-btn.active { color: var(--text-color); }
.page-products .filter-btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.page-products .filter-btn.active::after { width: 100%; }

/* Grid */
.page-products .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; margin-bottom: 100px; }
.page-products .product-card { display: block; border-radius: 8px; transition: var(--transition); overflow: hidden; }
.page-products .product-card:hover { transform: translateY(-5px); }

.page-products .product-image-wrapper { width: 100%; aspect-ratio: 1 / 1; background-color: #f9f9f9; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; }
.page-products .product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.page-products .product-card:hover .product-image-wrapper img { transform: scale(1.08); }
.page-products .product-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: var(--text-color); }
.page-products .product-info { padding: 0 0 10px 20px; background-color: #f9f9f9; }
.page-products .product-cat { font-size: 0.9rem; color: var(--gray-medium); text-transform: uppercase; }
.mt-5 {margin-top: 5px}
/* Detail Page */
.page-product-detail .detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.page-product-detail .main-image-wrapper { width: 100%; aspect-ratio: 1 / 1; background-color: #f9f9f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 20px; margin-bottom: 20px; border: 1px solid #eee; }
.page-product-detail .main-image-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }
.page-product-detail .thumbnail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.page-product-detail .thumb-link { aspect-ratio: 1 / 1; border: 1px solid #eee; border-radius: 8px; padding: 5px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.page-product-detail .thumb-link:hover { border-color: var(--accent-color); }
.page-product-detail .thumb-link img { max-width: 100%; max-height: 100%; object-fit: contain; }

.page-product-detail .detail-info { position: sticky; top: 120px; }
.page-product-detail .detail-title { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-color); }
.page-product-detail .detail-desc { color: var(--gray-medium); font-size: 1.1rem; margin-bottom: 40px; }
.page-product-detail .spec-list { border-top: 1px solid #eee; }
.page-product-detail .spec-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
.page-product-detail .spec-icon { font-size: 1.5rem; margin-right: 20px; width: 30px; text-align: center; }
.page-product-detail .spec-value { font-size: 1.1rem; font-weight: 600; color: var(--text-color); }

/* =========================================
   7. PAGE: CERTIFICATES & CONTACT
   ========================================= */
/* Certificates */
.page-certificates .page-intro { max-width: 800px; margin: 0 auto 80px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px; text-align: center; margin-bottom: 80px; }
.cert-card { display: block; border: 1px solid #eee; border-radius: 12px; padding: 30px 20px; transition: var(--transition); background: #fff; }
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.cert-thumb { width: 100%; height: 200px; object-fit: contain; margin-bottom: 20px; filter: grayscale(100%); opacity: 0.8; transition: var(--transition); }
.cert-card:hover .cert-thumb { filter: grayscale(0%); opacity: 1; }

/* Contact */
.page-contact .contact-wrapper { position: relative; width: 100%; margin-top: 0; }
.page-contact .map-container { width: 100%; height: 650px; background: #f0f0f0; }
.page-contact .map-frame { width: 100%; height: 100%; border: 0; }
.page-contact .contact-card-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; max-width: 1400px; margin: 0 auto; right: 0; }
.page-contact .contact-card { pointer-events: auto; position: absolute; top: 50%; left: 5%; transform: translateY(-50%); background: #fff; padding: 50px; width: 400px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); border-radius: 8px; z-index: 10; }
.page-contact .contact-title { margin-bottom: 30px; font-size: 2rem; }
.page-contact .contact-label { font-size: 0.85rem; font-weight: 700; color: var(--gray-medium); margin-bottom: 5px; }
.page-contact .contact-value { font-size: 1.1rem; font-weight: 600; }

/* =========================================
   8. ANIMATIONS & RESPONSIVE (MEDIA QUERIES)
   ========================================= */
/* Fade In Animation Classes */
.fade-in-hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-visible { opacity: 1; transform: translateY(0); }

/* --- TABLET ve ALTI (Max Width: 992px) --- */
@media (max-width: 992px) {
    /* Genel */
    .footer-content { grid-template-columns: 1fr 1fr; }

    /* Hakkımızda */
    .page-about .about-grid { grid-template-columns: 1fr; }

    /* Ürün Detay */
    .page-product-detail .detail-layout { grid-template-columns: 1fr; margin-top: 80px; }
    .page-product-detail .detail-info { position: relative; top: 0; }

    /* İletişim */
    .page-contact .map-container { height: 400px; }
    .page-contact .contact-card-container { position: relative; height: auto; pointer-events: auto; padding: 0; }
    .page-contact .contact-card { position: relative; top: 0; left: 0; transform: none; width: 100%; max-width: 100%; box-shadow: none; border-radius: 0; padding: 40px 24px; border-top: 1px solid #eee; }
}

/* --- TELEFON ve ALTI (Max Width: 768px) --- */
@media (max-width: 768px) {
    /* Header & Mobil Menü */
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease;
        padding: 20px;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; }

    /* Hero */
    .hero-title { font-size: 2.5rem; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; }

    /* Pages */
    .page-about .about-title { font-size: 2rem; }
    .page-product-detail .detail-title { font-size: 2rem; }
    .page-certificates .page-intro { margin-bottom: 40px; }

    /* Parallax Fix for iOS */
    @media (hover: none) {
        .parallax-band { background-attachment: scroll; }
    }
}

/* Kategori*/
/* Kategori Kartları */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.category-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.category-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.category-count {
    color: var(--gray-medium);
    font-size: 0.9rem;
}
