/* ========================================================= */
/* 1. GENEL AYARLAR & RESET (Mobile-First) */
/* ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #1E3A8A;
    transition: color 0.3s;
}

a:hover {
    color: #F59E0B;
}

/* Tipografi */
h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}
h2 { font-size: 2em; }
h3 { font-size: 1.5em; color: #1E3A8A; }

/* Butonlar */
.cta-button {
    display: inline-block;
    background-color: #F59E0B;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #d8890a;
    transform: translateY(-2px);
}


/* ========================================================= */
/* 2. HEADER & MOBİL NAVİGASYON (Varsayılan Masaüstü) */
/* ========================================================= */
header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    height: auto; /* Masaüstü için height'ı auto'da bırak */
}

.logo {
    font-family: 'Michroma', sans-serif;
    font-size: 1.8em;
    color: #1E3A8A;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigasyon (Masaüstü/Varsayılan) */
#nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

#nav-menu a {
    color: #333;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

#nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #1E3A8A;
    transition: width 0.4s ease;
}

#nav-menu a:hover:after {
    width: 100%;
    left: 0;
    background: #1E3A8A;
}

/* Aktif Navigasyon Vurgusu Stili */
#nav-menu a.current {
    color: #1E3A8A;
}

#nav-menu a.current:after {
    width: 100%;
    left: 0;
    background: #1E3A8A;
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}


/* ========================================================= */
/* 3. ANA BÖLÜMLER (Sections) */
/* ========================================================= */
.section {
    padding: 80px 0;
    text-align: center;
}

.dark-bg {
    background-color: #e8f0fe;
}

/* Hero Bölümü */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.webp') no-repeat center center/cover; 
    color: white;
    text-align: center;
    padding: 100px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}


/* Hakkımda Bölümü (Masaüstü) */
.about-flex {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 60px;
    margin-top: 30px;
}

.about-text {
    flex: 2;
}

.about-text p {
    text-align: justify;
    margin-bottom: 15px; 
}


.about-image {
    flex: 1;
    max-width: 300px;
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
    height: auto;
}

/* Dersler Bölümü (Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    border-top: 5px solid #1E3A8A; 
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card h4 {
    color: #1E3A8A;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-cta {
    display: inline-block;
    color: #F59E0B;
    font-weight: 600;
    align-self: flex-start;
}
.card-cta:hover {
    text-decoration: underline;
}

/* Fiyatlandırma Tablosu */
.pricing-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: collapse;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
}

.pricing-table th, .pricing-table td {
    padding: 18px;
    border-bottom: 1px solid #ddd;
}

.pricing-table th {
    background-color: #1E3A8A;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-table tr:nth-child(even) {
    background-color: #f4f7fc;
}

.pricing-table tr:hover {
    background-color: #e8f0fe;
}


/* Başarı Hikayeleri (Testimonials) */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 30px auto;
    padding: 0 15px;
}

.testimonial-item {
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: none; 
    animation: fadein 0.8s;
}

.testimonial-item.active {
    display: block;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

blockquote {
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
    border-left: 3px solid #F59E0B;
    padding-left: 15px;
}

.source {
    font-weight: 600;
    color: #1E3A8A;
    text-align: right;
    display: block;
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #1E3A8A;
}

/* İletişim Formu */
.contact-section {
    background-color: white;
}

#contact-form {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    font-weight: 600;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 25px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

footer a{
    color: white;
}

footer a:hover{
    color: gray;
}

.social-links a {
    color: white;
    margin-left: 15px;
}

.social-links a:hover {
    color: #F59E0B;
}

/* Sabit WhatsApp Butonu */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; 
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
}

