/* ==========================================================================
   MAIN PAGE - KÖRIO LANDING PAGE
   Redesigned to match Login & Index Neobrutalist / Gumroad-Style Identity
   ========================================================================== */

:root {
    /* Brand Colors */
    --primary-color: #735DA8;
    --primary-glow: rgba(115, 93, 168, 0.35);
    --primary-deep: #2C2535;
    --secondary-color: #2C2535;
    --secondary-deep: #1b1622;
    --accent-color: #B8A6D0;
    --bg-light: #F0EDF2;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-border: var(--secondary-color);
    --brand-cream: #F6EED8;
    --brand-gold: #FFE3A9;
    --brand-teal: #78B2C6;
    --brand-teal-glow: rgba(120, 178, 198, 0.15);

    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-sm: 8px;

    --box-shadow-sm: 3px 3px 0 var(--secondary-color);
    --box-shadow: 6px 6px 0 var(--secondary-color);
    --box-shadow-premium: 8px 8px 0 var(--secondary-color);

    --transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.15s ease;

    --success-color: #599248;
    --danger-color: #ef4444;

    --gray-50: #fcfbfe;
    --gray-100: #f5f3f7;
    --gray-200: #eadef0;
    --gray-300: #cfc5d8;
    --gray-400: #a99cb5;
    --gray-500: #867992;
    --gray-600: #645870;
    --gray-700: #443a4e;
    --gray-800: #2c2535;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(rgba(115, 93, 168, 0.09) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   AMBIENT GLOW BACKGROUND
   ========================================================================== */

.ambient-glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: floatBlob 20s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(115, 93, 168, 0.3) 0%, rgba(115, 93, 168, 0.02) 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(120, 178, 198, 0.25) 0%, rgba(120, 178, 198, 0.02) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 227, 169, 0.25) 0%, rgba(255, 227, 169, 0.01) 70%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.05); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ==========================================================================
   FLOATING CAPSULE NAVBAR
   ========================================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 24px;
    position: sticky;
    top: 15px;
    z-index: 100;
    border: 3px solid var(--secondary-color);
    border-radius: 50px;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 15px auto 0 auto;
    box-shadow: 5px 5px 0 var(--secondary-color);
    transition: var(--transition);
}

.navbar:hover {
    box-shadow: 7px 7px 0 var(--secondary-color);
    transform: translate(-1px, -1px);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.06) rotate(-2deg);
}

.logo-img {
    height: 42px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
    transition: var(--transition-fast);
}

.login-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--secondary-color);
}

.login-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--secondary-color);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: 70px 30px;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-premium);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--brand-teal), var(--brand-gold), var(--primary-color));
    background-size: 300% 100%;
    opacity: 0.95;
}

.hero-section:hover {
    box-shadow: 10px 10px 0 var(--secondary-color);
    transform: translate(-2px, -2px);
}

.hero-section:hover::before {
    animation: shimmerBar 2s linear infinite;
}

@keyframes shimmerBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-logo {
    max-width: 220px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(115, 93, 168, 0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo:hover {
    transform: scale(1.06) rotate(-2deg);
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 35px;
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 3px solid var(--secondary-color);
    font-size: 1rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--secondary-color), 0 0 15px var(--primary-glow);
}

.btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--brand-teal);
    border-color: var(--secondary-color);
}

.btn-secondary:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--brand-teal));
    margin: 14px auto 0;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

.section-content {
    max-width: 750px;
    margin: 20px auto 30px;
    font-size: 1.05rem;
    text-align: center;
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.7;
}

/* ==========================================================================
   ABOUT SECTION (intro card)
   ========================================================================== */

.content-section.fade-in:not(#features):not(#languages):not(#how-it-works):not(#contact):not(.trial-test-section) {
    background: var(--brand-cream);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 50px 40px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.content-section.fade-in:not(#features):not(#languages):not(#how-it-works):not(#contact):not(.trial-test-section):hover {
    box-shadow: 9px 9px 0 var(--secondary-color);
    transform: translate(-2px, -2px);
}

.content-section.fade-in:not(#features):not(#languages):not(#how-it-works):not(#contact):not(.trial-test-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-gold), var(--primary-color), var(--brand-teal));
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--brand-teal), var(--brand-gold));
    background-size: 300% 100%;
    opacity: 0.9;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--brand-teal), 0 0 20px var(--brand-teal-glow);
}

.feature-card:hover::before {
    height: 6px;
    animation: shimmerBar 2s linear infinite;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--brand-gold);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(115, 93, 168, 0.35);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 800;
}

