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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-primary {
    color: var(--color-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    /* Rounded pill buttons per inspiration */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-dark);
    /* Black button per inspiration */
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-text);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-brand {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.btn-brand:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.btn-text {
    background: none;
    padding: 0;
    color: var(--color-text);
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--text-lg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 0;
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    /* Font styling removed as it is now an image logo */
    min-height: 48px;
    padding: 5px 0;
}

.logo-full {
    height: 40px;
    /* Adjust based on navbar height */
    width: auto;
    display: block;
}

/* Old Icon classes removed */

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge to menu */
    margin-bottom: -20px;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

/* .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
} */

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--color-primary);
    transform: translateX(4px);
}

.mobile-toggle {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    /* Nav height + spacing */
    padding-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(132, 204, 22, 0.1);
    color: var(--color-primary-hover);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero h1 {
    font-size: var(--text-h1);
    line-height: var(--line-h1);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    font-weight: 300 !important;
    /* Book weight per screenshot for Header 1 */
}

/* Fix for invisible text on light backgrounds */
/* Fix for invisible text on light backgrounds */
.bento-card h3,
.bento-card .card-title,
.bento-card p,
.bento-card .card-desc,
.bento-card .card-tag,
.bento-card span,
.bento-card div {
    color: var(--color-text) !important;
}

.hero h1,
.hero h1 strong,
.hero h1 span {
    font-weight: 300 !important;
}

.badge {
    display: inline-block !important;
    width: fit-content !important;
    max-width: fit-content !important;
}

.bento-card .card-tag {
    color: #64748b !important;
    /* Secondary text color for tags */
}

/* Override for the bold keyword part to keep emphasis */
.hero h1 strong {
    font-weight: 600;
}

.hero-sub {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stat-item strong {
    display: block;
    font-size: var(--text-xl);
    color: var(--color-dark);
}

.stat-item span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    /* height: 500px; Remove fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orbiting Circles replaced Hero Integrations Grid in css/components/orbiting-circles.css */

/* Text Carousel & Glow */
.text-carousel {
    display: inline-block;
    position: relative;
    color: var(--color-primary);
    /* Reduced width to prevent wrapping */
    text-align: left;
    height: 1.6em;
    /* Increased to show underline */
    margin-bottom: -0.2em;
    /* Compensate for height increase */
    /* Slightly taller for italic ascenders */
    vertical-align: middle;
    /* Changed from bottom to allow growth downwards */
    overflow: hidden;
    font-weight: 400;
    /* Elegant, lighter weight */
    font-style: italic;
    /* Slanted */
    font-family: 'Merriweather', serif;
    /* Elegant contrast font */
    white-space: nowrap;
    z-index: 10;
    /* Ensure layer is above subsequent sections */
}

.text-glow {
    text-shadow: 0 0 20px rgba(132, 204, 22, 0.4);
    /* Subtle glow matching primary color */
}

.carousel-word {
    position: absolute;
    top: 0.15em;
    /* Nudge down to center in taller box */
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: linear-gradient(135deg, #84CC16 0%, #a3e635 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Gradient text for premium feel */
}

.highlight-merriweather {
    display: inline-block;
    position: relative;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-weight: 400;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 5px;
    /* Adjust for descenders if needed */
}

.highlight-merriweather .brush-underline path {
    stroke-dashoffset: 0;
    stroke: var(--color-primary);
}


/* Paintbrush Underline */
.serif-title {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-style: italic;
}

.brush-underline {
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.brush-underline path {
    fill: none;
    /* Use the same gradient color or fallback to primary */
    stroke: var(--color-primary);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;

    /* Animation setup */
    stroke-dasharray: 210;
    /* Path length approx */
    stroke-dashoffset: 210;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.carousel-word.active .brush-underline path {
    stroke-dashoffset: 0;
}

/* Shiny Button */
.shiny-button {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    /* Dark background */
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shiny-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s;
}

.shiny-button:hover::before {
    left: 100%;
}

.shiny-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.carousel-word.exit {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
}

/* Logo Image */
.logo-img {
    height: 32px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
    /* Optional slight rounding */
}

/* Sections Base */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.subtitle {
    display: block;
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-sm);
}

/* Services Grid Redesign */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.service-card:hover {
    background: #0f172a;
    /* Dark background on hover */
    border-color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 12px;
    /* Soft square per screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    color: #64748b;
    /* Gray text/stroked icon */
}

.service-card:hover .service-icon-wrapper {
    background: var(--color-primary);
    /* Lime Green */
    color: #000;
    /* Black icon stroke */
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #fff;
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #94a3b8;
    /* Light gray text */
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.service-card:hover .service-link {
    color: #fff;
}

/* Hide emojis now */
.service-icon {
    display: none;
}

/* Bento Grid Refined (Magic UI Style) */
.bento-section {
    background: #f8fafc;
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(360px, auto));
    gap: 24px;
}

/* Base Card Style */
.bento-card {
    background: #fff;
    border-radius: 32px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    /* Basic border fallback */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    /* Lift effect */
    transform: translateY(-4px);
}

/* SHINE BORDER IMPLEMENTATION */
/* Using a moving gradient background behind a slightly smaller white content area is easiest and most robust */
.shine-border {
    position: relative;
    background: linear-gradient(60deg, #f0f0f0, #ffffff, #f0f0f0);
    z-index: 0;
}

.shine-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* Border width */
    border-radius: 34px;
    /* Slightly larger than card */
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 80deg,
            var(--color-primary) 100deg,
            transparent 180deg);
    animation: shine-rotate 4s linear infinite;
    z-index: -1;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
}

.shine-border:hover::before {
    opacity: 1;
    /* Show on hover */
}

.shine-border::after {
    /* Inner background to cover the center of the gradient */
    content: "";
    position: absolute;
    inset: 1px;
    background: #fff;
    border-radius: 31px;
    z-index: -1;
}

@keyframes shine-rotate {
    from {
        --shine-angle: 0deg;
        transform: rotate(0deg);
    }

    to {
        --shine-angle: 360deg;
        transform: rotate(360deg);
    }
}

/* Background Glow */
.bento-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover .bento-bg-glow {
    opacity: 1;
}

/* Service Card & Shine Integration */
.service-card.shine-border::after {
    border-radius: 23px;
    /* Slightly smaller than 24px */
    background: #fff;
    /* Default white */
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.shine-border:hover::after {
    background: #0f172a;
    /* Dark on hover */
}

/* Remove default border if shine is present, as shine provides the border effect */
.service-card.shine-border {
    border-color: transparent;
}

.service-card.shine-border::before {
    border-radius: 26px;
    /* Slightly larger */
}


/* Content Layer (Ensure text sits on top of ::after background) */
.card-content-layer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Specific Card Positions */
.card-priority {
    grid-column: span 5;
}

.card-collaborate {
    grid-column: span 7;
}

.card-connect {
    grid-column: span 6;
}

.card-tasks {
    grid-column: span 6;
}

/* Text Elements */
.card-tag {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #64748b;
    display: inline-block;
    margin-bottom: 16px;
    align-self: flex-start;
}

.card-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 400;
}

.card-desc {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

.card-btn {
    background: #0f172a;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    align-self: flex-start;
}

/* --- Multi-Step Form Styles --- */
.glass-form-wrapper {
    overflow: hidden;
    /* Hide sliding elements */
    position: relative;
    min-height: 450px;
    /* Ensure consistent height */
    display: flex;
    flex-direction: column;
}

.step-indicator {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--niche-accent, #84cc16);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--niche-accent, #84cc16);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    width: 100%;
}

.form-step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.next-btn {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}



/* Visuals */
.visual-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visual-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    padding: 0 20px;
    position: relative;
}

.chart-bar {
    width: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    transition: height 0.5s ease;
}

.chart-bar.highlight {
    background: #818cf8;
}

/* Jenny Wilson Cursor Animation */
.bento-card .cursor-badge {
    position: absolute;
    top: 30%;
    right: 20%;
    background: #000;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 20px;
    border-top-left-radius: 4px;
    /* Cursor point feel */
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Mouse pointer triangle */
.cursor-badge::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid #000;
    transform: rotate(-25deg);
}

.bento-card:hover .cursor-badge {
    animation: cursor-float 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cursor-float {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-60px, 40px);
    }

    50% {
        transform: translate(-90px, 20px) scale(0.9);
        /* Click */
    }

    75% {
        transform: translate(-40px, 80px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-priority,
    .card-collaborate,
    .card-connect,
    .card-tasks {
        grid-column: span 1;
    }
}

.list-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.bento-card:hover .list-item {
    transform: translateX(5px);
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bento-card:hover .list-item:nth-child(2) {
    transition-delay: 0.1s;
}

.bento-card:hover .list-item:nth-child(3) {
    transition-delay: 0.2s;
}

.list-icon {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
}

.list-icon.icon-success {
    background: #84CC16;
}

.list-line {
    height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
}

.w-40 {
    width: 40%;
}

.w-60 {
    width: 60%;
}

.w-70 {
    width: 70%;
}

/* Chart Visual */
.visual-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding: 0 20px;
    margin-top: auto;
    background-color: var(--color-light);
    /* Ensure light background for footer */
    color: var(--color-text);
    /* Ensure dark text */
}

/* Force dark text for footer headers */
.footer h4 {
    color: var(--color-text) !important;
}

/* Force dark text for footer links */
.footer a {
    color: var(--color-text-muted) !important;
}

.footer a:hover {
    color: var(--color-primary) !important;
}

/* Fix for invisible text in Bento cards - REINFORCING */
.bento-card h3,
.bento-card .card-title {
    color: #0f172a !important;
    /* Force dark slate */
    font-weight: 300 !important;
    /* Match section header */
}

.bento-card p,
.bento-card .card-desc,
.bento-card li,
.bento-card span {
    color: #334155 !important;
    /* Slate 700 for body text */
}

.bento-card .card-tag {
    color: #64748b !important;
    /* Slate 500 for tags */
    font-weight: 600 !important;
}

/* Fix for CTA Section text visibility */
.cta-section h2,
.cta-section p,
.cta-content h2,
.cta-content p {
    color: #0f172a !important;
}

.chart-bar {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px 8px 0 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

.chart-bar.highlight {
    background: #818cf8;
    /* Indigo-400 */
}

/* Heights */
.h-40 {
    height: 40%;
}

.h-50 {
    height: 50%;
}

.h-60 {
    height: 60%;
}

.h-70 {
    height: 70%;
}

.h-80 {
    height: 80%;
}

.h-100 {
    height: 100%;
}

/* Chart Hover Animation */
@keyframes barGraph {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.2);
    }
}

.bento-card:hover .chart-bar {
    animation: barGraph 1.5s infinite ease-in-out;
    background: #cbd5e1;
}

.bento-card:hover .chart-bar.highlight {
    background: #6366f1;
    /* Indigo-500 */
    animation-delay: 0.1s;
}

.bento-card:hover .chart-bar:nth-child(odd) {
    animation-delay: 0.2s;
}

.bento-card:hover .chart-bar:nth-child(even) {
    animation-delay: 0.4s;
}

/* Cursor Floater */
.cursor-floater {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
}

.bento-card:hover .cursor-floater {
    transform: translate(-10px, 10px) scale(1.05);
}

/* Orbit Visual */
.orbit-visual {
    position: relative;
    height: 240px;
    /* Increased height */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.orbit-center {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.orbit-center img {
    width: 32px;
    height: auto;
    border-radius: 50%;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed #e2e8f0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 140px;
    height: 140px;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border-style: solid;
    border-color: #f1f5f9;
}

/* Orbit Items */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 5;
    /* Initialize center */
    transform: translate(-50%, -50%);
}

/* Orbit Animation Keyframes */
@keyframes orbit-cw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(70px) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(70px) rotate(-360deg);
    }
}

@keyframes orbit-ccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(110px) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg) translateX(110px) rotate(360deg);
    }
}

