/* BLUFIG.TECH - PREMIUM LIGHT THEME REDESIGN */

:root {
    /* Colors - Modern Clean Light Theme */
    --bg-main: #F8FAFC;
    /* Slate 50 */
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    /* Slate 100 */
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.95);

    --text-main: #000000;
    /* Pure Black */
    --text-secondary: #475569;
    /* Keep Slate 600 for contrast or go lighter if requested? User said "light & black". I'll interpret "light" as the secondary text. */
    --text-muted: #94A3B8;
    /* Slate 400 */

    /* Accents */
    --primary: #0EA5E9;
    /* Sky 500 */
    --primary-dark: #0284C7;
    /* Sky 600 */
    --primary-light: #E0F2FE;
    /* Sky 100 */

    --accent: #28ACE2;
    /* Blufig Blue */
    --accent-gradient: linear-gradient(135deg, #0EA5E9 0%, #28ACE2 100%);
    /* Blue to Indigo */

    /* Borders & Shadows */
    --border: #E2E8F0;
    /* Slate 200 */
    --border-hover: #0EA5E9;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-color: 0 20px 25px -5px rgba(14, 165, 233, 0.15);

    /* Layout */
    --container: 1280px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Typography */
    --font-heading: 'Source Sans Pro', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-display: 'Source Sans Pro', sans-serif;

    /* Font Sizes - Responsive with clamp */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.5rem, 4vw, 1.875rem);
    --text-4xl: clamp(1.75rem, 5vw, 2.25rem);
    --text-5xl: clamp(2rem, 6vw, 3rem);
    --text-6xl: clamp(2.5rem, 7vw, 3.75rem);
    --text-7xl: clamp(3rem, 8vw, 4.5rem);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    --spacing-5xl: 6rem;

    /* Borders & Radius */
    --radius-full: 9999px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    /* Bold Heading */
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

p {
    color: var(--text-secondary);
    font-family: var(--font-body);
    /* Body in Roboto */
    font-size: 1.125rem;
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}


/* Utility Classes */
.text-nowrap-desktop {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .text-nowrap-desktop {
        white-space: normal;
    }
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-light {
    background-color: var(--bg-secondary);
}

.section-padding {
    padding: clamp(40px, 8vw, 100px) 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    /* Consistency with other buttons */
    font-weight: 400;
    /* Regular weight */
    font-size: 1.1rem;
    border-radius: 8px;
    /* Standardized radius */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border: none;
}

.btn-nav {
    background: #000000;
    color: #ffffff;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #111111;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-color);
}

.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--text-main);
    /* Was primary (blue), now black per request */
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
    margin-right: 3rem;
    /* Space between links and Contact button */
}

.nav-link:hover {
    color: var(--primary);
}

/* --- DROPDOWN STYLES --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(10px);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-width: 240px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 50px !important;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 40%);
}

/* --- HERO VIDEO BACKGROUND --- */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* --- HERO GLOBE BACKGROUND --- */
.hero-globe-container {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-globe {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(40, 172, 226, 0.05) 100%);
    border-radius: 50%;
    position: relative;
    animation: globeRotate 60s linear infinite;
}