.feature-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ==========================================================================
   LANGUAGES GRID
   ========================================================================== */

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.language-card {
    background: white;
    border-radius: var(--border-radius);
    border: 3px solid var(--secondary-color);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 4px 4px 0 var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--brand-teal);
}

.language-card:hover::before {
    opacity: 1;
}

.language-card .fi {
    font-size: 2.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-card:hover .fi {
    transform: scale(1.15) rotate(4deg);
}

.language-card h3 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   HOW IT WORKS - STEPS
   ========================================================================== */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.step-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px 25px 25px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid var(--secondary-color);
    box-shadow: 5px 5px 0 var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
}

.step-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 9px 9px 0 var(--accent-color);
}

.step-card:hover::after {
    left: 150%;
    transition: all 0.85s ease-in-out;
}

.step-number {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    border: 3px solid var(--secondary-color);
    border-top: none;
    box-shadow: 2px 3px 0 var(--secondary-color);
    z-index: 2;
}

.step-title {
    font-size: 1.2rem;
    margin: 30px 0 12px;
    color: var(--secondary-color);
    font-weight: 800;
}

.step-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ==========================================================================
   TRIAL EXAM SECTION
   ========================================================================== */

.trial-test-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-deep) 100%);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-premium);
    padding: 60px 30px;
    margin: 20px 0 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.trial-test-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

.trial-test-section:hover {
    box-shadow: 10px 10px 0 var(--secondary-color);
    transform: translate(-2px, -2px);
}

.trial-test-section .section-title {
    color: white;
}

.trial-test-section .section-title::after {
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-cream));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
}

.trial-description {
    max-width: 650px;
    margin: 20px auto 35px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.7;
}

.start-trial-btn {
    background: var(--brand-gold);
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.start-trial-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3);
    background: var(--brand-cream);
}

.start-trial-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 3px solid var(--secondary-color);
    box-shadow: 4px 4px 0 var(--secondary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--brand-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--brand-teal);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    background: var(--brand-cream);
    width: 56px;
    height: 56px;
    align-items: center;
    border-radius: 14px;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-bounce);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 800;
}

.contact-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
    font-weight: 600;
}

/* Contact Form Container */
.contact-form-container {
    display: flex;
    flex-direction: column;
}

.contact-form-container .contact-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-container .contact-icon {
    margin-left: auto;
    margin-right: auto;
}

.contact-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 3px solid var(--secondary-color);
    background: var(--brand-cream);
    color: var(--secondary-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 4px 4px 0 var(--primary-color), 0 0 15px var(--primary-glow);
    transform: translate(-2px, -2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-400);
    font-weight: 600;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 700;
}

.form-message .success {
    background: #eefbee;
    color: var(--success-color);
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--success-color);
    padding: 10px;
    border-radius: 10px;
}

.form-message .error {
    background: #ffebeb;
    color: var(--danger-color);
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--danger-color);
    padding: 10px;
    border-radius: 10px;
}

.form-message .info {
    background: var(--brand-cream);
    color: var(--gray-700);
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
    padding: 10px;
    border-radius: 10px;
}

/* ==========================================================================
   TRIAL EXAM MODAL
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 37, 53, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    margin: 3% auto;
    padding: 0;
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-premium);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--brand-teal), var(--brand-gold), var(--primary-color));
    background-size: 300% 100%;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    animation: shimmerBar 3s linear infinite;
}

.modal-header {
    padding: 24px 30px 16px;
    border-bottom: 3px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.close {
    color: var(--gray-500);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
    background: white;
}

.close:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
    transform: translate(-1px, -1px);
}

.modal-body {
    padding: 25px 30px 30px;
}

/* ==========================================================================
   EXAM CONTAINER (inside modal)
   ========================================================================== */

.exam-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 3px solid var(--secondary-color);
    box-shadow: 4px 4px 0 var(--secondary-color);
}

.question-card {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid var(--gray-200);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.question-number {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(115, 93, 168, 0.08);
    padding: 4px 12px;
    border-radius: 8px;
    border: 2px solid rgba(115, 93, 168, 0.15);
}

.timer {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--brand-cream);
    padding: 6px 14px;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

.question {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.5;
}

.options-container {
    display: grid;
    gap: 12px;
}

.option {
    display: block;
    margin: 8px 0;
    font-size: 1rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border-radius: 12px;
    width: 100%;
    transition: var(--transition);
    border: 3px solid var(--gray-200);
    position: relative;
    font-weight: 700;
    cursor: pointer;
}

.option label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.option input[type="radio"]:checked + label::before {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(115, 93, 168, 0.2);
}

.option label:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--primary-color);
}

