/* ==================== VARIABLES ==================== */
:root {
    /* Colors - Light Mode (Default but overriden by script if dark preferred) */
    --hue: 9;
    /* Approx hue for #E93F2E */
    --sat: 83%;
    --lig: 55%;

    --first-color: #E93F2E;
    /* User defined brand color */
    --first-color-alt: #d03223;
    /* Slightly darker for hover */
    --first-color-light: #fdeceb;
    /* Very light version */
    --title-color: hsl(var(--hue), 8%, 15%);
    --text-color: hsl(var(--hue), 8%, 45%);
    --text-color-light: hsl(var(--hue), 8%, 65%);
    --body-color: hsl(var(--hue), 60%, 99%);
    --container-color: #fff;
    --border-color: rgba(0, 0, 0, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Gradients */
    --gradient-text: linear-gradient(90deg, var(--first-color), #ff0080);

    /* Typography */
    --body-font: 'Inter', sans-serif;
    --title-font: 'DM Serif Display', serif;
    --h1-font-size: 4rem;
    --h2-font-size: 2.75rem;
    --h3-font-size: 1.75rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Radius */
    --radius-large: 2.5rem;
    --radius-medium: 1.5rem;
    --radius-small: 0.75rem;

    /* Spacing */
    --header-height: 4.5rem;
}

/* ==================== DARK THEME ==================== */
[data-theme="dark"] {
    --first-color: #E93F2E;
    --first-color-alt: #E93F2E;
    --title-color: hsl(var(--hue), 8%, 95%);
    --text-color: hsl(var(--hue), 8%, 75%);
    --body-color: #191716;
    --container-color: hsl(var(--hue), 29%, 16%);
    --border-color: rgba(255, 255, 255, 0.1);

    --glass-bg: rgba(25, 25, 45, 0.4);
    /* Thinner glass for more transparency */
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==================== MESH & GRID UTILITIES ==================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 2px 2px, var(--border-color) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.mesh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.mesh-gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(233, 63, 46, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(var(--hue), 60%, 55%, 0.05) 0%, transparent 50%);
    filter: blur(80px);
    animation: meshFlow 20s infinite alternate ease-in-out;
}

@keyframes meshFlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

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

/* ==================== BASE ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: .4s;
    /* Smooth theme transition */
}

h1,
h2,
h3 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: 400;
    /* Serif fonts often look better at 400 */
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== UTILITY CLASSESS ==================== */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section {
    padding-block: 8rem 4rem;
    /* More generous whitespace */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--first-color);
}

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

/* ==================== SIDE HEADINGS ==================== */
.side-heading {
    position: absolute;
    left: -2rem;
    top: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--body-font);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--first-color);
    opacity: 0.4;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 1rem;
}

