/*
Theme Name: Sylk Foods Theme
Theme URI: https://sylkfoods.com
Author: Sylk Team
Description: Custom built WordPress theme migrated from latest static HTML project.
Version: 41.9.53
*/

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0e0d;
    --surface-color: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-muted-strong: rgba(255, 255, 255, 0.6);
    --primary-color: #FF8C00;
    --border-color: rgba(255, 140, 0, 0.2);
    --card-bg: rgba(255, 140, 0, 0.03);
    --nav-bg: rgba(26, 26, 26, 0.8);
    --mobile-menu-bg: rgba(26, 26, 26, 0.98);
    --input-bg: rgba(10, 14, 13, 0.6);
    --footer-bg: rgba(10, 14, 13, 0.95);
    --chat-window-bg: rgba(10, 14, 13, 0.98);
}

body.light-mode {
    --bg-color: #ffffff;
    --surface-color: #f4f4f4;
    --text-color: #1a1a1a;
    --text-muted: rgba(0, 0, 0, 0.7);
    --text-muted-strong: rgba(0, 0, 0, 0.85);
    --border-color: rgba(255, 140, 0, 0.3);
    --card-bg: rgba(255, 140, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --input-bg: rgba(240, 240, 240, 0.8);
    --footer-bg: rgba(245, 245, 245, 0.95);
    --chat-window-bg: #ffffff;
}

body {
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

html,
body {
    height: 100%;
}

/* Animated Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #1a1a1a;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

body.light-mode .gradient-bg {
    background: #f0f0f0;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

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

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 5%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 1.2rem 5%;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-symbol {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-color);
}

.logo-text .orange-text {
    color: #FF8C00;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FF8C00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF8C00;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #FF8C00;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    padding: 8rem 3rem 3rem;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 140, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: #FF8C00;
    transition: width 0.3s ease;
}

.mobile-menu a:hover {
    color: #FF8C00;
    padding-left: 2rem;
}

.mobile-menu a:hover::before {
    width: 1rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 5% 4rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 140, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    z-index: 2;
}

.hero-slides-container {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    text-align: center;
    padding: 0 2rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 1400px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 50px;
    color: #FF8C00;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 40%, #FF8C00 60%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -3px;
    animation: fadeInUp 1s ease 0.2s backwards, gradientFlow 8s ease infinite;
    text-shadow: none;
}

body.light-mode .hero h1 {
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button {
    padding: 1.3rem 3rem;
    background: #FF8C00;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(255, 140, 0, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

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

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

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 140, 0, 0.6);
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 140, 0, 0.5);
    color: #FF8C00;
    box-shadow: none;
}

.cta-secondary:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: #FF8C00;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #FF8C00;
    border-color: #FF8C00;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
}

.slider-dot:hover {
    background: rgba(255, 140, 0, 0.6);
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

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

/* Floating 3D Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: float3d 20s infinite ease-in-out;
}

.float-card-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.float-card-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.float-card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

/* About Section */
.about {
    padding: 10rem 5%;
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 50px;
    color: #FF8C00;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #FF8C00;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -2px;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: #FF8C00;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted-strong);
    font-weight: 400;
}

.about-visual {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-visual.visible {
    opacity: 1;
    transform: translateX(0);
}

.visual-card {
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 30px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.visual-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 30px 80px rgba(255, 140, 0, 0.3);
}

.visual-content {
    position: relative;
    z-index: 1;
}

.visual-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.visual-text {
    font-size: 1.1rem;
    color: var(--text-muted-strong);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 10rem 5%;
    position: relative;
    z-index: 1;
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-header h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #FF8C00;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.services-header p {
    font-size: 1.2rem;
    color: var(--text-muted-strong);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 30px;
    padding: 3.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 30px 80px rgba(255, 140, 0, 0.3);
    background: rgba(255, 140, 0, 0.08);
}

.service-icon {
    margin-bottom: 2rem;
    display: block;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 10px 20px rgba(255, 140, 0, 0.4));
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted-strong);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.service-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 140, 0, 0.1);
    z-index: 0;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    padding: 6rem 5% 2rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 6rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.15);
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 2.2rem;
}

.footer-tagline {
    color: var(--text-muted-strong);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 55%), linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,140,0,0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 34px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

body:not(.light-mode) .social-link {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 14px 30px rgba(0, 0, 0, 0.34);
    color: rgba(255,255,255,0.82);
}