/* ========================================================= */
/* Scroll Animasyonları (Reveal) */
/* ========================================================= */
.reveal {
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.reveal.fade-bottom {
    transform: translateY(40px);
}

.reveal.fade-right {
    transform: translateX(40px);
}


/* ========================================================= */
/* Media Queries (Mobil Uyum) */
/* ========================================================= */
@media (max-width: 768px) {
    
    /* Genel */
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    .hero { padding: 80px 0; }
    .section { padding: 40px 0; }

    /* TOPBAR: Logo ve Menü Düzeltmesi */
    header .container {
        display: flex; 
        justify-content: space-between; 
        position: relative;
        min-height: 40px;
    }
    
    .logo {
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); 
        z-index: 1001; 
        margin: 20px auto;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002;
        position: absolute;
        right:2px;
        margin: 5px;
    }
    /* ************************************************* */

    /* Navigasyon (Mobil Menü) */
    #nav-menu {
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        margin:0;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none; 
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        border-radius: 15px;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    #nav-menu li {
        border-bottom: 1px solid #eee;
    }

    #nav-menu li:last-child{
        border: none;
    }

    #nav-menu a {
        display: block;
        padding: 15px 20px;
        color: #333 !important;
    }
    
    #nav-menu a:after {
        display: none; 
    }

    .menu-toggle {
        display: block;
    }
    
    #nav-menu a.current:after {
        display: none; 
    }

    /* HAKKIMDA BÖLÜMÜ ORTALAMASI (SON VE KESİN ÇÖZÜM) */
    .about-flex {
        flex-direction: column;
        align-items: center; /* Dikeyde ortalama */
        text-align: center; /* Metinlerin ortalanması */
        margin-top: 30px;
        /* Ana kapsayıcının padding'i ortalamayı bozmaması için sıfırlanır */
        padding: 0; 
    }
    
    .about-text {
        padding: 0;
        width: 100%;
        max-width: 500px;
        margin: 0 auto; /* Yatayda ortalamayı garantile */
    }
    
    .about-text p {
        text-align: justify;
        /* Metin bloğu içindeki yatay dolgu dışarı taşmayı önlemek için */
        padding: 0 15px; 
        margin-bottom: 15px;
    }

    .about-image {
        order: -1; 
        max-width: 80%; 
        margin: 0 auto 20px auto; /* Margin ile yatay ortalamayı garantile */
    }
    
    /* Fiyatlandırma Tablosu mobil uyumu */
    .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td, .pricing-table th {
        display: block;
        width: 100%;
        text-align: right;
        border-radius: 8px;
    }
    .pricing-table thead { display: none; }

    .pricing-table tr {
        display: block;
        margin-bottom: 20px; /* Paketler arasında boşluk */
        border: 1px solid #ddd; /* İnce bir kenarlık */
        border-radius: 8px;
        background: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Hafif gölge */
    }

    .pricing-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    .pricing-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
    }

    .pricing-table td:first-of-type{
        background-color: #1E3A8A;
        color: white;
    }

    /* Footer */
    footer .container {
        flex-direction: column;
        gap: 10px;
    }
    .social-links {
        margin-top: 10px;
    }
    .social-links a {
        margin: 0 5px;
    }

    /* Testimonial Slider Düzeltmesi */
    .testimonial-slider {
        max-width: 100%;
        padding: 0 10px;
        margin: 30px auto 20px auto;
    }
}

/* ========================================================= */
/* MASAÜSTÜ KURALLARI (>= 769px) */
/* ========================================================= */
@media (min-width: 769px) {
    
    /* HEADER FIX */
    .logo {
        position: static; 
        transform: none;
        margin: 0; 
        order: 0; 
    }
    
    header .container {
        height: auto; 
    }
    
    .menu-toggle {
        display: none; 
    }
    
    /* Navigasyon */
    #nav-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0;
    }
    #nav-menu ul {
        flex-direction: row;
    }
    #nav-menu li {
        border-bottom: none;
    }
    #nav-menu a {
        padding: 5px 0;
    }
    #nav-menu a:after {
        display: block; 
    }
    
    /* Hakkımda Bölümü */
    .about-flex {
        flex-direction: row; 
        text-align: left;
        gap: 60px;
        align-items: center;
        padding: 0; /* Mobil kuraldan etkilenmesin diye sıfırla */
    }
    
    .about-text {
        order: 0; 
        padding-right: 20px;
        max-width: none;
        margin: 0;
    }
    
    .about-text p {
        padding: 0;
    }
    
    .about-image {
        order: 1; 
        max-width: 300px;
        margin: 0;
    }
    
    /* Dersler (Cards) */
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
        gap: 30px;
    }
    
    /* Fiyatlandırma Tablosu */
    .pricing-table {
        max-width: 800px;
        display: table;
        text-align: left;
    }
    .pricing-table thead {
        display: table-header-group;
    }
    .pricing-table tr {
        display: table-row;
    }
    .pricing-table td {
        display: table-cell;
        padding-left: 18px;
        border-bottom: 1px solid #ddd;
    }
    .pricing-table td::before {
        display: none;
    }
    
    /* Footer */
    footer .container {
        flex-direction: row;
    }
}