/* --- CSS RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Fonts */
.font-serif { font-family: 'Merriweather', serif; }
.font-sans { font-family: 'Roboto', sans-serif; }
.font-display { font-family: 'Phudu', cursive; }
.font-body { font-family: 'Be+Vietnam+Pro', sans-serif; }

/* --- HEADER STYLES --- */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1f2937;
    transition: all 0.3s;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-link {
    color: #9ca3af;
    padding: 0.5rem;
    border-right: 1px solid #374151;
    padding-right: 1rem;
    transition: color 0.3s;
}

.back-link:hover { color: #fff; }

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-soha { height: 28px; transition: opacity 0.3s; }
.logo-soha:hover { opacity: 0.8; }
.logo-emagazine { height: 24px; opacity: 0.9; }
.separator { color: #4b5563; font-size: 1.25rem; font-weight: 300; }

.social-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.3s;
}
.social-btn:hover { color: #be1e2d; }

.progress-container { width: 100%; background: #1f2937; height: 4px; }
#progress-bar { height: 100%; background: #be1e2d; width: 0%; transition: width 0.1s; }

/* --- PARALLAX & CONTENT --- */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .parallax-section { background-attachment: scroll; }
}

.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.3));
    z-index: 1;
}

.section-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    padding: 0 1rem;
    display: flex;
}

.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }

.content-box {
    max-width: 42rem;
    padding: 2rem;
}

/* Text & Shadow */
.text-shadow-strong {
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 64rem;
    text-align: center;
}

.special-tag {
    color: #be1e2d;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Phudu', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title span { font-size: 1.5rem; }

@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

.section-text { font-size: 1.125rem; line-height: 1.8; }

/* Stats & Features */
.stats-grid {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: #fbbf24; }
.stat-label { font-size: 0.875rem; color: #e5e7eb; }

.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: #e5e7eb; }
.feature-list i { color: #be1e2d; }

.axis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.axis-item h4 { font-weight: 700; color: #fbbf24; font-size: 1.125rem; }
.axis-item p { font-size: 0.875rem; color: #e5e7eb; }

@media (min-width: 768px) {
    .axis-grid { grid-template-columns: repeat(3, 1fr); }
    .col-span-2 { grid-column: span 2; }
}

/* --- INTERACTIVE SECTION --- */
.interactive-section {
    padding: 6rem 0;
    background-color: #0a0a0a;
    border-top: 1px solid #1f2937;
}

.wrapper { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

.flip-section-header { text-align: center; margin-bottom: 3rem; }
.flip-section-header h3 { font-family: 'Phudu', cursive; font-size: 2.25rem; text-transform: uppercase; letter-spacing: 0.1em; }
.flip-section-header p { color: #9ca3af; font-size: 0.875rem; margin-top: 0.5rem; }

.flip-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .flip-grid { grid-template-columns: repeat(4, 1fr); } }

/* Flip Card Logic */
.flip-card { height: 320px; perspective: 1000px; cursor: pointer; }
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.front-label {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
}
.front-label h4 { font-family: 'Merriweather', serif; font-size: 1.25rem; font-weight: 700; color: #fff; }

.flip-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.flip-card-back {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #451a03;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* --- QUIZ STYLES --- */
.quiz-container {
    max-width: 48rem;
    margin: 5rem auto 0;
    background-color: #1a1a1a;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #1f2937;
}

.quiz-header { text-align: center; margin-bottom: 2rem; }
.quiz-header h3 { font-family: 'Phudu', cursive; font-size: 1.5rem; text-transform: uppercase; }
.quiz-header i { color: #be1e2d; margin-right: 0.5rem; }
.quiz-header p { color: #6b7280; font-size: 0.75rem; }

.quiz-item { margin-bottom: 1.5rem; }
.question { font-weight: 700; margin-bottom: 0.75rem; }
.options { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }

@media (min-width: 640px) { .options { grid-template-columns: repeat(3, 1fr); } }

.quiz-option {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 0.75rem 1rem;
    border: 1px solid #374151;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.quiz-option:hover { background-color: #374151; transform: translateX(5px); }

.quiz-option.correct { background-color: #065f46; border-color: #10b981; color: #fff; }
.quiz-option.wrong { background-color: #7f1d1d; border-color: #ef4444; color: #fff; opacity: 0.6; }

/* --- ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.fade-up.active { opacity: 1; transform: translateY(0); }

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.flip-icon { animation: pulse-border 2s infinite; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake { animation: shake 0.4s both; }

.feedback-emoji {
    position: fixed;
    pointer-events: none;
    font-size: 2rem;
    z-index: 9999;
    animation: floatUp 1s ease-out forwards;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-60px) scale(1.5); opacity: 0; }
}

/* --- FOOTER --- */
.main-footer { background-color: #0a0a0a; color: #9ca3af; padding: 3rem 0; border-top: 1px solid #1f2937; position: relative; z-index: 20; }
.footer-container { max-width: 56rem; margin: 0 auto; padding: 0 1rem; text-align: center; }
.credits { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.875rem; text-transform: uppercase; }
.dot { display: none; color: #1f2937; }
.footer-line { width: 3rem; height: 1px; background-color: #be1e2d; margin: 0 auto 1.5rem; opacity: 0.5; }
.copyright { font-size: 0.75rem; color: #4b5563; }

@media (min-width: 768px) {
    .credits { flex-direction: row; justify-content: center; gap: 2rem; }
    .dot { display: inline; }
}