body:not(.light-mode) .social-link i {
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.08));
}

.social-link:hover {
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), rgba(255,140,0,0.06) 58%), linear-gradient(180deg, rgba(255, 140, 0, 0.18), rgba(255, 140, 0, 0.08));
    border-color: rgba(255, 140, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 20px 40px rgba(0, 0, 0, 0.28);
    color: #FFB347;
    transform: translateY(-3px) scale(1.02);
}

body:not(.light-mode) .social-link:hover {
    background: linear-gradient(180deg, rgba(255,186,92,0.22), rgba(255,140,0,0.1));
    border-color: rgba(255,186,92,0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 20px 42px rgba(0, 0, 0, 0.4);
    color: #FFD08A;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--text-muted-strong);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-column a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF8C00;
    transition: width 0.3s ease;
}

.footer-column a:hover {
    color: #FF8C00;
    transform: translateX(3px);
}

.footer-column a:hover::before {
    width: 100%;
}

.footer-bottom {
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-muted-strong);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-muted-strong);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #FF8C00;
}

.footer-legal .separator {
    color: rgba(255, 140, 0, 0.3);
    font-size: 0.8rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.chat-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #FF8C00;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.chat-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-button:hover::before {
    opacity: 1;
}

.chat-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.6);
}

.chat-button:active {
    transform: scale(1.05);
}

.chat-button.animating {
    animation: chatButtonRotate 2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes chatButtonRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

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

.chat-button-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.chat-button:hover .chat-button-icon {
    transform: rotate(5deg) scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--chat-window-bg);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window.active {
    display: flex;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.chat-header {
    background: rgba(255, 140, 0, 0.1);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
}

.chat-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.chat-header-status {
    font-size: 0.85rem;
    color: rgba(255, 140, 0, 0.9);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #FF8C00;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted-strong);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.chat-close:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem 1.5rem;
    /* Increased side padding so bubbles aren't spread too wide */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem !important;
    /* Forces spacing between bubbles */
    background: var(--bg-hover);
    /* Subtle background texture for depth */
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 140, 0, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.5);
}

.chat-message {
    display: flex;
    gap: 0.8rem;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF8C00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-text {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
    padding-left: 0.2rem;
}

.chat-input-area {
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    background: rgba(10, 14, 13, 0.5);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
    border-color: rgba(255, 140, 0, 0.5);
    background: rgba(255, 140, 0, 0.08);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FF8C00;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4);
}

.chat-send:active {
    transform: scale(0.95);
}

.chat-quick-questions {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    background: rgba(10, 14, 13, 0.5);
}

.quick-questions-title {
    font-size: 0.8rem;
    color: var(--text-muted-strong);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.quick-questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.quick-question-btn {
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.25);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Sora', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.quick-question-btn:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateX(3px);
}

.quick-question-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C00;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content h2,
    .services-header h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

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

    .cta-group {
        flex-direction: column;
    }

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

    .about-content h2,
    .services-header h2 {
        font-size: 2rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .product-hero-3d {
        min-height: 100vh;
        flex-direction: column;
        padding: 8rem 5% 4rem;
        /* Increased top padding for mobile header clearance */
        text-align: center;
        gap: 3rem;
    }

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

    .hero-cta {
        justify-content: center !important;
        margin: 2rem auto 0 !important;
    }

    .product-hero-content {
        padding-right: 0;
        text-align: center;
    }

    .product-hero-content .hero-cta {
        justify-content: center !important;
        margin: 2rem auto 0 !important;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .chat-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .chat-button {
        width: 60px;
        height: 60px;
    }


    .chat-window {
        width: calc(100vw - 3rem);
        height: 500px;
        right: -1.5rem;
    }
}

@view-transition {
    navigation: auto;
}

/* Team Section */
.team-section {
    padding: 10rem 5%;
    position: relative;
    z-index: 1;
}

.team-header {
    text-align: center;
    margin-bottom: 6rem;
}

.team-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FF8C00;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.2);
}

