/* === BASE STYLES === */:root {
    --primary: #FF3366;
    --secondary: #1A1A2E;
    --accent: #00F5FF;
    --dark: #0F0F1E;
    --light: #F8F9FA;
    --gradient-main: linear-gradient(135deg, #FF3366 0%, #FF6B9D 50%, #FFA8C5 100%);
    --gradient-accent: linear-gradient(135deg, #00F5FF 0%, #00D4FF 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #0F0F1E 100%);
    --shadow-sm: 0 2px 8px rgba(255, 51, 102, 0.15);
    --shadow-md: 0 4px 20px rgba(255, 51, 102, 0.25);
    --shadow-lg: 0 8px 40px rgba(255, 51, 102, 0.35);
    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.4);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.7;
    font-size: 16px;
}

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

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--light);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--accent);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--light);
}

p, li {
    color: rgba(248, 249, 250, 0.85);
    margin-bottom: 1rem;
}

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

a:hover {
    color: #00D4FF;
    text-decoration: underline;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-md);
    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.5s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 51, 102, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.content-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid rgba(255, 51, 102, 0.3);
}

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

.content-image.wide {
    width: 100%;
    margin: 2rem 0;
}

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

.content-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.7;
    color: var(--accent);
}

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

table th {
    background: var(--gradient-main);
    color: white;
    padding: 1rem;
    font-weight: 700;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 51, 102, 0.1);
    color: rgba(248, 249, 250, 0.85);
}

/* === LAYOUT STYLES === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 51, 102, 0.2);
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

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

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

nav a {
    color: var(--light);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

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

footer {
    background: var(--gradient-dark);
    border-top: 1px solid rgba(255, 51, 102, 0.2);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 51, 102, 0.1);
    color: rgba(248, 249, 250, 0.6);
}

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

    .logo {
        flex: 1;
    }

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

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

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    header .btn-primary {
        width: 100%;
        max-width: 100%;
        order: 4;
        margin-top: 1rem;
    }
}

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

    .logo {
        flex: 1;
    }

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

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

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    header .btn-primary {
        width: 100%;
        max-width: 100%;
        order: 4;
        margin-top: 1rem;
    }
}

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

    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .cards-grid-2,
    .cards-grid-3,
    .comparison-table {
        grid-template-columns: 1fr;
    }

    .table-of-contents ul {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-item::before {
        width: 16px;
        height: 16px;
    }

    .timeline-item::after {
        left: 7px;
    }

    .accordion-header {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

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

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

    .cta-section {
        padding: 3rem 1.5rem;
    }
}