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

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

body {
    background-color: #0a0f1e;
    color: #ffffff;
    overflow-x: hidden;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    top: 15%;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.06);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.04);
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 60%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: rgba(45, 212, 191, 0.04);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: float-medium 15s ease-in-out infinite;
}

.geo-diamond {
    top: 30%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: rgba(45, 212, 191, 0.06);
    border-radius: 8px;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite reverse;
}

.geo-triangle {
    bottom: 30%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(45, 212, 191, 0.04);
    animation: float-medium 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

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

/* Navbar */
.nav-scrolled #navbar {
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-link {
    display: block;
    transition: color 0.2s ease;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styles */
select option {
    background: #0f172a;
    color: #ffffff;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}
