/* === BASE STYLES === */:root {
    --primary: #FF3366;
    --secondary: #00D9FF;
    --accent: #FFD700;
    --dark: #0A0E27;
    --darker: #050816;
    --light: #F8F9FA;
    --gradient-1: linear-gradient(135deg, #FF3366 0%, #FF6B9D 100%);
    --gradient-2: linear-gradient(135deg, #00D9FF 0%, #00A8CC 100%);
    --gradient-3: linear-gradient(135deg, #FF3366 0%, #00D9FF 100%);
    --gradient-radial: radial-gradient(circle at 30% 50%, rgba(255, 51, 102, 0.15), transparent 50%),
                        radial-gradient(circle at 70% 50%, rgba(0, 217, 255, 0.15), transparent 50%);
    --shadow-sm: 0 2px 8px rgba(255, 51, 102, 0.15);
    --shadow-md: 0 8px 24px rgba(255, 51, 102, 0.2);
    --shadow-lg: 0 16px 48px rgba(255, 51, 102, 0.25);
    --shadow-glow: 0 0 20px rgba(255, 51, 102, 0.4);
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 100px;
}

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

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    display: block;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: rgba(248, 249, 250, 0.85);
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: var(--shadow-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 51, 102, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.table-wrapper,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
}

.table-wrapper table,
.table-responsive table {
    display: table;
    width: 100%;
    min-width: 600px;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: table;
}

thead {
    background: var(--gradient-1);
}

th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    color: white;
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(248, 249, 250, 0.9);
    background: rgba(10, 14, 39, 0.6);
}

tbody tr {
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: rgba(255, 51, 102, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

td strong {
    color: var(--secondary);
    font-weight: 600;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    position: relative;
    user-select: none;
    transition: color 0.3s ease;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* === LAYOUT STYLES === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

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

.logo {
    display: inline-block;
    text-decoration: none;
}

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

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-menu a {
    color: var(--light);
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0 2rem;
    margin-top: 6rem;
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1.5rem;
    justify-content: center;
}

footer nav a {
    color: rgba(248, 249, 250, 0.7);
    font-size: 0.9375rem;
}

footer nav a:hover {
    color: var(--secondary);
}

footer p {
    text-align: center;
    color: rgba(248, 249, 250, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 767px) {
    body {
        padding-top: 90px;
    }

    header .container {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .logo {
        order: 1;
    }
    
    .logo img {
        height: 35px;
    }

    nav {
        order: 4;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: rgba(10, 14, 39, 0.98);
        border-radius: 12px;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
    }

    header .cta-button {
        order: 2;
        padding: 12px 24px;
        font-size: 0.9375rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-section {
        padding-top: 7rem;
        min-height: auto;
    }

    .card {
        padding: 1.75rem;
    }

    .highlight-box,
    .timeline-item,
    .numbered-list article,
    .text-block article {
        padding: 2rem;
    }

    .accordion-header {
        padding: 1.25rem 1.5rem;
        font-size: 1.125rem;
    }

    .accordion-header::after {
        right: 1.5rem;
    }

    .accordion-item.active .accordion-body {
        padding: 0 1.5rem 1.5rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.875rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}