/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar scroll state ── */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 240, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5C518;
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
}

/* ── Hero Geometric Shapes ── */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 61, 122, 0.2) 0%, transparent 70%);
    bottom: -50px;
    left: 10%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
}

.geo-rect--1 {
    width: 120px;
    height: 120px;
    background: rgba(245, 197, 24, 0.08);
    border: 2px solid rgba(245, 197, 24, 0.15);
    border-radius: 20px;
    top: 20%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-slow 7s ease-in-out infinite;
}

.geo-rect--2 {
    width: 80px;
    height: 80px;
    background: rgba(168, 61, 122, 0.15);
    border-radius: 16px;
    bottom: 25%;
    right: 38%;
    transform: rotate(-10deg);
    animation: float-slow 5s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(245, 197, 24, 0.07);
    top: 35%;
    right: 5%;
    transform: rotate(20deg);
    animation: float-slow 9s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(245, 197, 24, 0.25) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 15%;
    left: 3%;
    animation: float-slow 6s ease-in-out infinite;
}

.geo-dots--contact {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(245, 197, 24, 0.2) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    bottom: 20%;
    right: 5%;
    animation: float-slow 7s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-18px) rotate(var(--rot, 0deg)); }
}

.geo-rect--1 { --rot: 15deg; }
.geo-rect--2 { --rot: -10deg; }
.geo-triangle { --rot: 20deg; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Progressive enhancement: content is visible by default; JS adds the animated class */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Smooth anchor offset ── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Selection color ── */
::selection {
    background: rgba(245, 197, 24, 0.3);
    color: #1a0b16;
}

/* ── Mobile menu animation ── */
#mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Hamburger animation ── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}
