/* Event Horizon Review - Main Stylesheet */
/* Scientific Design System for Astrophysics Publication */

/* ===============================================
   TYPOGRAPHY & FONTS
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

:root {
    /* Color Palette */
    --color-black: #0a0a0a;
    --color-white: #ffffff;
    --color-deep-blue: #1a2332;
    --color-blue-grey: #2d3e50;
    --color-accent-green: #00c896;
    --color-accent-green-dark: #00a078;
    --color-grey-light: #f4f6f8;
    --color-grey-medium: #6c757d;
    --color-border: #dee2e6;
    
    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semi: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --container-max-width: 1200px;
    --content-max-width: 700px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ===============================================
   TYPOGRAPHY ELEMENTS
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semi);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-deep-blue);
}

h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    max-width: var(--content-max-width);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-normal);
}

a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-green-dark);
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
header {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-accent-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--color-white);
    font-weight: var(--font-weight-normal);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-main);
    font-weight: var(--font-weight-normal);
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-green-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-green);
    border: 2px solid var(--color-accent-green);
}

.btn-secondary:hover {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7), rgba(29, 35, 50, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-normal);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===============================================
   CONTAINER & SECTIONS
   =============================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-deep-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--color-grey-medium);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* ===============================================
   FEATURE CARDS
   =============================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent-green);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-accent-green);
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-deep-blue);
}

.feature-card p {
    max-width: 100%;
    color: var(--color-grey-medium);
}

/* ===============================================
   CONTENT SECTIONS
   =============================================== */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-text h2 {
    margin-bottom: var(--spacing-sm);
}

.content-text p {
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
}

/* ===============================================
   STATISTICS SECTION
   =============================================== */
.stats {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-green);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-white);
}

/* ===============================================
   CALL TO ACTION
   =============================================== */
.cta {
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-blue-grey));
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

/* ===============================================
   BLOG & ARTICLES
   =============================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.blog-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

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

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card .excerpt {
    color: var(--color-grey-medium);
    margin-bottom: var(--spacing-sm);
}

.blog-meta {
    color: var(--color-grey-medium);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* Article Pages */
.article-header {
    text-align: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--color-grey-light);
}

.article-title {
    max-width: 900px;
    margin: 0 auto var(--spacing-sm);
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--color-grey-medium);
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    max-width: var(--content-max-width);
    margin: var(--spacing-lg) auto;
}

.article-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.article-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.article-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--spacing-md) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===============================================
   TEAM SECTION
   =============================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-sm);
    border: 4px solid var(--color-accent-green);
}

.team-member h3 {
    margin-bottom: var(--spacing-xs);
}

.team-role {
    color: var(--color-accent-green);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--spacing-xs);
}

.team-bio {
    color: var(--color-grey-medium);
}

/* ===============================================
   TIMELINE
   =============================================== */
.timeline {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-accent-green);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-green);
    margin-bottom: var(--spacing-xs);
}

/* ===============================================
   CONTACT FORM
   =============================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.contact-form {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-normal);
    color: var(--color-deep-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    background: var(--color-grey-light);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: var(--spacing-sm);
}

.contact-detail {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.contact-detail i {
    color: var(--color-accent-green);
    margin-top: 4px;
}

.map-container {
    margin-top: var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===============================================
   FAQ
   =============================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    margin-bottom: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-grey-light);
    border: none;
    text-align: left;
    font-family: var(--font-main);
    font-size: 1.125rem;
    font-weight: var(--font-weight-semi);
    color: var(--color-deep-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

.faq-question.active {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

.faq-icon {
    transition: transform var(--transition-normal);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: var(--spacing-md);
    color: var(--color-grey-medium);
    line-height: 1.7;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

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

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

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

.social-link:hover {
    background-color: var(--color-accent-green);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===============================================
   COOKIE CONSENT BANNER
   =============================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.cookie-buttons .btn {
    padding: 0.5rem 1.5rem;
}

/* ===============================================
   UTILITIES
   =============================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.bg-light {
    background-color: var(--color-grey-light);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-deep-blue);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .content-section {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .cookie-banner,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}