/* Google Fonts - Orbitron Eklemesi */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #3B945E;
    overflow-x: hidden; /* Yatay taşmayı engelle */
    background-color: #1B2441; /* Sayfa genelini koyu yap (Footer kenarları için) */
}

/* Sayfa Açılış Animasyonu Tanımı */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader (Yükleme Ekranı) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Logo ve spinner alt alta olsun */
    transition: opacity 0.5s ease;
    opacity: 0; /* Varsayılan olarak gizli (JS ile kontrol edilecek) */
    visibility: hidden;
    pointer-events: none;
}

/* Preloader Aktif Class'ı */
#preloader.show-preloader {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#preloader .logo {
    animation: pulse 1.5s infinite;
    margin-bottom: 20px;
}

/* Yükleme Çemberi (Spinner) */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1B2441; /* Lacivert */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #3B945E; /* Açık Yeşil */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0 0 30px 30px; /* Alt kısmı ovalleştir (Dalgalı görünüm) */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;  /* Logo*/
}

.logo span {
    color: #1B2441; /* Koyu Lacivert */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #1B2441;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-links a:hover {
    background: #1B2441;
    color: #BDF4B1;
    transform: translateY(-3px); /* Hafif yukarı kalkma efekti */
    box-shadow: 0 4px 10px rgba(27, 36, 65, 0.2);
}

/* Aktif Menü Efekti */
.nav-links a.active {
    background-color: #1B2441;
    color: #BDF4B1;
    transform: scale(1); /* Ölçeklemeyi sıfırladık, blok yapısı kullanacağız */
    box-shadow: 0 5px 15px rgba(27, 36, 65, 0.3);
    
    /* Sayfa sınırı ile birleşen blok yapısı */
    border-radius: 0 0 10px 10px; /* Sadece alt köşeler yuvarlak */
    padding-top: 35px; /* Yazıyı aşağı it */
    margin-top: -35px; /* Bloğu yukarı çekip tavanla birleştir */
    height: auto;
    display: flex;
    align-items: center;
    z-index: 1001;
}

/* Scroll Reveal Animasyonu (Aşağıdan süzülme) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    box-shadow: inset 0 -150px 100px -20px #1B2441; /* Hero ile Stats arasındaki yumuşak geçiş */
}

/* Hero Arka Plan Resmi (Zoom Efekti İçin) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: zoomEffect 20s infinite alternate; /* Yavaşça zoom yap ve geri dön */
}

/* Hero Gradyan Kaplama (Resmin Üstünde) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 36, 65, 0.4), rgba(27, 36, 65, 0.4));
    z-index: -1;
}

/* Zoom Animasyonu */
@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif; /* Yeni Modern Font */
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0;
    animation: slideUpFade 1s ease forwards 0.5s;
}

/* Hero Alt Metin ve Buton Animasyonları */
.hero-content p {
    opacity: 0;
    animation: slideUpFade 1s ease forwards 0.8s;
}

.hero-content .btn {
    opacity: 0;
    animation: slideUpFade 1s ease forwards 1.1s;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background: #3B945E; /* Normal arka plan */
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    margin-top: 20px;
    position: relative;
    overflow: hidden; /* Taşan kısımları gizle */
    z-index: 1;
    transition: color 0.4s ease;
}

/* Buton Animasyonu: Ortadan dönen çizgi */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 100%; /* Tam yükseklik */
    background: #1B2441; /* Hover olunca dolacak renk */
    transform: translate(-50%, -50%); /* Dönme yok, sadece ortalama */
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: #BDF4B1; /* Yazı rengi değişimi */
}

.btn:hover::before {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1B2441;
    color: #1B2441;
    margin-left: 10px;
}

.btn-outline:hover {
    background: #1B2441;
    color: #fff;
}

/* Buton Loading (Yükleniyor) Durumu */
.btn.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #1B2441;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0; /* Başlangıçta gizli */
    color: #fff; /* Koyu arka planlar için başlık rengi beyaz */
    animation: slideUpFade 1s ease forwards 0.3s; /* Alttan süzülerek gelme efekti */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #232d4b; /* Beyaz yerine koyu lacivert */
    color: #fff; /* Yazı rengi beyaz */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #1B2441; /* Varsayılan alt çizgi */
}

.service-card:hover {
    transform: translateY(-15px); /* Yukarı kalkma */
    background: #2a365c; /* Hover olunca arka plan hafif açılır */
    box-shadow: 0 15px 30px rgba(59, 148, 94, 0.2); /* Yeşilimsi gölge */
    border-bottom: 3px solid #BDF4B1; /* Parlak yeşil alt çizgi */
}

.service-card i {
    font-size: 3rem;
    color: #BDF4B1; /* İkon rengi açık yeşil */
    margin-bottom: 20px;
    transition: all 0.4s ease;
    display: inline-block;
}