.item-1 {
    animation: orbit-cw 12s linear infinite;
}

.item-2 {
    animation: orbit-cw 12s linear infinite;
    animation-delay: -4s;
}

/* Offset start */
.item-3 {
    animation: orbit-ccw 18s linear infinite;
}

.item-4 {
    animation: orbit-ccw 18s linear infinite;
    animation-delay: -9s;
}

/* Pause on hover for easier viewing? Or speed up? 
   Magic UI usually keeps moving. */
.bento-card:hover .item-1,
.bento-card:hover .item-2,
.bento-card:hover .item-3,
.bento-card:hover .item-4 {
    animation-play-state: paused;
    /* Optional interaction */
}

/* Counter Text */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-priority,
    .card-collaborate,
    .card-connect,
    .card-tasks {
        grid-column: span 1;
    }
}

.bento-content {
    position: relative;
    z-index: 2;
}

.tag {
    font-size: 11px;
    font-weight: 300;
    background: #0f172a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.graph-visual {
    margin-top: 20px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.graph-line {
    height: 4px;
    flex: 1;
    border-radius: 2px;
}

.graph-line.red {
    background: #fca5a5;
    transform: rotate(5deg);
    width: 80%;
}

.graph-line.green {
    background: #86efac;
    height: 100%;
    transform: rotate(-2deg);
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 20px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--color-primary);
}

.percentage {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
}

/* Niches */
.niche-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.tab {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active,
.tab:hover {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

/* Industries / Niches */
.niche-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Clean Niche Card Design */
.niche-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    /* Lighter border */
    border-radius: 24px;
    /* Slightly more rounded */
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.niche-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    /* Soft premium shadow */
}

.niche-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.niche-card:hover .niche-icon-wrapper {
    background: var(--color-primary);
    /* Lime Green */
    color: #1a2e05;
    /* Dark Green Text */
    transform: scale(1.05);
}

.niche-svg {
    width: 32px;
    height: 32px;
}

.niche-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.niche-info p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.niche-card .arrow-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-primary);
    font-weight: 600;
}

