/* ── 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: #F5A623;
    color: #6B2D5B;
}

/* ── Geometric Background Shapes ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

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

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

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

.shape-circle-4 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #d4619f;
    bottom: -100px;
    right: -100px;
    animation: float 18s ease-in-out infinite;
}

.shape-circle-5 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #F5A623;
    top: 50%;
    left: -200px;
    animation: float 22s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: #F5A623;
    top: 30%;
    left: 45%;
    transform: rotate(45deg);
    animation: spin 30s linear infinite;
}

.shape-rect-2 {
    width: 120px;
    height: 120px;
    background: #d4619f;
    top: 20%;
    right: 15%;
    transform: rotate(20deg);
    animation: spin 25s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #F5A623;
    top: 60%;
    left: 15%;
    animation: float 16s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(3deg); }
    50% { transform: translateY(10px) rotate(-2deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(38, 16, 33, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 166, 35, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Service Cards ── */
.service-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), background 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ── Product Cards ── */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.2);
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
    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; }

/* ── Staggered children ── */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ── Hero text animation ── */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-title-delay-1 { animation-delay: 0.2s; }
.hero-title-delay-2 { animation-delay: 0.4s; }
.hero-title-delay-3 { animation-delay: 0.6s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

.hero-cta {
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 1s forwards;
}

.hero-stats {
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImageReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

@keyframes heroImageReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

::-webkit-scrollbar-track {
    background: #261021;
}

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

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

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    .shape-circle-3 {
        display: none;
    }
    .shape-rect-1 {
        width: 100px;
        height: 100px;
    }
    .shape-triangle-1 {
        display: none;
    }
}
