/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

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

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
    width: 120px;
    height: 120px;
    background: #d4a017;
    top: 30%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #ec4899;
    opacity: 0.06;
    top: 60%;
    left: 10%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #d4a017;
    top: 45%;
    right: 15%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-circle-4 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #d4a017 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    opacity: 0.05;
    animation: float-slow 22s ease-in-out infinite;
}

.geo-diamond-1 {
    width: 100px;
    height: 100px;
    background: #ec4899;
    opacity: 0.06;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

/* ===== HERO GRID PATTERN ===== */
.hero-grid-pattern {
    background-image: 
        linear-gradient(rgba(212, 160, 23, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 160, 23, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVBAR SCROLLED STATE ===== */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ===== MENU BUTTON ANIMATION ===== */
.menu-line {
    display: block;
}

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

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f3fa;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1e3a70;
    border-radius: 4px;
}

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