/* ========================================
   Starving Squirrel — Custom Styles
   ======================================== */

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

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

body {
    margin: 0;
    background-color: #080e1a;
    color: #f8fafc;
}

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

.geo-circle-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 191, 0.08);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-square-1 {
    top: 25%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float-medium 15s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 191, 0.06);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    top: 60%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(13, 148, 136, 0.06);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-ring-1 {
    top: 40%;
    left: 45%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(45, 212, 191, 0.1);
    animation: spin-slow 25s linear infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(25px, -20px) rotate(55deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 212, 191, 0.1);
}

/* Mobile Menu */
#mobileMenu {
    background: rgba(8, 14, 26, 0.98);
    backdrop-filter: blur(20px);
}

#mobileMenu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 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.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Menu Card Hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.4);
    color: #f0fdfa;
}

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(13, 148, 136, 0.06);
    }
    .geo-ring-1 {
        width: 40px;
        height: 40px;
    }
}
