/* ========== 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 {
    background-color: #0f050e;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 5, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
    margin-right: 0;
    margin-left: auto;
}

/* ========== HERO ========== */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 5, 14, 0.88) 0%,
        rgba(107, 33, 91, 0.72) 50%,
        rgba(15, 5, 14, 0.85) 100%
    );
}

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

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(245, 192, 48, 0.15);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    left: 3%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(245, 192, 48, 0.1);
    border-radius: 50%;
    animation: float-slow 16s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 40%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: rgba(107, 33, 91, 0.2);
    transform: rotate(45deg);
    animation: float-slow 14s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 60%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 192, 48, 0.08);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-ring-1 {
    top: 80%;
    right: 25%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(107, 33, 91, 0.3);
    border-radius: 50%;
    animation: float-slow 12s ease-in-out infinite;
}

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

/* ========== SCROLL REVEAL ========== */
.section-reveal {
    opacity: 1;
    transform: none;
}

.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .service-card {
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .product-card {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Staggered delays for grid items */
.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.3s ease;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    transition: transform 0.3s ease;
}

/* ========== INPUT FOCUS ========== */
input:focus, textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #6b215b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #581a4b;
}

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

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(15, 5, 14, 0.92) 0%,
            rgba(107, 33, 91, 0.80) 50%,
            rgba(15, 5, 14, 0.90) 100%
        );
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span:last-child {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 192, 48, 0.3); }
    50% { box-shadow: 0 0 20px 4px rgba(245, 192, 48, 0.15); }
}

/* ========== ACCESSIBILITY ========== */
@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-on-scroll {
        opacity: 1;
        transform: none;
    }
}