@media (max-width: 1200px) {
    .side-heading {
        display: none;
    }
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delayed {
    transition-delay: 0.2s;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 140px;
    max-width: 95%;
    background-color: var(--first-color);
    z-index: 1000;
    height: 4.5rem;
    border-radius: 5rem;
    padding-inline: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all .6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Allow dropdowns to overflow */
.header:hover,
.header.menu-open {
    overflow: visible;
}

[data-theme="dark"] .header {
    background-color: var(--first-color);
}

.header.scrolled {
    top: 1rem;
    background-color: var(--first-color);
    backdrop-filter: none;
}

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

.logo {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    /* Reduced padding since box is gone */
    background: transparent;
    border: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==================== TEAM ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: .3s;
}

[data-theme="dark"] .team-card {
    background-color: rgba(255, 255, 255, 0.03);
}

.team-card:hover {
    border-color: var(--first-color);
    transform: translateY(-5px);
}

.team-img-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--first-color-alt);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.team-role {
    display: block;
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-weight: 500;
}

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


.theme-toggle {
    font-size: 1.25rem;
    color: #fff;
    /* White icons on red header */
    display: flex;
    padding: 0.5rem;
    border-radius: 50%;
    transition: .3s;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
    font-size: 1.25rem;
    color: #fff;
    /* White icons on red header */
    cursor: pointer;
    display: none;
}

.nav-menu {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Reveal when header is hovered */
.header:hover .nav-menu,
.header.menu-open .nav-menu {
    max-width: 1000px;
    opacity: 1;
    margin-left: 1.5rem;
    pointer-events: auto;
    overflow: visible;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    /* More compact for pill */
    white-space: nowrap;
    /* Prevent wrapping during expansion */
}

.nav-link {
    /* Reverted from .f-link to .nav-link */
    font-weight: 500;
    color: #fff;
    /* White text on red header */
    transition: .3s;
    position: relative;
}

.has-dropdown {
    position: relative;
}

/* Bridge the 15px gap to the dropdown panel */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 10;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    /* White underline */
    transition: .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-close {
    display: none;
}

/* ==================== DROPDOWN ==================== */
.has-dropdown {
    position: relative;
}

.nav-link-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s;
    display: inline-block;
}

.has-dropdown.open .nav-link-arrow {
    transform: rotate(180deg);
}

.dropdown-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    min-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    z-index: 200;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown.open .dropdown-panel {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

[data-theme="dark"] .dropdown-panel {
    background-color: rgba(22, 22, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(233, 63, 46, 0.1);
    backdrop-filter: blur(20px);
}

.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .dropdown-panel::before {
    background-color: rgba(22, 22, 22, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header {
    font-size: var(--small-font-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(233, 63, 46, 0.08);
    border-color: rgba(233, 63, 46, 0.2);
    transform: translateY(-3px);
}

.dropdown-item-icon {
    font-size: 1.4rem;
    color: var(--first-color);
    flex-shrink: 0;
    transition: transform 0.4s;
}

.dropdown-item:hover .dropdown-item-icon {
    transform: scale(1.2) rotate(-5deg);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--title-color);
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.dropdown-item:hover .dropdown-item-title {
    color: var(--first-color);
}

.dropdown-item-sub {
    font-size: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    opacity: 0.8;
}

/* Show dropdown on hover for desktop */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-panel {
        display: block;
    }
}

/* Mobile nav adjustments for pill form */
@media (max-width: 768px) {
    .header {
        width: 90%;
        min-width: unset;
        top: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--container-color);
        width: 80%;
        height: 100vh;
        padding: 4rem 2rem;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        transition: .4s;
        border-radius: 2rem 0 0 2rem;
    }

    .nav-list {
        flex-direction: column;
        row-gap: 2rem;
    }

    .nav-link {
        color: var(--title-color);
    }

    .logo-img {
        height: 35px;
        mix-blend-mode: screen;
    }

    .dropdown-panel {
        position: static;
        transform: none;
        min-width: unset;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0.5rem;
        padding: 0.5rem 0 0.5rem 1rem;
        background-color: rgba(0, 0, 0, 0.04);
        margin-top: 0.5rem;
    }
}

/* ==================== BUTTONS ==================== */
.button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: .3s;
}

.button-primary {
    background-color: var(--first-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button-primary:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.button-secondary {
    background-color: transparent;
    color: var(--title-color);
    border: 1px solid var(--border-color);
}

.button-secondary:hover {
    border-color: var(--first-color);
    color: var(--first-color);
}

/* ==================== HERO ==================== */
.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-height);
    text-align: center;
}

.home-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--hue), 60%, 55%, 0.1);
    color: var(--first-color);
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid var(--first-color);
}

.home-title {
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.home-description {
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== SERVICES ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 15px 35px -12px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, var(--first-color) 0%, transparent 70%);
    opacity: 0;
    filter: blur(40px);
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(233, 63, 46, 0.5);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(233, 63, 46, 0.1);
}

.service-card:hover::after {
    opacity: 0.15;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .service-card {
    background: rgba(255, 255, 255, 0.02);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-link {
    color: var(--first-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: .3s;
}

.service-link:hover {
    gap: 0.8rem;
}

/* ==================== SERVICE TAGS ==================== */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.service-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background-color: rgba(233, 63, 46, 0.12);
    color: var(--first-color);
    border: 1px solid rgba(233, 63, 46, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==================== SERVICES 2-COL ==================== */
.services-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ==================== STATS BAR ==================== */
.stats-section {
    background-color: var(--container-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

[data-theme="dark"] .stats-section {
    background-color: rgba(255, 255, 255, 0.03);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
}

.stat-bar-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-bar-label {
    font-size: 0.85rem;
}

.stat-bar-divider {
    width: 1px;
    height: 3rem;
    background-color: var(--border-color);
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    border-bottom: 1px solid var(--border-color);
}

.page-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--first-color);
    background-color: rgba(233, 63, 46, 0.1);
    border: 1px solid rgba(233, 63, 46, 0.25);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.page-hero-desc {
    font-size: 1.1rem;
    max-width: 640px;
    color: var(--text-color);
    line-height: 1.7;
}

/* ==================== WHY / VALUES GRID ==================== */
.why-section {
    background-color: var(--container-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .why-section {
    background-color: rgba(255, 255, 255, 0.02);
}

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

.why-card {
    padding: 3rem 2rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    border-color: var(--first-color);
}

.why-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: rgba(233, 63, 46, 0.12);
    color: var(--first-color);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.why-step {
    font-size: 1.1rem;
    font-weight: 800;
}

.why-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--title-color);
}

.why-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-color);
}

/* ==================== CTA BANNER ==================== */
.cta-section {
    background: linear-gradient(135deg, #E93F2E 0%, #B02C1E 100%);
    padding: 5rem 0;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.button-cta {
    background-color: #fff;
    color: #E93F2E;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.button-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==================== MISSION / VISION ==================== */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mv-card {
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--container-color);
    transition: transform 0.3s;
}

.mv-card:hover {
    transform: translateY(-4px);
}

.mv-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: rgba(233, 63, 46, 0.12);
    color: var(--first-color);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.mv-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--title-color);
}

.mv-text {
    line-height: 1.7;
    color: var(--text-color);
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-color);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ==================== 4-COL FOOTER ==================== */
.footer-container.footer-container-4 {
    grid-template-columns: 2fr 1fr 1fr 1.7fr;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--first-color);
    margin-top: 0.18rem;
    flex-shrink: 0;
}

/* ==================== HERO GLASS CARD 3 ==================== */
.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}


