@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100;300;400;600;700;900&display=swap');

:root {
    --primary-red: #E31B21;
    --dark-red: #931114;
    --gold: #FFD700;
    --light-gold: #FFF5E1;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Encode Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* Base sections - No VH used */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

#myBar {
    height: 4px;
    background: var(--gold);
    width: 0%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: white;
    padding: 120px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    opacity: 0.5;
}

.hero .meta {
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
}

.hero .author {
    font-size: 24px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(40px);
}

.hero .date {
    font-size: 16px;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.8;
    opacity: 0;
    transform: translateY(50px);
}

.hero.active .meta,
.hero.active h1,
.hero.active .author,
.hero.active .date {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.hero.active .meta { transition-delay: 0.2s; }
.hero.active h1 { transition-delay: 0.4s; }
.hero.active .author { transition-delay: 0.6s; }
.hero.active .date { transition-delay: 0.8s; }

/* Article Content */
.content-wrapper {
    background: white;
    padding: 80px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
    text-transform: uppercase;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 100%;
    background: var(--gold);
}

/* Cards & Components */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.interactive-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.interactive-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-red);
    transition: var(--transition-smooth);
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.interactive-card:hover::after {
    width: 100%;
}

.interactive-card h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 700;
}

.interactive-card ul {
    list-style: none;
}

.interactive-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.interactive-card li::before {
    content: "●";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* Quote style */
.quote-box {
    background: var(--primary-red);
    color: white;
    padding: 60px;
    border-radius: 20px;
    margin: 60px 0;
    text-align: center;
    position: relative;
}

.quote-box blockquote {
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.5;
}

.quote-box::before {
    content: "“";
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 120px;
    font-family: serif;
    opacity: 0.2;
}

/* Highlight text */
.highlight-box {
    border-left: 10px solid var(--primary-red);
    background: #fffcfc;
    padding: 40px;
    margin: 40px 0;
    font-size: 20px;
}

.highlight-box strong {
    color: var(--primary-red);
}

/* Timeline Style */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 4px;
    background-color: var(--primary-red);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

footer p {
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .hero h1 { font-size: 40px; }
    .hero { min-height: 500px; }
}

@media screen and (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero { min-height: 450px; }
    .section-title { font-size: 24px; }
    .quote-box { padding: 40px 20px; }
    .quote-box blockquote { font-size: 20px; }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0%; }
}
