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

:root {
    --primary: #e94560;
    --primary-dark: #c7364f;
    --accent: #0f3460;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0c0;
    --text-muted: #7a7a8a;
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    margin-bottom: 0.6rem;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover, a:focus-visible {
    color: #ff6b7a;
    outline: none;
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    display: block;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.5rem;
}

blockquote footer {
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

address {
    font-style: normal;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
}

/* ===== Header & Nav ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 26, 0.95);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav > a {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

nav ul li a:hover::after,
nav ul li a:focus-visible::after {
    width: 80%;
}

nav ul li a:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* ===== Hero Section ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #0f3460 70%, #e94560 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(15, 52, 96, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

#hero > * {
    position: relative;
    z-index: 1;
}

#hero h1 {
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(233, 69, 96, 0.3);
    background: linear-gradient(135deg, #fff 0%, #ffb3b3 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero p {
    max-width: 700px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

#hero a[role="button"] {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

#hero a[role="button"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
}

#hero a[role="button"]:hover::after {
    left: 100%;
}

#hero a[role="button"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.6);
}

/* ===== Sections ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

section {
    margin: 4rem 0;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1.0s; }
section:nth-child(12) { animation-delay: 1.1s; }

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

section h2 {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 4px;
}

/* ===== Lists ===== */
section ul, section ol {
    margin: 1rem 0;
    padding-left: 1.2rem;
}

section ul li, section ol li {
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

section ul li::before {
    content: '▸';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

section ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

section ol li {
    counter-increment: step;
    padding-left: 2.5rem;
    position: relative;
}

section ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

section ul li strong,
section ol li strong {
    color: var(--text-primary);
}

/* ===== FAQ ===== */
details {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition);
    cursor: pointer;
}

details:hover {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.05);
}

details[open] {
    background: rgba(233, 69, 96, 0.08);
    border-color: var(--primary);
}

summary {
    font-weight: 600;
    padding: 0.6rem 0;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▶';
    color: var(--primary);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    padding: 0.8rem 0 0.4rem 1.2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-glass);
    margin-top: 0.4rem;
}

/* ===== Articles / Cards ===== */
article {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    transition: all var(--transition);
}

article:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.15);
}

article time {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

article a[href] {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
}

article a[href]::after {
    content: '→';
    margin-left: 0.4rem;
    transition: margin-left var(--transition);
}

article a[href]:hover::after {
    margin-left: 0.8rem;
}

/* ===== Testimonials ===== */
#testimonials blockquote {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all var(--transition);
}

#testimonials blockquote:hover {
    border-color: var(--primary);
    transform: scale(1.01);
}

/* ===== Contact ===== */
#contact address p {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

#contact address p strong {
    color: var(--text-primary);
}

/* ===== Footer ===== */
footer {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

footer nav ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

footer p:last-child {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    nav ul {
        justify-content: center;
        gap: 0.6rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    #hero {
        padding: 5rem 1.2rem 3rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.8rem 1.2rem;
        margin: 2.5rem 0;
    }

    section ul, section ol {
        padding-left: 0.8rem;
    }

    details {
        padding: 0.4rem 0.8rem;
    }

    article {
        padding: 1.2rem;
    }

    footer nav ul {
        gap: 0.6rem 1rem;
    }

    footer nav ul li a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    nav > a {
        font-size: 1.3rem;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    #hero a[role="button"] {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 1.2rem 1rem;
        border-radius: var(--radius-sm);
    }

    blockquote {
        padding: 0.8rem 1rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #hero {
        animation: none;
    }

    section {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ===== Light Mode Support (optional fallback) ===== */
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f5f5fa;
        --bg-card: rgba(0, 0, 0, 0.03);
        --bg-glass: rgba(255, 255, 255, 0.7);
        --text-primary: #1a1a2e;
        --text-secondary: #4a4a5a;
        --text-muted: #8a8a9a;
        --border-glass: rgba(0, 0, 0, 0.08);
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    header {
        background: rgba(245, 245, 250, 0.85);
    }

    #hero {
        background: linear-gradient(135deg, #f5f5fa 0%, #e0e0f0 40%, #c0c0e0 70%, #e94560 100%);
    }

    #hero h1 {
        background: linear-gradient(135deg, #1a1a2e 0%, #e94560 50%, #1a1a2e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    #hero p {
        color: rgba(0, 0, 0, 0.7);
    }

    footer {
        background: rgba(245, 245, 250, 0.95);
    }
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}