/* --- Değişkenler ve Ayarlar --- */
:root {
    --primary: #D90429;      /* Ana Kırmızı */
    --primary-gradient: linear-gradient(135deg, #D90429 0%, #EF233C 100%);
    --dark: #2B2D42;         /* Koyu Yazı Rengi */
    --bg-color: #f4f6f8;     /* Kırık Beyaz / Gümüş Arka Plan */
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 15px 35px rgba(0,0,0,0.06);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Fontu Poppins yapıyoruz, yüklenmezse sans-serif kullan */
    font-family: 'Poppins', sans-serif; 
}
/* --- Arka Plan: TECH GRID DESENİ --- */
body {
    background-color: var(--bg-color);
    /* Çok ince noktalı teknik ızgara deseni */
    background-image: radial-gradient(#cbd5e0 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    color: var(--dark);
    overflow-x: hidden;
}

/* --- Genel Sınıflar --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 6rem 0; }
.section-title { 
    text-align: center; font-size: 2.5rem; margin-bottom: 3.5rem; 
    color: var(--dark); font-weight: 700; 
}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 5px 20px rgba(0,0,0,0.05); padding: 0.8rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- Butonlar (YUVARLATILMIŞ & GÖLGELİ) --- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 1rem 2.5rem; border-radius: 50px; /* Hap Şekli */
    text-decoration: none; font-weight: 700; letter-spacing: 0.5px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--primary-gradient); color: var(--white); border: none;
    box-shadow: 0 10px 20px rgba(217, 4, 41, 0.3); /* Neon gölge */
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(217, 4, 41, 0.5);
}
.btn-secondary {
    background: var(--white); color: var(--dark); border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav {
    padding: 0.7rem 1.8rem; background: var(--primary-gradient); color: white !important;
    border-radius: 50px; box-shadow: 0 5px 15px rgba(217, 4, 41, 0.2);
}
.btn-nav:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(217, 4, 41, 0.4); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    /* Alttan yumuşak geçiş */
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--bg-color) 100%);
    margin-top: 0; position: relative;
}
.hero-container { display: flex; align-items: center; justify-content: space-between; }
.hero-text { flex: 1; padding-right: 3rem; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--dark); }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 1.2rem; color: #555; margin-bottom: 2.5rem; max-width: 550px; line-height: 1.6; }

/* Hero Visual (Yüzen Kod Kartı) */
.hero-visual { flex: 1; position: relative; height: 500px; display: flex; justify-content: center; align-items: center; }
.floating-card {
    background: var(--white); padding: 2.5rem; border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1); border: 1px solid var(--white);
    position: absolute; z-index: 2; animation: float 6s ease-in-out infinite;
}
.code-snippet { font-family: 'Courier New', monospace; font-weight: bold; color: #333; font-size: 1.1rem; }
.keyword { color: var(--primary); } .string { color: #2a9d8f; }

.floating-icon {
    position: absolute; background: var(--white); width: 70px; height: 70px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); color: var(--primary); font-size: 1.8rem; z-index: 1;
}
.icon-1 { top: 15%; right: 10%; animation: float 5s ease-in-out infinite 1s; }
.icon-2 { bottom: 20%; left: 10%; animation: float 7s ease-in-out infinite 0.5s; }
.icon-3 { bottom: 10%; right: 20%; animation: float 4s ease-in-out infinite 1.5s; font-size: 1.4rem; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- Hizmetler --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.card {
    background: var(--white); padding: 3rem 2.5rem; border-radius: 20px;
    border: 3px solid var(--white); box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); border-color: rgba(217,4,41,0.2); }
.icon-box {
    width: 70px; height: 70px; background: #FFF0F1; color: var(--primary);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1.5rem;
}

/* --- Hakkımızda --- */
.about { background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.sub-title { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; display: block; }
.stats-grid { display: flex; gap: 4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e0e0e0; }
.stat-item h3 { font-size: 2.5rem; color: var(--primary); font-weight: 800; }
.stat-item span { color: #666; font-weight: 600; }

/* --- YENİ GÖRSEL: Kurumsal UI Stack (Temiz Tasarım) --- */

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arkadaki silik kırmızı daire (Derinlik katar) */
.circle-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.05), rgba(217, 4, 41, 0.01));
    border-radius: 50%;
    z-index: 0;
}