/* ==================== CONTACT ==================== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-container {
    background-color: rgba(255, 255, 255, 0.03);
}

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

.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--body-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    outline: none;
    transition: .3s;
}

.form-input:focus {
    border-color: var(--first-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #0a0a0c;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--first-color), transparent);
}

[data-theme="light"] .footer {
    background-color: #111114;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
    font-family: var(--body-font);
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--first-color);
}

.footer-logo {
    font-family: var(--title-font);
    font-size: 1.6rem;
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--first-color);
    color: #fff;
    border-color: var(--first-color);
    transform: translateY(-3px);
}

/* Contact list in footer */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.footer-contact i {
    color: var(--first-color);
    margin-top: 0.18rem;
    flex-shrink: 0;
    width: 14px;
}

.footer-contact a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--first-color);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}

/* 4-col footer */
.footer-container.footer-container-4 {
    grid-template-columns: 2fr 1fr 1fr 1.7fr;
}

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

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

@media (max-width: 768px) {
    :root {
        --h1-font-size: 2.5rem;
        --h2-font-size: 1.75rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        background-color: #E93F2E;
        width: 80%;
        height: 100%;
        padding: 4rem 2rem;
        transition: .4s;
        /* box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); */
        z-index: 1000;
    }

    [data-theme="dark"] .nav-menu {
        background-color: #E93F2E;
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: var(--title-color);
        cursor: pointer;
    }

    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
    }

    .home-buttons {
        justify-content: center;
    }

    .home-visual {
        margin-top: 2rem;
        height: 300px;
    }

    .footer-container,
    .footer-container.footer-container-4 {
        grid-template-columns: 1fr;
    }

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

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

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

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .stat-bar-item {
        padding: 0.75rem 1.5rem;
    }

    .stat-bar-divider {
        display: none;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    .footer-container.footer-container-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {

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

    .contact-container {
        padding: 1.5rem;
    }

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

    .footer-container.footer-container-4 {
        grid-template-columns: 1fr;
    }

    .page-hero-title {
        font-size: 1.7rem;
    }
}

/* ==================== ABOUT PAGE ==================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.img-box {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, rgba(233,63,46,0.15) 0%, rgba(233,63,46,0.05) 100%);
    border: 1px solid rgba(233,63,46,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abstract-shape {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,63,46,0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowDriftAbout 6s ease-in-out infinite alternate;
}

@keyframes glowDriftAbout {
    0%   { transform: translate(-20px, -20px) scale(1); }
    100% { transform: translate(20px, 20px) scale(1.2); }
}

/* Decorative corner accent */
.img-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--first-color);
    border-left: 3px solid var(--first-color);
    border-radius: var(--radius-large) 0 0 0;
}

.img-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 80px;
    height: 80px;
    border-bottom: 3px solid var(--first-color);
    border-right: 3px solid var(--first-color);
    border-radius: 0 0 var(--radius-large) 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.about-stats .stat-item {
    text-align: center;
    padding: 1.25rem 0.5rem;
    border-radius: var(--radius-small);
    background: rgba(233,63,46,0.06);
    border: 1px solid rgba(233,63,46,0.15);
    transition: transform 0.3s, border-color 0.3s;
}

.about-stats .stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(233,63,46,0.4);
}

.about-stats .stat-number {
    display: block;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--first-color), #ff7a30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stats .stat-Label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .img-box {
        aspect-ratio: 16/7;
    }

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

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

/* ==================== MOBILE RESPONSIVE FIXES ==================== */

