/* CSS Variables */
:root {
    --mint-green: #A8E6CF;
    --sky-blue: #56CCF2;
    --electric-blue: #2196F3;
    --deep-navy: #1A237E;
    --dark-navy: #0D47A1;
    --vibrant-orange: #FF6B35;
    --bright-yellow: #FFD166;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --danger-red: #F44336;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #90A4AE;
    --dark-gray: #37474F;
    --black: #000000;

    --gradient-primary: linear-gradient(135deg, var(--mint-green) 0%, var(--sky-blue) 50%, var(--electric-blue) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-navy) 100%);
    --gradient-accent: linear-gradient(90deg, var(--sky-blue) 0%, var(--electric-blue) 100%);
    --gradient-hero: linear-gradient(180deg, var(--mint-green) 0%, var(--sky-blue) 50%, var(--electric-blue) 100%);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-blue: 0 8px 20px rgba(33, 150, 243, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 56px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 40px;
    color: var(--deep-navy);
}

h3 {
    font-size: 32px;
    color: var(--deep-navy);
}

h4 {
    font-size: 24px;
    color: var(--deep-navy);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-light {
    background-color: var(--light-gray);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--deep-navy);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--deep-navy);
    position: relative;
}

.nav-link:hover {
    color: var(--electric-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--deep-navy);
    cursor: pointer;
}

/* Close menu button - hidden by default in desktop */
.close-menu-item {
    display: none;
}

.close-menu-btn {
    display: none;
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: visible;
}

.hero-content {
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 4px 5px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Questions Grid */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.question-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.question-card-header {
    margin-bottom: 16px;
}

.question-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.question-title a {
    color: var(--deep-navy);
}

.question-title a:hover {
    color: var(--electric-blue);
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--medium-gray);
}

.question-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-excerpt {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(168, 230, 207, 0.1);
    color: var(--deep-navy);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(168, 230, 207, 0.3);
}

.tag:hover {
    background: var(--mint-green);
    color: var(--deep-navy);
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 16px;
    color: var(--dark-gray);
}

.empty-state p {
    color: var(--medium-gray);
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    color: var(--deep-navy);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    font-size: 16px;
    color: var(--dark-gray);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--deep-navy);
    transition: var(--transition);
}

.tag-cloud-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--mint-green);
}

.tag-count {
    font-size: 12px;
    color: var(--medium-gray);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
    font-size: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn i {
    margin-right: 24px;
    font-size: 1.3em;
    vertical-align: middle;
}

.btn-primary {
    background: var(--electric-blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
    font-weight: 700;
    border: 2px solid var(--electric-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.4);
    background: var(--deep-navy);
    color: var(--white);
    border-color: var(--deep-navy);
}

.btn-secondary {
    background: var(--deep-navy);
    color: var(--white);
    border: 2px solid var(--deep-navy);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--electric-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.ml-3 { margin-left: 1.5rem; }
.mt-6 { margin-top: 3rem; }

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 28px; }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }

    .nav {
        position: static;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav.active .nav-overlay {
        display: block;
    }

    .nav-list {
        display: none;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 80px 20px 40px;
        flex-direction: column;
        gap: 24px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active .nav-list {
        display: flex;
    }

    .close-menu-item {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
    }

    .close-menu-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        background: var(--electric-blue);
        color: var(--white);
        border: none;
        border-radius: var(--radius-md);
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: var(--transition);
    }

    .close-menu-btn:hover {
        background: var(--deep-navy);
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-title {
        font-size: 42px;
    }

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

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

    .features-grid {
        grid-template-columns:        1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 22px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .tag-cloud-item {
        padding: 8px 16px;
    }
}
