/* --- VETRA MAKİNA - FINAL MASTER CSS (TÜM SAYFALAR DAHİL) --- */

:root {
    /* Renk Paleti */
    --dark: #0f172a;       
    --darker: #020617;     
    --accent: #3b82f6;     
    --steel: #64748b;      
    --white: #ffffff;
    
    /* Boyutlar */
    --header-height: 90px;
    
    /* Z-Index Katman Yönetimi */
    --z-hero: 1;
    --z-hero-active: 2;
    --z-hero-content: 10;
    --z-slider-arrow: 15;
    --z-highlight: 20;
    --z-dropdown: 999;
    --z-header: 1000;
    --z-mobile-menu: 1005;
}

/* Temel Sıfırlama */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Roboto', sans-serif; 
    background: #f8fafc; 
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

/* Erişilebilirlik */
a:focus-visible, button:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
}

/* =========================================
   RESİM OTOMATİK FİT KURALLARI (YENİ)
   ========================================= */
/* Sitenin her yerindeki ana resimlerin alana tam sığması için */
.hero-img, .pair-img, .collage-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Geniş ekran formatı */
    object-fit: cover;    /* Alanı doldur, taşanları kırp */
    object-position: center;
    display: block;
    border-radius: 12px;
}
.about-img {
    width: 100%;           /* Genişlik her zaman bulunduğu kutunun %100'ü olsun */
    height: auto;          /* Boyu, genişliğe göre orantılı olarak kendi oluşsun (ZORLAMA YAPMA) */
    max-width: 100%;       /* Ekrandan taşmayı kesinlikle engelle */
    display: block;        /* Resmin altında kalan istenmeyen boşluğu siler */
    border-radius: 12px;   /* Köşeleri senin tasarımına uygun yuvarlar */
    object-fit: contain;   /* Resmin hiçbir parçasını kırpma, tamamını göster */
}

/* Mobil için özel dokunuş */
@media (max-width: 768px) {
    .about-img {
        margin-bottom: 20px; /* Mobilde altındaki yazıya yapışmasın */
    }
}


/* =========================================
   1. HEADER & NAV (MASAÜSTÜ VARSAYILAN)
   ========================================= */
header {
    background: var(--dark);
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-header);
    border-bottom: 4px solid var(--accent);
    display: flex;
    align-items: center;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px; /* Logo ve yazı arasındaki mesafe */
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Masaüstü için ideal yükseklik */
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap; /* Yazının alt satıra kaymasını engeller */
}

.logo-text span {
    color: var(--accent); /* MAKİNA kelimesi vurgu renginde */
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .logo-img {
        height: 30px; /* Mobilde daha kibar dursun */
    }
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Masaüstü Menü */
.nav-menu { 
    display: flex; 
    list-style: none; 
    align-items: center; 
    margin: 0;
    gap: 15px;
}

.nav-menu li { position: relative; }

.nav-menu li > a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.nav-menu li > a:hover { color: var(--accent); }

/* Hamburger (Varsayılan Gizli) */
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    transition: all 0.3s ease-in-out; background-color: white;
}

/* Dropdown (Masaüstü) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-top: 3px solid var(--accent);
    padding: 10px 0;
    z-index: var(--z-dropdown);
}

.dropdown-content a {
    color: #cbd5e1;
    padding: 15px 20px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    justify-content: flex-start;
}
.dropdown-content a:hover { background: rgba(59, 130, 246, 0.1); color: white; }

/* Masaüstü Hover ile Açılma */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content { 
        display: block; 
        animation: fadeInUp 0.3s ease; 
    }
    
    .lang-item-desktop {
        margin-left: 15px;
        padding-left: 20px;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    .lang-item-desktop .dropbtn {
        border: 1px solid rgba(255, 255, 255, 0.2);
        background-color: rgba(255, 255, 255, 0.05); 
        padding: 8px 15px !important;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    .lang-item-desktop .dropbtn:hover {
        border-color: var(--accent);
        color: var(--accent) !important;
    }
    .lang-content { right: 0; left: auto; min-width: 160px; }
}

.mobile-lang-wrapper { display: none; }


/* =========================================
   2. HERO SLIDER (ANASAYFA)
   ========================================= */
#hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    margin-top: var(--header-height);
    font-family: 'Roboto', sans-serif;
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.5s ease-in-out;
    z-index: var(--z-hero);
}
.hero-slide.active { opacity: 1; z-index: var(--z-hero-active); }
.hero-content-wrapper { position: relative; z-index: var(--z-hero-content); }
.hero-text-box { max-width: 800px; text-align: left; }

#hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1; margin-bottom: 25px;
    font-weight: 700; text-transform: uppercase; color: #ffffff; letter-spacing: 1px;
}
.hero-desc {
    font-size: 1.2rem; line-height: 1.8; color: #94a3b8;
    margin-bottom: 40px; max-width: 650px; font-weight: 300;
}
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.btn-primary {
    background-color: #0ea5e9; color: white; padding: 18px 45px;
    text-decoration: none; font-weight: bold; border-radius: 4px;
    font-family: 'Orbitron', sans-serif; font-size: 0.85rem; transition: 0.3s;
    display: flex; align-items: center; gap: 12px; text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}
.btn-secondary {
    border: 1px solid rgba(255,255,255,0.4); color: white; padding: 17px 45px;
    text-decoration: none; font-weight: bold; border-radius: 4px;
    font-family: 'Orbitron', sans-serif; font-size: 0.85rem; transition: 0.3s;
    backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; text-transform: uppercase;
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    opacity: 0.5; font-size: 2rem; cursor: pointer;
    z-index: var(--z-slider-arrow); color: white; padding: 20px; transition: 0.3s;
}
.slider-arrow:hover { opacity: 1; color: var(--accent); }
.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }


/* =========================================
   3. İÇERİK KARTLARI (HIGHLIGHTS)
   ========================================= */
.sector-tag {
    display: inline-block; padding: 5px 15px;
    background: rgba(59, 130, 246, 0.2); border-left: 3px solid var(--accent);
    color: #fff; font-family: 'Orbitron'; font-size: 0.75rem;
    margin-bottom: 15px; letter-spacing: 1px;
}
.highlight-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; 
    margin-top: -50px; 
    position: relative; 
    z-index: var(--z-highlight);
}
.highlight-card {
    background: var(--dark); border: 1px solid rgba(255,255,255,0.1);
    padding: 40px; transition: 0.4s; border-bottom: 4px solid transparent; border-radius: 8px;
}
.highlight-card:hover {
    border-bottom: 4px solid var(--accent); transform: translateY(-10px); background: #1e293b;
}


/* =========================================
   4. GENEL BÖLÜMLER (SEKTÖRLER, HİZMETLER)
   ========================================= */
.section-title { text-align: center; padding: 60px 0 40px; }
.section-title h2 { font-family: 'Orbitron'; color: var(--dark); font-size: 2rem; margin-bottom: 15px; }
.section-title .line { width: 70px; height: 4px; background: var(--accent); margin: 0 auto; }

.sector-icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.sector-item {
    text-align: center; padding: 30px; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 8px; transition: 0.3s;
}
.sector-item:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.sector-item i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

