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

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

body {
    min-height: 100vh;
}

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(20, 184, 166, 0.3);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(250, 204, 21, 0.25);
    bottom: 25%;
    right: 12%;
    transform: rotate(20deg);
    animation: spin-slow 18s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.2);
    top: 40%;
    right: 5%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 15%;
    left: 15%;
    opacity: 0.5;
}

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

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

/* === NAVBAR === */
.navbar-scrolled {
    background: rgba(8, 14, 26, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

#menuBtn.active .nav-line:nth-child(2) {
    opacity: 0;
}

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

/* === MOBILE MENU === */
#mobileMenu {
    max-height: 0;
}

#mobileMenu.open {
    max-height: 400px;
}

.mobile-link {
    position: relative;
}

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

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

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

/* === PRODUCT CARDS === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* === FOCUS STYLES === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-square-2 {
        width: 40px;
        height: 40px;
    }
    
    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(45, 212, 191, 0.2);
    }
}
