/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   BASE
============================================================ */
html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   CUSTOM SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b48600; }

/* ============================================================
   GLASSMORPHISM NAVBAR
============================================================ */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    will-change: transform;
}
@media (max-width: 768px) {
    .glass-nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
}
.glass-nav.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* ============================================================
   HERO ANIMATIONS
============================================================ */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgePop {
    0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
    70%  { transform: scale(1.05) translateY(-3px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(180,134,0,0.3); }
    50%       { box-shadow: 0 0 50px rgba(180,134,0,0.6); }
}
@keyframes floatBubble {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50%       { transform: translateY(-12px) rotate(2deg); }
}
@keyframes pulseRing {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes contactFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatContact {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.hero-badge {
    animation: heroBadgePop 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
    animation-delay: 0.2s;
}
.hero-title {
    animation: heroFadeUp 0.9s ease both;
    animation-delay: 0.4s;
}
.hero-subtitle {
    animation: heroFadeUp 0.9s ease both;
    animation-delay: 0.6s;
}
.hero-cta {
    animation: heroFadeUp 0.9s ease both;
    animation-delay: 0.8s;
}
.hero-stats {
    animation: heroFadeUp 0.9s ease both;
    animation-delay: 1s;
}

/* Floating stat bubble on hero */
.hero-float-card {
    animation: floatBubble 4s ease-in-out infinite;
}
.hero-float-card-2 {
    animation: floatBubble 5s ease-in-out infinite reverse;
}

/* Pulsing ring on CTA button */
.btn-pulse {
    position: relative;
    overflow: visible;
}
.btn-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(180,134,0,0.4);
    animation: pulseRing 2s ease-out infinite;
    z-index: -1;
}

/* Ken Burns on hero image */
@keyframes kenBurns {
    0%   { transform: scale(1) translateX(0); }
    100% { transform: scale(1.08) translateX(-2%); }
}
.hero-img {
    animation: kenBurns 12s ease-in-out alternate infinite;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
/* Base state — hidden */
.scroll-reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
                transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal.from-left {
    transform: translateX(-60px);
}
.scroll-reveal.from-right {
    transform: translateX(60px);
}
.scroll-reveal.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34,1.56,0.64,1);
}

/* Revealed state */
.scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.delay-1  { transition-delay: 0.1s; }
.delay-2  { transition-delay: 0.2s; }
.delay-3  { transition-delay: 0.3s; }
.delay-4  { transition-delay: 0.4s; }
.delay-5  { transition-delay: 0.5s; }
.delay-6  { transition-delay: 0.6s; }

/* Legacy compat (used by existing JS) */
.scroll-animate {
    transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
                transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

/* ============================================================
   VALUE PROPS BAR (fix overlap on live site)
============================================================ */
.value-props-bar {
    position: relative;
    z-index: 20;
    margin-top: -3rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .value-props-bar {
        margin-left: auto;
        margin-right: auto;
        max-width: 80rem;
    }
}

.value-prop-item {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.3s ease;
}
.value-prop-item:last-child { border-bottom: none; }
@media (min-width: 768px) {
    .value-prop-item {
        border-bottom: none;
        border-right: 1px solid #f1f5f9;
    }
    .value-prop-item:last-child { border-right: none; }
}
.value-prop-item:hover { background: #fffbf0; }

.value-prop-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b48600;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.value-prop-item:hover .value-prop-icon {
    transform: rotate(8deg) scale(1.1);
}

/* ============================================================
   SECTION BADGES / DECORATORS
============================================================ */
.section-badge {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    background: rgba(180,134,0,0.1);
    border: 1px solid rgba(180,134,0,0.25);
    color: #b48600;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #b48600, #f59e0b);
    border-radius: 9999px;
    margin: 1.25rem auto 0;
}

/* ============================================================
   PRODUCT CARDS (horizontal scroll)
============================================================ */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   CORE SERVICES GRID — fix 5-col last-row alignment
============================================================ */
.services-grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .services-grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}
.service-card-5th {
    /* On mobile/tablet, span full row; on lg it's just 1 col */
    grid-column: span 2;
}
@media (min-width: 1024px) {
    .service-card-5th { grid-column: span 1; }
}

.core-service-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    cursor: default;
}
.core-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fffbf0, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.core-service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(180,134,0,0.18);
    border-color: transparent;
}
.core-service-card:hover::before { opacity: 1; }