.services-section {
    background: #fff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}
.service-box {
    padding: 60px 30px; border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center; transition: 0.4s;
}
.service-box:hover { background: rgba(255,255,255,0.02); }
.icon-box {
    width: 50px; height: 50px; background: rgba(14, 165, 233, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; border: 1px solid rgba(14, 165, 233, 0.3);
}
.icon-box i { color: #0ea5e9; font-size: 1.4rem; }
.service-box h5 {
    font-family: 'Orbitron'; font-size: 0.85rem; color: #ffffff; letter-spacing: 1.5px; margin-bottom: 12px;
}
.service-box p {
    font-family: 'Roboto'; font-size: 0.85rem; color: #94a3b8; line-height: 1.6; font-weight: 300;
}


/* =========================================
   5. İÇ SAYFALAR: ORTAK STİLLER
   ========================================= */

/* Reveal Animasyonları */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); visibility: hidden;
}
.reveal.active { opacity: 1; transform: translateY(0); visibility: visible; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Sabit Header İçin Üst Boşluk */
.page-content {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
}

/* Genel İç Sayfa Başlığı */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .line { width: 70px; height: 5px; background: var(--accent); margin: 0 auto 20px; }
.section-header h1 { font-family: 'Orbitron'; font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); }


/* =========================================
   6. İÇ SAYFALAR: HAKKIMIZDA
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%; /* Dış kutunun genişliğini sabitle */
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütuna düş */
        gap: 20px;
    }
}
.about-title h1 {
    font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--dark); line-height: 1.1; margin-bottom: 25px;
}
.about-title .accent { color: var(--accent); }
.about-title .line { width: 70px; height: 5px; background: var(--accent); margin-bottom: 25px; }

.about-text {
    font-family: 'Roboto', sans-serif; color: var(--steel);
    line-height: 1.8; font-size: 1.1rem;
}
.about-text p { margin-bottom: 20px; }

/* İstatistik Kartları */
.stats-container {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.stat-card {
    background: #fff; padding: 40px; text-align: center;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 8px; transition: 0.3s ease;
}
.stat-card:hover { transform: translateY(-10px); background: var(--dark); }
.stat-card:hover h3, .stat-card:hover p { color: #fff; }
.stat-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.stat-card h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 10px; font-size: 1.2rem; }


/* =========================================
   7. İÇ SAYFALAR: VİZYON & MİSYON
   ========================================= */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.vm-card {
    background: #fff; padding: 50px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent); height: 100%;
}
.vm-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 25px; }
.vm-card h2 { font-family: 'Orbitron'; margin-bottom: 20px; color: var(--dark); }
.vm-card p { color: var(--steel); line-height: 1.8; font-size: 1.05rem; }

.values-section {
    background: var(--dark); padding: 80px 0; border-radius: 12px;
    color: white; margin-top: 40px;
}
.values-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; text-align: center;
}
.value-item i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.value-item h4 { font-family: 'Orbitron'; margin-bottom: 10px; }


/* =========================================
   8. İÇ SAYFALAR: POLİTİKALAR
   ========================================= */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.policy-card {
    background: #fff; padding: 40px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent); transition: 0.3s ease;
}
.policy-card:hover { transform: translateY(-5px); }

.policy-card i.main-icon {
    font-size: 2.5rem; color: var(--accent); margin-bottom: 25px; display: block;
}
.policy-card h3 {
    font-family: 'Orbitron', sans-serif; margin-bottom: 20px;
    color: var(--dark); font-size: 1.3rem;
}

.policy-list { list-style: none; padding: 0; }
.policy-list li {
    position: relative; padding-left: 25px; margin-bottom: 12px;
    color: var(--steel); line-height: 1.6; font-size: 0.95rem;
}
.policy-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: #10b981;
}

/* =========================================
   YENİ: TALAŞLI İMALAT ÖZEL
   ========================================= */
