/* 
   Internet Governance Resource Hub - Main Styles
   Version: 1.0.0
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0ff;
    --secondary: #ff6b35;
    --accent: #00d4ff;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --bg: #ffffff;
    --text: #1a1a2e;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #1a2a4a;
    --secondary: #ff8a50;
    --accent: #00e5ff;
    --dark: #e8eaed;
    --light: #121212;
    --gray: #b0b0b0;
    --white: #ffffff;
    --bg: #1e1e1e;
    --text: #e8eaed;
}

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

/* Navigation */
nav {
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--primary-dark);
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary-light);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

.theme-toggle i {
    transition: transform 0.6s ease;
}

.cta-button.secondary:hover {
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003d99 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .cta-button {
    padding: 14px 32px;
    font-size: 16px;
}

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

/* Section Styles */
section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text);
}

.card p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.card a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary-dark);
}

/* Alternating Section Backgrounds */
.section-alt {
    background: var(--light);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 60px 0;
}

.feature-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text);
}

.feature-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 500;
}

.feature-list li:before {
    content: "";
    display: inline-block;
    width: 20px;
    margin-right: 0;
}

.feature-list li i {
    color: var(--secondary);
    font-size: 18px;
    margin-right: 8px;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin: 60px 0;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
}

/* Youth Section */
.youth-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 60px 20px;
    border-radius: 12px;
    margin: 60px 0;
}

.youth-section h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.youth-section p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .nav-links {
        display: flex;
        gap: 5px;
    }

    .nav-links a:not(.cta-button):not(.theme-toggle) {
        display: none;
    }

    .theme-toggle {
        margin: 0 5px;
    }

    section h2 {
        font-size: 28px;
    }

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

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

    .feature-content h3 {
        font-size: 22px;
    }
}