.team-image {
    width: 100%;
    height: 300px;
    background: rgba(255, 140, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.team-role {
    color: #FF8C00;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-muted-strong);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-section {
    padding: 10rem 5%;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #000000;
}

body:not(.light-mode) .contact-info h2 {
    color: #ffffff;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C00;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-muted-strong);
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-color);
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input option {
    background: var(--surface-color);
    color: var(--text-color);
}

.form-input:focus,
.form-textarea:focus {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.05);
    outline: none;
}

.form-textarea {
    height: 150px;
    resize: vertical;
}

/* Process Section (Services) */
.process-section {
    padding: 10rem 5%;
    position: relative;
    z-index: 1;
}

.process-steps {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 2px;
    height: 100%;
    background: rgba(255, 140, 0, 0.2);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    gap: 4rem;
    margin-bottom: 5rem;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--bg-color);
    border: 2px solid #FF8C00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF8C00;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.2);
}

.step-content {
    padding-top: 1.5rem;
}

.step-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-muted-strong);
    line-height: 1.7;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .process-steps::before {
        left: 30px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .process-step {
        gap: 2rem;
    }
}

/* Fix for select options text color */
.form-input option {
    background: var(--surface-color);
    color: var(--text-color);
}



/* --- PREMIUM CATEGORY CARDS (Home Page Only) --- */
.premium-categories {
    gap: 2.5rem !important;
}

.ultra-category-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    background: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ultra-category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.8;
}

.uc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 13, 0.95) 0%, rgba(10, 14, 13, 0.6) 40%, transparent 100%);
    transition: background 0.5s ease;
    z-index: 1;
}

.uc-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.5s ease;
}

.uc-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ultra-category-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.ultra-category-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.uc-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF8C00;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

/* Hover States */
.ultra-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 140, 0, 0.3);
}

.ultra-category-card:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

.ultra-category-card:hover .uc-overlay {
    background: linear-gradient(to top, rgba(10, 14, 13, 0.98) 0%, rgba(10, 14, 13, 0.8) 50%, rgba(10, 14, 13, 0.4) 100%);
}

.ultra-category-card:hover .uc-icon {
    background: #FF8C00;
    border-color: #FF8C00;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.ultra-category-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

.ultra-category-card:hover .uc-explore {
    transform: translateX(0);
    opacity: 1;
}

/* --- HERO ANIMATION REWRITE --- */
.floating-food-container {
    perspective: 1000px;
    z-index: 10;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-food {
    position: absolute;
    opacity: 0.85;
    /* Increased opacity for better visibility */
    transform-origin: center;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

/* Overwrite existing coordinates to wrap the text beautifully */
.float-food-1 {
    top: 26%;
    left: 2%;
    transform: scale(0.85);
    animation: gentleFloat1 15s ease-in-out infinite alternate;
}

.float-food-2 {
    bottom: 5%;
    right: 2%;
    transform: scale(0.95);
    animation: gentleFloat2 18s ease-in-out infinite alternate-reverse;
}

.float-food-3 {
    top: 55%;
    left: 2%;
    transform: scale(0.75);
    animation: gentleFloat3 22s ease-in-out infinite alternate;
}

.float-food-4 {
    bottom: 35%;
    right: 3%;
    transform: scale(0.65);
    animation: gentleFloat4 20s ease-in-out infinite alternate-reverse;
}

.float-food-5 {
    bottom: 10%;
    left: 8%;
    transform: scale(0.7);
    animation: gentleFloat5 25s ease-in-out infinite alternate;
}

/* Dedicated Mobile Adjustments for Floating Foods */
@media (max-width: 768px) {

    /* Steak - Smaller, further left */
    .float-food-1 {
        transform: scale(0.45) !important;
        left: -10% !important;
        top: 20% !important;
    }

    /* Chicken - Smaller, pushed to the right */
    .float-food-2 {
        transform: scale(0.5) !important;
        right: -5% !important;
        bottom: 20% !important;
        left: auto !important;
    }

    /* Burger/Plant - Smaller */
    .float-food-3 {
        transform: scale(0.4) !important;
        top: 60% !important;
        left: -5% !important;
    }

    /* Milk Bottle - Top Right */
    .float-food-4 {
        transform: scale(0.4) !important;
        top: 10% !important;
        right: -5% !important;
        bottom: auto !important;
        left: auto !important;
    }

    /* Mushroom */
    .float-food-5 {
        transform: scale(0.4) !important;
        bottom: 5% !important;
        left: 20% !important;
    }
}

@keyframes gentleFloat1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.85);
    }

    100% {
        transform: translate(25px, 20px) rotate(8deg) scale(0.9);
    }
}

@keyframes gentleFloat2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.95);
    }

    100% {
        transform: translate(-30px, -25px) rotate(-10deg) scale(1);
    }
}

