/* --- GENEL AYARLAR VE RENK DEĞİŞKENLERİ --- */
:root {
    /* Varsayılan AÇIK TEMA Renkleri */
    --bg-body: #ffffff;           /* Ana arka plan */
    --bg-section-alt: #f8f9fa;    /* Alternatif bölüm arka planı */
    --bg-card: #ffffff;           /* Kart arka planları */
    --text-main: #333333;         /* Ana yazı rengi */
    --text-muted: #666666;        /* İkincil yazı rengi */
    
    /* Header renkleri sabit */
    --header-bg: #0a2342;         
    --header-text: #ffffff;       

    --accent-blue: #007bff;       /* Vurgu mavisi */
    --accent-orange: #ff6600;     /* Vurgu turuncusu */
    --border-color: #e0e0e0;       /* Çerçeve rengi */
    --form-bg: #ffffff;           /* Form arka planı */
    --form-text: #333333;         /* Form yazı rengi */
    --footer-bg: #020a14;         /* Footer arka planı */

    /* Yeni İletişim Renkleri */
    --btn-call-bg: #28a745;       /* Arama Yeşili */
    --btn-wp-bg: #25D366;         /* WhatsApp Yeşili */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* KARANLIK TEMA RENKLERİ */
html.dark-mode {
    --bg-body: #121212;           /* Koyu ana plan */
    --bg-section-alt: #1a1a2e;    /* Koyu alternatif plan */
    --bg-card: #1e1e2f;           /* Koyu kart zemini */
    --text-main: #e0e0e0;         /* Açık yazı rengi */
    --text-muted: #b0b0b0;        /* Soluk açık yazı */
    --accent-blue: #4dadff;       /* Daha parlak mavi */
    --border-color: #333333;       /* Koyu çerçeve */
    --form-bg: #2a2a3d;           /* Koyu form zemini */
    --form-text: #e0e0e0;         /* Açık form yazısı */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body); line-height: 1.6;
    color: var(--text-main); background-color: var(--bg-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--header-bg); }
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3, html.dark-mode h4 { color: var(--text-main); }
.header h1, .header h2, .header h3, .contact-section h1, .contact-section h2, .contact-section h3 { color: var(--header-text) !important; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 60%; height: 3px; background-color: var(--accent-orange); margin: 10px auto 0; }
.text-center { text-align: center; }

/* --- BUTONLAR --- */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 5px;
    font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background-color: var(--accent-orange); color: var(--header-text); }
.btn-primary:hover { background-color: #e65c00; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2); }
.btn-secondary { background-color: transparent; border: 2px solid var(--header-text); color: var(--header-text); }
.btn-secondary:hover { background-color: var(--header-text); color: var(--header-bg); }
.btn-submit { background-color: var(--header-bg); color: var(--header-text); font-size: 1.1rem; }
html.dark-mode .btn-submit { background-color: var(--accent-blue); }
.btn-submit:hover { background-color: var(--accent-blue); }
.btn-block { display: block; width: 100%; }
.btn-cta { background-color: var(--accent-orange); padding: 10px 20px; border-radius: 4px; }
.btn-cta:hover { background-color: #e65c00 !important; color: var(--header-text) !important; }

/* --- HEADER --- */
.header {
    background-color: var(--header-bg); color: var(--header-text);
    padding: 1rem 0; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2); border-bottom: 2px solid var(--accent-blue);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.header-right { display: flex; align-items: center; }
.logo-container { display: flex; align-items: center; }
.logo-gtb-text { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--accent-blue); margin-right: 15px; letter-spacing: 1px; }
.logo-full-text { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--header-text); letter-spacing: 0.5px; white-space: nowrap; }
.nav-list { display: flex; align-items: center; }
.nav-link { margin-left: 30px; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-link:hover { color: var(--accent-blue); }
.theme-btn-header { background: none; border: none; cursor: pointer; font-size: 1.8rem; margin-left: 25px; padding: 5px; transition: transform 0.3s ease; line-height: 1; color: var(--header-text); }
.theme-btn-header:hover { transform: rotate(20deg) scale(1.1); color: var(--accent-blue); }
.hamburger-menu { display: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background-color: var(--header-text); margin: 5px 0; transition: var(--transition); }
.close-menu-btn { display: none; position: absolute; top: 20px; right: 25px; font-size: 2.5rem; color: var(--header-text); cursor: pointer; z-index: 1002; }

/* --- HERO BÖLÜMÜ --- */
.hero-section { height: 85vh; min-height: 550px; display: flex; align-items: center; position: relative; color: var(--header-text); overflow: hidden; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.7)); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--header-text); font-weight: 800; }
.highlight { color: var(--accent-blue); }
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; font-weight: 400; color: var(--header-text) !important; }
.hero-buttons .btn { margin-right: 15px; margin-bottom: 10px; padding: 15px 40px; }

/* --- HİZMETLER BÖLÜMÜ (YENİ 3D KARTLAR) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Kartın Dış Çerçevesi (Perspektif için) */
.service-card-container {
    perspective: 1000px;
    height: 320px; /* Kart yüksekliği */
}

/* Kartın Kendisi (Dönecek olan parça) */
.service-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Hover olunca döndür */
.service-card-container:hover .service-card {
    transform: rotateY(180deg);
}

/* Ön ve Arka Yüzlerin Ortak Özellikleri */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari için */
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

/* Ön Yüz Stili */
.card-front {
    background-color: var(--bg-card);
}

