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

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

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

::selection {
    background: #D4A017;
    color: #0A1128;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #2A3F6B;
    border-radius: 4px;
}

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

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: floatShape 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.04) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid rgba(212, 160, 23, 0.03);
    top: 40%;
    right: 5%;
    animation: rotateShape 30s linear infinite;
}

.geo-rect {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 160, 23, 0.05);
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 160, 23, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 25%;
    left: 3%;
    animation: floatShape 22s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-3deg); }
}

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

/* ===== Floating Cards ===== */
.floating-card-1 {
    animation: floatCard1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatCard2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: floatCard3 4.5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-12px) translateX(5px); }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .menu-line {
    background: #ffffff;
}

#navbar.scrolled .menu-line:last-child {
    background: #E8B828;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

#mobileMenu.show {
    animation: slideDown 0.3s ease forwards;
}

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

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Form Styles ===== */
select option {
    background: #0F172A;
    color: #ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-card-3 {
        display: none;
    }
    
    .floating-card-1 {
        top: -4px;
        right: -4px;
        padding: 0.4rem 0.6rem;
    }
    
    .floating-card-2 {
        bottom: -2px;
        left: -4px;
        padding: 0.4rem 0.6rem;
    }
    
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-rect {
        display: none;
    }
    
    .geo-dots {
        width: 60px;
        height: 60px;
        background-size: 8px 8px;
    }
}

@media (max-width: 480px) {
    .floating-card-1,
    .floating-card-2 {
        position: static;
        margin-top: 1rem;
        animation: none;
    }
}