.core-service-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #b48600, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(180,134,0,0.35);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}
.core-service-card:hover .core-service-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 14px 36px rgba(180,134,0,0.5);
}

/* ============================================================
   IMAGE HOVER ZOOM
============================================================ */
.hover-zoom img {
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.hover-zoom:hover img { transform: scale(1.08); }

/* ============================================================
   SPACES / SERVICE CARDS
============================================================ */
.space-card {
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.space-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

/* ============================================================
   TEAM SECTION
============================================================ */
.team-img-wrapper {
    position: relative;
}
.team-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(180,134,0,0.15), transparent);
    border-radius: 1.5rem;
    pointer-events: none;
}

/* ============================================================
   TESTIMONIAL CAROUSEL
============================================================ */
.testimonial-slide {
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.carousel-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transform: translateY(20px);
}
.carousel-active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
}

/* ============================================================
   INFINITE MARQUEE
============================================================ */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 3rem;
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Legacy marquee support */
.marquee-content {
    animation: marquee 35s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   BLOG CARDS
============================================================ */
.blog-card {
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.1);
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
details summary::-webkit-details-marker { display: none; }
details[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }
details[open] {
    border-color: rgba(180,134,0,0.3) !important;
    box-shadow: 0 4px 20px rgba(180,134,0,0.08);
}

/* ============================================================
   FIXED CONTACT BUTTONS (Premium Staggered Floating Wave)
   ============================================================ */
@keyframes contactFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatContact {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.fixed-contact-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    will-change: transform;
}

/* Mobile dropdown smooth accordions */
#services-dropdown-menu, #areas-dropdown-menu {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: block !important;
}

#services-dropdown-menu.expanded, #areas-dropdown-menu.expanded {
    max-height: 380px;
    opacity: 1;
}

#services-dropdown-btn svg, #areas-dropdown-btn svg {
    transition: transform 0.3s ease;
}

/* Mobile menu smooth slide & fade (avoiding vertical text stretch) */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: block !important; /* Override hidden toggled class */
}

#mobile-menu.menu-open {
    max-height: 100vh;
    opacity: 1;
}

/* Hamburger toggle button smooth SVG morphing */
#mobile-menu-btn .hamburger-icon,
#mobile-menu-btn .close-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

#mobile-menu-btn.menu-active .hamburger-icon {
    transform: rotate(90deg) scale(0.75);
    opacity: 0;
}

#mobile-menu-btn.menu-active .close-icon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.contact-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    text-decoration: none;
    animation: floatContact 3s ease-in-out infinite;
}

.contact-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.contact-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.contact-btn.phone-btn {
    background: linear-gradient(135deg, #b48600, #d4a373);
}

.contact-btn.whatsapp-btn {
    background: #25d366;
    animation-delay: 0.5s; /* Staggered floating wave loop */
}

.contact-btn svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Responsive adjustments for mobile screen */
@media (max-width: 640px) {
    .fixed-contact-container {
        bottom: 1.25rem;
        right: 1.25rem;
        gap: 0.5rem;
    }
    .contact-btn {
        width: 3rem;
        height: 3rem;
    }
    .contact-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* ============================================================
   NUMBER COUNTER ANIMATION
============================================================ */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}
.counter-animate {
    animation: countUp 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ============================================================
   SHIMMER LOADING / HIGHLIGHT EFFECT
============================================================ */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.text-shimmer {
    background: linear-gradient(90deg, #b48600 0%, #f59e0b 40%, #b48600 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* ============================================================
   RESPONSIVE FIXES
============================================================ */
@media (max-width: 767px) {
    .value-props-bar { margin-top: 0; border-radius: 0; }
}

