/* ===== 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: #0a0f1e;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

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

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

.shape-square-1 {
    top: 45%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(45, 212, 191, 0.04);
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.shape-triangle-1 {
    top: 70%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.05);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-ring-1 {
    top: 30%;
    left: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(45, 212, 191, 0.06);
    animation: spin-slow 30s linear infinite reverse;
}

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

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

/* ===== NAVBAR ===== */
.nav-blur {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.nav-blur.scrolled {
    background: rgba(10, 15, 30, 0.95);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

.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%;
}

.nav-link:hover {
    color: #2dd4bf !important;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu.active {
    max-height: 400px;
    padding-top: 0.5rem;
}

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

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 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.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTON HOVER EFFECTS ===== */
a {
    text-decoration: none;
}

/* ===== CUSTOM SELECTION ===== */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.5);
}

/* ===== IMAGE PLACEHOLDER FALLBACK ===== */
img {
    background: linear-gradient(135deg, #111d38 0%, #162044 100%);
    min-height: 200px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-circle-1,
    .shape-circle-2,
    .shape-ring-1 {
        display: none;
    }
    
    .shape-square-1 {
        opacity: 0.2;
    }
    
    .shape-triangle-1 {
        opacity: 0.2;
    }
}
