@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-color: #1e293b;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 102, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem;
    border-radius: 20px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: var(--transition);
}

.card-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* PDF Viewer Styling */
.pdf-container {
    margin-top: 80px;
    height: calc(100vh - 80px);
    width: 100%;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed if many links */
    }

    /* Mobile PDF optimization */
    .pdf-container {
        display: none;
        /* Hide iframe container on mobile by default */
    }

    /* Mobile Guide Hub UI */
    .mobile-guide-hub {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 60px);
        margin-top: 60px;
        padding: 2rem;
        text-align: center;
        background: white;
    }

    .guide-icon {
        width: 80px;
        height: 80px;
        background: rgba(0, 102, 255, 0.1);
        color: var(--primary-color);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .mobile-guide-hub h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    .mobile-guide-hub p {
        color: var(--text-muted);
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
    }

    .hub-btn {
        width: 100%;
        max-width: 300px;
        background: var(--primary-color);
        color: white;
        padding: 1.2rem;
        border-radius: 16px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
        margin-bottom: 1rem;
    }

    .hub-btn-secondary {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
    }

    /* Mobile PDF optimization */
    .pdf-container {
        margin-top: 60px;
        /* Smaller header on mobile */
        height: calc(100vh - 60px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pdf-container iframe {
        height: 100%;
        width: 100%;
    }

    .mobile-pdf-action {
        display: flex;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary-color);
        color: white !important;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
        z-index: 1001;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
        animation: slideUp 0.5s ease;
    }

    @keyframes slideUp {
        from {
            transform: translate(-50%, 100px);
            opacity: 0;
        }

        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }
}

.mobile-pdf-action {
    display: none;
    /* Hidden by default on desktop */
}

/* Desktop View */
@media (min-width: 769px) {
    .mobile-guide-hub {
        display: none;
    }
}