/* --- Variables & Reset --- */
:root {
    --bg-main: #050505;
    --bg-panel: #0a0a0a;
    --bg-card: #0f0f0f;
    --bg-alt: #111111;
    --text-main: #fcfcfc;
    --text-muted: #999999;

    /* Elegant Gold Palette */
    --accent-gold: #d4b886;
    --accent-gold-hover: #e5c997;
    --accent-gold-dim: rgba(212, 184, 134, 0.15);

    /* Structural */
    --border-color: #222222;
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Theme Overrides (Light Mode) --- */
body.light-theme {
    --bg-main: #ffffff;
    --bg-panel: #f8fafc;
    --bg-card: #f1f5f9;
    --bg-alt: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;

    --accent-gold: #0d9488;
    --accent-gold-hover: #0f766e;
    --accent-gold-dim: rgba(13, 148, 136, 0.15);

    --border-color: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(0, 0, 0, 0.05);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .nav-links {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .logo img,
body.light-theme .footer-logo img {
    filter: none !important;
}

body.light-theme .globe-wrapper {
    background: radial-gradient(circle at 30% 30%, #f8fafc 0%, #e2e8f0 80%, #cbd5e1 100%);
    box-shadow: inset -20px -20px 50px rgba(0, 0, 0, 0.1), 0 0 40px rgba(13, 148, 136, 0.15);
}

body.light-theme .globe-vignette {
    box-shadow: inset -20px -20px 50px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(13, 148, 136, 0.2) !important;
}

body.light-theme .theme-toggle-fab {
    background: var(--text-main);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

body.light-theme .theme-toggle-fab:hover {
    background: var(--accent-gold);
    transform: translateY(-3px) scale(1.05);
}

body.light-theme .theme-toggle-fab .sun-icon {
    display: none;
}

body.light-theme .theme-toggle-fab .moon-icon {
    display: block;
}

/* Floating Theme Toggle Box */
.theme-toggle-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-main);
    border: none;
    box-shadow: 0 4px 20px rgba(212, 184, 134, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 184, 134, 0.6);
    background: var(--accent-gold-hover);
}

.theme-toggle-fab svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.theme-toggle-fab .sun-icon {
    display: block;
}

.theme-toggle-fab .moon-icon {
    display: none;
}

.theme-toggle-fab:hover svg {
    transform: rotate(30deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

h1 {
    font-size: 5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 300;
}

.highlight-text {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

.bold-text {
    color: var(--text-main);
    font-weight: 500;
}

.gold-text {
    color: var(--accent-gold);
}

.pre-title {
    font-family: var(--font-body);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 10rem 0;
    position: relative;
}

.center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.link-explore {
    display: inline-flex;
    align-items: center;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-top: 2rem;
    transition: var(--transition);
}

.link-explore::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.link-explore:hover::after {
    transform: translateX(5px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text-inline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 20, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
    opacity: 0;
}

.mobile-menu-overlay.active .mobile-menu-links {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.mobile-menu-links a:not(.btn) {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu-links a:not(.btn):hover {
    color: var(--accent-gold);
    transform: scale(1.05);
}



/* --- Hero Section --- */
.hero {
    padding-top: 14rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Circular Radar Background */
.hero-radar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    border-radius: 50%;
    border: 1px solid rgba(212, 184, 134, 0.3);
    pointer-events: none;
    z-index: 0;
    animation: rotateRadar 120s linear infinite;
}

@keyframes rotateRadar {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-radar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 1px;
    height: 200%;
    background: rgba(212, 184, 134, 0.2);
}

.hero-radar::after {
    content: '';
    position: absolute;
    left: -50%;
    top: 50%;
    height: 1px;
    width: 200%;
    background: rgba(212, 184, 134, 0.2);
}

.hero-radar .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(212, 184, 134, 0.35);
}

.hero-radar .c1 {
    width: 33%;
    height: 33%;
}

.hero-radar .c2 {
    width: 66%;
    height: 66%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero .headline {
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero .headline span {
    display: block;
}

.hero .subheadline {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
}

.audit-shows {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.audit-list {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.audit-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.audit-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    margin-right: 0.75rem;
}

/* --- Stats Section (Revenue Leakage adapted) --- */
.stats-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-inline: auto;
}

/* --- Side-by-Side Content Layout (For Problems and Services) --- */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse>* {
    direction: ltr;
}

.content-info {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--accent-gold);
}

.content-number {
    position: absolute;
    left: -1rem;
    top: -1rem;
    background: var(--bg-main);
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0 0.5rem;
}

.content-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fake UI Slabs inside media */
.ui-slab {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    width: 80%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* --- How It Works --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.process-card {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-gold-dim);
    margin-bottom: 1rem;
    line-height: 1;
}

.process-list {
    list-style: none;
    margin-top: auto;
}

.process-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Reasons Section --- */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.reason-card {
    background: var(--bg-main);
    padding: 4rem;
}

.reason-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 10rem 0;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    padding: 4rem 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.footer p {
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

a.footer-link {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    transition: var(--transition);
}

a.footer-link:hover {
    color: var(--text-main) !important;
}

.footer-dot {
    color: var(--border-color);
}

/* --- Animations (Handled by JS classes) --- */
.anim-slab {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slab.active {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.anim-fade.active {
    opacity: 1;
}

.anim-img-reveal {
    position: relative;
    overflow: hidden;
}

.anim-img-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.anim-img-reveal.active::after {
    transform: scaleY(0);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--bg-main);
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

/* Form Styles */
.form-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--text-muted);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-form select {
    appearance: none;
    cursor: pointer;
}

.contact-form select option,
.apply-form select option {
    background: var(--bg-main);
    color: var(--text-main);
}

/* Globe Container */
.contact-globe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    min-height: 500px;
}

/* Pure CSS Globe */
.globe-wrapper {
    width: 400px;
    height: 400px;
    position: relative;
    border-radius: 50%;
    /* Gradient mimicking dark ocean/shadows */
    background: radial-gradient(circle at 30% 30%, #0a1118 0%, #03060a 80%, #000000 100%);
    box-shadow: inset -20px -20px 50px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 184, 134, 0.25);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* This creates a pseudo-continents map background that rotates */
.globe-sphere {
    position: absolute;
    width: 200%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at center, rgba(10, 25, 40, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 40%, rgba(15, 30, 45, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(8, 20, 30, 0.5) 0%, transparent 60%);
    background-size: 50% 100%;
    animation: rotateGlobe 30s linear infinite;
    opacity: 0.5;
}

/* Glossy highlight over the globe */
.globe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    box-shadow: inset 0 0 20px rgba(212, 184, 134, 0.1);
    border: 1px solid rgba(212, 184, 134, 0.15);
    pointer-events: none;
    z-index: 10;
}

@keyframes rotateGlobe {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* City Markers overlaying the globe */
.city-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    z-index: 15;
    cursor: default;
}

.city-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
    position: relative;
}

.city-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.city-name {
    font-size: 0.65rem;
    color: var(--accent-gold);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.7;
    white-space: nowrap;
}

/* Client Legend below globe */
.client-legend {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    width: 100%;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.legend-items span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.8;
}

.legend-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer Adjustments */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .split-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-content.reverse {
        direction: ltr;
    }

    .split-content.reverse>* {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .globe-wrapper {
        width: 300px;
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .navbar .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .logo-text-inline {
        font-size: 1.25rem;
    }

    .hero .headline {
        font-size: 2.75rem;
        margin-top: 1rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero-radar {
        width: 150vw;
        height: 150vw;
    }

    .audit-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .form-card {
        padding: 1.5rem;
    }
}

/* --- Careers Page Styles --- */
.careers-hero {
    padding-top: 14rem;
    padding-bottom: 6rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 6rem 0;
}

.job-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

body.light-theme .job-card:hover {
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.15);
}

.job-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.job-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.job-card-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(212, 184, 134, 0.3);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.light-theme .job-tag {
    border-color: rgba(13, 148, 136, 0.3);
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.job-desc-preview {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.job-view-link {
    font-size: 0.875rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.job-view-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.job-card:hover .job-view-link::after {
    transform: translateX(5px);
}

.job-apply-btn {
    background: var(--accent-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition);
}

.job-apply-btn:hover {
    background: var(--accent-gold-hover);
    transform: scale(1.05);
}

/* --- Role Detailed Page --- */
.role-hero {
    padding-top: 12rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-panel);
}

.role-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.role-body {
    padding: 6rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.role-section {
    margin-bottom: 4rem;
}

.role-section h3 {
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.role-section p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.role-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.role-section li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Application Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.apply-form .form-row {
    display: flex;
    gap: 1rem;
}

.apply-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.apply-form label {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.apply-form input,
.apply-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.apply-form input[type="file"] {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.apply-form input:focus,
.apply-form select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.apply-form .btn {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
}

/* --- CLIENT LOGO MARQUEE --- */
.logo-marquee-section {
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at center, rgba(10, 15, 20, 0.4) 0%, transparent 70%);
}

.logo-marquee-section::before,
.logo-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15vw;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.logo-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.logo-marquee-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    opacity: 0.8;
}

.marquee-row {
    display: flex;
    white-space: nowrap;
    position: relative;
    margin-bottom: 2rem;
}

.marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    padding-right: 3rem;
    /* Ensure seamless loop */
    width: max-content;
}

.marquee-row.left .marquee-track {
    animation: scroll-left 120s linear infinite;
}

.marquee-row.right .marquee-track {
    animation: scroll-right 120s linear infinite;
}

.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 160px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.marquee-item img {
    border-radius: 8px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #ffffff;
    /* Provided logos have white backgrounds, keep it clean */
    padding: 15px;
}

.marquee-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-family: var(--font-heading);
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}