/* ===== Custom Properties ===== */
:root {
    --plum-950: #500724;
    --plum-900: #831443;
    --plum-800: #9d174d;
    --amber-400: #fbbf24;
    --amber-300: #ffe69c;
}

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

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Animated Blobs ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 20s ease-in-out infinite;
}

.blob--plum {
    background: var(--plum-800);
}

.blob--amber {
    background: var(--amber-400);
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo--circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid var(--amber-400);
    border-radius: 50%;
    animation: geoSpin 30s linear infinite;
}

.geo--circle-2 {
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--plum-400);
    border-radius: 50%;
    animation: geoSpin 25s linear infinite reverse;
}

.geo--rect-1 {
    top: 20%;
    right: 25%;
    width: 120px;
    height: 120px;
    background: var(--amber-400);
    transform: rotate(45deg);
    animation: geoRotate 20s ease-in-out infinite;
}

.geo--triangle {
    bottom: 20%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--plum-400);
    opacity: 0.06;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo--ring {
    top: 40%;
    left: 50%;
    width: 160px;
    height: 160px;
    border: 4px solid var(--amber-400);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: geoPulse 8s ease-in-out infinite;
}

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

@keyframes geoRotate {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(225deg) scale(1.2); }
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes geoPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.04; }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .scroll-reveal.visible[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(80, 7, 36, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .menu-line {
    background: #fff !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open #mobileMenu {
    max-height: 400px;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #500724;
}

::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

/* ===== Selection ===== */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* ===== Form Enhancements ===== */
select option {
    background: #500724;
    color: #fff;
}

/* ===== Responsive Utilities ===== */
@media (max-width: 768px) {
    .geo--circle-1,
    .geo--circle-2,
    .geo--rect-1,
    .geo--triangle,
    .geo--ring {
        display: none;
    }
}
