* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a86b;
    --accent-color: #ff9500;
    --dark-text: #1a1a1a;
    --light-bg: #f8f9fb;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fb 0%, #e8f4f8 100%);
    padding: 5rem 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero .description {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Signup Section */
.signup-section {
    margin-top: 3rem;
}

.signup-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    font-weight: 500;
}

.signup-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.signup-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.signup-form button {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 1.5rem;
}

.form-message.success {
    color: var(--secondary-color);
    font-weight: 500;
}

.form-message.error {
    color: #e74c3c;
    font-weight: 500;
}

/* Countries Section */
.countries-section {
    padding: 4rem 0;
    background: var(--white);
}

.countries-section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.flag-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 90px;
}

.flag-name {
    flex: 1;
    font-size: 0.9rem;
    text-align: left;
    color: #666;
    font-weight: 500;
    word-break: break-word;
}

.flag-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

.flag-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.flag-item:hover .flag-image {
    transform: scale(1.08);
}

.flag-name {
    font-size: 0.7rem;
    text-align: center;
    color: #666;
    font-weight: 500;
    word-break: break-word;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f9f5 100%);
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background: var(--light-bg);
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-section p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.footer-note {
    opacity: 0.9;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .flags-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .flags-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .signup-form {
        flex-direction: column;
    }

    .flags-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: 500px;
    }

    .flag-item {
        min-height: 80px;
        padding: 0.7rem;
    }

    .flag-image {
        width: 50px;
        height: 38px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .description {
        font-size: 0.95rem;
    }

    .countries-section h2 {
        font-size: 1.8rem;
    }

    .flags-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.flags-grid::-webkit-scrollbar {
    width: 8px;
}

.flags-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.flags-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.flags-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
