/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
    --gold: #f9b864;
    --yellow: #f2e800;
    --gold-dark: #d69a3e;
    --bg: #0f0f14;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #f0f0f0;
    --text-muted: #a0a0a8;
    --radius: 20px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(249, 184, 100, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   PARTICLES BACKGROUND
   ========================================= */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* =========================================
   HEADER (from courses project)
   ========================================= */
.main-header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    display: block;
}

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

.main-nav a {
    text-decoration: none;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #f9b864;
}

.contact-btn {
    background: #e6e6e6;
    color: #000000;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #d4d4d4;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-contact {
    display: none;
}

/* =========================================
   FOOTER (from courses project)
   ========================================= */
.main-footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.9rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* =========================================
   SECTION: PARTNERSHIP
   ========================================= */
.partnership-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    text-align: center;
}

.section-eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 10px;
    background: rgba(249, 184, 100, 0.12);
    border: 1px solid rgba(249, 184, 100, 0.25);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.section-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.4);
    }
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--yellow), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.partnership-img-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    transition: transform 0.45s cubic-bezier(.25, .8, .25, 1),
        box-shadow 0.45s cubic-bezier(.25, .8, .25, 1),
        border-color 0.3s;
}

.partnership-img-wrapper:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 184, 100, 0.3);
}

.partnership-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 15, 20, 0.6) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.partnership-img-wrapper img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.partnership-click-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    pointer-events: none;
}

.partnership-img-wrapper:hover .partnership-click-hint {
    background: rgba(249, 184, 100, 0.25);
    border-color: var(--gold);
}

/* =========================================
   SECTION: STRESS TESTS
   ========================================= */
.tests-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.tests-section .section-eyebrow,
.tests-section .section-title,
.tests-section .section-subtitle {
    text-align: center;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.test-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(.25, .8, .25, 1),
        box-shadow 0.45s cubic-bezier(.25, .8, .25, 1),
        border-color 0.3s;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    padding: 48px 32px 40px;
}

.test-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(249, 184, 100, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    pointer-events: none;
}

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

.test-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 184, 100, 0.3);
    transform: translateY(-8px);
}

.test-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    z-index: 1;
}

.test-card-icon.ar {
    background: rgba(249, 184, 100, 0.15);
}

.test-card-icon.en {
    background: rgba(13, 110, 110, 0.2);
}

.test-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.test-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.test-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.test-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 184, 100, 0.3);
}

.test-card-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.test-card:hover .test-card-btn svg {
    transform: translateX(4px);
}

/* =========================================
   DIVIDER
   ========================================= */
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 0 auto 60px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

/* =========================================
   MODAL — PARTNERSHIP INFO
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    background: linear-gradient(160deg, rgba(30, 30, 40, 0.97), rgba(20, 20, 28, 0.99));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(249, 184, 100, 0.08);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(249, 184, 100, 0.2);
    border-color: var(--gold);
    transform: rotate(90deg);
}

.modal-header {
    padding: 36px 36px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(249, 184, 100, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.modal-body {
    padding: 28px 36px 36px;
}

.modal-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    margin: 24px 0 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 12px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.modal-body ul li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 6px;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.modal-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    margin: 20px 0;
    background: rgba(249, 184, 100, 0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.85;
}

/* =========================================
   MODAL — REGISTRATION POPUP
   ========================================= */
.reg-modal {
    max-width: 480px;
}

.reg-modal .modal-header {
    padding-bottom: 8px;
}

.reg-modal .modal-header h2 {
    font-size: 1.2rem;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: rgba(160, 160, 168, 0.6);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(249, 184, 100, 0.12);
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group .country-code-select {
    width: 140px;
    flex-shrink: 0;
}

.phone-group input {
    flex: 1;
}

/* Custom Select Styling */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a24;
    color: var(--text);
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 184, 100, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-note {
    font-size: 0.75rem;
    color: rgba(160, 160, 168, 0.6);
    text-align: center;
    line-height: 1.6;
}

.form-success {
    text-align: center;
    padding: 20px 0;
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(58, 183, 100, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* =========================================
   RESPONSIVE HEADER
   ========================================= */
@media (max-width: 1100px) {
    .header-container {
        padding: 10px 20px;
    }

    .logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .desktop-contact {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 101;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .mobile-contact {
        display: inline-block;
        text-align: center;
        margin-top: 10px;
    }
}

/* =========================================
   RESPONSIVE — PAGE CONTENT
   ========================================= */
@media (max-width: 768px) {
    .partnership-section {
        padding: 50px 20px 40px;
    }

    .tests-section {
        padding: 40px 20px 60px;
    }

    .tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .test-card {
        padding: 36px 24px 32px;
    }

    .modal-header {
        padding: 28px 24px 0;
    }

    .modal-body {
        padding: 20px 24px 28px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .partnership-section {
        padding: 36px 16px 30px;
    }

    .tests-section {
        padding: 30px 16px 50px;
    }

    .phone-group {
        flex-direction: column;
    }

    .phone-group .country-code-select {
        width: 100%;
    }

    .modal {
        border-radius: 16px;
    }

    .modal-header {
        padding: 24px 20px 0;
    }

    .modal-body {
        padding: 16px 20px 24px;
    }
}