/* ===================================
   Event Horizon Review - Main Stylesheet
   Scientific publication about black holes
   =================================== */

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

/* ===== ROOT VARIABLES ===== */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-deep-blue-grey: #2c3e50;
    --color-dark-bg: #1a1a2e;
    --color-accent-green: #27ae60;
    --color-accent-green-dark: #1e8449;
    --color-light-grey: #ecf0f1;
    --color-text-grey: #7f8c8d;
    --font-body: 'Poppins', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height: 1.6;
    --max-text-width: 700px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY STYLES ===== */
body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height);
    color: var(--color-deep-blue-grey);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-weight: var(--font-weight-regular);
    max-width: var(--max-text-width);
    margin-bottom: 1.2rem;
}

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

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

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--color-white);
    font-weight: var(--font-weight-regular);
    transition: color var(--transition-speed);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-accent-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto 2rem;
    max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-accent-green);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
    margin: 0.5rem;
}

.btn:hover {
    background-color: var(--color-accent-green-dark);
    transform: translateY(-2px);
    color: var(--color-white);
}

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

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

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--color-text-grey);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

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

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--color-text-grey);
}

/* ===== CONTENT SECTION ===== */
.content-section {
    background-color: var(--color-light-grey);
}

.content-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.content-text {
    flex: 1;
    min-width: 300px;
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text p {
    max-width: 100%;
}

.content-image {
    flex: 1;
    min-width: 300px;
}

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

/* ===== STATISTICS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-deep-blue-grey) 100%);
    color: var(--color-white);
}

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

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-accent-green);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--color-white);
    max-width: 100%;
    margin: 0 auto;
}

/* ===== CALL TO ACTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent-green) 0%, var(--color-accent-green-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--color-accent-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section ul {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    transition: color var(--transition-speed);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-card-content p {
    color: var(--color-text-grey);
    margin-bottom: 1rem;
    max-width: 100%;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-grey);
    margin-bottom: 1rem;
}

/* ===== BLOG ARTICLE ===== */
.article-header {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.article-header h1 {
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto 1rem;
}

.article-meta {
    color: var(--color-light-grey);
    font-size: 0.9rem;
}

.article-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.article-content p {
    max-width: 100%;
}

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.team-role {
    color: var(--color-accent-green);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--color-text-grey);
    max-width: 100%;
    margin: 0 auto;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    background: var(--color-white);
    border-left: 3px solid var(--color-accent-green);
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.timeline-item h3 {
    margin-bottom: 0.5rem;
}

.timeline-item p {
    max-width: 100%;
    margin: 0;
    color: var(--color-text-grey);
}

/* ===== CONTACT FORM ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-deep-blue-grey);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.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-light-grey);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-accent-green);
    margin-right: 1rem;
    min-width: 30px;
}

.contact-detail p {
    margin: 0;
    max-width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-accent-green);
    color: var(--color-white);
    border-radius: 50%;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.social-link:hover {
    background-color: var(--color-accent-green-dark);
    transform: scale(1.1);
    color: var(--color-white);
}

/* ===== MAP ===== */
.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
}

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--color-white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-deep-blue-grey);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed);
}

.faq-question:hover {
    background-color: var(--color-light-grey);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent-green);
    transition: transform var(--transition-speed);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

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

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    max-width: 100%;
    margin: 0.5rem 0;
    color: var(--color-text-grey);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark-bg);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--color-accent-green);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    margin: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

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

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 2rem;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed);
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .content-flex {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

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

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Desktop large (1200px and above) */
@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