.option input[type="radio"]:checked + label.correct {
    background: #eefbee;
    border-color: var(--secondary-color);
    box-shadow: 4px 4px 0 var(--success-color);
    color: var(--secondary-color);
}

.option input[type="radio"]:checked + label.incorrect {
    background: #ffebeb;
    border-color: var(--secondary-color);
    box-shadow: 4px 4px 0 var(--danger-color);
    color: var(--secondary-color);
}

.option .correct-answer {
    background: #eefbee;
    border-color: var(--success-color);
}

.progress-container {
    height: 12px;
    background: var(--gray-200);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-teal), var(--primary-color));
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exam-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.nav-btn {
    background: white;
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 3px 3px 0 var(--secondary-color);
    font-family: inherit;
}

.nav-btn:hover:not(:disabled) {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-btn:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--secondary-color);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#question-counter {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--brand-cream);
    padding: 6px 14px;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
}

.exam-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

/* Explanation Box */
.explanation-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--brand-cream);
    border-radius: 12px;
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
}

.explanation-title {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.explanation-content {
    color: var(--gray-700);
    line-height: 1.6;
    font-weight: 600;
}

/* ==========================================================================
   RESULTS SECTION (inside modal)
   ========================================================================== */

.results-section {
    text-align: center;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
    display: none;
}

.results-section h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
    font-weight: 800;
}

.score-percentage {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.score-bar {
    height: 12px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid var(--secondary-color);
}

.score-summary {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.score-item {
    text-align: center;
    background: var(--gray-50);
    padding: 16px;
    border-radius: 12px;
    min-width: 100px;
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
}

.score-label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.score-value {
    font-size: 1.3rem;
    font-weight: 800;
}

.score-value.correct {
    color: var(--success-color);
}

.score-value.incorrect {
    color: var(--danger-color);
}

.score-result {
    margin: 24px 0;
    padding: 24px;
    border-radius: var(--border-radius, 16px);
    transition: var(--transition, all 0.3s ease);
    text-align: center;
}

.score-result.pass {
    background: linear-gradient(135deg, rgba(89, 146, 72, 0.08), rgba(89, 146, 72, 0.02));
    border: 1px solid rgba(89, 146, 72, 0.2);
    box-shadow: 0 10px 25px -5px rgba(89, 146, 72, 0.08);
}

.score-result.fail {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.08);
}

.score-result h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.score-result.pass h3 {
    color: var(--success-color);
}

.score-result.fail h3 {
    color: var(--danger-color);
}

.score-result p {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.exam-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 14px;
    border: 2px solid var(--gray-200);
}

.stat-label {
    display: block;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.review-section {
    text-align: center;
    margin: 16px 0;
    padding: 14px;
    background: var(--brand-cream);
    border-radius: 12px;
    border: 3px solid var(--secondary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
}

.review-section p {
    margin-bottom: 12px;
    color: var(--gray-700);
    font-weight: 700;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.action-btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 3px solid var(--secondary-color);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.action-btn.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.action-btn.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--secondary-color);
}

.action-btn.btn-secondary {
    background: white;
    color: var(--secondary-color);
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.action-btn.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--brand-teal);
}

.btn-warning {
    background: var(--brand-gold);
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.btn-warning:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--secondary-color);
    background: var(--brand-cream);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    color: var(--gray-500);
    font-weight: 700;
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 50px 25px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        border-radius: 24px;
        padding: 10px 18px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 1.9rem;
    }

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

    .hero-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-grid,
    .steps-container,
    .contact-container,
    .exam-stats {
        grid-template-columns: 1fr;
    }

    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-buttons,
    .action-buttons,
    .exam-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .exam-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .question-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .score-percentage {
        font-size: 2.2rem;
    }

    .contact-form .form-group {
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 18px;
    }

    .modal-header,
    .modal-body {
        padding: 18px;
    }

    .score-summary {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .content-section.fade-in:not(#features):not(#languages):not(#how-it-works):not(#contact):not(.trial-test-section) {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 14px;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

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

    .hero-logo {
        max-width: 160px;
    }

    .main-container {
        padding: 12px;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .language-card {
        padding: 16px 10px;
    }

    .feature-card,
    .step-card {
        padding: 25px 18px;
    }

    .trial-test-section {
        padding: 40px 20px;
    }
}
