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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #3d0a28;
    color: #fce7f3;
    overflow-x: hidden;
}

::selection {
    background: #fbbf24;
    color: #5a113c;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #c0267e 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    top: 50%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #fbbf24;
    top: 30%;
    left: 5%;
    opacity: 0.03;
    animation: rotate-slow 30s linear infinite;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #c0267e;
    top: 60%;
    right: 10%;
    opacity: 0.04;
    animation: rotate-slow 25s linear infinite;
    border-radius: 20px;
}

.geo-arch-1 {
    width: 300px;
    height: 150px;
    border: 4px solid #fbbf24;
    border-radius: 150px 150px 0 0;
    bottom: 10%;
    left: 15%;
    opacity: 0.05;
    animation: float-slow 22s ease-in-out infinite;
}

/* Hero geometric overlays */
.geo-overlay {
    position: absolute;
    pointer-events: none;
}

.geo-oval-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.geo-oval-2 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 38, 126, 0.4) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.geo-stripe-1 {
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    top: 30%;
    left: -50%;
    transform: rotate(-15deg);
    animation: stripe-drift 20s linear infinite;
}

.geo-stripe-2 {
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(192, 38, 126, 0.3), transparent);
    top: 70%;
    left: -50%;
    transform: rotate(10deg);
    animation: stripe-drift 25s linear infinite reverse;
}

/* Pattern overlay */
.geo-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(192, 38, 126, 0.15) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes stripe-drift {
    from { transform: translateX(-50%) rotate(-15deg); }
    to { transform: translateX(50%) rotate(-15deg); }
}

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(61, 10, 40, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 38, 126, 0.2);
}

#navbar.scrolled {
    background: rgba(61, 10, 40, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #fde68a !important;
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
}

#mobileMenu.open {
    max-height: 400px;
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(192, 38, 126, 0.2);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #5a113c;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #5a113c;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

.btn-cta-primary svg {
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover svg {
    transform: translateX(4px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.7);
    transform: translateY(-3px);
}

/* ===== Reveal Animations (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape, .geo-overlay {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Scroll Reveal (JS-enhanced) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    #hero h1 {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }

    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-triangle-1,
    .geo-square-1,
    .geo-arch-1 {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .geo-circle-1 {
        width: 400px;
        height: 400px;
    }
}

/* ===== 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-width: 0;
}
