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

:root {
    --bg-color: #1a1a1a;
    --primary-text-color: #ffffff;
    --secondary-text-color: #a0a0a0;
    --border-color: #555;
    --accent-color: #4db8ff;
    --header-height: 80px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    font-size: 16px;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

#header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

#header nav ul {
    list-style: none;
    display: flex;
}

#header nav ul li {
    margin-left: 30px;
}

#header nav ul li a {
    font-weight: 500;
    font-size: 0.9rem;
}

/* HERO SLIDER */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1s ease-in-out;
}

.slide.active {
    clip-path: circle(150% at 50% 50%);
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-outline {
    border: 2px solid var(--primary-text-color);
    padding: 10px 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background-color: var(--primary-text-color);
    color: var(--bg-color);
}

.slider-navigation {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.slider-navigation i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.slider-navigation i:hover {
    color: var(--primary-text-color);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--primary-text-color);
}

/* CONTENT SECTIONS */
.content-section {
    padding: 80px 0;
    text-align: center;
}

.content-section .container {
    max-width: 800px;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 auto 30px;
}

.content-section p {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* BİZE ULAŞIN */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    padding: 12px 25px;
    border-radius: 25px;
    margin-bottom: 30px;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.btn-whatsapp i {
    margin-right: 10px;
}

.contact-details p {
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--secondary-text-color);
}

/* INSTAGRAM */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.insta-post {
    position: relative;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    background-size: cover;
    background-position: center;
    display: block;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay p {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.insta-link {
    color: var(--secondary-text-color);
    font-weight: 500;
}
.insta-link i {
    margin-left: 5px;
}

/* FOOTER */
/* ============================
   YENİ FOOTER TASARIMI
   ============================ */
.footer {
    background-color: #111; /* Ana arka plan renginden bir ton daha koyu */
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: var(--primary-text-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-section h4 {
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .contact-info a {
    color: var(--secondary-text-color);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover, .contact-info a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.copyright {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* CHAT ICON */
.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 999;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    #header nav { display: none; } /* Basitlik için mobil menü kaldırıldı, eklenebilir. */
    .instagram-grid { grid-template-columns: 1fr 1fr; }
    .copyright { flex-direction: column; }
}

@media (max-width: 576px) {
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .instagram-grid { grid-template-columns: 1fr; }
    .footer-nav a { display: block; margin-bottom: 10px; }
}

/* ============================
   İÇ SAYFA STİLLERİ
   ============================ */

.logo img {
    max-height: 65px; /* Logonun yüksekliğini ayarlar */
    width: auto;
}

.page-header {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x600/333/fff?text=Tarnova') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-text-color);
    font-weight: 600;
}

.page-content {
    padding: 80px 0;
}

.page-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.page-content .divider {
     width: 60px;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 auto 40px;
}

.page-content p {
    color: var(--secondary-text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: 5px;
}

/* ============================
   FAALİYETLER SAYFASI KARTLARI
   ============================ */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.activity-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-text-color);
}

.activity-card p {
    color: var(--secondary-text-color);
    text-align: center;
    font-size: 1rem;
}

/* ============================
   FAALİYETLER & REFERANSLAR
   ============================ */

.sector-section {
    padding: 40px 0;
}

.sector-section .two-column {
    margin-bottom: 40px;
}

/* REFERANSLAR BÖLÜMÜ */
.references-section {
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    align-items: center;
}

.logo-item {
    background-color: #f0f0f0; /* Logoların koyu temada öne çıkması için açık arka plan */
    padding: 20px;
    height: 90px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) contrast(100%); /* Logoları tek tip göstermek için */
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%); /* Üzerine gelince renkli göster */
}

/* ============================
   DANIŞMANLIK HİZMETLERİ SAYFASI
   ============================ */

.service-block {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block h2 {
    text-align: left;
    margin-bottom: 15px;
}

.service-block h3 {
    color: var(--primary-text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.service-details-list li {
    display: flex;
    align-items: flex-start;
    color: var(--secondary-text-color);
    margin-bottom: 10px;
}

.service-details-list i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 6px;
}

/* ============================
   BİZDEN HABERLER SAYFASI
   ============================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.news-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.4rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}

.news-card p {
    color: var(--secondary-text-color);
    margin-bottom: 25px;
    flex-grow: 1; /* Butonun altta kalmasını sağlar */
}

/* ============================
   İLETİŞİM SAYFASI
   ============================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Bilgi kısmı daha dar, form daha geniş */
    gap: 50px;
}

/* Sol Taraftaki İletişim Bilgileri */
.contact-info-block h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-text-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    width: 30px; /* Hizalama için */
    text-align: center;
}

.contact-info-details h4 {
    font-size: 1.1rem;
    color: var(--primary-text-color);
    margin-bottom: 5px;
}

.contact-info-details p, .contact-info-details a {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Sağ Taraftaki Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-text-color);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-submit {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Harita Bölümü */
.map-section {
    padding-top: 80px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 5px;
}

/* SSS Bölümü */
.faq-section {
    padding-top: 80px;
}
.faq-item {
    background: #2a2a2a;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h4 {
    font-size: 1.2rem;
    font-weight: 500;
}
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 20px 20px;
}
.faq-item.active .faq-answer {
    max-height: 100px; /* Cevabın uzunluğuna göre ayarlayabilirsiniz */
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mobil için Grid yapısını tek sütuna düşür */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* İletişim Formu Onay Kutusu */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* ============================
   MOBİL BUTON DÜZELTMESİ
   ============================ */
@media (max-width: 768px) {
    .btn-outline {
        /* Metnin alt satıra inmesine izin ver */
        white-space: normal;
        
        /* Buton yüksekliğinin içeriğe göre ayarlanmasını sağla */
        height: auto;
        line-height: 1.4;

        /* Daha iyi sığması için dolguyu ve yazı boyutunu biraz küçült */
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
/* ============================
   MOBİL MENÜ (LİSTE GÖSTERME FİNAL)
   ============================ */

/* Hamburger ikonunu masaüstünde gizle */
.hamburger-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002; /* Her zaman en üstte */
    color: var(--primary-text-color);
}

/* 992px ve altındaki ekranlar için */
@media (max-width: 992px) {
    /* MASAÜSTÜ MENÜSÜNÜN LİSTESİNİ GİZLE */
    #header .main-nav > ul {
        display: none !important;
    }

    /* Hamburger ikonunu göster */
    .hamburger-menu {
        display: block !important;
    }

    /* AÇILAN MENÜ PANELİ (SİYAH EKRAN) */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background-color: #1a1a1a !important; 
        z-index: 1001 !important; 
        transition: left 0.4s ease-in-out;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Menü açıldığında paneli göster */
    .main-nav.active {
        left: 0 !important;
    }

    /* 
       =================================================
       FIX
       =================================================
    */
    #header .main-nav.active > ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 30px;
    }

    .main-nav.active ul li a {
        font-size: 1.8rem;
        color: var(--primary-text-color);
    }
    
    /* Menü açıkken hamburger ikonu 'X' olsun */
    .hamburger-menu.active i::before {
        content: "\f00d" !important;
    }
}