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

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

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

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.03;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 2px solid #f5a623;
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #f5a623;
    bottom: 10%;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    border: 2px solid #f5a623;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin 30s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #f5a623;
    opacity: 0.02;
    top: 60%;
    left: 10%;
    animation: float 18s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #f5a623 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 15%;
    opacity: 0.05;
}

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

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

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

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #f7b84a;
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Service Cards ===== */
.service-card {
    perspective: 1000px;
}

.service-card:hover .service-card-inner {
    transform: translateY(-4px);
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        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; }
}

/* ===== Selection ===== */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #ffffff;
}

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

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

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

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

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
}