.niche-card:hover .arrow-hint {
    opacity: 1;
    transform: translateX(0);
}

/* Niche Mega Dropdown */
.niche-dropdown-container {
    position: relative;
    display: inline-block;
}

.niche-dropdown-menu {
    position: absolute;
    bottom: 100%;
    /* Drop UP */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    width: 900px;
    max-width: 90vw;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* opacity & visibility handled by parent dropdown-menu state in navbar */
    /* or by .active class in body */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    /* Higher than generic dropdown (1001) */
    margin-bottom: 16px;
    pointer-events: none;
    cursor: default;
    background-color: #ffffff !important;
    /* Ensure solid white background */
}

/* Navbar context override */
.nav-item.dropdown .niche-dropdown-menu {
    margin-bottom: 0;
    pointer-events: auto;
    /* Allow clicking links immediately on hover */
    /* Ensure drop down, not up */
    bottom: auto;
    top: 100%;
    /* Position is handled by .dropdown-menu */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

/* Override GENERIC hover rule for niche menu to ensure it stays closed on hover */
/* .nav-item.dropdown:hover .niche-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
} */

/* .nav-item.dropdown:hover .niche-dropdown-menu removed for click-only behavior */

.niche-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* =========================================
   Blog Section Styles
   ========================================= */

.blog-page-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 24px;
}

.blog-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 40px;
}

.blog-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-family: var(--font-primary);
}

.blog-description {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-top: 24px;
    line-height: 1.6;
}

.blog-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.blog-video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.blog-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Template Buttons */
.template-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.template-btn.primary {
    background: var(--color-primary);
    color: white;
}

.template-btn.secondary {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.template-btn.secondary:hover {
    background: var(--color-bg-light);
}

/* Typography for Content */
.blog-prose h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.blog-prose ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 24px;
    color: var(--color-text-secondary);
}

.blog-prose li {
    margin-bottom: 8px;
}

