/* ======================
   GLOBAL RESET & VARIABLES
   ====================== */

:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --accent: #4cc9f0;
    --danger: #e63946;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --border-radius: 16px;
    --shadow: 0 10px 25px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================
   HEADER & NAVIGATION
   ====================== */

.main-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ana Menü Stili */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* Hamburger Menü Butonu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 32px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.4s ease;
}

/* ======================
   MOBIL STIL (992px altı)
   ====================== */

@media (max-width: 992px) {

    .mobile-menu-toggle {
        display: flex;
    }

    /* Ana menüyü gizle */
    .main-nav .nav-list {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
        animation: slideIn 0.4s ease-out;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
        border-radius: 0 0 16px 16px;
    }

    /* Menü aktifse göster */
    .main-nav.active .nav-list {
        display: flex;
    }

    /* Menü linkleri */
    .nav-link {
        display: block;
        padding: 0.8rem 1rem;
        margin: 0.3rem 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 5px rgba(0,0,0,0.05);
        text-decoration: none;
        color: #333;
        font-size: 1rem;
        text-align: left;
    }

    .nav-link:hover {
        background: #eef2ff;
        color: var(--primary);
    }

    /* Hamburger → X animasyonu */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
        background: var(--danger);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        background: var(--danger);
    }

    /* Menü açılır animasyonu */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* İkonlar mobilde daha net */
    .nav-link i {
        font-size: 1.1rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Çok dar ekranlar */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .nav-link {
        font-size: 1rem;
        padding: 0.8rem;
    }
    .nav-link i {
        font-size: 1.2rem !important;
    }
}

/* ======================
   GENEL BÖLÜM STİLLERİ
   ====================== */

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Steps */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ======================
   SATIŞ SAYFASI - MOBİLDE NET GÖRÜNÜM
   ====================== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.package-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-header {
    position: relative;
    padding: 1.8rem 1rem 1.2rem;
}

.package-name-tag,
.package-tag {
    white-space: nowrap;
}

.package-header h3 {
    margin: 0.8rem 0 0.5rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.package-header p {
    color: #555;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.package-body {
    flex: 1;
    padding: 0 1rem;
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.package-body::-webkit-scrollbar {
    width: 6px;
}

.package-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.package-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.package-body li:last-child {
    border-bottom: none;
}

.package-body li:before {
    content: "✓";
    color: #4ade80;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.package-footer {
    padding: 1rem;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.package-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    width: 100%;
}

.package-btn:hover {
    opacity: 0.95;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }

    .package-header h3 {
        font-size: 1.6rem !important;
    }

    .package-body {
        max-height: 320px;
    }

    .package-body li {
        font-size: 0.92rem !important;
        padding: 0.6rem 0 !important;
    }

    .package-btn {
        font-size: 1rem !important;
        padding: 1rem !important;
    }
}

/* Paket Karşılaştırma Tablosu - Mobilde Kaydırma */
@media (max-width: 768px) {
    .comparison-section {
        overflow-x: auto;
    }
    .comparison-section table {
        min-width: 800px;
    }
    .comparison-section th,
    .comparison-section td {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }
}