/* Prevent horizontal overflow on all screens */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {

    /* ---- HEADER PILL ---- */
    .header {
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 1rem !important;
        padding-inline: 1rem 1.25rem !important;
        height: 4rem !important;
    }

    /* Hide nav on mobile by default — show via hamburger */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #0f0503 0%, #1c0806 60%, #0f0503 100%) !important;
        padding: 0 !important;
        transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        margin-left: 0 !important;
        box-shadow: none !important;
        border-left: none !important;
    }

    .nav-menu.show-menu {
        right: 0 !important;
    }

    /* Top bar inside menu */
    .nav-menu::before {
        content: '';
        display: block !important;
        height: 4px !important;
        background: linear-gradient(90deg, var(--first-color), #ff7a30, var(--first-color)) !important;
        flex-shrink: 0 !important;
    }

    .nav-list {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 3rem 2.5rem 2rem !important;
        flex: 1 !important;
    }

    .nav-item {
        border-bottom: none !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .nav-link {
        color: rgba(255,255,255,0.55) !important;
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        font-family: var(--title-font) !important;
        font-weight: 400 !important;
        display: block !important;
        padding: 0.6rem 0 !important;
        transition: color 0.25s, transform 0.25s !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #fff !important;
        transform: translateX(8px) !important;
    }

    .nav-link.active {
        color: var(--first-color) !important;
    }

    /* Dropdown on mobile — clean list, no panel */
    .dropdown-panel {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .has-dropdown.open .dropdown-panel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        transform: none !important;
        min-width: unset !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0.25rem 0 0.5rem 1.5rem !important;
        background: transparent !important;
        backdrop-filter: none !important;
        margin-top: 0 !important;
    }

    .has-dropdown.open .dropdown-panel::before {
        display: none !important;
    }

    .dropdown-header {
        display: none !important;
    }

    .has-dropdown.open .dropdown-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .has-dropdown.open .dropdown-item {
        padding: 0.4rem 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .has-dropdown.open .dropdown-item:hover {
        background: transparent !important;
        transform: none !important;
    }

    .has-dropdown.open .dropdown-item-sub {
        display: none !important;
    }

    .has-dropdown.open .dropdown-item-icon {
        display: none !important;
    }

    .has-dropdown.open .dropdown-item-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        font-family: var(--title-font) !important;
        font-weight: 400 !important;
        color: rgba(255,255,255,0.45) !important;
        transition: color 0.2s !important;
    }

    .has-dropdown.open .dropdown-item:hover .dropdown-item-title {
        color: var(--first-color) !important;
    }

    .nav-toggle {
        display: block !important;
        font-size: 1.3rem !important;
        color: #fff !important;
        cursor: pointer !important;
    }

    .nav-close {
        display: flex !important;
        position: absolute !important;
        top: 1.25rem !important;
        right: 1.5rem !important;
        font-size: 1rem !important;
        color: rgba(255,255,255,0.6) !important;
        cursor: pointer !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.07) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1000 !important;
        transition: background 0.2s !important;
    }

    /* Dropdown on mobile — static, no absolute */
    .dropdown-panel {
        position: static !important;
        transform: none !important;
        min-width: unset !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0.5rem !important;
        padding: 0.75rem 0 0.5rem 0.5rem !important;
        background-color: rgba(255,255,255,0.04) !important;
        margin-top: 0.5rem !important;
        backdrop-filter: none !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .has-dropdown.open .dropdown-panel {
        display: block !important;
    }

    .dropdown-panel::before {
        display: none !important;
    }

    .dropdown-grid {
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
    }

    .dropdown-item {
        padding: 0.75rem 0.5rem !important;
        border-radius: 0.5rem !important;
    }

    .dropdown-item-title {
        font-size: 0.9rem !important;
    }

    .dropdown-item-sub {
        display: none;
    }

    /* ---- HERO WATERMARK — fit full word on mobile ---- */
    .hero-watermark {
        font-size: 18vw !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }

    /* ---- HERO CONTENT ---- */
    .hero-section {
        padding-top: 6rem !important;
        padding-inline: 0 !important;
    }

    .hero-content {
        padding-inline: 1.25rem !important;
        padding-block: 2rem !important;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem) !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        max-width: 300px;
    }

    /* ---- ORB RINGS ---- */
    .hero-orb-container {
        width: 100vw !important;
        height: 100vw !important;
    }

    .hero-orb-1 { width: 60vw !important; height: 60vw !important; }
    .hero-orb-2 { width: 80vw !important; height: 80vw !important; }
    .hero-orb-3 { width: 100vw !important; height: 100vw !important; }

    /* ---- STATS BAND ---- */
    .stats-band-inner {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }

    .stat-sep { display: none !important; }

    .stat-item { min-width: 40% !important; }

    /* ---- SERVICES GRID ---- */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .service-card {
        margin-top: 0 !important;
    }

    /* ---- WHY GRID ---- */
    .why-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ---- CTA ---- */
    .cta-container {
        flex-direction: column !important;
        text-align: center !important;
    }

    /* ---- FOOTER ---- */
    .footer-container,
    .footer-container.footer-container-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

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

    .footer-container,
    .footer-container.footer-container-4 {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }
}
