/* === BASE STYLES === */:root {
    --primary: #00D9FF;
    --primary-dark: #00B8D4;
    --secondary: #FF1493;
    --secondary-dark: #D11178;
    --accent: #7B2FFF;
    --dark: #0A0E27;
    --dark-lighter: #141B3D;
    --text: #E8EAED;
    --text-secondary: #A0A8C0;
    --success: #00FF87;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 20px rgba(0, 217, 255, 0.15);
    --shadow-md: 0 8px 40px rgba(0, 217, 255, 0.25);
    --shadow-lg: 0 16px 60px rgba(123, 47, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(123, 47, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(255, 20, 147, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.5);
    color: #fff;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 20, 147, 0.5);
    color: #fff;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.5);
    color: #fff;
}

.cta-button:hover::before {
    opacity: 1;
}

.card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

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

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
}

.content-image {
    max-width: 100%;
    margin: 1.5rem auto;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.content-image.portrait img {
    max-height: 350px;
    max-width: 300px;
}

.content-image.wide img {
    max-height: 300px;
    max-width: 100%;
}

.content-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 16px;
    background: rgba(20, 27, 61, 0.4);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    color: var(--text);
}

table th {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    padding: 1rem;
    text-align: left;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

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

dl {
    margin: 2rem 0;
}

dt {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

dd {
    color: var(--text-secondary);
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

ul, ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

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

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

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.accordion-body {
    padding: 0 1.5rem 0.3rem 1.5rem !important;
}

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

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

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

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

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

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

header .cta-button {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

footer {
    background: var(--dark-lighter);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo {
    }
    
    header .cta-button {
        max-width: 200px;
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    header nav {
        width: 100%;
    }
    
    header .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--border);
    }
    
    header .nav-menu.active {
        right: 0;
    }
    
    header .nav-menu a {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .hero-section .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .table-of-contents ul {
        grid-template-columns: 1fr;
    }
    
    .cards-grid-3 .container > div,
    .cards-grid-2 .container > div {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
    
    .cta-section p {
        font-size: 1.15rem;
    }
    
    .cta-section .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
        width: 100%;
    }
}