@keyframes gentleFloat3 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.75);
    }

    100% {
        transform: translate(20px, -20px) rotate(5deg) scale(0.8);
    }
}

@keyframes gentleFloat4 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.8);
    }

    100% {
        transform: translate(-25px, 15px) rotate(-8deg) scale(0.85);
    }
}

@keyframes gentleFloat5 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.7);
    }

    100% {
        transform: translate(15px, -15px) rotate(6deg) scale(0.75);
    }
}





/* ---- FIX: Light Mode Contrast & Alignment Patches ---- */

/* 1. Ensure the 'Ready to transform' subtext is visible in light mode */
.cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    /* Default dark mode color */
}

body.light-mode .cta-subtitle {
    color: var(--text-muted);
    /* Force visibility in light mode */
}

body.light-mode .cta-section h2 {
    color: var(--text-color);
}

/* 2. Meet the Team / Capabilities Snippets contrasts in Light Mode */
/* The user requested: "either use orange for the snippet and black text or black snippet and ornage text." */
/* We will map the Team Grid (premium-team-card) into a sleek dark card even in light mode, ensuring contrasts */

body.light-mode .premium-team-card {
    background: #1a1a1a !important;
    /* Force black snippet */
    border-color: #FF8C00 !important;
    /* Orange accent */
}

body.light-mode .premium-team-card h3,
body.light-mode .premium-team-card p,
body.light-mode .premium-team-card .team-socials a {
    color: #ffffff !important;
    /* Force white text on the forced black card */
}

body.light-mode .premium-team-card div[style*="color: #FF8C00"] {
    color: #FF8C00 !important;
    /* Ensure the Director title stays orange */
}

/* 3. Who We Are stats grid in Light Mode */
body.light-mode .stat-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .stat-item .stat-number {
    color: #FF8C00 !important;
}

body.light-mode .stat-item .stat-label {
    color: var(--text-muted) !important;
}

/* Ensure the about text column isn't clustered against the image */
.about-split .about-text {
    padding-right: 2rem;
}

@media (max-width: 968px) {
    .about-split .about-text {
        padding-right: 0;
    }
}


/* RESTORED LOGO CONSTRAINTS */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
}

/* Fix chat widget constraints to be safe */
.chat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* FORCE STICKY NAV LOGO SIZE */
nav .logo-img,
nav.scrolled .logo-img {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    width: auto !important;
}

/* TOTAL PRELOADER KILLSWITCH */


/* MEGA MENU CSS FIX - PREVENT CONSTANT MASKING */
.mega-dropdown {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    margin-top: -2.3rem;
    left: 0;
    width: 100vw;
    background: rgba(10, 14, 13, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    padding: 1rem 0 3rem 0;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Connect the hover gap seamlessly */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
}

.mega-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 140, 0, 0.05);
    border-color: rgba(255, 140, 0, 0.3);
}

.mega-card-img-wrapper {
    height: 140px;
    overflow: hidden;
}

.mega-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mega-card:hover .mega-card-img-wrapper img {
    transform: scale(1.05);
}

.mega-card-content {
    padding: 1.2rem;
}

.mega-card-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Sora', sans-serif;
}

.mega-card-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Light Mode Overrides for Mega Menu */
body.light-mode .mega-menu {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .mega-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .mega-card-content h3 {
    color: var(--text-color);
}

body.light-mode .mega-card:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}


/* Footer Layout Overrides */
.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand-col {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-links {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    gap: 5rem;
}

.footer-bottom-centered {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-links {
        justify-content: flex-start;
        flex-direction: column;
        gap: 2rem;
    }
}

/* ===== CHAT BUTTON SPINNING RING ===== */
.chat-button::after {
    content: '';
    position: absolute;
    inset: -6px;
    /* 6px padding around the button */
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #FF8C00;
    border-right-color: #2ECC40;
    z-index: -1;
    animation: chatRingSpin 2s linear infinite;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .chat-button::after {
        inset: -5px;
        /* Tighter padding around mobile button */
        border-width: 2.5px;
    }
}

@keyframes chatRingSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chat-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: none;
    opacity: 0;
}

