/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #2dd4bf 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    opacity: 0.05;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: #5eead4;
    border-radius: 50%;
    top: 30%;
    right: 15%;
    opacity: 0.06;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #14b8a6;
    top: 60%;
    left: 10%;
    transform: rotate(45deg);
    opacity: 0.06;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: #2dd4bf;
    top: 20%;
    left: 20%;
    transform: rotate(45deg);
    opacity: 0.05;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #5eead4;
    top: 45%;
    right: 8%;
    opacity: 0.05;
}

.shape-circle-4 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    opacity: 0.04;
}

.shape-square-2 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    top: 10%;
    right: 5%;
    transform: rotate(30deg);
    opacity: 0.04;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== BUTTON HOVER GLOW ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .geo-shape {
        animation: none !important;
    }

    img, .group-hover\:scale-110 {
        transition: none !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* ===== SELECTION ===== */
::selection {
    background: #14b8a6;
    color: #0f172a;
}
