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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navigation */
#nav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(45, 212, 191, 0.08), 0 4px 32px rgba(0, 0, 0, 0.4);
}

/* Mobile menu */
#mobileMenu {
    transition: opacity 0.3s ease;
}

#mobileMenu.open {
    display: flex;
}

#mobileMenu:not(.open) {
    display: none;
}

.mobile-link {
    position: relative;
}

/* Hero geometric shapes */
.hero-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-1 {
    top: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    border-radius: 50%;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    top: 60%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: #14b8a6;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    top: 25%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: #5eead4;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float3 7s ease-in-out infinite;
}

.shape-4 {
    bottom: 20%;
    right: 10%;
    width: 160px;
    height: 160px;
    border: 2px solid #2dd4bf;
    border-radius: 32px;
    background: transparent;
    opacity: 0.05;
    animation: float1 12s ease-in-out infinite reverse;
}

.shape-5 {
    top: 45%;
    left: 40%;
    width: 60px;
    height: 60px;
    background: #0d9488;
    border-radius: 50%;
    animation: float2 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

/* Card hover effects */
.group:hover .group-hover\\:bg-teal-500\\/20 {
    background-color: rgba(45, 212, 191, 0.2);
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Selection color */
::selection {
    background-color: rgba(45, 212, 191, 0.3);
    color: white;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-shape {
        animation: none !important;
    }
}