/* ===== SCOPE CARD CONTAINERS ===== */
.scope-card {
    background: var(--surface-color, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.scope-card:hover {
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

body.light-mode .scope-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .scope-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Fix scope-grid left margin */
.scope-grid {
    padding-left: 0 !important;
}

/* ===== LIGHT MODE CHAT WINDOW FIXES ===== */
body.light-mode .chat-window {
    background: #ffffff;
    border-color: rgba(255, 140, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .chat-header {
    background: rgba(255, 140, 0, 0.08);
    border-bottom-color: rgba(255, 140, 0, 0.15);
}

body.light-mode .chat-messages {
    background: #ffffff;
}

body.light-mode .chat-message.bot .message-bubble {
    background: #f0f0f0;
    color: #1a1a1a;
}

body.light-mode .chat-message.user .message-bubble {
    background: #FF8C00;
    color: #ffffff;
}

body.light-mode .chat-input-area {
    background: #ffffff;
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .chat-input {
    background: #f0f0f0;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .chat-button {
    background: #FF8C00;
}

/* ===== COMPREHENSIVE LIGHT MODE CHAT WINDOW ===== */

/* Header Text & Icons */
body.light-mode .chat-header-title {
    color: #1a1a1a;
}

body.light-mode .chat-close {
    color: #666666;
}

body.light-mode .chat-close:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
}

/* Quick Questions Header */
body.light-mode .quick-questions-title {
    color: #666666;
}

/* Quick Question Buttons */
body.light-mode .quick-question-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-mode .quick-question-btn:hover {
    background: rgba(255, 140, 0, 0.05);
    border-color: rgba(255, 140, 0, 0.4);
    color: #FF8C00;
}

/* Message Bubbles - Refined */
body.light-mode .chat-message.bot .message-bubble,
body.light-mode .chat-message .message-text {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.light-mode .chat-message.user .message-bubble,
body.light-mode .chat-message .message-content[style*="text-align: right"] .message-text {
    background: #FF8C00 !important;
    color: #ffffff !important;
    border-color: #FF8C00 !important;
}

/* Timestamp Text */
body.light-mode .message-time {
    color: #888888;
}

/* Input Area */
body.light-mode .chat-input::placeholder {
    color: #888888;
}

body.light-mode .chat-send svg {
    stroke: #1a1a1a !important;
}

body.light-mode .chat-send:hover svg {
    stroke: #FF8C00 !important;
}

/* Chat window edges and scrollbar */
body.light-mode .chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body.light-mode .chat-messages::-webkit-scrollbar-thumb {
    background: #cccccc;
}

/* ===== REFERENCE-PRECISE LIGHT MODE CHAT WINDOW ===== */

/* Header & Body Backgrounds */
body.light-mode .chat-window {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .chat-header {
    background: #fcf6f0;
    /* Very pale warm off-white from reference */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

body.light-mode .chat-header-title {
    color: #1a1a1a;
    font-weight: 800;
    /* Bolder per reference */
}

body.light-mode .chat-header-status {
    color: #FF8C00;
}

/* Chat Messages Area */
body.light-mode .chat-messages {
    background: #ffffff;
}

body.light-mode .chat-.message-content {
    max-width: 75%;
    /* Reduced from 85% to give more margin on edges */
    min-width: 60px;
    /* Minimum width so single words aren't squished */
}

/* Fix chat text alignment inside bubbles */
.message-text {
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    /* Ensure long words wrap */
}

/* Base Bubble Structure */
body.light-mode .chat-message .message-text {
    background: #f2f2f2 !important;
    /* Specific light grey from reference */
    color: #1a1a1a !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

/* Bot Bubbles - Squared bottom-left */
body.light-mode .chat-message.bot .message-text,
body.light-mode .chat-message .message-avatar+.message-content .message-text {
    border-radius: 12px 12px 12px 2px !important;
}

/* User Bubbles - Squared bottom-right */
body.light-mode .chat-message.user .message-text,
body.light-mode .chat-message .message-content[style*="text-align: right"] .message-text {
    background: #f2f2f2 !important;
    /* User bubbles are also grey in this reference design? Or we can keep them distinct. Reference shows bot. We'll make user bubbles a slightly darker grey to distinguish, as reference only shows bot side. */
    background: #e8e8e8 !important;
    border-radius: 12px 12px 2px 12px !important;
    text-align: left !important;
}

body.light-mode .message-time {
    display: none;
    /* Reference design does not show timestamps per bubble */
}

/* Message Avatar alignments */
body.light-mode .chat-message {
    align-items: flex-end;
    /* Align avatar to bottom of bubble */
    margin-bottom: 1.5rem;
}

/* Input Area */
body.light-mode .chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .chat-input-wrapper {
    background: none;
    padding: 0;
    justify-content: space-between;
}

body.light-mode .chat-input {
    background: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    flex: 1;
    margin-right: 0.8rem;
}

body.light-mode .chat-send {
    background: #FF8C00;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.light-mode .chat-send svg {
    stroke: #000000 !important;
    fill: #000000 !important;
}

body.light-mode .chat-send:hover {
    background: #e67e00;
}

/* ===== HERO INQUIRY MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 550px;
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

body.light-mode .modal-close {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
}

/* ===== HERO CTA BUTTON ===== */
.hero-cta-btn {
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    border: 1px solid rgba(255, 140, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-cta-btn:hover {
    background: #FF8C00;
    color: #000;
    border-color: #FF8C00;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
}

body.light-mode .hero-cta-btn {
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

body.light-mode .hero-cta-btn:hover {
    background: #FF8C00;
    color: #fff;
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.4);
}

/* ===== PRODUCT PAGE HERO CTA SPECIFIC (INVERTED) ===== */
.product-hero-content .hero-cta-btn,
.hero-slide .hero-cta-btn {
    background: #FF8C00;
    color: #000;
    border-color: #FF8C00;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
}

.product-hero-content .hero-cta-btn:hover,
.hero-slide .hero-cta-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.1);
}

body.light-mode .product-hero-content .hero-cta-btn,
body.light-mode .hero-slide .hero-cta-btn {
    background: #FF8C00;
    color: #fff;
    border-color: #FF8C00;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

body.light-mode .product-hero-content .hero-cta-btn:hover,
body.light-mode .hero-slide .hero-cta-btn:hover {
    background: rgba(255, 140, 0, 0.05);
    color: #FF8C00;
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.1);
}

/* ===== MODAL FORM ELEMENTS ===== */
.modal-title {
    margin-bottom: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

body.light-mode .modal-title {
    color: #1a1a1a;
}

.modal-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .modal-label {
    color: rgba(0, 0, 0, 0.7);
}

.modal-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.light-mode .modal-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

.modal-input:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.hero-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #FF8C00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-submit-btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.modal-status {
    font-size: 0.95rem;
}

/* --- Masonry Layout for Services Page --- */
.projects-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1400px;
    margin: 4rem auto 0;
}

.masonry-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.masonry-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
}

.masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
}

[data-theme="dark"] .masonry-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .masonry-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1200px) {
    .projects-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .projects-masonry {
        column-count: 1;
    }
}

.insight-hero {
    position: relative;
    overflow: hidden;
    padding-top: 9rem;
    padding-bottom: 2rem;
}

.insight-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 2rem;
    align-items: stretch;
}

.insight-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-hero-copy-single {
    max-width: 980px;
}

.insight-hero-media {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
    gap: 1rem;
    min-height: 420px;
}

.insight-media-main,
.insight-media-tile,
.case-study-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 22, 22, 0.55);
}

.insight-media-main img,
.insight-media-tile img,
.case-study-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insight-media-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.insight-eyebrow {
    color: var(--primary-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.insight-title {
    color: var(--text-color);
    font-size: clamp(3rem, 6vw, 5.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.insight-summary {
    color: var(--text-muted);
    font-size: 1.18rem;
    line-height: 1.85;
    max-width: 900px;
}

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 2rem;
}

.insight-meta span,
.insight-highlight-label {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.22);
    color: var(--text-color);
    font-weight: 600;
}

.insight-highlight-card,
.insight-article-card,
.case-study-card {
    background: rgba(30, 30, 30, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

body.light-mode .insight-highlight-card,
body.light-mode .insight-article-card,
body.light-mode .case-study-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.insight-highlight-card {
    padding: 2rem;
}

.insight-highlight-card p {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 1.12rem;
    line-height: 1.75;
}

.insight-content-section,
.case-study-section {
    padding: 2rem 0 7rem;
}

.insight-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.4rem;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 140, 0, 0.14);
    border-radius: 24px;
}

.insight-cta-card h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin: 0.9rem 0 0.8rem;
}

.insight-cta-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.insight-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.insight-stat-card,
.insight-side-card,
.case-study-lead-card {
    background: rgba(30, 30, 30, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

body.light-mode .insight-stat-card,
body.light-mode .insight-side-card,
body.light-mode .case-study-lead-card,
body.light-mode .insight-media-main,
body.light-mode .insight-media-tile,
body.light-mode .case-study-media {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.insight-stat-card {
    padding: 1.6rem;
}

.insight-stat-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--primary-color);
    font-weight: 800;
}

.insight-stat-card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.insight-stat-card p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.insight-article-card {
    padding: 3rem;
}

.insight-article-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-pullquote {
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 140, 0, 0.12);
}

.insight-pullquote p {
    margin: 1rem 0 0;
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.7;
}

.insight-keypoints,
.insight-side-card {
    padding: 2rem;
}

.insight-keypoints h3,
.insight-side-card h3,
.insight-section-block h2 {
    color: var(--text-color);
}

.insight-keypoints ul,
.insight-side-card ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.insight-keypoints li,
.insight-side-card li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.45rem;
}

.insight-article-body p {
    color: var(--text-color);
    line-height: 1.95;
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.insight-section-block {
    margin-bottom: 2rem;
}

.insight-section-block h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.insight-section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1.5rem;
    align-items: start;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.case-study-card {
    overflow: hidden;
}

.case-study-card:last-child,
.case-study-card-wide {
    grid-column: 1 / -1;
}

.case-study-lead-card {
    padding: 2rem;
}

.case-study-lead-card ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.case-study-lead-card li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.case-study-card-body {
    padding: 2rem 2rem 2.25rem;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-study-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--text-color);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-study-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.22);
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.case-study-card h3 {
    color: var(--text-color);
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.case-study-card h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1.35rem 0 0.65rem;
}

.case-study-card p,
.case-study-card li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.82;
}

.case-study-block {
    margin-bottom: 1.1rem;
}

.case-study-outcome {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .case-study-outcome {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.case-study-card ul {
    padding-left: 1.2rem;
}


/* --- Infinite Marquee Redesign --- */
.marquee-section {
    background-color: var(--bg-color);
}

.marquee-focus-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Full width bleed breakout */
    /* Feather edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    padding: 1rem 0;
    /* Room for hover scale */
    width: max-content;
    will-change: transform;
}

/* Scroll Directions */
.scroll-left .marquee-track {
    animation: scrollLeft linear infinite;
}

.scroll-right .marquee-track {
    animation: scrollRight linear infinite;
}

/* Scroll Speeds */
.speed-fast {
    animation-duration: 45s !important;
}

.speed-medium {
    animation-duration: 55s !important;
}

.speed-slow {
    animation-duration: 65s !important;
}

/* The Marquee Card */
.track-card {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    width: 450px;
    /* Fixed width so lines match up */
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .track-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

body.light-mode .track-card p {
    color: #222 !important;
    font-weight: 500 !important;
}

.track-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.track-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
}

/* --- THE FOCUS HOVER EFFECT --- */
/* 1. Stop all tracks when hovering over the wrapper */
.marquee-focus-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* 2. Dim and blur ALL cards when hovering over the wrapper */
.marquee-focus-wrapper:hover .track-card {
    opacity: 0.3;
    filter: blur(4px);
    transform: scale(0.98);
}

/* 3. Bring the specifically hovered card into bright focus */
.marquee-focus-wrapper .track-card:hover {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1.05);
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

[data-theme="dark"] .marquee-focus-wrapper .track-card:hover {
    background: rgba(60, 60, 60, 0.9);
}

/* Keyframes */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }

    /* Moving exactly 1 set of the 3 duplicated sets */
}

