/* ═══════════════ BASE ═══════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    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: #030812;
    color: #ffffff;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(52, 211, 153, 0.08);
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    right: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.04);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 25%;
    right: 38%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(52, 211, 153, 0.12);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle-1 {
    bottom: 30%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(52, 211, 153, 0.06);
    animation: float 7s ease-in-out infinite;
}

.shape-dots {
    top: 20%;
    left: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(52, 211, 153, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
}

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

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ NAVBAR ═══════════════ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(3, 8, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

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

.menu-line {
    display: block;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════ SERVICE CARDS ═══════════════ */
.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }

/* ═══════════════ GALLERY ═══════════════ */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════ SCROLL REVEAL (below fold only) ═══════════════ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 1;
    }
}

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

::-webkit-scrollbar-track {
    background: #030812;
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* ═══════════════ SELECTION ═══════════════ */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #ffffff;
}
