/* style.css - TASARIM VE ANİMASYON DOSYASI */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #003366; /* Koyu Kurumsal Mavi */
    --secondary: #005b96; /* Açık Mavi */
    --accent: #b3cde0; /* Vurgu Rengi */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.4s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.6; overflow-x: hidden; min-width: 320px; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
section { padding: 80px 0; }
.container { width: min(100% - 40px, 1200px); margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }

/* --- HEADER & NAV --- */
.top-bar { background: var(--primary); color: var(--white); padding: 10px 0; font-size: 0.9rem; }
.top-bar .container { display: flex; justify-content: space-between; }
.contact-info span { margin-right: 20px; }
.contact-info i { margin-right: 5px; color: var(--accent); }

nav { background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; flex-direction: column; }
.logo small { font-size: 0.8rem; color: var(--secondary); font-weight: 500; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--secondary); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- ANIMASYONLAR (SCROLL REVEAL) --- */
.reveal { opacity: 0; transform: translateY(50px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: 1s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }

/* --- HERO SECTION --- */
.hero { height: 600px; background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('https://kreatifmimarlik.com/wp-content/uploads/2025/07/izmir_amerikan-1.jpg'); background-size: cover; background-attachment: fixed; display: flex; align-items: center; text-align: center; color: var(--white); transition: height 0.45s ease, background-position 0.45s ease; }
.hero.scrolled { height: 280px; background-position: center 42%; }
.hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); transition: font-size 0.45s ease, margin-bottom 0.45s ease; }
.hero.scrolled h1 { font-size: 2.3rem; margin-bottom: 10px; }
.hero p { font-size: 1.3rem; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; transition: font-size 0.45s ease, margin-bottom 0.45s ease; }
.hero.scrolled p { font-size: 1rem; margin-bottom: 15px; }
.btn { display: inline-block; padding: 15px 40px; border-radius: 5px; font-weight: 600; border: 2px solid var(--secondary); background: var(--secondary); color: var(--white); cursor: pointer; }
.btn:hover { background: transparent; border-color: var(--white); transform: translateY(-3px); }

/* --- KART TASARIMLARI (TEDAVİLER & YAYINLAR) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr)); gap: 30px; }
/* style.css içindeki .card bölümünü bununla değiştir */

.card {
    background: var(--white);
    padding: 0; /* Boşluğu sıfırladık ki resim kenara yapışsın */
    border-radius: 10px; /* Köşeleri yuvarladık */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    overflow: hidden; /* Resim taşmasın */
}

/* Mouse ile üzerine gelince */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-bottom-color: var(--secondary);
}

/* Kartın içindeki resim ayarı */
.card-img {
    width: 100%;
    height: 220px; /* Resim yüksekliği */
    object-fit: cover; /* Resmi kutuya sığdırır, bozmaz */
    transition: 0.5s;
}

.card:hover .card-img {
    transform: scale(1.05); /* Üzerine gelince resim hafif zoom yapar */
}

/* Yazıların olduğu kısım */
.card-content {
    padding: 25px;
}

.card > h3,
.card > p {
    margin-left: 25px;
    margin-right: 25px;
}

.card > h3 { margin-top: 25px; }
.card > p { margin-bottom: 25px; }

/* --- TIMELINE (HAKKIMDA) --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-item { padding: 20px 0; border-left: 3px solid var(--secondary); padding-left: 30px; position: relative; margin-bottom: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -11px; top: 24px; width: 20px; height: 20px; background: var(--white); border: 3px solid var(--secondary); border-radius: 50%; }
.year-badge { background: var(--primary); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }

/* --- LİSTELER (YAYINLAR) --- */
.pub-list li { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.pub-title { display: block; font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.pub-meta { font-size: 0.9rem; color: #777; font-style: italic; display: block; margin-top: 5px; }
.academic-summary { max-width: 850px; margin: -5px 0 25px; color: var(--text-light); }

/* --- İLETİŞİM & FOOTER --- */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.info-box { background: var(--primary); color: var(--white); padding: 40px; border-radius: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
footer { background: #0b1c2c; color: #a0a0a0; padding: 60px 0 20px; margin-top: auto; }
.footer-title { color: var(--white); margin-bottom: 20px; border-left: 4px solid var(--secondary); padding-left: 15px; }

/* --- YORUMLAR SLIDER (SONSUZ DÖNGÜ) --- */
.testimonials-section {
    background-color: var(--primary); /* Lacivert Arkaplan */
    padding: 80px 0;
    overflow: hidden; /* Taşan kartları gizle */
    position: relative;
}

.testimonials-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

/* Kayan Şerit (Track) */
.slider-track {
    display: flex;
    /* MANTIK: 
       Bir kartın toplam kapladığı yer = 300px (genişlik) + 50px (marginler) = 350px
       Toplam 10 kartımız var (5 orjinal + 5 kopya)
       350px * 10 = 3500px genişlik vermemiz lazım.
    */
    width: 3500px; 
    animation: scroll 40s linear infinite; /* 40 saniyede tur atar, hızı buradan değiştir */
}

/* Mouse üzerine gelince akış dursun, okumak kolay olsun */
.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Sadece İLK 5 KARTIN genişliği kadar (1750px) sola kaydırıyoruz.
           Böylece 6. kart (yani 1. kartın kopyası) tam başa geldiğinde
           animasyon sıfırlanıyor ve kullanıcı kesinti hissetmiyor.
        */
        transform: translateX(-1750px); 
    }
}

/* Yorum Kartı Tasarımı */
.review-card {
    width: 300px; /* Sabit Genişlik */
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin: 0 25px; /* Sağdan soldan 25'er px boşluk */
    flex-shrink: 0; /* Kartların sıkışmasını engeller */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

/* Kartın üzerine gelince hafif büyüsün */
.review-card:hover {
    transform: scale(1.05);
}

.stars {
    color: #f1c40f; /* Altın Yıldız */
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-author {
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: #f4f7f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
    html { font-size: 16px; }
    .container { width: min(100% - 32px, 1200px); }

    .top-bar .container,
    nav .container { display: block; }

    .contact-info span {
        display: block;
        margin: 0 0 4px;
    }

    nav { padding: 14px 0 10px; }
    .logo { font-size: 1.2rem; }
    .nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 4px;
        margin-top: 12px;
        padding: 2px 0 8px;
        scrollbar-width: thin;
    }
    .nav-links a { flex: 0 0 auto; font-size: 0.82rem; padding: 8px 10px; }

    .hero {
        height: 460px;
        background-attachment: scroll;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; padding: 0 8px; }
    .hero.scrolled { height: 250px; }
    .hero.scrolled h1 { font-size: 1.8rem; }
    .btn { padding: 12px 24px; }

    .grid-3,
    .contact-grid,
    .container[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .card-content { padding: 20px; }
    .card > h3 { margin: 20px 20px 1rem; }
    .card > p { margin: 0 20px 20px; }
    .info-box { padding: 25px; }
    .timeline-item { padding-left: 22px; }
    .pub-title { font-size: 1rem; line-height: 1.5; }
    .pub-meta { line-height: 1.5; }
    .form-group input, .form-group textarea { font-size: 1rem; }

    .testimonials-section { padding: 50px 0; }
    .review-card { width: 280px; padding: 24px; margin: 0 12px; }

    iframe {
        max-width: 100%;
    }
}