html.dark-mode .card-front {
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

/* Arka Yüz Stili */
.card-back {
    background-color: var(--accent-blue);
    color: #ffffff;
    transform: rotateY(180deg);
    box-shadow: 0 15px 35px rgba(0,123,255,0.3);
}

html.dark-mode .card-back {
    background-color: var(--accent-blue); /* Karanlık modda da mavi kalsın ki okunsun */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.icon-box { font-size: 3rem; margin-bottom: 20px; color: var(--accent-blue); }
.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.card-back p { font-size: 1.1rem; font-weight: 500; }


/* --- HAKKIMIZDA BÖLÜMÜ --- */
.section-alt-bg { background-color: var(--bg-section-alt); }
.about-container { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.lead { font-size: 1.2rem; font-weight: 600; color: var(--accent-blue); margin-bottom: 20px; }
.about-list { margin-top: 30px; }
.about-list li { margin-bottom: 15px; font-weight: 600; display: flex; align-items: center; }

/* --- İLETİŞİM BÖLÜMÜ --- */
.contact-section { background-color: var(--header-bg); color: var(--header-text); position: relative; background-image: linear-gradient(to bottom, rgba(10, 35, 66, 1), rgba(2, 10, 20, 1)); }
.contact-section h2 { color: var(--header-text); }
.contact-section p { opacity: 0.9; color: var(--header-text) !important; font-size: 1.1rem; }
.contact-grid { display: flex; gap: 60px; margin-top: 60px; position: relative; z-index: 2; align-items: flex-start; }
.contact-info { flex: 1; padding-right: 20px; }
.info-item { margin-bottom: 35px; padding-bottom: 35px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-item h3 { color: var(--accent-blue); margin-bottom: 20px; font-size: 1.6rem; letter-spacing: 0.5px; }
.info-item p, .working-hours-list li { font-size: 1.15rem; line-height: 1.8; }
.address-link-styled { font-weight: 700; color: var(--accent-blue) !important; border-bottom: 1px dotted var(--accent-blue); transition: all 0.3s ease; }
.address-link-styled:hover { color: var(--accent-orange) !important; border-bottom-color: var(--accent-orange); }
.contact-direct-links .direct-link {
    display: flex; align-items: center; padding: 15px 20px; 
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px; text-decoration: none; color: var(--header-text);
    font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.direct-link .icon { font-size: 1.4rem; margin-right: 15px; }
.direct-link:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); color: #ffffff; }
.link-call:hover { background-color: var(--btn-call-bg); border-color: var(--btn-call-bg); }
.link-wp:hover { background-color: var(--btn-wp-bg); border-color: var(--btn-wp-bg); }
.link-mail:hover { background-color: var(--accent-orange); border-color: var(--accent-orange); }
.working-hours-list li { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.15); }
.working-hours-list .day { font-weight: 700; color: var(--accent-blue); }
.contact-form-container {
    flex: 1.3; background: var(--form-bg); padding: 50px; border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4); color: var(--form-text);
    border: 1px solid rgba(255,255,255,0.05); position: relative; top: -20px;
}
.corporate-form .form-group { margin-bottom: 30px; }
.form-row { display: flex; gap: 25px; }
.form-row .form-group { flex: 1; }
.corporate-form label { display: block; margin-bottom: 10px; font-weight: 700; font-family: var(--font-heading); font-size: 0.95rem; color: var(--form-text); letter-spacing: 0.5px; }
.corporate-form input, .corporate-form select, .corporate-form textarea {
    width: 100%; padding: 15px 20px; border: 2px solid var(--border-color); border-radius: 8px;
    font-family: var(--font-body); font-size: 1.05rem; transition: var(--transition);
    background-color: var(--bg-body); color: var(--text-main);
}
.corporate-form input:focus, .corporate-form select:focus, .corporate-form textarea:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 15px rgba(0, 123, 255, 0.2); }
.corporate-form select { appearance: none; cursor: pointer; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23007bff" d="M7 10l5 5 5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 20px center; background-color: var(--bg-body); }
.btn-submit { font-size: 1.2rem; padding: 15px 30px; }

/* --- FOOTER --- */
.footer { background-color: var(--footer-bg); color: var(--header-text); padding: 30px 0; text-align: center; font-size: 0.9rem; opacity: 0.8; }

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
    .header-content { flex-direction: row; justify-content: space-between; align-items: center; }
    .hamburger-menu { display: block; z-index: 1001; }
    .header-right {
        position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 300px;
        background-color: var(--header-bg); padding: 60px 20px; flex-direction: column;
        align-items: flex-start; justify-content: flex-start; z-index: 1000;
        transform: translateX(100%); transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    .header-right.nav-active { transform: translateX(0%); }
    .close-menu-btn { display: block; }
    .nav { width: 100%; margin-top: 0; }
    .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
    .nav-list li { width: 100%; text-align: left; }
    .nav-link { display: block; margin: 0; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-list li:last-child { margin-top: 20px; border-bottom: none; }
    .btn-cta { display: block; width: 100%; text-align: center; padding: 12px 30px; }
    .theme-btn-header { margin-left: 0; margin-top: 30px; font-size: 2rem; align-self: center; }
    .logo-gtb-text { font-size: 1.6rem; } .logo-full-text { font-size: 0.9rem; }
    .hero-content h1 { font-size: 2.2rem; } .hero-buttons .btn { width: 100%; margin-right: 0; }
    .hero-section { height: auto; padding: 150px 0 80px 0; }
    .about-container, .contact-grid, .form-row { flex-direction: column; gap: 30px; }
    .about-image { order: -1; }
    .contact-grid { gap: 70px; } .contact-info { padding-right: 0; text-align: center; }
    .info-item h3 { justify-content: center; display: flex; }
    .contact-form-container { top: 0; padding: 30px; }
    .direct-link { padding: 12px 15px; font-size: 1rem; width: 100%; }
}