/* Tech Stack Grid */
.tech-stack-container {
    margin-top: 24px;
    padding: 24px;
    background: var(--color-bg-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.tech-stack-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.tech-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

/* Blog Index */
.blog-list {
    display: grid;
    gap: 40px;
}

.blog-card-item {
    display: block;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.2s;
}

.blog-card-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.niche-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.niche-col {
    display: block;
    height: auto;
    overflow: visible;
}

.niche-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.niche-col .mt-sm {
    margin-top: 24px;
}

.niche-col a {
    display: block;
    padding: 6px 8px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-left: -8px;
    /* Alignment fix */
}

.niche-col a:hover {
    background: #f8fafc;
    color: var(--color-primary-hover);
    /* Darker green */
    transform: translateX(4px);
}

.dropdown-arrow-icon {
    transition: transform 0.3s ease;
}

.niche-dropdown-trigger.active .dropdown-arrow-icon {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .niche-showcase {
        grid-template-columns: 1fr;
    }
}


.niche-card.featured {
    background: var(--color-dark);
    color: #fff;
}

.niche-card.featured .pain-point,
.niche-card.featured .stat-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Stats Dark */
.stats-dark {
    background: var(--color-dark);
    /* Black section */
    color: #fff;
    padding: var(--spacing-xl) 0;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-big .number {
    display: block;
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -2px;
}

.stat-big .label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* CTA */
.cta-box {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    /* Large padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    margin-bottom: 80px;
}

.cta-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cta-form input {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    border: none;
    width: 250px;
}

/* Footer */
/* Footer Enhanced */
.footer {
    background: #000;
    color: #fff;
    padding: 80px 0 20px;
    font-size: 14px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-col {
    max-width: 400px;
}

.footer-slogan {
    color: #94a3b8;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-link-col h4 {
    color: #475569;
    margin-bottom: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.footer-link-col a {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.footer-link-col a:hover {
    color: #fff;
    transform: translateX(2px);
}

/* Industries Section */
.footer-industries-section {
    border-top: 1px solid #1e293b;
    padding-top: 60px;
    margin-bottom: 40px;
}

.footer-heading-industries {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-ind-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-ind-col a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-ind-col a:hover {
    color: var(--color-primary);
    /* Lime Green */
}

/* Consultation Section (Split View Form) */
.consultation-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: white;
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Side Content */
.consult-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.consult-content p.sub-head {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 90%;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prop-icon {
    width: 32px;
    height: 32px;
    background: rgba(132, 204, 22, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--niche-accent);
}

.prop-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Right Side Form (Glassmorphism) */
.glass-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    /* Ultra subtle white tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-form-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.glass-form-header h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: white;
}

.glass-form-header p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--niche-accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 300;
    background: var(--niche-accent);
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(132, 204, 22, 0.4);
    filter: brightness(1.1);
}

/* Privacy Text */
.form-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.form-footer a {
    color: #94a3b8;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .consult-content {
        text-align: center;
    }

    .consult-content h2 {
        font-size: 2.5rem;
    }

    .value-props {
        align-items: center;
        /* Center align items for mobile */
        text-align: left;
        /* Keep text left-aligned for readability */
        display: inline-flex;
        /* Wrap for width */
    }
}


.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    color: #475569;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide complex visual on mobile or scale it */
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .niche-showcase {
        grid-template-columns: 1fr;
    }

    .footer-top-grid,
    .footer-industries-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    /* Add JS for hamburger later */
    .mobile-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #000;
        margin-bottom: 6px;
    }
}

/* Feature/Pros Section */
.features-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-visual {
    margin-top: auto;
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eaeff5;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Google Review Badge */
.google-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
    transition: transform 0.2s;
}

.google-review-badge:hover {
    transform: scale(1.02);
}

.g-icon {
    width: 20px;
    height: 20px;
}

.stars {
    color: #fbbf24;
    font-size: 16px;
    letter-spacing: 1px;
}

.review-score {
    font-weight: 300;
    font-size: 14px;
    color: #1e293b;
}

.review-count {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 4px;
}

/* Demo Visuals for Services */
.demo-chat-bubble {
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 13px;
    max-width: 80%;
    margin-bottom: 8px;
    align-self: flex-start;
}

.demo-chat-bubble.ai {
    background: var(--color-primary);
    color: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    margin-left: auto;
}

.demo-chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}


/* Logo Utilities */
.logo-invert {
    /* For using a white-bg logo on dark backgrounds */
    filter: invert(1) grayscale(1) brightness(2);
    mix-blend-mode: screen;
    /* Makes black background (inverted white) transparent */
}

/* Animated Beam Component */
.beam-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.beam-nodes-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.beam-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    height: 100%;
}

.beam-node {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.beam-node img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.beam-center {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.beam-center img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Card 4 Visuals - System Volume */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 12px;
    vertical-align: middle;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.visual-wave {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
    margin-bottom: 20px;
    margin-top: auto;
    /* Push to bottom of flex container if needed */
    opacity: 0.8;
}

.visual-wave .bar {
    width: 6px;
    background: var(--color-primary);
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

/* Footer Grid Standardization */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--color-text);
}

.footer-col a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.visual-wave .bar:nth-child(1) {
    height: 40%;
    animation-delay: 0.0s;
}

.visual-wave .bar:nth-child(2) {
    height: 80%;
    animation-delay: 0.1s;
}

.visual-wave .bar:nth-child(3) {
    height: 100%;
    animation-delay: 0.2s;
}

.visual-wave .bar:nth-child(4) {
    height: 60%;
    animation-delay: 0.3s;
}

.visual-wave .bar:nth-child(5) {
    height: 50%;
    animation-delay: 0.4s;
}

.visual-wave .bar:nth-child(6) {
    height: 75%;
    animation-delay: 0.5s;
}

.visual-wave .bar:nth-child(7) {
    height: 90%;
    animation-delay: 0.6s;
}

.visual-wave .bar:nth-child(8) {
    height: 45%;
    animation-delay: 0.7s;
}

@keyframes wave {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

/* --- Hero Variant Styles --- */

/* Variant 2: Immersive Center */
.hero-immersive .niche-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-immersive .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-immersive h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.hero-immersive .hero-image-wrapper {
    display: none;
    /* Background image is the star */
}

/* Variant 3: Modern Offset */
@media (min-width: 769px) {
    .niche-hero.hero-offset .niche-hero-content {
        direction: rtl;
    }

    .niche-hero.hero-offset .hero-text {
        direction: ltr;
        padding-left: 2rem;
    }

    .niche-hero.hero-offset .hero-image-wrapper {
        direction: ltr;
    }
}

/* Variant 4: Card Stack */
.niche-hero.hero-card-stack {
    background-image: none !important;
    background-color: #0f172a;
    padding-top: 140px;
}

.hero-card-stack .glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Variant 5: Bold Typographic */
.hero-bold .hero-text h1 {
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-bold .hero-image-wrapper img {
    border-radius: 0;
    box-shadow: 20px 20px 0 var(--niche-accent);
    transform: rotate(2deg);
}

@media (max-width: 768px) {

    .hero-immersive h1,
    .hero-bold .hero-text h1 {
        font-size: 3rem;
    }

    .hero-card-stack .glass-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

/* Split Hero Redesign for Web Development Page */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    /* Vertically center */
    padding: 180px 0 100px;
    /* Adjusted padding for fixed nav */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-media-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Strong shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    line-height: 0;
    /* Remove image gap */
}

/* Placeholder for video/image */
.hero-media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 500;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 300;
    /* Bold per inspiration */
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: var(--color-dark);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* New Button Style for Outline */
.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--color-dark);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Feature List (Checkmarks) */
.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.check-icon {
    color: var(--color-primary);
    /* Lime green */
    width: 18px;
    height: 18px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 140px;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
        /* Center flex items */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-media-container {
        order: -1;
        /* Show media on top if desired, or remove to show below */
    }
}

/* =========================================
   FUTURISTIC BLOG REDESIGN (Bento Grid)
   ========================================= */

/* Dark Theme Overrides for Blog Page if needed, 
   but we'll scope it to .blog-page-wrapper to safely coexist */
:root {
    --blog-bg: #0f172a;
    --blog-text: #f8fafc;
    --blog-accent: #84cc16;
    /* Lime */
    --blog-card-bg: rgba(255, 255, 255, 0.03);
    --blog-card-border: rgba(255, 255, 255, 0.1);
    --blog-card-hover: rgba(255, 255, 255, 0.08);
}

.blog-futuristic-body {
    background-color: var(--blog-bg);
    color: var(--blog-text);
}

/* Hero Section */
.blog-hero-section {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle grid pattern */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(132, 204, 22, 0.1);
    color: var(--blog-accent);
    border: 1px solid rgba(132, 204, 22, 0.2);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Category Filter Tabs */
.blog-filter-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--blog-card-border);
    color: #cbd5e1;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: var(--blog-accent);
    color: #0f172a;
    border-color: var(--blog-accent);
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.4);
}

/* Bento Grid Layout */
.blog-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 24px;
}

/* Card Styles */
.blog-card {
    position: relative;
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.blog-card:hover {
    transform: translateY(-8px);
    background: var(--blog-card-hover);
    border-color: rgba(132, 204, 22, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.blog-card:hover .card-arrow {
    transform: translateX(4px) rotate(-45deg);
    color: var(--blog-accent);
}

/* Featured Card (Spans 2 cols) */
.blog-card.featured {
    grid-column: span 2;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card.featured .card-image-wrapper {
    aspect-ratio: 21/9;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
}

.card-date {
    font-size: 12px;
    color: #94a3b8;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card.featured .card-title {
    font-size: 2rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #334155;
}

.author-name {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.card-arrow {
    font-size: 20px;
    color: #64748b;
    transition: all 0.3s ease;
}

/* Category Badge Colors */
.tag-tech {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-industry {
    background: rgba(132, 204, 22, 0.15);
    color: #84cc16;
    border: 1px solid rgba(132, 204, 22, 0.3);
}

.tag-growth {
    background: rgba(232, 121, 249, 0.15);
    color: #e879f9;
    border: 1px solid rgba(232, 121, 249, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-bento-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured {
        grid-column: auto;
    }

    .blog-card.featured .card-image-wrapper {
        aspect-ratio: 16/9;
    }

    /* --- NEW HERO VARIANTS (Skill: creating-hero-sections) --- */

    /* Badge Variants */
    .badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.75rem;
        background: #f1f5f9;
        border-radius: 9999px;
        font-size: 0.875rem;
        color: #475569;
        font-weight: 500;
        margin-bottom: 1.5rem;
        border: 1px solid #e2e8f0;
    }

    .badge-pill.accent {
        background: rgba(132, 204, 22, 0.1);
        color: #4d7c0f;
        border-color: rgba(132, 204, 22, 0.2);
    }

    .badge-tag {
        background: #4d7c0f;
        color: white;
        font-size: 0.7rem;
        font-weight: 800;
        padding: 2px 8px;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Typography Variants */
    .hero-h1-beyond {
        font-size: 4rem;
        line-height: 1.1;
        font-weight: 300;
        color: #0f172a;
        letter-spacing: -0.02em;
    }

    .hero-h1-beyond span {
        font-family: 'Merriweather', serif;
        font-style: italic;
        font-weight: 300;
        color: #64748b;
    }

    .hero-h1-marketive {
        font-size: 4.5rem;
        line-height: 1;
        font-weight: 800;
        color: #0f172a;
    }

    .hero-h1-alva {
        font-size: 3.5rem;
        line-height: 1.2;
        font-weight: 600;
        color: #0f172a;
    }

    /* Floating Elements (Visual Proof) */
    .visual-proof-container {
        position: relative;
        height: 500px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .float-card {
        position: absolute;
        background: white;
        border-radius: 16px;
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.5);
        padding: 1rem;
        animation: float 6s ease-in-out infinite;
        z-index: 10;
    }

    .float-card.delayed {
        animation-delay: 2s;
    }

    .float-stat {
        display: flex;
        flex-direction: column;
    }

    .float-label {
        font-size: 0.75rem;
        color: #64748b;
        text-transform: uppercase;
        font-weight: 600;
    }

    .float-value {
        font-size: 1.5rem;
        font-weight: 300;
        color: #0f172a;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* Button Variants */
    .btn-outline {
        background: transparent;
        border: 1px solid #e2e8f0;
        color: #475569;
    }

    .btn-outline:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }
}

/* =========================================
   MONOTREE SERVICE HERO STANDARD (V2)
   ========================================= */

/* Hero Container */
.niche-hero {
    position: relative;
    padding: 160px 0 100px;
    background-color: #ffffff;
    /* Clean White BG */
    color: #0f172a;
    /* Dark Slate Text */
    overflow: hidden;
}

.niche-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Typography */
.hero-text h1 {
    font-size: 3.5rem;
    /* Large Headline */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a;
    /* Force Dark Color */
    font-weight: 800;
    /* Bold per Monotree spec */
    letter-spacing: -0.02em;
}

.hero-text .sub-headline {
    font-size: 1.125rem;
    color: #334155;
    /* Slate 700 */
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

/* Input Group (Email + Button) */
.hero-cta-group {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 450px;
    margin-bottom: 40px;
}

.hero-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
}

.hero-input:focus {
    outline: none;
    border-color: #84CC16;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.hero-btn {
    background-color: #84CC16;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hero-btn:hover {
    background-color: #65a30d;
    transform: translateY(-1px);
}

/* Isometric Image Wrapper */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    /* Monotree Isometric Look */
    transform: rotateY(-5deg) rotateX(5deg);
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image-wrapper img:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Trust / Stats Row */
.trust-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 2rem;
}

.trust-stat-val {
    font-size: 2rem;
    font-weight: 300;
    color: #0f172a;
    line-height: 1;
}

.trust-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .niche-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-cta-group {
        margin: 0 auto 40px;
    }

    .trust-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .hero-image-wrapper img {
        transform: none;
        /* Disable isometric on mobile for clarity */
    }
}

/* Arc Fan Stats Display */
.section-stats-arc {
    padding: 100px 0;
    overflow: hidden;
    /* Hide potential overflow from rotation */
    background: #ffffff;
}

.arc-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 400px;
    /* Needed for arc height */
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 30px;
    width: 240px;
    height: 260px;
    border-radius: 4px;
    /* Slight round, mostly sharp per ref */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: absolute;
    bottom: 0;
    transform-origin: 50% 150%;
    /* Pivot from way below to assist arc */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    will-change: transform;
}

.stat-card:hover {
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.stat-card-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1;
}

.stat-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Arc Positioning */
.arc-1 {
    transform: translateX(-340px) translateY(40px) rotate(-12deg);
}

.arc-1:hover {
    transform: translateX(-280px) translateY(0px) rotate(-6deg);
}

.arc-2 {
    transform: translateX(-120px) translateY(-10px) rotate(-4deg);
}

.arc-2:hover {
    transform: translateX(-100px) translateY(-20px) rotate(-2deg);
}

.arc-3 {
    transform: translateX(120px) translateY(-10px) rotate(4deg);
}

.arc-3:hover {
    transform: translateX(100px) translateY(-20px) rotate(2deg);
}

.arc-4 {
    transform: translateX(340px) translateY(40px) rotate(12deg);
}

.arc-4:hover {
    transform: translateX(280px) translateY(0px) rotate(6deg);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .arc-container {
        height: auto;
        display: grid;
        /* Changed to grid for better mobile layout */
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: stretch;
        margin-bottom: 3rem;
    }

    .stat-card {
        position: relative;
        transform: none !important;
        width: 100%;
        height: auto;
        min-height: 200px;
        bottom: auto;
    }
}

@media (max-width: 600px) {
    .arc-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Tech Stats Section (Restored)
   ========================================= */
.tech-stats-section {
    padding: 100px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Stat Visual Container */
.stat-visual {
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.stat-info h3 {
    font-size: 1.25rem;
    font-weight: 300;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* 1. Retention - Circle Chart */
.circle-chart {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 2;
}

.circle {
    fill: none;
    stroke: #22c55e;
    /* Green */
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 98, 100;
    animation: progress 1.5s ease-out forwards;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
}

.percentage {
    fill: #0f172a;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 8px;
    text-anchor: middle;
    dominant-baseline: central;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 100;
    }
}

/* 2. Active Monitoring - Pulse */
.pulse-container {
    position: relative;
    width: 24px;
    height: 24px;
}

.pulse-dot {
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.pulse-container::before,
.pulse-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-container::after {
    animation-delay: 1.25s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* 3. Rapid Launch - Bars */
.launch-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 64px;
    width: 64px;
}

.launch-chart .bar {
    flex: 1;
    background: #3b82f6;
    /* Blue */
    border-radius: 4px 4px 0 0;
    width: 100%;
    /* Default heights for CSS-only fallback */
}

.launch-chart .bar:nth-child(1) {
    height: 40%;
    animation: grow-1 1s ease forwards;
}

.launch-chart .bar:nth-child(2) {
    height: 60%;
    animation: grow-2 1s ease forwards 0.2s;
}

.launch-chart .bar:nth-child(3) {
    height: 100%;
    animation: grow-3 1s ease forwards 0.4s;
}

.launch-chart .bar:nth-child(4) {
    height: 80%;
    animation: grow-4 1s ease forwards 0.6s;
}


@keyframes grow-1 {
    from {
        height: 0;
    }

    to {
        height: 40%;
    }
}

@keyframes grow-2 {
    from {
        height: 0;
    }

    to {
        height: 60%;
    }
}

@keyframes grow-3 {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes grow-4 {
    from {
        height: 0;
    }

    to {
        height: 80%;
    }
}

/* 4. ROI - big number */
.roi-container {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -2px;
}

/* =========================================
   Clean Stats Section for Niche Pages
   ========================================= */
.stats-bento-section {
    padding: 80px 0;
    background: #f8fafc;
}

.stats-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stat Card Base Styles */
.stats-bento-card {
    background: #ffffff;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Visual Container */
.bento-stat-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Content */
.bento-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bento-stat-content .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.bento-stat-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.bento-stat-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 220px;
}

/* Icon Wrapper Base */
.stat-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.stats-bento-card:hover .stat-icon-circle {
    transform: scale(1.05);
}

/* Unique Icon Colors for Each Stat */
.stats-bento-card:nth-child(1) .stat-icon-circle {
    background: linear-gradient(135deg, #84CC16 0%, #65a30d 100%);
    box-shadow: 0 8px 24px rgba(132, 204, 22, 0.25);
}

.stats-bento-card:nth-child(1):hover .stat-icon-circle {
    box-shadow: 0 12px 32px rgba(132, 204, 22, 0.35);
}

.stats-bento-card:nth-child(2) .stat-icon-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.stats-bento-card:nth-child(2):hover .stat-icon-circle {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

.stats-bento-card:nth-child(3) .stat-icon-circle {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.stats-bento-card:nth-child(3):hover .stat-icon-circle {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
}

.stats-bento-card:nth-child(4) .stat-icon-circle {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.stats-bento-card:nth-child(4):hover .stat-icon-circle {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
}

/* Circle Chart for Retention */
.large-circle-chart {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
}

.large-circle-chart .circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 8;
}

.large-circle-chart .circle {
    fill: none;
    stroke: #84CC16;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    animation: progress-large 2s ease-out forwards 0.3s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.circle-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-percentage {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.circle-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes progress-large {
    0% {
        stroke-dasharray: 0, 100;
    }

    100% {
        stroke-dasharray: 95, 100;
    }
}



/* Responsive */
@media (max-width: 900px) {
    .stats-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .stats-bento-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bento-stat-content .stat-number {
        font-size: 2.5rem;
    }

    .large-circle-chart {
        width: 100px;
        height: 100px;
    }

    .circle-percentage {
        font-size: 1.75rem;
    }
}

/* Unified Contact Section */
.unified-contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.unified-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(132, 204, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(132, 204, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.unified-contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Left Content */
.contact-left-content {
    width: 500px;
}

.contact-left-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0f172a;
}

.contact-left-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 32px;
}

.contact-progress-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}

.contact-progress-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #84CC16;
}

.contact-progress-dots .dot.empty {
    background: #e2e8f0;
}

.contact-learn-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #0f172a;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 48px;
    transition: all 0.3s ease;
}

.contact-learn-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

/* Testimonials */
.contact-testimonials {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.contact-testimonial {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-badge {
    width: 24px;
    height: 24px;
    background: #84CC16;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid white;
}

.contact-testimonial p {
    font-size: 0.95rem;
    font-style: italic;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Feature Grid */
.contact-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.contact-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #84CC16 0%, #65a30d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-feature h4 {
    font-size: 1.1rem;
    font-weight: 300;
    color: #0f172a;
    margin: 0;
}

.contact-feature p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Right Form */
.contact-form-wrapper {
    background: white;
    padding: 0px !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 650px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #84CC16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.contact-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #84CC16 0%, #65a30d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(132, 204, 22, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .unified-contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-left-content h2 {
        font-size: 2.5rem;
    }

    .contact-features {
        grid-template-columns: 1fr;
    }

    .contact-testimonials {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .unified-contact-section {
        padding: 60px 0;
    }

    .unified-contact-container {
        padding: 0 20px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-left-content h2 {
        font-size: 2rem;
    }
}

/* Fix visibility of View All 25 Niches button */
.niche-dropdown-trigger {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 2px solid #84CC16 !important;
    font-weight: 600;
    padding: 14px 28px;
    transition: all 0.3s ease;
}

.niche-dropdown-trigger:hover {
    background-color: #84CC16 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.niche-dropdown-trigger .dropdown-arrow-icon {
    stroke: currentColor;
}


/* Consistent Heading Styling Across Website */
.section h2,
.section-header h2,
.niches h2,
.contact-left-content h2,
.unified-contact-section h2 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* Responsive heading sizes */
@media (max-width: 1024px) {

    .section h2,
    .section-header h2,
    .niches h2,
    .contact-left-content h2,
    .unified-contact-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .section h2,
    .section-header h2,
    .niches h2,
    .contact-left-content h2,
    .unified-contact-section h2 {
        font-size: 2rem;
    }
}


/* Animated Clock */
.animated-clock {
    animation: rotate-clock 4s linear infinite;
}

.clock-hand {
    transform-origin: 50% 50%;
    animation: tick-hand 2s ease-in-out infinite;
}

@keyframes rotate-clock {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes tick-hand {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(90deg);
    }
}

/* Animated Chart */
.animated-chart .chart-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 3s ease-in-out infinite;
}

.animated-chart .chart-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 100;
        opacity: 0.3;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -100;
        opacity: 0.3;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        r: 2;
        opacity: 1;
    }

    50% {
        r: 3;
        opacity: 0.7;
    }
}

/* =========================================
   MOBILE CAROUSEL & HORIZONTAL SCROLL STYLES
   ========================================= */

/* Base Mobile Carousel Container */
.mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.mobile-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.mobile-carousel>* {
    scroll-snap-align: start;
    flex: 0 0 85%;
    /* Show 1.15 cards to hint at more content */
    min-width: 85%;
}

/* Peek Effect - Show 1.5 cards */
.mobile-carousel-peek>* {
    flex: 0 0 75%;
    min-width: 75%;
}

/* Show 2 cards variation */
.mobile-carousel-dual>* {
    flex: 0 0 48%;
    min-width: 48%;
}

/* Carousel Scroll Indicator */
.carousel-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.carousel-indicator .dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* Carousel Navigation Hints */
.mobile-carousel-wrapper {
    position: relative;
}

.carousel-hint {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Scroll Hint Animation for Carousels */
@keyframes scroll-hint {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(10px);
    }
}

.mobile-scroll-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: scroll-hint 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* =========================================
   COMPREHENSIVE RESPONSIVE STYLES
   Mobile-First Approach for Full Site
   ========================================= */

/* ========== MOBILE (320px - 767px) ========== */
@media (max-width: 767px) {

    /* Base & Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Navigation - Mobile Hamburger Menu */
    .navbar {
        padding: var(--spacing-sm) 0;
    }

    .nav-actions {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }

    .nav-item.dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .dropdown-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 20px !important;
        font-size: 1rem;
        font-weight: 500;
        color: #0f172a;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
    }

    .dropdown-trigger .dropdown-arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .dropdown-trigger.expanded {
        background: #f1f5f9;
        color: var(--color-primary);
    }

    .dropdown-trigger.expanded .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        min-width: 100% !important;
        padding: 0 !important;
        background: #f8fafc !important;
        margin-top: 0 !important;
        display: none !important;
        max-height: none !important;
        overflow-y: visible !important;
        pointer-events: auto !important;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-menu a {
        padding: 14px 20px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 0.95rem !important;
        color: #334155 !important;
        display: block !important;
        background: transparent !important;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background: #e2e8f0 !important;
        color: var(--color-primary) !important;
    }

    /* Niche Dropdown Grid - Stack on Mobile */
    .niche-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
    }

    .niche-dropdown-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .niche-dropdown-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .niche-col {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
        padding: 0;
    }

    .niche-col:last-child {
        border-bottom: none;
    }

    .niche-col h4 {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
        padding: 14px 20px 8px;
        color: var(--color-primary);
        font-weight: 700;
        background: #f1f5f9;
    }

    .niche-col a {
        padding: 12px 20px 12px 32px !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .niche-col a:last-child {
        border-bottom: none !important;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 10px;
        background: none;
        border: none;
        z-index: 1001;
    }

    .mobile-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: #1e293b;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo-full {
        height: 32px;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: var(--spacing-xl);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.15;
        margin-bottom: var(--spacing-md);
    }

    .hero-sub {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-md);
        max-width: 100%;
    }

    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        max-width: 100%;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }

    .stat-item strong {
        font-size: 1.75rem;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 0.25rem;
        color: var(--color-dark);
    }

    .stat-item span {
        font-size: 0.7rem;
        line-height: 1.1;
        color: var(--color-text-muted);
        white-space: nowrap;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Buttons - Touch Friendly */
    .btn {
        padding: 12px 20px;
        min-height: 44px;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    /* Services Grid - Horizontal Carousel on Mobile */
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .services-grid .service-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
        min-width: 85%;
        padding: var(--spacing-lg);
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Bento Grid */
    .bento-section {
        padding: 60px 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--spacing-md);
    }

    .card-priority,
    .card-collaborate,
    .card-connect,
    .card-tasks {
        grid-column: span 1;
    }

    .bento-card {
        padding: var(--spacing-lg);
        min-height: 280px;
    }

    /* Section Headings */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section h2 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    /* Typography */
    .text-carousel {
        height: 1.4em;
    }

    /* Niche Hero */
    .niche-hero {
        padding: 120px 0 60px;
    }

    .niche-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-text h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-text .sub-headline {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        max-width: 100%;
    }

    .hero-input {
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* Hero Images - Reduce size significantly on mobile for service/niche pages */
    .hero-image-wrapper {
        order: -1;
        max-height: 200px;
        overflow: hidden;
    }

    .hero-image-wrapper img {
        transform: none;
        max-height: 180px;
        object-fit: contain;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    /* Niche Hero - Prioritize content over images */
    .niche-hero {
        padding: 100px 0 40px;
    }

    .niche-hero .hero-image-wrapper {
        max-height: 150px;
    }

    .niche-hero .hero-image-wrapper img {
        max-height: 140px;
    }

    /* Service Page Hero - Reduce image prominence */
    .service-page-wrapper .hero-image-wrapper,
    .service-hero .hero-image-wrapper {
        display: none;
        /* Hide on mobile for service pages to prioritize content */
    }

    .trust-row {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    /* Hero Features Grid */
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .hero-feature-item {
        justify-content: center;
    }

    /* Split Hero (Web Dev) */
    .hero-split {
        grid-template-columns: 1fr;
        padding: 120px 0 60px;
        gap: var(--spacing-xl);
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    /* Blog Hero */
    .blog-hero-section {
        padding: 120px 0 60px;
    }

    .blog-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    /* Blog Grid - Horizontal Carousel on Mobile */
    .blog-bento-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .blog-bento-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-card.featured {
        grid-column: auto;
    }

    .blog-bento-grid .blog-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
        min-width: 85%;
        min-height: 320px;
    }

    .blog-card-header h3 {
        font-size: 1.25rem;
    }

    .blog-card-excerpt {
        font-size: 0.9rem;
    }

    /* Forms */
    .consultation-section {
        padding: 60px 0;
    }

    .consultation-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .consult-content {
        text-align: center;
    }

    .consult-content h2 {
        font-size: 2rem;
    }

    .consult-content p.sub-head {
        font-size: 1rem;
        max-width: 100%;
    }

    .value-props {
        align-items: center;
    }

    .glass-form-wrapper {
        padding: var(--spacing-lg);
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-input {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }

    /* Contact Section */
    .unified-contact-section {
        padding: 60px 0;
    }

    .unified-contact-container {
        flex-direction: column;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
        align-items: center;
    }

    .contact-left-content {
        width: 100%;
    }

    .contact-left-content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-left-content p {
        text-align: center;
    }

    .contact-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 650px;
        padding: 0px !important;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .contact-submit-btn {
        padding: 14px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    .footer-brand-col {
        max-width: 100%;
        text-align: center;
    }

    .footer-link-col {
        text-align: center;
    }

    .footer-link-col h4 {
        margin-bottom: var(--spacing-md);
    }

    .footer-industries-section {
        padding-top: var(--spacing-xl);
        margin-bottom: var(--spacing-lg);
    }

    .footer-heading-industries {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }

    .footer-industries-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-ind-col {
        text-align: center;
    }

    .footer-bottom {
        padding-top: var(--spacing-md);
        font-size: 0.8rem;
    }

    /* Niche Showcase - Horizontal Carousel on Mobile */
    .niche-showcase {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .niche-showcase::-webkit-scrollbar {
        display: none;
    }

    .niche-showcase .niche-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
        min-width: 85%;
        padding: var(--spacing-lg);
    }

    /* Stats Cards - 2x2 Grid on Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .stat-card h3 {
        font-size: 1rem;
    }

    .stat-info p {
        font-size: 0.8rem;
    }

    /* Tables - Horizontal Scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    /* Hide Complex Visuals on Mobile */
    .orbit-wrapper,
    .hero-visual .orbit-wrapper {
        display: none;
    }

    /* Workflow Chat - Stack */
    .workflow-chat {
        padding: var(--spacing-md);
    }

    /* Tech Stats - Stack */
    .tech-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Utility Classes */
    .text-center-mobile {
        text-align: center;
    }

    .hide-mobile {
        display: none;
    }

    /* Image Responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Blog Post Specific - Images */
    .blog-post-content img,
    .case-study-content img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        margin: var(--spacing-md) 0;
    }

    /* Blog Card Images */
    .blog-card img,
    .case-study-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Service Page Hero Images */
    .service-hero-image,
    .niche-hero-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Video Embeds Responsive */
    .video-wrapper,
    .embed-wrapper {
        position: relative;
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        max-width: 100%;
        border-radius: 12px;
        margin: var(--spacing-md) 0;
    }

    .video-wrapper iframe,
    .embed-wrapper iframe,
    .video-wrapper video,
    .embed-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* Typography Adjustments */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    h5,
    h6 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* CTA Sections */
    .cta-section {
        padding: var(--spacing-xl) 0;
    }

    .cta-content {
        text-align: center;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    /* Padding Adjustments for Sections */
    section {
        padding: var(--spacing-xl) 0;
    }

    /* FAQ / Accordion */
    .faq-item,
    .accordion-item {
        margin-bottom: var(--spacing-md);
    }

    .faq-question,
    .accordion-header {
        padding: var(--spacing-md);
        font-size: 1rem;
    }

    .faq-answer,
    .accordion-content {
        padding: var(--spacing-md);
        font-size: 0.95rem;
    }

    /* Testimonials - Horizontal Carousel on Mobile */
    .contact-testimonials {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: var(--spacing-xl);
    }

    .contact-testimonials::-webkit-scrollbar {
        display: none;
    }

    .contact-testimonials .contact-testimonial {
        scroll-snap-align: start;
        flex: 0 0 85%;
        min-width: 85%;
    }

    /* Testimonial Cards */
    .testimonial-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Pillars Grid (Three-Column Sections) - Horizontal Carousel on Mobile */
    .pillars-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 1rem !important;
        margin: 0 -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .pillars-grid::-webkit-scrollbar {
        display: none !important;
    }

    .pillars-grid::before {
        display: none !important;
        /* Hide connecting line on mobile */
    }

    .pillars-grid .pillar-card {
        scroll-snap-align: start !important;
        flex: 0 0 85% !important;
        min-width: 85% !important;
    }

    /* Case Grid (Case Studies/Success Stories) - Horizontal Carousel on Mobile */
    .case-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 1rem !important;
        margin: 0 -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .case-grid::-webkit-scrollbar {
        display: none !important;
    }

    .case-grid>* {
        scroll-snap-align: start !important;
        flex: 0 0 85% !important;
        min-width: 85% !important;
    }

    /* Process Steps */
    .process-step {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Pricing Cards */
    .pricing-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .pricing-price {
        font-size: 2rem;
    }

    /* Team Member Cards */
    .team-member-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .team-member-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto var(--spacing-md);
    }
}

/* ========== TABLET (768px - 1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navigation */
    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
    }

    .hero-grid {
        gap: var(--spacing-xl);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .hero-visual {
        display: flex;
    }

    /* Hero Stats - Adjust */
    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-item strong {
        font-size: 1.5rem;
    }

    /* Services Grid - 2 Columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    /* Bento Grid */
    .bento-section {
        padding: 80px 0;
    }

    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--spacing-md);
    }

    .card-priority {
        grid-column: span 3;
    }

    .card-collaborate {
        grid-column: span 3;
    }

    .card-connect {
        grid-column: span 3;
    }

    .card-tasks {
        grid-column: span 3;
    }

    /* Niche Hero */
    .niche-hero {
        padding: 140px 0 80px;
    }

    .niche-hero-content {
        gap: var(--spacing-xl);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .sub-headline {
        font-size: 1rem;
    }

    /* Hero Features */
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Hero Image Wrapper */
    .hero-image-wrapper img {
        max-width: 100%;
    }

    /* Blog Grid */
    .blog-hero-section {
        padding: 140px 0 60px;
    }

    .blog-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .blog-card.featured {
        grid-column: span 2;
    }

    .blog-card {
        min-height: 280px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-top-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .footer-industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Contact Form */
    .unified-contact-container {
        gap: var(--spacing-xl);
    }

    .contact-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-wrapper {
        padding: 40px;
    }

    /* Consultation Section */
    .consultation-section {
        padding: 80px 0;
    }

    .consultation-grid {
        gap: var(--spacing-xl);
    }

    /* Orbit Wrapper - Scale Down */
    .orbit-wrapper {
        width: 400px;
        height: 400px;
    }

    .orbit-center img {
        width: 70px;
        height: 70px;
    }

    .orbit-path.inner {
        width: 180px;
        height: 180px;
    }

    .orbit-path.outer {
        width: 320px;
        height: 320px;
    }

    .orbit-ring.inner {
        width: 180px;
        height: 180px;
    }

    .orbit-ring.outer {
        width: 320px;
        height: 320px;
    }

    .orbit-item img {
        width: 48px;
        height: 48px;
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Section Padding */
    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* CTA Sections */
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }

    /* Niche Showcase */
    .niche-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* ========== SMALL DESKTOP (1025px - 1280px) ========== */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== TOUCH DEVICE ENHANCEMENTS ========== */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .btn,
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch */
    .service-card:hover,
    .bento-card:hover,
    .blog-card:hover {
        transform: none;
    }

    /* Tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(132, 204, 22, 0.2);
    }
}

/* ========== LANDSCAPE MODE (MOBILE) ========== */
@media (max-width: 926px) and (orientation: landscape) {
    .hero {
        padding-top: 100px;
        padding-bottom: var(--spacing-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ========== SMALL MOBILE (320px - 480px) ========== */
@media (max-width: 480px) {

    /* Extra small screens - further optimizations */
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: var(--spacing-lg);
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Service Cards */
    .service-card {
        padding: var(--spacing-md);
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    /* Bento Cards */
    .bento-card {
        padding: var(--spacing-md);
        min-height: 240px;
    }

    /* Blog Cards */
    .blog-card {
        min-height: 280px;
    }

    .blog-card-header h3 {
        font-size: 1.1rem;
    }

    .blog-card-excerpt {
        font-size: 0.85rem;
    }

    /* Forms */
    .glass-form-wrapper,
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    .form-input,
    .contact-form-group input,
    .contact-form-group textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .submit-btn,
    .contact-submit-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Hero Content */
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .niche-hero {
        padding: 100px 0 50px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text .sub-headline {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
        font-size: 0.85rem;
    }

    .footer-heading-industries {
        font-size: 0.95rem;
    }

    /* Navigation */
    .navbar {
        padding: 10px 0;
    }

    .logo-full {
        height: 28px;
    }

    /* Stats */
    .stat-item strong {
        font-size: 1rem;
    }

    .stat-item span {
        font-size: 0.8rem;
    }

    /* Consultation Section */
    .consult-content h2 {
        font-size: 1.75rem;
    }

    .consult-content p.sub-head {
        font-size: 0.95rem;
    }

    /* Contact Left Content */
    .contact-left-content h2 {
        font-size: 1.75rem;
    }

    .contact-left-content p {
        font-size: 0.95rem;
    }

    /* Typography Global */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }
}

/* ========== EXTRA RESPONSIVE UTILITIES ========== */

/* Safe Area for Notched Devices */
@supports (padding: max(0px)) {

    .navbar,
    .footer,
    .container {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }

    .nav-links.active {
        padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .orbit-ring,
    .orbit-item,
    .carousel-word {
        animation: none !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode overrides if needed */
    /* Currently the site uses a light theme by design */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

    .btn,
    .service-card,
    .bento-card,
    .blog-card {
        border: 2px solid currentColor;
    }

    a {
        text-decoration: underline;
    }
}

/* ========== PRINT STYLES ========== */
@media print {

    .navbar,
    .footer,
    .hero-cta,
    .mobile-toggle,
    .btn,
    .dropdown-menu,
    .orbit-wrapper {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .section {
        page-break-inside: avoid;
    }
}