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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

::selection {
    background: #FF6B6B;
    color: #141414;
}

/* === Geometric Shapes === */
.geo-shape {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: #FF6B6B;
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: #FF6B6B;
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #FF6B6B;
    border-radius: 50%;
    top: 40%;
    right: 45%;
    animation: float 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #FF6B6B;
    top: 60%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin 30s linear infinite;
}

.geo-diamond {
    width: 120px;
    height: 120px;
    background: #FF6B6B;
    top: 20%;
    left: 40%;
    transform: rotate(45deg);
    animation: float 18s ease-in-out infinite;
}

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

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

/* === Navbar === */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* === Mobile Menu === */
#mobileMenu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

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

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

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

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

/* === Marquee === */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Product Card Hover === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === Form Focus === */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #FF6B6B;
}

/* === Smooth Scroll Offset === */
section[id] {
    scroll-margin-top: 80px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .font-display, h1, h2, h3 {
        word-wrap: break-word;
    }
}
