/* ── Base & Reset ── */
*, *::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: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #050F1E;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-3deg); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ── Geometric Shapes ── */
.geo-shape {
    animation: float 8s ease-in-out infinite;
}

.triangle-1 {
    background: linear-gradient(135deg, #D4AF37 0%, transparent 70%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
    animation-duration: 10s;
}

.circle-1 {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation-delay: -2s;
    animation-duration: 12s;
}

.square-1 {
    background: linear-gradient(135deg, rgba(15, 45, 94, 0.8) 0%, transparent 70%);
    animation: rotateSlow 30s linear infinite;
    animation-duration: 40s;
}

.triangle-2 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.6) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: -1s;
    animation-duration: 7s;
}

.circle-2 {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation-delay: -4s;
    animation-duration: 9s;
}

/* ── Reveal on Scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Navigation ── */
#navbar {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(5, 15, 30, 0.85);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu.closed #bar2 {
    opacity: 0;
}

#mobile-menu.closed #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Service Cards ── */
.service-card {
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.6) 0%, rgba(5, 15, 30, 0.6) 100%);
    backdrop-filter: blur(10px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px -20px rgba(212, 175, 55, 0.15);
}

/* ── Form Styles ── */
select option {
    background: #0A1F44;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #050F1E;
}

::-webkit-scrollbar-thumb {
    background: #153A78;
    border-radius: 4px;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }

    .geo-shape.triangle-1,
    .geo-shape.circle-1,
    .geo-shape.square-1 {
        display: block;
        opacity: 0.05 !important;
    }
}
