/* Mevcut koyu tema değişkenleri */
:root {
    --bg-dark: #1e2024; 
    --bg-gradient: radial-gradient(circle at 50% 0%, #2b2e35 0%, #141518 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #fdfdfd;
    --text-muted: #b0b5bc;
    --header-bg: rgba(30, 32, 36, 0.85);
}

/* Yeni: Aydınlık mod değişkenleri */
[data-theme="light"] {
    --bg-dark: #f0f2f5; 
    --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #e4e7ec 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #1a1d20;
    --text-muted: #5a6066;
    --header-bg: rgba(255, 255, 255, 0.85);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    text-align: center;
    margin: 4rem 5%;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 0;
}

/* Tema geçişlerinin yumuşak olması için */
body, .glass-panel, header {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Header Düzeni */
.header-left {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.8;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.9rem;
}

.lang-btn.active {
    color: var(--text-main);
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0.5rem;
}

main {
    flex: 1; /* İçerik az olsa bile footer'ın en altta kalmasını sağlar */
}

/* Glassmorphism Panelleri */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Üst Menü Tasarımı */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--glass-border);
    background: var(--header-bg); /* Sabit renk yerine temaya duyarlı değişken eklendi */
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    width: 160px; /* 50px'den 160px'e çıkarıp yatay logo için alan açtık */
    height: 50px;
    display: flex;
    align-items: center;
}	

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-muted); /* Sabit beyaz yerine, temaya göre soluklaşan renk eklendi */
}

/* İçerik Bölümleri */
.section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Referans Markalar (Yatay Kutular) */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.brand-box {
    aspect-ratio: 4 / 3; /* Kutuların yatay bir forma sahip olmasını sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.brand-box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px 0 var(--accent-glow);
}

/* Alt Bilgi Tasarımı */
footer {
    padding: 2rem 5% 1rem;
    margin-top: 4rem;
    background: var(--header-bg); /* Sabit renk yerine temaya duyarlı değişken eklendi */
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-top: 0;
    color: var(--text-main);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Galeri (Slider) Tasarımı --- */
.slider-container {
    padding: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-width: 900px; /* Genişliği daraltıp ekranı kaplamasını engelledik */
    max-height: 450px; /* Yüksekliği 600'den 450'ye düşürdük */
    margin: 0 auto; /* Kutuyu tam merkeze hizaladık */
    border-radius: 12px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
    transform: scale(1.3);
}

/* --- İletişim Sayfası Tasarımı --- */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.contact-item {
    margin-bottom: 1.2rem;
}

.contact-item strong {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.map-container {
    padding: 1rem;
}

/* --- Yükleme Ekranı (Preloader) Tasarımı --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    z-index: 9999; /* Her şeyin üstünde görünmesini sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    width: 200px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--text-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animasyonlar */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

/* --- Hamburger Menü (Masaüstünde Gizli) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Tıklanınca Çarpı (X) Olma Animasyonu */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}