/* === BASE STYLES === */:root {
    --primary: #00d3ef;
    --primary-dark: #00b0c7;
    --secondary: #b3292b;
    --accent: #5d0603;
    --accent-light: #b3292b;
    --dark: #050505;
    --dark-bg: #16181a;
    --card-bg: #1a1d20;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --gradient-1: linear-gradient(135deg, #00d3ef 0%, #5d0603 50%, #b3292b 100%);
    --gradient-2: linear-gradient(135deg, #b3292b 0%, #5d0603 100%);
    --gradient-3: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.95) 100%);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--primary);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-top: 2rem;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

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

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

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

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

.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 211, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 211, 239, 0.4);
}

.cta-button {
    background: var(--primary);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 211, 239, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 211, 239, 0.4);
    color: var(--text-primary);
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 211, 239, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 211, 239, 0.2);
}

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

.card > * {
    position: relative;
    z-index: 1;
}

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

.content-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(0, 211, 239, 0.2);
}

.content-image.portrait img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-image.wide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 211, 239, 0.1);
}

table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: collapse;
}

table thead {
    background: var(--gradient-2);
}

table th {
    padding: 1.25rem;
    font-weight: 700;
    text-align: left;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 1.25rem;
    border-top: 1px solid rgba(0, 211, 239, 0.1);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

table tbody tr {
    transition: background 0.3s ease;
}

table tbody tr:hover {
    background: rgba(0, 211, 239, 0.05);
}

/* === LAYOUT STYLES === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 211, 239, 0.1);
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

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

.nav-menu li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    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(8px, -8px);
}

header .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    background: var(--accent-light);
    box-shadow: 0 10px 40px rgba(179, 41, 43, 0.3);
}

header .cta-button:hover {
    box-shadow: 0 15px 50px rgba(179, 41, 43, 0.4);
}

footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(0, 211, 239, 0.1);
    padding: 3rem 0 2rem;
}

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

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

.footer-section ul {
    list-style: none;
    padding: 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-section p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 211, 239, 0.1);
}

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

@media (max-width: 767px) {
    header .container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

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

    nav {
        order: 3;
        width: 100%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: var(--card-bg);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

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

    header .cta-button {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

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

    nav {
        order: 3;
        width: 100%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: var(--card-bg);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

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

    header .cta-button {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }

    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .btn,
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .card {
        padding: 1.5rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.875rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}