/* Ortak Kart Stili */
.ui-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Yumuşak gölge */
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

/* Ana Büyük Kart */
.main-ui {
    width: 320px;
    padding: 20px;
    transform: rotate(-3deg); /* Hafif sola yatık, dinamik durur */
    transition: transform 0.5s ease;
}
.main-ui:hover {
    transform: rotate(0deg) scale(1.02); /* Üstüne gelince düzelir */
}

/* Ana Kart Başlık Kısmı (Mac penceresi gibi) */
.ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #eee; }
.dots span:nth-child(1) { background: #ff5f56; } /* Kırmızı */
.dots span:nth-child(2) { background: #ffbd2e; } /* Sarı */
.dots span:nth-child(3) { background: #27c93f; } /* Yeşil */
.ui-title { font-size: 0.85rem; font-weight: 600; color: #888; }

/* Grafik Alanı */
.chart-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding: 0 10px;
}
.bar-col {
    width: 12%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background: #f8f9fa;
    border-radius: 50px;
}
.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #ff8fa3 100%);
    border-radius: 50px;
    animation: growBar 2s ease-out forwards;
}
/* Çubuk Yükseklikleri */
.h-40 { height: 0%; animation-delay: 0.1s; --target-h: 40%; }
.h-60 { height: 0%; animation-delay: 0.2s; --target-h: 60%; }
.h-50 { height: 0%; animation-delay: 0.3s; --target-h: 50%; }
.h-80 { height: 0%; animation-delay: 0.4s; --target-h: 80%; }
.h-100 { height: 0%; animation-delay: 0.5s; --target-h: 100%; }

@keyframes growBar {
    to { height: var(--target-h); }
}

/* Yüzen Küçük Kartlar */
.float-card {
    position: absolute;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px;
    animation: float 6s ease-in-out infinite;
}

/* 1. Yüzen Kart: Güvenlik (Sol Alt) */
.security-card {
    bottom: 50px;
    left: -20px;
    z-index: 2;
    animation-delay: 0s;
}
.icon-circle {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    color: #2196f3; /* Mavi */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Yüzen Kart: Başarı (Sağ Üst) */
.success-card {
    top: 60px;
    right: -10px;
    z-index: 2;
    animation-delay: 3s;
}
.check-circle {
    width: 30px;
    height: 30px;
    background: #e8f5e9;
    color: #4caf50; /* Yeşil */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.text-col { display: flex; flex-direction: column; }
.text-col strong { font-size: 0.9rem; color: var(--dark); }
.text-col span { font-size: 0.75rem; color: #888; }

/* --- İletişim --- */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 0;
    background: var(--white); border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow);
}
.contact-info { background: #1d1d1d; color: white; padding: 4rem; }
.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { opacity: 0.7; margin-bottom: 3rem; }
/* --- İletişim Bilgileri Hizalama Düzeltmesi --- */

.info-item {
    display: flex;
    /* İkonu dikeyde ortalamak yerine en üste sabitle */
    align-items: flex-start; 
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    
    /* ÖNEMLİ: İkonun sıkışıp küçülmesini engelle */
    flex-shrink: 0; 
    
    /* ÖNEMLİ: İkonu metnin ilk satırıyla hizalamak için biraz aşağı it */
    margin-top: -5px; 
}
.contact-form { padding: 4rem; background: var(--white); }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem; border: 2px solid #eee; border-radius: 10px;
    outline: none; transition: var(--transition); background: #f9f9f9;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); background: #fff; }
.full-width { width: 100%; justify-content: center; cursor: pointer; margin-top: 10px; }

/* --- Footer ve Sosyal Medya --- */
footer {
    background: #1a1c23; /* Koyu zemin */
    color: #718096;      /* Gri yazı */
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
    border-top: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* İkonlar ve yazı arasındaki boşluk */
}

.social-icons {
    display: flex;
    gap: 20px; /* İkonların birbirine mesafesi */
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05); /* Çok silik beyaz daire */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mouse ile üzerine gelince */
.social-link:hover {
    background: var(--primary); /* Kurumsal Kırmızı */
    color: white;
    transform: translateY(-5px); /* Yukarı zıplama */
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.4); /* Kırmızı parlama */
    border-color: var(--primary);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Animasyonlar --- */
.reveal-left, .reveal-right, .reveal-bottom { opacity: 0; transition: all 1s ease; }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-bottom { transform: translateY(40px); }
.active.reveal-left, .active.reveal-right, .active.reveal-bottom { opacity: 1; transform: translate(0); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .stats-grid { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hamburger menü script'i eklenebilir */
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { padding: 0; margin-bottom: 4rem; }
    .hero-visual { width: 100%; height: 350px; }
    .hamburger { display: block; }
}

/* --- GÜNCELLEME: Linkli Kart Stilleri --- */

/* --- Basitleştirilmiş Performanslı Kartlar --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.simple-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    display: block;
    border: 1px solid #eee; /* Çok hafif çerçeve */
    
    /* İSTEDİĞİN GÖLGE EFEKTİ BURADA */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    
    /* Sadece hover için basit geçiş */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Mouse ile üzerine gelince */
.simple-card:hover {
    transform: translateY(-7px); /* Hafifçe yukarı kalkar */
    box-shadow: 0 20px 40px rgba(217, 4, 41, 0.15); /* Gölge biraz kızarır ve büyür */
    border-color: rgba(217, 4, 41, 0.1);
}

/* İkon Kutusu */
.card-icon {
    width: 60px;
    height: 60px;
    background: #FFF0F1; /* Çok açık kırmızı zemin */
    color: var(--primary);
    font-size: 1.8rem;
    border-radius: 50%; /* Tam yuvarlak */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Kart Başlığı */
.simple-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Kart Açıklaması */
.simple-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Link Yazısı (İncele ->) */
.link-text {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

/* Hover olunca ok işareti sağa kaysın */
.simple-card:hover .link-text {
    gap: 10px;
}
/* --- Logo Resim Ayarı --- */
.logo {
    display: flex; /* Hizalamayı düzeltir */
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px; /* Navbar yüksekliğine uygun ideal boyut */
    width: auto;  /* En-boy oranını bozmaz */
    display: block;
    transition: transform 0.3s ease;
}

/* Logoya gelince hafif bir efekt */
.logo:hover img {
    transform: scale(1.05); /* Çok hafif büyür */
    opacity: 0.9;
}
/* --- YENİ: Outline Buton (İçi Boş, Kenarlı) --- */
.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0.9rem 2rem; border-radius: 50px;
    text-decoration: none; font-weight: 600;
    border: 2px solid var(--primary); /* Kırmızı Kenarlık */
    color: var(--primary);
    background: transparent;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(217, 4, 41, 0.2);
    transform: translateY(-3px);
}

/* --- YENİ SAYFA: Hakkımızda Detay Stilleri --- */

/* Misyon & Vizyon Kutuları */
.mission-vision-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 50px 0;
}
.mv-card {
    background: white; padding: 40px; border-radius: 15px;
    border: 1px solid #eee; box-shadow: var(--shadow);
    text-align: center; transition: var(--transition);
}
.mv-card:hover { transform: translateY(-5px); border-color: rgba(217,4,41,0.2); }
.mv-icon {
    font-size: 2.5rem; color: var(--primary); margin-bottom: 20px;
    background: #FFF0F1; width: 80px; height: 80px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

/* Timeline (Zaman Çizelgesi) */
.timeline-section { position: relative; padding: 40px 0; }
/* Ortadaki Çizgi */
.timeline-section::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: #e9ecef; transform: translateX(-50%);
}
.timeline-item {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 60px; position: relative;
}
.timeline-content {
    width: 45%; background: white; padding: 30px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;
    position: relative;
}
/* Tarih Rozeti */
.timeline-date {
    width: 80px; height: 80px; background: var(--primary);
    color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700;
    position: absolute; left: 50%; transform: translateX(-50%);
    border: 5px solid #f4f6f8; /* Arkaplan rengiyle aynı çerçeve */
    z-index: 2;
}
/* Sağ/Sol Hizalama */
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-item:nth-child(even) .timeline-content { text-align: right; }

/* Mobil Uyum */
@media (max-width: 768px) {
    .mission-vision-grid { grid-template-columns: 1fr; }
    .timeline-section::before { left: 20px; }
    .timeline-item { flex-direction: column; align-items: flex-start; margin-left: 20px; }
    .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-start; }
    .timeline-date { left: 0; transform: translate(-50%, -150%); width: 60px; height: 60px; font-size: 0.9rem; }
    .timeline-content { width: 100%; text-align: left !important; margin-left: 20px; }
}