@keyframes scrollRight {
    0% {
        transform: translateX(-33.33%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .track-card {
        width: 320px;
        padding: 1.5rem;
    }

    .track-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .insight-hero-grid,
    .case-study-grid,
    .insight-stat-grid,
    .insight-article-intro,
    .insight-section-split,
    .insight-hero-media {
        grid-template-columns: 1fr;
    }

    .insight-highlight-card,
    .insight-article-card,
    .case-study-card {
        padding: 2rem;
    }

    .insight-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-study-card:last-child {
        grid-column: auto;
    }

    .insight-media-main {
        min-height: 280px;
    }

    .insight-media-stack {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}


/* --- Premium Scope of Activities Visuals --- */

.premium-service-card {
    flex: 0 1 calc(33.333% - 1.67rem);
    min-width: 320px;
    max-width: 450px;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

body.light-mode .premium-service-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body.light-mode .premium-service-card h3 {
    color: #111 !important;
}

body.light-mode .premium-service-card p {
    color: #333 !important;
    font-weight: 500 !important;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    filter: blur(60px);
    opacity: 0.15;
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 0;
}

.premium-service-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.premium-service-card .service-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-service-card .service-number {
    font-size: 3.5rem;
    font-weight: 800;
    opacity: 0.08;
    line-height: 1;
    position: relative;
    top: -10px;
    right: -10px;
    transition: opacity 0.4s ease;
}

body.light-mode .premium-service-card .service-number {
    color: #000;
    opacity: 0.05;
}

.premium-service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.premium-service-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Hover Interactions */
.premium-service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

body.light-mode .premium-service-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.premium-service-card:hover .card-glow {
    opacity: 0.4;
    transform: scale(1.5);
}

.premium-service-card:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.premium-service-card:hover .service-number {
    opacity: 0.2;
}

@media (max-width: 1024px) {
    .premium-service-card {
        flex: 0 1 calc(50% - 1.25rem);
    }
}

@media (max-width: 768px) {
    .premium-service-card {
        flex: 0 1 100%;
        padding: 2.5rem 2rem;
    }
}


/* --- Premium Services CTA Visuals --- */

.premium-cta-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    text-align: center;
}

body.light-mode .premium-cta-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

body.light-mode .premium-cta-card h2 {
    color: #111;
}

/* Update the secondary CTA button for light mode to ensure border visibility */
body.light-mode .premium-cta-card .cta-secondary {
    background: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .premium-cta-card .cta-secondary:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .premium-cta-card {
        padding: 4rem 2rem;
        border-radius: 24px;
    }

    .premium-cta-card h2 {
        font-size: 2.5rem !important;
    }
}

body.light-mode .marquee-section {
    background-color: var(--bg-color);
}


body.light-mode .premium-service-card .service-icon-box,
body.light-mode .track-card .track-icon {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* FAQ Specific Styles Extracted from HTML */
.faq-section {
    padding-top: 6rem;
    padding-bottom: 8rem;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.services-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-row {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: start;
}

.faq-row .premium-service-card {
    flex: none;
    min-width: 0;
    max-width: none;
    width: auto;
}

.faq-row + .faq-row {
    margin-top: 2rem;
}

.faq-row-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-row-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-service-card {
    background: var(--surface-color, rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.premium-service-card-featured {
    grid-column: 2 / 4;
    width: 100%;
}

.faq-card-consulting {
    grid-column: 1 / 2;
}

.premium-service-card-featured.faq-card-tight {
    padding: 2.1rem 2.25rem;
}

.premium-service-card-featured.faq-card-tight h3 {
    margin-bottom: 0.85rem;
}

.premium-service-card-featured.faq-card-tight p {
    font-size: 0.95rem;
    line-height: 1.58;
    max-width: none;
}

.premium-service-card-featured.faq-card-tightest {
    padding: 1.9rem 2rem;
}

.premium-service-card-featured.faq-card-tightest h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.premium-service-card-featured.faq-card-tightest p {
    font-size: 0.92rem;
    line-height: 1.52;
    max-width: none;
}

.premium-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.premium-service-card:hover .card-glow {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-service-card:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.faq-type {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.premium-service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.premium-service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 768px) {
    .faq-row-top,
    .faq-row-bottom {
        grid-template-columns: 1fr;
    }

    .premium-service-card-featured,
    .faq-card-consulting {
        grid-column: auto;
    }
}

.faq-hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 4rem;
    text-align: center;
    z-index: 1;
}

.faq-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.faq-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

body:not(.light-mode) .premium-service-card:hover .service-icon-box {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body:not(.light-mode) .premium-service-card:hover .card-glow {
    opacity: 0.8 !important;
}

/* --- HOMEPAGE CAPABILITIES GRID --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
}

.capabilities-grid .premium-image-card {
    grid-column: span 1 !important;
    min-height: 400px;
    height: 400px !important;
}

/* Responsive */
@media (max-width: 991px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

/* --- SCOPE OF ACTIVITIES FLEXBOX (CENTERS WRAPPED ORPHANS) --- */
.scope-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem;
    margin-top: 3rem;
}

.scope-grid>.scope-card {
    flex: 0 1 calc(25% - 1.5rem);
    min-width: 250px;
}

@media (max-width: 991px) {
    .scope-grid>.scope-card {
        flex: 0 1 calc(50% - 1.5rem);
    }
}

/* ===== RESPONSIVE UTILITIES ===== */
.responsive-split {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 768px) {
    .responsive-split {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

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