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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0a1628;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(212, 168, 67, 0.12);
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 10%;
    left: -8%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-triangle {
    top: 40%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 168, 67, 0.06);
    animation: rotate-slow 25s linear infinite;
}

.shape-square {
    top: 60%;
    left: 3%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(212, 168, 67, 0.1);
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.shape-dots {
    bottom: 25%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
    animation: float-slow 18s ease-in-out infinite reverse;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

@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); }
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

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

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

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

/* Sticky navbar background */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-link {
    position: relative;
    padding-left: 0;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: #f5e09a !important;
    border-left-color: #d4a843;
    padding-left: 12px;
}

#mobile-menu.active {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 1;
}

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.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);
    }
}

/* ===== HERO SECTION ===== */
#hero {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 45, 80, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #040d1a 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

/* ===== FORM STYLES ===== */
select option {
    background: #0f2140;
    color: #ffffff;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .shape-triangle {
        display: none;
    }
    
    .shape-square {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
}