.machining-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    align-items: center;
}
.image-pair-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.material-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    font-family: 'Orbitron'; font-size: 0.75rem; color: var(--dark);
}
.material-item {
    padding: 18px; background: #ffffff;
    border-left: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================================
   9. FOOTER (MİNİMAL)
   ========================================= */
.simple-footer {
    background-color: var(--dark); padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center; color: #cbd5e1;
}
.footer-content {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Footer genelde ortalı olduğu için */
    gap: 0px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px; /* Header'dakinden biraz daha küçük, daha zarif */
    width: auto;
}

.footer-logo-text {
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-logo-text span {
    color: var(--accent);
}

/* Mobil için footer logo ayarı */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 30px;
    }
    .footer-logo-text {
        font-size: 1.1rem;
    }
}
.footer-logo span { color: var(--accent); }
.footer-address {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; color: #94a3b8;
    background: rgba(255,255,255,0.03); padding: 10px 20px;
    border-radius: 30px; border: 1px solid rgba(255,255,255,0.05);
}
.footer-address i { color: var(--accent); font-size: 1rem; }
.copyright { font-size: 0.8rem; color: #475569; margin-top: 10px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   10. MOBİL UYUMLULUK (MAX-WIDTH: 768px)
   ========================================= */
@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .logo { font-size: 1.3rem; letter-spacing: 0px; }
    
    #hero { height: auto; min-height: 85vh; padding-bottom: 50px; }
    .hero-content-wrapper { margin-top: 30px; }

    .hamburger { display: block; z-index: 1002; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: var(--header-height);
        flex-direction: column; background-color: var(--dark);
        width: 100%; height: calc(100vh - var(--header-height));
        text-align: left; transition: 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        align-items: flex-start; padding: 20px 0; overflow-y: auto;
        z-index: var(--z-mobile-menu);
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; margin: 0; }
    .nav-menu li > a {
        padding: 20px 30px; width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1rem; justify-content: space-between;
    }

    .dropdown-content { 
        position: static; display: none; 
        background-color: #1e293b; box-shadow: none; border-top: none; 
        width: 100%; padding-left: 20px; animation: none;
    }
    .dropdown.active .dropdown-content { display: block; }

    .lang-item-desktop { display: none !important; }

    .mobile-lang-wrapper {
        display: flex; position: relative;
        margin-left: auto; margin-right: 20px; align-items: center;
    }
    .mobile-current-lang {
        color: var(--accent); font-weight: bold; font-size: 0.85rem; cursor: pointer;
        padding: 6px 12px; background: rgba(255, 255, 255, 0.1); 
        border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 4px;
        display: flex; align-items: center; gap: 5px; transition: 0.3s;
    }
    .mobile-lang-dropdown {
        display: none; position: absolute; top: 40px; right: 0; 
        background: var(--dark); border: 1px solid var(--accent);
        border-radius: 4px; min-width: 90px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); z-index: 1005;
    }
    .mobile-lang-dropdown a {
        display: flex; align-items: center; gap: 8px; padding: 10px; color: white;
        text-decoration: none; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* MOBİL RESİM OTOMATİK FİT GÜNCELLEMESİ (YENİ) */
    .hero-img, .pair-img, .collage-img {
        aspect-ratio: 4 / 3; /* Mobilde daha karemsi ve büyük görünür */
        margin-bottom: 15px;
    }
    
    .image-pair-grid, .material-list {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    #hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

    .highlight-grid {
        margin-top: 0 !important; gap: 15px; padding-top: 10px;
    }
    .highlight-card {
        padding: 25px 20px !important; 
        display: flex; flex-direction: column; align-items: center; text-align: center;
    }

    .simple-footer { padding: 40px 0; }
    .footer-address { 
        flex-direction: column; text-align: center;
        gap: 5px; font-size: 0.9rem; border-radius: 12px;
    }

    .about-grid, .vision-mission-grid, .policy-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
}

/* --- YUKARI ÇIK BUTONU --- */
#backToTop {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: var(--accent); /* Logonuzdaki mavi/sarı renk */
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background-color: var(--dark); /* Hover durumunda koyu renk */
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* --- FORM ELEMANLARI (GENEL) --- */
.contact-form-wrapper { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Orbitron'; font-size: 0.75rem; margin-bottom: 8px; color: var(--steel); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: 'Roboto'; }
.submit-btn { width: 100%; background: var(--accent); color: white; border: none; padding: 15px; border-radius: 8px; font-family: 'Orbitron'; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--dark); transform: translateY(-2px); }