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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.lead {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 400;
    line-height: 1.7;
    color: #2d3748;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #e53e3e, #d69e2e);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #e53e3e;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-brand a:hover {
    color: #ff4444;
    transition: color 0.3s ease;
}

.nav-menu {
    display: none;
    gap: 2rem;
}

/* Ensure nav menu stays hidden on mobile and tablet */
@media (max-width: 1199px) {
    .nav-menu {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e53e3e;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e53e3e;
    transition: width 0.3s ease;
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #4a5568;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem 1rem; /* Extra top padding for fixed nav */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: white;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.375rem);
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    text-align: center;
}

.btn-primary {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn-primary:hover {
    background: #c53030;
    border-color: #c53030;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    font-size: 0.9rem;
    font-weight: 500;
}

.scroll-indicator {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
    animation: scroll 2s ease-in-out infinite;
}

/* Main Content */
.main {
    position: relative;
}

.section {
    padding: 5rem 0;
    position: relative;
    scroll-margin-top: 4rem;
}

.section-dark {
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #718096;
    font-style: italic;
    margin-bottom: 0;
}

.content {
    position: relative;
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

/* Stats Section */
.content-stats {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-text {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

/* Special Content Boxes */
.quote {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
    text-align: center;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 2rem;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote p {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-style: italic;
    margin: 0;
    font-weight: 400;
}

.highlight-box,
.insight-box,
.warning-box {
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.highlight-box {
    background: #fff5f5;
    border-color: #e53e3e;
}

.insight-box {
    background: #f0fff4;
    border-color: #38a169;
}

.warning-box {
    background: #fffbf0;
    border-color: #d69e2e;
}

.call-to-action {
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.call-to-action h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.call-to-action p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
}

/* Sources Section */
.sources-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

.source-category h3 {
    color: #e53e3e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e53e3e;
}

.source-list {
    list-style: none;
    padding: 0;
}

.source-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e53e3e;
    font-size: 0.95rem;
    line-height: 1.6;
}

.source-list em {
    font-style: italic;
    color: #4a5568;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-text p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-share {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e53e3e;
}

.modal-body {
    padding: 2rem;
}

.share-options {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
}

.share-option:hover {
    border-color: #e53e3e;
    background: #fff5f5;
    color: #e53e3e;
}

.share-icon {
    font-size: 1.5rem;
}

.copy-link {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.copy-link input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.copy-link button {
    padding: 0.75rem 1.5rem;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.copy-link button:hover {
    background: #c53030;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scroll {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile fixes */
@media (max-width: 767px) {
    .hero {
        padding-top: 5rem; /* Extra space for mobile nav */
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-title-sub {
        font-size: 1.25rem;
    }
}

/* Responsive Design */
/* Desktop Navigation Only */
@media (min-width: 1200px) {
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .content-stats {
        grid-template-columns: 1fr;
    }
    
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .copy-link {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .content-stats {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .nav,
    .progress-bar,
    .hero-scroll,
    .footer-share,
    .modal {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: white;
        color: black;
    }
    
    .hero-background {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .section-dark {
        background: white;
        border: 1px solid #ccc;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-background {
        opacity: 0.95;
    }
    
    .nav {
        background: rgba(255, 255, 255, 1);
        border-bottom: 2px solid #000;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
}

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

/* Text selection */
::selection {
    background: #e53e3e;
    color: white;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}