/*
 * KST YAPI - style.css
 * Renkler, Fontlar, Düzen ve Responsive Tasarım
 */

/* 1. RENK PALETİ VE TEMEL AYARLAR */
:root {
    --primary-color: #E65100; /* Endüstriyel Turuncu */
    --secondary-color: #263238; /* Koyu Çelik Grisi/Antrasit (bg-dark rengi) */
    --accent-color: #FF5722; /* Vurgu için daha canlı turuncu */
    --whatsapp-color: #25D366; /* WhatsApp yeşili */
    --text-color-light: #f4f4f4;
    --text-color-dark: #333;
    --bg-light: #ffffff;
    --bg-dark: #2c3e50; /* bg-dark için alternatif */
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    line-height: 1.2;
    margin-bottom: 10px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* 2. HEADER VE NAVİGASYON */
#header {
    background: var(--secondary-color);
    color: var(--text-color-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Öğeleri dikeyde ortalar */
}

.logo {
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--primary-color);
}

.header-logo {
    height: 40px; 
    width: auto;
    vertical-align: middle;
}

#main-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem; 
    font-family: 'Oswald', sans-serif; 
    margin-left: 30px; 
    padding-bottom: 5px; 
    border-bottom: 2px solid transparent; 
    transition: color 0.3s, border-bottom 0.3s ease-in-out; 
}

#main-nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color); 
}

.mobile-menu-btn {
    display: none; /* Masaüstünde gizle */
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 3. SCROLL ANİMASYONLARI (JS ile entegre) */

/* Animasyon Başlangıç Durumu */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.3s;
}
.animate-on-scroll.delay-2 {
    transition-delay: 0.6s;
}
.animate-on-scroll.delay-3 {
    transition-delay: 0.9s; /* Yeni buton için gecikme */
}
.animate-on-scroll.delay-4 {
    transition-delay: 1.2s; /* WhatsApp butonu için gecikme */
}

/* Animasyon Bitiş Durumu (JS tarafından eklenir) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. SECTIONS (BÖLÜMLER) VE GENEL STİLLER */
.content-section {
    padding: 100px 0;
    min-height: 80vh; 
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.text-light {
    color: var(--text-color-light);
}

.text-center {
    text-align: center;
}

/* Buton Stili */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Buton içeriğinin tek satırda kalmasını sağlar */
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-color);
    transform: scale(1.03);
}

/* Yeni Buton Renkleri */
.btn-secondary {
    background: var(--secondary-color);
}
.btn-secondary:hover {
    background: #37474F; /* Koyu grinin biraz açığı */
}

.btn-whatsapp {
    background: var(--whatsapp-color);
}
.btn-whatsapp:hover {
    background: #1DA851; /* WhatsApp yeşilinin koyusu */
}

.btn i {
    margin-right: 8px;
}

/* 5. HOME SECTION (Hero) */
#home {
    background: url('images/IMG-20251216-WA0004.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 0;
    color: var(--text-color-light);
}

/* Hero Butonlarını Yan Yana Hizalama */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Butonlar arası boşluk */
    margin-top: 30px; /* Üstteki keşfet butonundan boşluk */
}

/* Karartma efekti (Görseli daha okunur yapmak için) */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

#home .container {
    position: relative;
    z-index: 2;
}

#home h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

#home p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 6. ABOUT SECTION */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.about-content p {
    flex: 2;
    font-size: 1.1rem;
}

.about-content ul {
    flex: 1;
    list-style: none;
    font-size: 1rem;
}

.about-content ul li {
    margin-bottom: 15px;
}

.about-content ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* 7. SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background: rgba(255, 255, 255, 0.05); /* Koyu arka planda hafif şeffaf kutular */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.service-item:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.service-item:hover .service-icon {
    color: var(--text-color-light);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* 8. PORTFOLIO SECTION */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 300px; /* Sabit yükseklik */
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
}

/* 9. WHY US SECTION */
.bg-secondary {
    background-color: var(--primary-color); /* Neden Bizi Seçmelisiniz bölümünü Turuncu yap */
    color: var(--text-color-light);
}

.whyus-content {
    text-align: center;
}

.whyus-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.feature-box {
    display: inline-block;
    width: 45%;
    margin: 0 2%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.feature-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

/* 10. CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h3, .contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info p {
    margin-bottom: 15px;
}

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

.map-placeholder {
    background: #e0e0e0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* HARİTA IFRAME STİLİ */
.map-placeholder iframe {
    width: 100%;
    height: 400px; /* Haritanın sabit yüksekliği */
}

/* 11. FOOTER */
footer {
    background: var(--secondary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 30px 0;
}

/* =======================================
   12. MOBİL UYUMLULUK (Responsive Design)
   ======================================= */
@media (max-width: 768px) {
    
    /* Header ve Navigasyon */
    #main-nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; 
        left: 0;
        background: var(--secondary-color);
        padding: 10px 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    }

    #main-nav a {
        margin: 10px 20px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-family: 'Oswald', sans-serif; /* Mobil menü fontu da güncellendi */
    }

    .mobile-menu-btn {
        display: block; 
    }

    /* JS ile mobil menü açıldığında */
    #header.menu-open #main-nav {
        display: flex;
    }
    
    /* Ana Sayfa (Hero) */
    #home h1 {
        font-size: 2.5rem;
    }
    
    #home p {
        font-size: 1.1rem;
    }

    /* Hero Butonları Mobil Ayarı */
    .hero-buttons {
        flex-direction: column; /* Mobil cihazlarda butonlar alt alta */
        gap: 10px;
    }

    /* Bölüm Başlıkları */
    .section-title {
        font-size: 2rem;
    }

    /* Genel Bölümler */
    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* İletişim Bölümü */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Neden Biz */
    .feature-box {
        width: 90%;
        margin: 20px auto;
    }

    /* CONTACT BÖLÜMÜ GÜNCELLEMELERİ (Form Kaldırıldığı İçin) */

    /* İletişim grid yapısını tek kolona çevir */
    .contact-grid.full-width-contact {
        grid-template-columns: 1fr;
        max-width: 800px; 
        margin: auto;
    }

    /* Bilgi kutusunun tam genişlik kaplamasını sağla */
    .contact-info.full-info {
        text-align: center;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #f9f9f9;
    }

    .contact-info.full-info p {
        font-size: 1.1rem;
    }

    .info-note {
        margin: 20px 0;
        padding: 10px;
        background: #e0f2f1;
        border: 1px solid #009688;
        border-radius: 5px;
        color: #00796b;
        font-weight: 600;
    }
}