/* ===== RESET & VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary: #0D6EFD;
    --secondary: #198754;
    --accent: #0dcaf0;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border-light: #E2E8F0;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0D6EFD 0%, #0dcaf0 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Spacing - Mobile First */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px; /* Base size for mobile */
    -webkit-text-size-adjust: 100%; /* Prevent font scaling on mobile */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem; /* Fixed padding for mobile */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 { 
    font-size: 1.8rem; 
    letter-spacing: -0.02em; 
    margin-bottom: 0.75rem;
}

h2 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem;
}

h3 { 
    font-size: 1.1rem; 
}

p { 
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-hero);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Smaller on mobile */
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
    font-size: 0.9rem;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Menu - Mobile First */
.nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
}

.nav-menu.active {
    left: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
}

.nav-links a.active {
    color: var(--primary);
}

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content {
    color: white;
    width: 100%;
}

.hero h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-subhead {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    font-size: 0.95rem;
    width: 100%;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.live-activity {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: inline-block;
    font-size: 0.8rem;
    width: auto;
}

/* Hero Illustration */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration svg {
    width: 80%;
    max-width: 250px;
    height: auto;
}

/* ===== CALCULATORS SECTION ===== */
.calculators {
    padding: 3rem 0;
    background: var(--background);
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.calc-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    width: 100%;
}

.calc-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.calc-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.calc-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.card-btn {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== COUNTRIES SECTION ===== */
.countries {
    padding: 3rem 0;
    background: white;
    width: 100%;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.country-item {
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge.active {
    background: var(--secondary);
    color: white;
}

.badge.coming {
    background: var(--text-light);
    color: white;
    opacity: 0.7;
}

.center-btn {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    display: inline-block;
    padding: 0.8rem 2rem;
    width: auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 3rem 0;
    background: var(--background);
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 3rem 0;
    background: white;
    width: 100%;
}

.faq-list {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question span {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 3rem 0;
    background: var(--gradient-hero);
    width: 100%;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 100%;
}

.newsletter-card h3 {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
}

.small-note {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 2.5rem 0 1rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-logo {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

.country-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
}

.contact-info p {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
}

/* ===== MEDIA QUERIES - Tablet & Desktop ===== */
@media (min-width: 480px) {
    html { font-size: 15px; }
    
    .hero-ctas {
        flex-direction: row;
    }
    
    .btn {
        width: auto;
        display: inline-block;
    }
    
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    html { font-size: 16px; }
    
    .container {
        padding: 0 2rem;
    }
    
    .header-flex {
        height: 80px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        position: static;
        height: auto;
        width: auto;
        padding: 0;
        background: transparent;
        flex-direction: row;
        left: 0;
        transition: none;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 0;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .cta-btn {
        width: auto;
        margin: 0;
    }
    
    .hero-grid {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-illustration {
        flex: 1;
    }
    
    h1 { font-size: 2.2rem; }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form input {
        flex: 1;
    }
    
    .newsletter-form button {
        width: auto;
        padding: 0.8rem 2rem;
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    h1 { font-size: 2.8rem; }
    
    .country-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .country-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.w-100 { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* Fix for very small devices */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
        max-width: 150px;
    }
    
    .logo span {
        font-size: 0.8rem;
    }
    
    .hero-stats {
        gap: 0.25rem;
    }
    
    .stat-item {
        font-size: 1.1rem;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
    }
}