/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #080e1a;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero Geometric Shapes ===== */
.hero-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(45, 212, 191, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 10%;
    left: 8%;
    width: 180px;
    height: 180px;
    background: rgba(45, 212, 191, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square {
    top: 25%;
    left: 3%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(45, 212, 191, 0.1);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-dots {
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    animation: float 10s ease-in-out infinite;
}

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

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

#navbar.scrolled .bg-teal-500 {
    background: #14b8a6;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

/* ===== Menu Cards ===== */
.menu-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

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

.menu-card:hover {
    box-shadow: 0 20px 60px rgba(45, 212, 191, 0.15);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #080e1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* ===== Selection ===== */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-circle-2 {
        width: 90px;
        height: 90px;
    }
    
    .shape-square {
        width: 50px;
        height: 50px;
    }
}
