/* The US Space Industry Review - Main Stylesheet */
/* Author: The US Space Industry Review */
/* Version: 1.0 */

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

/* ============================================
   CSS VARIABLES - Color Palette
   ============================================ */
:root {
    --primary-bg: #0a1628;
    --secondary-bg: #142038;
    --accent-green: #2ECC71;
    --text-white: #ffffff;
    --text-light: #e0e6ed;
    --text-muted: #8b95a5;
    --card-bg: #1a2942;
    --hover-bg: #1f3454;
    --border-color: #2a3f5f;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(20, 32, 56, 0.9));
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--text-light);
    background-color: var(--primary-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #27ae60;
    text-decoration: none;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--accent-green);
    font-size: 1.6rem;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 400;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border-color: var(--accent-green);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232ECC71' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a2942 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--accent-green);
    color: var(--text-white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    border: 2px solid var(--accent-green);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary-custom:hover {
    background: #27ae60;
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    color: var(--text-white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    border: 2px solid var(--text-white);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-custom:hover {
    background: var(--text-white);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.section-title .accent-line {
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.2);
    border-color: var(--accent-green);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats-section {
    background: var(--secondary-bg);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

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

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.2);
}

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

.blog-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-card-meta i {
    color: var(--accent-green);
    margin-right: 0.3rem;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.blog-card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card .btn-primary-custom {
    align-self: flex-start;
    padding: 10px 25px;
    font-size: 0.95rem;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.content-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.form-label {
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--primary-bg);
    border-color: var(--accent-green);
    color: var(--text-white);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-green);
    min-width: 40px;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.contact-details p {
    margin-bottom: 0;
    color: var(--text-light);
}

.contact-details a {
    color: var(--accent-green);
}

.contact-details a:hover {
    color: #27ae60;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px var(--shadow);
}

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

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-green);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-green);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--accent-green);
    min-width: 20px;
}

.footer-links h5 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-links a i {
    font-size: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    border-top: 2px solid var(--accent-green);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px var(--shadow);
    z-index: 9999;
    display: none;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    color: var(--text-light);
}

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

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

#acceptCookies {
    background: var(--accent-green);
    color: var(--text-white);
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#acceptCookies:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--card-bg);
    color: var(--text-white);
    font-weight: 500;
    padding: 1.5rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--secondary-bg);
    color: var(--accent-green);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-green);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: var(--card-bg);
    color: var(--text-light);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.article-meta-item i {
    color: var(--accent-green);
}

.article-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.article-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-green);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--secondary-bg);
    border-radius: 8px;
    font-style: italic;
}

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

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 1.85rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.85rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form,
    .contact-info,
    .content-section,
    .article-content {
        padding: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    #acceptCookies {
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-logo,
    .footer-description {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-accent {
    color: var(--accent-green);
}

.bg-dark-custom {
    background: var(--secondary-bg);
}

.border-accent {
    border-color: var(--accent-green) !important;
}

.mb-section {
    margin-bottom: 4rem;
}

.mt-section {
    margin-top: 4rem;
}