/* === Base Reset & Custom Properties === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-midnight-900: #0a0f1e;
    --color-midnight-800: #0d1529;
    --color-mint-400: #6ee7b7;
    --color-mint-500: #34d399;
}

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

body {
    background-color: var(--color-midnight-900);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* === Decorative Background Shapes === */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.deco-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.04) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
}

.deco-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 30%;
}

.deco-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(52, 211, 153, 0.05) transparent;
    top: 30%;
    left: 5%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.deco-triangle::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -30px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 69px 40px;
    border-color: transparent transparent rgba(52, 211, 153, 0.03) transparent;
}

.deco-square {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(110, 231, 183, 0.06);
    border-radius: 12px;
    bottom: 15%;
    right: 8%;
    transform: rotate(45deg);
    pointer-events: none;
}

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

.nav-line {
    transition: all 0.3s ease;
}

/* === Mobile Menu === */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-mint-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Selection === */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: var(--color-midnight-900);
}

::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 183, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 231, 183, 0.5);
}
