/* ============================================================
   primeOne — Hero Section Styles
   Brand: #22a55b green | Inter font | Clean modern white
   ============================================================ */

/* ---------- CSS Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #22a55b;
    --green-hover: #1a8f4c;
    --green-light: #f0faf5;
    --green-glow: rgba(34, 165, 91, 0.15);
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f0f0f0;
    --gray-200: #e8e8e8;
    --gray-400: #aaaaaa;
    --gray-500: #999999;
    --gray-600: #666666;
    --border: #f0f0f0;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 4px 20px rgba(34, 165, 91, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 20px;
    --nav-height: 64px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-bg: rgba(255, 255, 255, 0.96);
}

html.dark {
    --black: #f3f4f6;
    --white: #09090b;
    --gray-50: #121216;
    --gray-100: #18181c;
    --gray-200: #27272a;
    --gray-400: #8f8f9d;
    --gray-500: #a1a1aa;
    --gray-600: #d1d5db;
    --border: #27272a;
    --green-light: rgba(34, 165, 91, 0.1);
    --green-glow: rgba(34, 165, 91, 0.25);
    --nav-bg: rgba(9, 9, 11, 0.96);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 4px 25px rgba(34, 165, 91, 0.2);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: var(--nav-bg);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 34px;
    width: auto;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--black);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--black);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-light);
}

/* CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    background: var(--green);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--green-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34, 165, 91, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- HERO SECTION ---------- */
/* ---------- HERO SECTION ---------- */
.hero {
    padding-top: calc(var(--nav-height) + 20px);
    position: relative;
    overflow: hidden;
}

/* Animations for Load Sequence */
.hero-badge {
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-headline {
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-body {
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-buttons {
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

/* ---------- TRUSTED BY BAR ---------- */
.trusted-by {
    border-top: 1px solid var(--border);
    padding: 30px 0 36px;
    background: var(--white);
}

.trusted-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.trusted-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 22px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
}

.trusted-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    opacity: 0.7;
    transition: all var(--transition);
    cursor: default;
}

.trusted-logo:hover {
    opacity: 1;
    color: var(--black);
}

.trusted-logo span {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        gap: 22px;
    }
}

@media (max-width: 868px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .trusted-logos {
        gap: 28px;
    }
}

@media (max-width: 540px) {
    .nav-cta {
        display: none;
    }

    .trusted-logos {
        gap: 20px;
    }

    .trusted-logo span {
        font-size: 12px;
    }
}

/* ============================================================
   SERVICES SECTION — Tailwind Utility Helpers
   (stroke colors not available in Tailwind CDN by default)
   ============================================================ */

.stroke-primary {
    stroke: #22a55b;
}

.group:hover .group-hover\:stroke-white {
    stroke: #ffffff;
}

.group:hover .group-hover\:bg-primary {
    background-color: #22a55b;
}

/* ============================================================
   SCROLL REVEAL SYSTEM
   ============================================================ */

/* Progressive enhancement: hide items only if JS is enabled */
body.js-enabled .reveal-item {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animation presets */
body.js-enabled .reveal-item.reveal-fade-up {
    transform: translateY(35px);
}

body.js-enabled .reveal-item.reveal-fade-down {
    transform: translateY(-35px);
}

body.js-enabled .reveal-item.reveal-fade-left {
    transform: translateX(-35px);
}

body.js-enabled .reveal-item.reveal-fade-right {
    transform: translateX(35px);
}

body.js-enabled .reveal-item.reveal-zoom-in {
    transform: scale(0.94);
}

body.js-enabled .reveal-item.reveal-zoom-out {
    transform: scale(1.06);
}

/* Active states (reveal!) */
body.js-enabled .reveal-item.active,
body.js-enabled .reveal-group.active .reveal-item {
    opacity: 1;
    transform: none;
}

/* ============================================================
   SMOOTH THEME TRANSITION & TOGGLE ANIMATIONS
   ============================================================ */

/* Global transition — removed for instant theme switching */

/* Position toggle SVGs on top of each other and animate them */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle svg {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode state */
.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
}

/* Dark Mode state toggled on html.dark */
html.dark .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
}
html.dark .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Logo contrast enhancement in Dark Mode */
html.dark .nav-logo-img,
html.dark #footer-logo img {
    filter: invert(1) hue-rotate(180deg) brightness(1.15);
}

/* ============================================================
   PREMIUM DARK MODE ENHANCEMENTS
   ============================================================ */

/* Dark mode card hover glow effect */
html.dark .group:hover,
html.dark .review-card:hover {
    box-shadow: 0 0 20px rgba(34, 165, 91, 0.08),
                0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode service icon containers — refined emerald glow on hover */
html.dark .group:hover .group-hover\:bg-primary {
    box-shadow: 0 0 12px rgba(34, 165, 91, 0.3);
}

/* Darker navbar shadow on scroll in dark mode */
html.dark .navbar {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Dark mode scrollbar styling */
html.dark::-webkit-scrollbar {
    width: 8px;
}
html.dark::-webkit-scrollbar-track {
    background: #09090b;
}
html.dark::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
html.dark::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Footer link text adjustment for dark mode */
html.dark footer a.text-sm.text-gray-500 {
    color: #a1a1aa;
}
html.dark footer a.text-sm.text-gray-500:hover {
    color: #22a55b;
}

/* Stats bar subtle inner glow in dark mode */
html.dark #stats-bar {
    border: 1px solid rgba(34, 165, 91, 0.08);
}

/* Dark mode mobile menu */
@media (max-width: 868px) {
    html.dark .nav-links {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}
