/* Genel Ayarlar ve Değişkenler */
:root {
    --primary-color: #1A5B9C; /* Duru Mavi */
    --primary-dark: #12467a;  /* Daha Koyu Mavi (Hover için) */
    --primary-gradient: linear-gradient(135deg, #1A5B9C 0%, #0ea5e9 100%); /* Modern Gradyan */
    --bg-dark: #f8fafc;       /* Ana Açık Arka Plan (Eski secondary-color) */
    --bg-light: #ffffff;      /* Kartlar/Header için Beyaz */
    --text-primary: #0f172a;  /* Ana Koyu Renk Yazı */
    --text-secondary: #64748b;/* İkincil Gri Yazı */
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(26, 91, 156, 0.1); /* Açık Tema Gölge */
    --border-color: #e2e8f0; /* Kenarlıklar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #f8fafc; /* Fallback color */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23eef2f5' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

body.loading {
    overflow: hidden; /* Açılışta kaydırmayı engelle */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px; /* Standart yükseklik */
    transition: background-color 0.3s, height 0.9s cubic-bezier(0.77, 0, 0.175, 1); /* Yükseklik animasyonu YAVAŞLATILDI */
}

.header.loaded {
    transition: background-color 0.3s, height 0.3s ease;
}

/* Loading durumunda Header tam ekran */
body.loading .header {
    height: 100vh;
    background-color: var(--bg-dark);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    height: 70px; /* Scroll edilince biraz küçülsün */
}

.header.scrolled .logo img {
    height: 40px; /* Header daralınca logo da küçülsün */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Logo pozisyonu için referans */
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    position: absolute; /* Logoyu akıştan çıkarıp serbest hareket ettiriyoruz */
    left: 20px; /* Sol kenar boşluğu (Container padding ile uyumlu) */
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.9s cubic-bezier(0.77, 0, 0.175, 1); /* Pürüzsüz geçiş YAVAŞLATILDI */
    z-index: 10;
}

/* Loading durumunda Logo tam ortada ve büyük */
body.loading .logo {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(3.5); /* Ortala ve Büyüt */
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Sağa yasla */
    opacity: 1;
    transition: opacity 0.75s ease 0.45s; /* Açılış animasyonu YAVAŞLATILDI */
}

body.loading .header-right {
    opacity: 0;
    pointer-events: none;
}

.phone-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.header-socials {
    display: flex;
    gap: 10px;
}

.header-socials a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0f2fe; /* Açık mavi arka plan */
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.header-socials a:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Ana İçerik Animasyonu */
#main-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.75s ease 0.45s, transform 0.75s ease 0.45s; /* Gecikmeli giriş YAVAŞLATILDI */
}

body.loading #main-content {
    opacity: 0;
    transform: translateY(50px); /* Aşağıdan yukarı kayma efekti için */
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh; /* Biraz daha yüksek */
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1558603668-6570496b66f8?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(26, 91, 156, 0.75));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color); /* Metin rengi */
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1);
}

/* Dalga Efekti (Wave) */
.custom-shape-divider-bottom-1680000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1680000000 svg {
    position: relative;
    display: block;
    width: calc(138% + 1.3px);
    height: 126px;
}

.custom-shape-divider-bottom-1680000000 .shape-fill {
    fill: var(--bg-dark); /* Sayfa arka planıyla aynı renk */
}

/* Hizmetler */
.services {
    padding: 6rem 0;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-light);
    border: none;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Kart Hover Efekti - Alt Çizgi */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: #e0f2fe; /* İkon kutusu açık mavi */
    color: var(--primary-color); /* İkon rengi */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--primary-gradient);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* WhatsApp Butonu */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Daktilo Efekti ve Vurgu */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--white);
    margin-left: 5px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.highlight {
    color: #7dd3fc; /* Açık Mavi Vurgu */
}

/* Mobil Uyumluluk (Responsive) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .phone-text {
        display: none; /* Mobilde sadece ikon görünsün */
    }

    .header-socials {
        display: none; /* Mobilde yer kaplamaması için sosyal ikonları gizleyebiliriz veya küçültebiliriz */
    }
    
    .phone-btn {
        padding: 10px;
        border-radius: 50%;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Mobilde kartlar alt alta */
    }
    
    .custom-shape-divider-bottom-1680000000 svg {
        height: 60px; /* Mobilde dalga daha küçük */
    }
}

/* Baloncuk Animasyonu */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 1000px;
        transform: translateX(-200px);
    }
}

/* --- İletişim Sayfası ve Form Stilleri --- */

/* Header Navigasyon Linkleri */
.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    width: 30px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #f8fafc;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.map-frame {
    width: 100%;
    height: 300px;
    border-radius: 1rem;
    border: none;
    margin-top: 1rem;
}

.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .nav-link {
        display: none; /* Mobilde yer darlığı nedeniyle gizli */
    }
}

/* --- YENİ İLETİŞİM SAYFASI TASARIMI (Tam Ekran Harita) --- */

.contact-full-layout {
    position: relative;
    height: calc(100vh - 90px); /* Header hariç tam ekran */
    width: 100%;
    overflow: hidden;
}

.contact-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.full-map {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Haritaya tıklanabilsin diye */
    display: flex;
    align-items: center;
}

.floating-contact-card {
    pointer-events: auto; /* Kartın içine tıklanabilsin */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 400px;
    margin-left: 10%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-left: 6px solid var(--primary-color);
}

.floating-contact-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background-color: #e0f2fe;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-detail h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.info-detail p, .info-detail a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-detail a:hover {
    color: var(--primary-color);
}

.card-social {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.insta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s;
}

.insta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s;
    margin-top: 10px;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .contact-full-layout {
        height: auto;
        display: flex;
        flex-direction: column-reverse; /* Kart üstte/altta, harita diğer tarafta */
    }

    .contact-map-bg {
        position: relative;
        height: 400px;
    }

    .contact-overlay-container {
        position: relative;
        height: auto;
        display: block;
    }

    .floating-contact-card {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-bottom: 6px solid var(--primary-color);
        box-shadow: none;
        padding: 40px 20px;
    }
}
