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

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

body {
    overflow-x: hidden;
}

/* Geometric Shapes Animation */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid #00D47C;
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #00D47C, #3EFF9E);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    opacity: 0.08;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid #00D47C;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(0, 212, 124, 0.08);
    top: 60%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.shape-ring-1 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(0, 212, 124, 0.2);
    border-radius: 50%;
    top: 20%;
    left: 15%;
    animation: pulse-ring 4s ease-in-out infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(0, 212, 124, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 20%;
    opacity: 0.2;
}

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

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

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.05; }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
}

/* Menu icon animation */
#menuIcon span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active #menuIcon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #050A18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #00D47C;
}

/* Selection color */
::selection {
    background: rgba(0, 212, 124, 0.3);
    color: #fff;
}

/* Select styling */
select option {
    background: #0A1628;
    color: #fff;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0A1628 0%, #142D54 100%);
}

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

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}