/* Kartın üzerine gelince ikon animasyonu */
.service-card:hover i {
    color: #fff; /* Hover'da ikon beyaz olsun */
    transform: scale(1.2) rotate(10deg); /* İkon büyür ve hafif döner */
    text-shadow: 0 0 10px rgba(255,255,255,0.5); /* İkona parlama efekti */
}

.service-card p {
    color: #ccc; /* Açıklama yazısı hafif gri */
}

/* Stats Section */
.stats {
    background: #1B2441;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #BDF4B1;
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #1B2441; /* Hizmetler ile aynı koyu arka plan */
    color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #BDF4B1; /* Koyu zemin üzerinde açık yeşil başlık */
}

.about-text p {
    margin-bottom: 15px;
    color: #ccc; /* Koyu zemin üzerinde açık gri yazı */
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ekip Kartları (Hakkımızda Sayfası İçin) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.team-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 220px; /* Yüksekliği biraz küçülttük */
    object-fit: cover;
    object-position: top; /* Yüzlerin tam görünmesi için üst tarafa odakla */
}

.team-info {
    padding: 15px;
}

.team-info h4 {
    color: #1B2441;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-info span {
    color: #3B945E;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: #1B2441; /* Hizmetler ile aynı koyu arka plan */
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Daha koyu ve tam kaplayan arka plan */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8); /* Hafif küçülerek gelme efekti */
    transition: transform 0.3s;
    transition: all 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
    transform: scale(1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #1B2441; /* Hizmetler ile aynı koyu arka plan */
    color: #fff;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    background: #232d4b; /* Beyaz yerine koyu lacivert (Tema uyumu) */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); /* 3D Derinlik ve Işık */
    border-bottom: 10px solid #151b30; /* Alt kalınlık (Blok görünümü) */
    color: #fff;
    transition: transform 0.3s ease;
}

.contact-info:hover, .contact-form:hover {
    transform: translateY(-10px); /* Üzerine gelince yükselme animasyonu */
}

.info-item {
    margin-bottom: 20px;
    text-align: center;
}

.info-item i {
    font-size: 1.5rem;
    color: #BDF4B1; /* İkon rengi açık yeşil */
    margin-bottom: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #1B2441; /* Input arka planı koyu */
    border: 1px solid #3B945E; /* Kenarlık yeşil */
    color: #fff; /* Yazı rengi beyaz */
    border-radius: 5px;
    transition: all 0.3s ease; /* Yumuşak geçiş için */
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #BDF4B1; /* Odaklanınca kenarlık açık yeşil */
    outline: none; /* Varsayılan tarayıcı çerçevesini kaldır */
    transform: scale(1.02); /* Hafifçe büyüt */
    box-shadow: 0 0 15px rgba(59, 148, 94, 0.3); /* Yeşil parıltı */
}

/* Footer */
footer {
    background: #1B2441;
    color: #fff;
    padding: 40px 0 20px;
    border-radius: 50px 50px 0 0; /* Daha belirgin oval köşeler */
    margin: 0 100px; /* Alanı daha da daralt */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); /* 3D Derinlik Hissi (Gölge) */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Üst kenara hafif ışık (3D detay) */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 20px;
}

.social-links a {
    color: #fff;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1); /* Hafif şeffaf arka plan */
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Sosyal Medya İkonları - Marka Renkleri */
/* Facebook */
.social-links a:nth-child(1) {
    background: #1877F2;
}
.social-links a:nth-child(1):hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

/* Twitter (X) */
.social-links a:nth-child(2) {
    background: #000000; /* X Logosu Siyah */
}
.social-links a:nth-child(2):hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Instagram */
.social-links a:nth-child(3) {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}
.social-links a:nth-child(3):hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive (Mobil) Ayarlar */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%; /* Mobilde biraz daha geniş alan */
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Daha yumuşak geçiş */
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding-top: 50px;
    }
    
    footer {
        margin: 0 20px; /* Mobilde kenar boşluğunu azalt */
    }

    .nav-links li {
        opacity: 0;
        margin: 30px 0;
        width: 100%; /* Linkleri tam genişlik yap */
        text-align: center;
    }

    /* Mobilde Aktif Link - Sağ Kenarla Birleşme */
    .nav-links a.active {
        margin-top: 0;
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 30px 0 0 30px; /* Sol taraf yuvarlak, sağ taraf düz */
        width: 100%;
        display: block;
        margin-right: -20px; /* Sağa yapıştırmak için */
        padding-right: 0;
        box-shadow: -5px 5px 15px rgba(27, 36, 65, 0.2);
        transform: scale(1) !important; /* Masaüstü efektini sıfırla */
    }

    .hamburger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }
}

/* Yukarı Çık Butonu */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1B2441;
    color: #BDF4B1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#back-to-top:hover {
    background: #BDF4B1;
    color: #1B2441;
    transform: translateY(-5px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}