/* ===== CSS Variables - Premium Theme ===== */
:root {
    /* Primary Brand Colors */
    --navy: #0A192F;
    --gold: #C5A059;
    --white: #FFFFFF;
    --light-navy: #112240;
    --slate: #8892B0;
    --light-slate: #CCD6F6;
    
    /* Accent Colors */
    --green: #64FFDA;
    --orange: #F9A826;
    --red: #FF6B6B;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--navy) 0%, #152B4F 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, #E4B95B 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.7) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(10px);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
}

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--slate);
    background-color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--light-slate);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

/* ===== Premium Header with Glassmorphism ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

/* Logo Styles */
.logo-wrapper {
    flex-shrink: 0;
}

.logo-visual {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation Styles */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    position: relative;
    color: var(--light-slate);
    font-weight: 500;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--white);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    justify-content: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--navy);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--light-slate);
    color: var(--light-slate);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    background: rgba(10, 25, 47, 0.9);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: auto;
}

#main-content.menu-open {
    /* Critical Safari Prefix */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    
    /* Performance Optimization: Moves rendering to GPU */
    will-change: backdrop-filter, transform;
    transform: translateZ(0); 
    
    /* Accessibility: Increased contrast as per QA recommendation */
    opacity: 0.85; 
    transition: backdrop-filter 0.4s ease, opacity 0.4s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    padding: var(--space-xl) var(--space-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.mobile-logo i {
    color: var(--gold);
    font-size: 2rem;
}

.mobile-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.close-mobile {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-list {
    flex: 1;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--light-slate);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link i {
    width: 24px;
    color: var(--gold);
}

.mobile-link.active {
    color: var(--white);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.mobile-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.mobile-social a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* ===== Premium Hero Carousel ===== */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 20s ease;
}

.ken-burns img {
    transform: scale(1.1);
}

.carousel-slide.active .ken-burns img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow) 0.3s;
}

.carousel-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    color: var(--white);
    line-height: 1.1;
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: var(--light-slate);
    max-width: 600px;
}

.slide-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.carousel-prev {
    left: var(--space-md);
}

.carousel-next {
    right: var(--space-md);
}

.carousel-indicators {
    position: absolute;
    bottom: var(--space-xl);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator.active {
    background: var(--gold);
    transform: scale(1.2);
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    width: 25%;
    height: 100%;
    background: var(--gold);
    transition: width 5s linear;
}

.carousel-slide.active ~ .carousel-progress .progress-bar {
    animation: progressBar 5s linear;
}

@keyframes progressBar {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== Trust Metrics ===== */
.trust-metrics {
    background: var(--light-navy);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--slate);
}

/* ===== Who We Serve - Interactive Split ===== */
.serve-section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
}

.serve-container {
    display: flex;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.serve-panel {
    flex: 1;
    position: relative;
    transition: flex var(--transition-slow);
    overflow: hidden;
}

.serve-panel.active {
    flex: 1.5;
}

.panel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.panel-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.serve-panel.active .panel-background img {
    transform: scale(1.05);
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.9));
}

.panel-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--white);
    max-width: 500px;
}

.panel-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.panel-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.panel-description {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--light-slate);
}

.panel-features {
    margin-bottom: var(--space-lg);
}

.panel-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 0.5rem;
    color: var(--light-slate);
}

.panel-features i {
    color: var(--gold);
}

/* ===== Industries Bento Grid ===== */
.industries-section {
    background: var(--light-navy);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 120px);
    gap: var(--space-md);
}

.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.bento-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.bento-card:hover .card-glow {
    opacity: 0.5;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.bento-card p {
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: var(--space-sm);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Bento Grid Layout */
.bento-card.large {
    grid-column: span 6;
    grid-row: span 2;
}

.bento-card.tall {
    grid-column: span 3;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 6;
    grid-row: span 1;
}

.bento-card:not(.large):not(.tall):not(.wide) {
    grid-column: span 3;
    grid-row: span 1;
}

/* ===== Testimonials ===== */
.testimonials-section {
    background: var(--navy);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--light-slate);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 0.75rem;
    border: 2px solid var(--navy);
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.author-rating {
    display: flex;
    gap: 0.25rem;
    color: var(--gold);
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c5a059' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--light-slate);
    margin-bottom: var(--space-lg);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===== Premium Footer ===== */
.footer {
    background: var(--light-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--gold);
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-logo-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.footer-logo-text p {
    font-size: 0.875rem;
    color: var(--slate);
}

.footer-description {
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-slate);
    font-size: 0.875rem;
}

.footer-contact i {
    color: var(--gold);
    width: 16px;
}

.footer-title {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--slate);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 0.5rem;
}

.newsletter-form p {
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: var(--space-sm);
}

.input-group {
    display: flex;
    margin-bottom: var(--space-md);
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.input-group button {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
}

.footer-social a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-info {
    font-size: 0.75rem;
    color: var(--slate);
}

.footer-info p {
    margin-bottom: 0.25rem;
}

.footer-certifications {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cert-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--light-slate);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Chat Widget ===== */
.chat-widget {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
}

.chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: none;
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chat-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--navy);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.chat-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    padding: var(--space-md);
    background: var(--light-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.25rem;
}

.agent-info h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
    color: var(--white);
}

.agent-info p {
    font-size: 0.75rem;
    color: var(--slate);
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--slate);
    font-size: 1rem;
    cursor: pointer;
}

.chat-close:hover {
    color: var(--white);
}

.chat-body {
    padding: var(--space-md);
    max-height: 400px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: var(--space-md);
}

.chat-message.agent {
    text-align: left;
}

.chat-message p {
    background: var(--light-navy);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
    color: var(--light-slate);
    display: inline-block;
    max-width: 80%;
}

.message-time {
    display: block;
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 0.25rem;
    margin-left: var(--space-sm);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.chat-option {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-slate);
    padding: 0.75rem var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.chat-option:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.chat-input {
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: var(--space-sm);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--gold);
}

.send-btn {
    width: 48px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .slide-title {
        font-size: 3rem;
    }
    
    .bento-grid {
        grid-template-rows: repeat(6, 100px);
    }
}

@media (max-width: 992px) {
    .header-actions .btn span {
        display: none;
    }
    
    .header-actions .btn i {
        margin-right: 0;
    }
    
    .nav-list {
        gap: var(--space-sm);
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .serve-container {
        flex-direction: column;
        height: auto;
    }
    
    .serve-panel {
        height: 400px;
    }
    
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto;
    }
    
    .bento-card.large,
    .bento-card.wide {
        grid-column: span 6;
    }
    
    .bento-card.tall,
    .bento-card:not(.large):not(.tall):not(.wide) {
        grid-column: span 3;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .primary-nav {
        display: none;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .header-actions .btn-small:last-child {
        display: flex;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-card.large,
    .bento-card.wide,
    .bento-card.tall,
    .bento-card:not(.large):not(.tall):not(.wide) {
        grid-column: span 2;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-container {
        width: calc(100vw - 40px);
        right: -20px;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-badge {
        font-size: 0.75rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        justify-content: center;
        text-align: center;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card.large,
    .bento-card.wide,
    .bento-card.tall,
    .bento-card:not(.large):not(.tall):not(.wide) {
        grid-column: span 1;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: var(--space-sm);
    }
    
    .carousel-next {
        right: var(--space-sm);
    }
}

/* ===== Utility Classes ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-employer {
    background: var(--gradient-gold);
    color: var(--navy);
}

.btn-jobseeker {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-chat-small {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}