.hero-globe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 50% 50%, #28ACE2 1px, transparent 1px),
        linear-gradient(rgba(40, 172, 226, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 172, 226, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 40px 40px;
    border-radius: 50%;
    mask-image: radial-gradient(circle at center, black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 70%);
}

@keyframes globeRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@media (max-width: 1024px) {
    .hero-globe-container {
        width: 400px;
        height: 400px;
        right: -20%;
        opacity: 0.1;
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.text-accent {
    color: #28ACE2;
    background: linear-gradient(135deg, #28ACE2 0%, #0EA5E9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--text-main);
    /* Black per request */
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* --- BENTO GRID SECTIONS --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-12 {
    grid-column: span 12;
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.bento-card {
    background-color: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.bento-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px -12px rgba(14, 165, 233, 0.2);
    /* Removed static border-color to let rotating border show */
}

.bento-card>* {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    z-index: 2;
    position: relative;
}

.bento-card:hover>* {
    transform: translateY(-8px);
}

.bento-card:hover .card-title {
    color: var(--primary);
    transform: translateY(-8px) scale(1.05);
}

.bento-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 1px;
    top: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: var(--bg-card);
    border-radius: inherit;
    transition: background-color 0.3s ease;
}

.bento-card:hover::after {
    background-color: var(--bg-card);
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-12 {
    grid-column: span 12;
}

.row-span-2 {
    grid-row: span 2;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
}

/* --- CLIENTS --- */
.clients-slider {
    padding: 4rem 0;
    background: linear-gradient(90deg, var(--bg-main) 0%, var(--bg-secondary) 50%, var(--bg-main) 100%);
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    gap: 6rem;
    align-items: center;
    animation: scroll 35s linear infinite;
    width: max-content;
}

.client-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
}

.client-logo-img {
    height: 85px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-logo-img:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- TRUSTED BY --- */
.trusted-by-section {
    padding: 3rem 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trusted-by-section .section-title {
    margin-bottom: 3.5rem;
}

.trusted-by-section .clients-slider {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.trusted-by-section .client-logo-img {
    height: 140px;
    width: auto;
    max-width: 280px;
    padding: 0 1rem;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.85);
    transition: all 0.3s ease;
}

.trusted-by-section .client-logo-img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .logo-grid {
        gap: 2rem;
    }

    .logo-grid img {
        height: 36px;
    }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-value {
    font-size: 4rem;
    font-weight: 600;
    font-family: var(--font-heading);
    background: var(--text-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- FOOTER --- */
footer {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background: var(--bg-secondary);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- RESPONSIVE --- */
/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    :root {
        --container: 1140px;
    }
}

@media (max-width: 1024px) {
    :root {
        --container: 960px;
    }

    .col-span-4,
    .col-span-6,
    .col-span-8 {
        grid-column: span 12;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

/* --- TABS COMPONENT --- */
.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 16px;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .tabs-nav {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        padding-left: 1rem;
        padding-right: 2rem;
        /* End of scroll buffer */
    }
}

.tabs-nav::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-family: var(--font-heading);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
}

/* Active Tab: Floating Pill Design */
.tab-btn.active {
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(14, 165, 233, 0.05);
}

/* Remove the old ::after pseudo element if it conflicts */
.tab-btn.active::after {
    display: none;
}

/* --- BUTTONS: Minimal Style (Success Stories >) --- */
.btn-minimal {
    background: #ffffff;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    /* Slightly rounded */
    font-weight: 400;
    /* Regular weight */
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 174, 239, 0.15);
    background: #ffffff;
}

.btn-minimal i {
    transition: transform 0.3s ease;
}

.btn-minimal:hover i {
    transform: translateX(4px);
    /* Arrow moves right */
}

/* --- HERO BADGE FIX --- */
.hero-badge {
    background: #e0f7ff;
    color: var(--text-main);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* --- NEW TAB LAYOUT (Text Left | Visuals Right) --- */
.tab-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.1);
}

/* Left Side: Title & Description */
.tab-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.tab-info .subtitle {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tab-info p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Right Side: Image Only */
.tab-visuals {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.tab-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-card:hover .tab-image-container img {
    transform: scale(1.08);
}

.tab-pointers {
    list-style: none;
    background: transparent;
    padding: 1.5rem 0 0 0;
    border-radius: 0;
    border: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tab-pointers li {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tab-pointers li i {
    color: var(--primary);
    margin-top: 6px;
    flex-shrink: 0;
}

.tab-pointers .pointer-title {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.tab-pointers .pointer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tab-pointers li:hover {
    transform: translateX(5px);
}

.tab-pointers li:last-child {
    margin-bottom: 0;
}

.tab-pointers li i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Mobile Media Queries (Under 768px) */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        width: 100%;
        padding: 0.5rem;
        margin-bottom: 2rem;
        border-radius: 12px;
        white-space: normal;
        overflow-x: visible;
    }

    .tab-btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        text-align: center;
    }

    .tab-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .tab-info h3 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .tab-info p {
        font-size: 1rem;
    }

    .tab-image-container {
        height: 220px;
    }
}

/* Cleanup old styles */
.tab-image,
.tab-text {
    display: none;
}

/* Ensure old classes don't interfere if left behind */

@media (max-width: 1024px) {
    .tab-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2.5rem;
        align-items: center;
    }

    .tab-image-container {
        height: 300px;
        min-height: auto;
        order: -1;
        /* Image on top for mobile/tablet */
    }

    .tab-info h3 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Hide old .tab-icon styling if present or repurpose */
.tab-icon {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .tab-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tab-info {
        text-align: center;
    }

    .tab-pointers {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .tab-pointers li {
        text-align: left;
    }
}

/* --- BORDER ROTATION ANIMATION --- */
@keyframes spinBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* The Spinning Gradient layer (visible only on hover) */
.bento-card::before,
.tab-card::before,
.solution-card::before,
.result-card::before,
.client-card::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-image: conic-gradient(transparent, transparent, transparent, var(--accent));
    animation: spinBorder 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Common Hover State for Rotating Border */
.bento-card:hover::before,
.tab-card:hover::before,
.solution-card:hover::before,
.result-card:hover::before,
.client-card:hover::before {
    opacity: 1;
}

/* Card Mask Layer (Inner Background) */
.bento-card::after,
.tab-card::after,
.solution-card::after,
.result-card::after,
.client-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 1px;
    top: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: var(--bg-card);
    border-radius: inherit;
}

/* Ensure content stays on top */
.card-icon,
.card-title,
.card-desc,
.tab-text,
.tab-icon {
    z-index: 2;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- GLOBAL FOOTER --- */
.footer {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-brand span {
    color: var(--primary);
}

.footer-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Navigation Dropdown Redesign */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--surface);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-link i.fa-chevron-down {
    font-size: 0.75em;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link.active {
    color: var(--primary);
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

.menu-toggle,
.menu-close {
    display: none !important;
}

/* Body lock for mobile menu */
body.nav-open {
    overflow: hidden !important;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-main);
        z-index: 1001;
        margin-left: auto;
        padding: 0.5rem;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        /* Force left to 0 */
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        background: #FFFFFF !important;
        /* Fully opaque white */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 6rem 3rem 2rem 4rem !important;
        /* Solid 4rem left padding */
        gap: 0.5rem !important;
        transform: translateY(-100%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s !important;
        z-index: 2000 !important;
        /* High enough to top EVERYTHING */
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .nav-links.active {
        display: flex !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .menu-close {
        display: block !important;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-main);
        opacity: 0.8;
        transition: transform 0.3s ease;
        z-index: 1001;
        /* Ensure it stays on top */
    }

    .menu-close:hover {
        transform: rotate(90deg);
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Softer separator */
    }

    .nav-links li:first-of-type {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 0;
    }

    .nav-link {
        font-size: 1.6rem;
        /* Slightly larger for premium feel */
        font-weight: 600;
        padding: 1.25rem 0;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        color: #1a1a1a !important;
        /* Premium black as requested */
        text-align: left;
    }

    /* Remove the > icon for full-width centered layout - cleaner */
    .nav-link::after {
        display: none;
    }

    .nav-link.active::after,
    .dropdown-toggle.active i.fa-chevron-down {
        display: none;
        /* Hide default icons when custom one is used or if it overlaps */
    }

    .nav-link i.fa-chevron-down {
        display: none;
        /* Use the ::after chevron instead */
    }

    .nav-container .btn-nav {
        display: none;
    }

    .nav-links .btn-nav {
        display: flex;
        width: calc(100% - 4rem);
        margin: 2rem;
        padding: 1.25rem;
        font-size: 1.1rem;
        justify-content: center;
        background: var(--text-main);
        color: white;
        border-radius: 8px;
    }

    .nav-item {
        flex-direction: column;
        width: 100%;
        height: auto;
        align-items: flex-start;
    }

    /* Mobile Dropdown Styling */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.03) !important;
        /* Subtle indent */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: none;
        border: none !important;
        border-radius: 0 !important;
        left: auto !important;
        right: auto !important;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-item {
        padding: 0.85rem 0 !important;
        text-align: left;
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        display: block;
        color: var(--text-main);
        opacity: 0.8;
        padding-left: 1.5rem !important;
        /* Visual indentation for sub-items */
    }

    .dropdown-item:hover {
        transform: none !important;
        background: #e0e0e0 !important;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-item:hover .dropdown-menu {
        display: none;
    }

    .nav-item .dropdown-menu.active {
        display: block !important;
    }

    /* Chevron Rotation */
    .nav-link i.fa-chevron-down {
        transition: transform 0.3s ease;
    }

    /* Contact Grid Stacking */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .contact-form-container {
        padding: 1.5rem !important;
    }

    .hero-title {
        font-size: 2.25rem !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    align-items: flex-start;
    text-align: left;
    padding: 2rem;
}

.card-icon {
    margin-left: 0;
}

/* --- GLOBAL ANIMATIONS --- */

/* Scroll Entrance Animation */
.animate-on-scroll {
    opacity: 0 !important;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.animate-on-scroll.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.eco-image-animate {
    animation: float-gentle 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Enhance Tab Card Hover Glow */
.tab-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.2);
}

/* --- HUBSPOT FORM STYLING --- */
.hs-form-wrapper .hs-form {
    display: block !important;
}

.hs-form-wrapper .hs-form+.form-loader {
    display: none !important;
}

.hs-form {
    display: grid !important;
    gap: 1.5rem !important;
}

.hs-form label {
    display: block !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form select,
.hs-form textarea {
    width: 100% !important;
    padding: 1rem !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease !important;
}

.hs-form input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(40, 172, 226, 0.1) !important;
    outline: none !important;
}

.hs-form .hs-button {
    width: 100% !important;
    padding: 1.25rem 2rem !important;
    background: var(--text-main) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

.hs-form .hs-button:hover {
    background: var(--accent) !important;
    transform: translateY(-2px) !important;
}

.hs-form .hs-error-msg {
    color: #ef4444 !important;
    font-size: 0.85rem !important;
    margin-top: 0.25rem !important;
}

.hs-form .hs-field-type-checkbox label {
    font-weight: 400 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* --- APPROACH GRID STYLING --- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.approach-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align for consistency */
    text-align: left;
    position: relative;
    overflow: hidden;
}

.approach-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-xl), var(--shadow-color);
}

.approach-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.approach-card:hover .approach-icon {
    background: var(--accent);
    color: white;
    transform: rotateY(180deg);
}

.approach-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.approach-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}