/* Main Styles */
:root {
    /* Colors */
    --primary-color: #0066FF;
    --text-color: #1A1A1A;
    --bg-color: #FFFFFF;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --status-done: #4CAF50;
    --status-progress: #2196F3;
    --status-planned: #9E9E9E;
    --footer-color: #333333;
    --subscribe-dg: #FAFAFA;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.32rem;
    --spacing-sm: 0.64rem;
    --spacing-md: 1.28rem;
    --spacing-lg: 1.92rem;
    --spacing-xl: 2.56rem;
    --spacing-xxl: 3.84rem;

    /* Container */
    --container-width: 96rem;
    --container-padding: 1.6rem;
}

/* Global Styles */
html {
    font-size: 50%;
    scroll-behavior: smooth;
    background-color: var(--footer-color);
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

/* Typography */
h1 {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #B22C2C;
    color: var(--white);
}

.btn-primary:hover {
    background-color: #9a2626;
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--text-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 0;
    background: var(--gray-100);
    border-bottom: 1px solid #B22C2C;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--spacing-xxl) + 8rem);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #B22C2C;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
}

.hero p {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    color: var(--white);
}

.hero .subscribe-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--subscribe-dg);
    padding: 0.5rem 0.8rem;
    border-radius: 3rem;
}

.hero .email-input {
    flex: 1;
    height: 4.8rem;
    padding: 0 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3rem 0rem 0rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.6rem;
    backdrop-filter: blur(5px);
}

.hero .email-input::placeholder {
    color: rgba(26, 26, 26, 0.6);
}

.hero .email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
}

.hero .btn {
    height: 4.8rem;
    padding: 0 3rem;
    white-space: nowrap;
    border-radius: 3rem;
    border: 0px;
}

/* Follow Us Section */
.follow-us {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--gray-100);
}

.follow-us h2 {
    margin-bottom: var(--spacing-md);
}

.follow-us p {
    margin-bottom: var(--spacing-lg);
    color: #666;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) auto;
}

.social-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-links.footer-social {
    margin-right: 0;
    justify-content: flex-end;
}

.social-links.footer-social a {
    width: 40px;
    height: 40px;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.social-links.footer-social .social-icon {
    width: 20px;
    height: 20px;
}

/* Roadmap Section */
.roadmap {
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    border-bottom: 1px solid #B22C2C;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background-color: var(--gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: calc(var(--spacing-xl) * 0.5);
    width: 50%;
    margin-top: calc(var(--spacing-xl) * -1.2);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    z-index: 2;
}

.timeline-content {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    z-index: 3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.timeline-item:nth-child(odd) {
    padding-right: var(--spacing-xl);
    margin-left: 0;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: var(--spacing-xl);
}

.timeline-item:nth-child(odd)::before {
    right: -5px;
}

.timeline-item:nth-child(even)::before {
    left: -5px;
}

.timeline-item:first-child {
    margin-top: 0;
}

.timeline-content .status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-item.done .status {
    background-color: rgba(76,175,80,0.1);
    color: var(--status-done);
}

.timeline-item.in-progress .status {
    background-color: rgba(33,150,243,0.1);
    color: var(--status-progress);
}

.timeline-item.planned .status {
    background-color: rgba(158,158,158,0.1);
    color: var(--status-planned);
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-content .date {
    color: #666;
    font-size: 1.4rem;
}

.view-more {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: var(--spacing-xl);
    font-weight: 600;
}

/* News Section */
.news {
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    text-align: center;
}

.news .container {
    max-width: calc(240px * 4 + var(--spacing-lg) * 3);
    margin: 0 auto;
}

.news-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    justify-content: center;
}

.news-card {
    flex: 0 0 240px;
    width: 240px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

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

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

.news-content h3 {
    font-size: 1.44rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.news-content .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.12rem;
}

/* Article Layout */

.article {
    width: 60%;
    margin-top: 6rem;
    margin-left: auto;
    margin-right: auto;
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    text-align: justify;
}

.article h2 {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg);
}

.article .container {
    max-width: calc(240px * 4 + var(--spacing-lg) * 3);
    margin: 0 auto;
}

.article-image {
    max-width: 40%;
    max-height: 300px;
    margin: 0 auto;
}

.article-content {
    text-align: justify;
    padding: var(--spacing-md);
    margin-left: 10px;
}

.article-layout {
    display: flex;
    gap: var(--spacing-xs);
    align-items: flex-start;
    text-align: left;
}

.article-image {
    max-width: 40%;
    height: auto;
}

.article-content {
    flex: 1;
}

.article-content p {
    text-align: justify;
    padding-bottom: var(--spacing-md);
    margin-left: 10px;
}

.inline-img {
    height: 25px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-left: var(--spacing-xs);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    background-color: var(--footer-color);
    color: var(--white);
}

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

.footer-sidebox-left {
    text-align: left;
    width:250px;
}

.footer-sidebox-right {
    text-align: left;
    width:250px;
}

.footer .logo {
    width: 200px;
    margin-bottom: var(--spacing-sm);
}

.footer .copyright {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer .social-links {
    margin: var(--spacing-md) 0;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
}

.footer .social-links .social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    background-color: rgba(154, 38, 38, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    visibility: hidden;
    transform: translateY(1rem);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: rgba(154, 38, 38, 1);
    transform: translateY(-2px);
}

.back-to-top .arrow-up-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .back-to-top {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }

    .back-to-top .arrow-up-icon {
        width: 14px;
        height: 14px;
    }

    .actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 56.25%;
    }

    .news-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-card {
        margin: var(--spacing-md);
    }

    .timeline {
        padding-left: var(--spacing-md);
    }

    .hero .subscribe-form {
        flex-direction: column;
        background-color: var(--subscribe-dg);
        text-align: center;
    }

    .hero .email-input{
        height: 4.8rem;
        text-align: center;
        border-radius: 3rem;
        flex: auto;
    }

    .hero .btn {
        width: 160px;
        margin: auto;
    }

    .social-links {
        gap: var(--spacing-sm);
    }

    .social-links a {
        width: 60px;
        height: 60px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .footer-sidebox-right {
        display: none;
    }

    .footer .container {
        justify-content: space-between;
    }

    .footer .social-links {
        margin-right: 0;
    }

    .footer .social-links.footer-social {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .social-links {
        gap: var(--spacing-xs);
    }

    .social-links a {
        width: 45px;
        height: 45px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* Sections */
section {
    scroll-margin-top: 8rem;  /* Add space for fixed header */
}
