/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-charcoal: #121418;
    --clr-charcoal-light: #1A1D24;
    --clr-charcoal-lighter: #232730;
    --clr-gold: #C5A880;
    --clr-gold-light: #D6BD9B;
    --clr-green: #3B5249;
    --clr-white: #FFFFFF;
    --clr-gray: #A0AAB2;
    --clr-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --navbar-height: 80px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Globally prevent horizontal mobile scrollbars from animations/glows */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-charcoal);
    color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Reserve space below the fixed navbar so content is never hidden behind it */
    padding-top: var(--navbar-height);
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

p {
    color: var(--clr-gray);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--clr-white);
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 2px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-charcoal);
}

.btn-primary:hover {
    background-color: var(--clr-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

.btn-outline:hover {
    background-color: var(--clr-gold);
    color: var(--clr-charcoal);
    transform: translateY(-2px);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Base hidden state — elements start invisible and offset */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Visible state — added by IntersectionObserver when element enters viewport */
.animate-fade-up.in-view,
.animate-slide-left.in-view,
.animate-slide-right.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    background-color: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: #0A0B0E !important;
    /* Force solid near-black background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Subtle shadow separation */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    /* Ensure minimum premium spacing */
}

.logo {
    display: flex;
    align-items: center;
    max-width: 300px;
}

.nav-container .logo img {
    height: 75px;
    /* Significantly increased for a very prominent consulting firm look */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* Basic filter to invert the black logo to white if needed */
    filter: brightness(0) invert(1);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    transform-origin: left center;
}

.nav-container .logo img:hover {
    transform: scale(1.03);
    /* Slightly reduced scale since base size is much larger */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--clr-gold);
}

.mobile-only-btn {
    display: none;
    /* Hide mobile-only button on desktop */
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--clr-white);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    /* Fill the remaining viewport below the fixed navbar */
    height: calc(100vh - var(--navbar-height));
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    /* slightly scaled for parallax base */
    transition: transform 0.5s ease-out;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 20, 24, 0.95) 0%, rgba(18, 20, 24, 0.6) 100%);
    z-index: -1;
}

.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(197, 168, 128, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding-top: var(--spacing-xl);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Trust Metrics Section
   ========================================================================== */
.trust-metrics {
    padding: calc(var(--spacing-xl) * 1.5) 0;
    /* Increased vertical padding */
    background-color: var(--clr-charcoal-light);
    border-bottom: 1px solid var(--clr-border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
    margin-top: calc(var(--spacing-xl) * 0.8);
    /* Spacing below the section header */
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.metric-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-white);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Soft gold glow pulse behind numbers */
.metric-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(197, 168, 128, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    animation: metricPulse 3s infinite ease-in-out;
}

@keyframes metricPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.4s ease;
    /* Static gold until hovered */
    background: var(--clr-gold);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Animated gold underline */
.metric-divider {
    width: 0;
    height: 2px;
    background: var(--clr-gold);
    margin: 0.5rem auto 1.5rem;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.metric-card:hover .metric-divider {
    width: 50px;
}

.metric-label {
    font-size: 1.1rem;
    color: var(--clr-gray);
    margin: 0;
    font-weight: 500;
}

/* Premium Hover Glow Effect */
.metric-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 168, 128, 0.5);
    box-shadow: 0 15px 35px rgba(197, 168, 128, 0.15),
        inset 0 0 20px rgba(197, 168, 128, 0.05);
}

.metric-card:hover .metric-number {
    /* Glowing gradient shimmer on hover */
    background: linear-gradient(90deg, var(--clr-gold) 0%, #FFF 50%, var(--clr-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 2s linear infinite;
    text-shadow: 0 0 20px rgba(197, 168, 128, 0.5);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: var(--spacing-xl) 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-list {
    margin-top: var(--spacing-md);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.check-icon {
    color: var(--clr-green);
    background: rgba(59, 82, 73, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--clr-charcoal-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    border: 1px solid var(--clr-border);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient purely for text readability at the bottom */
    background: linear-gradient(to top, rgba(18, 20, 24, 0.85) 0%, rgba(18, 20, 24, 0) 60%);
    transition: var(--transition-smooth);
}

.card-content {
    position: relative;
    z-index: 10;
    padding: var(--spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
}

.icon-wrapper {
    color: var(--clr-gold);
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

/* Hover effects */
.service-card:hover .card-bg {
    transform: scale(1.1);
}

.service-card:hover::after {
    /* Slightly darker gradient on hover, but still mostly transparent at the top */
    background: linear-gradient(to top, rgba(18, 20, 24, 0.95) 0%, rgba(18, 20, 24, 0.2) 60%);
}

.service-card:hover .icon-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover p {
    opacity: 1;
    max-height: 100px;
    margin-top: 10px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-choose {
    padding: var(--spacing-xl) 0 0;
    /* Reduced bottom padding */
}

/* Heading animation container */
.why-choose-header {
    margin-bottom: 2rem;
}

/* The highlighted text "Us?" */
.highlight-text {
    position: relative;
    display: inline-block;
    font-size: 1.15em;
    /* Slightly larger */
    font-weight: 700;
    color: var(--clr-white);
    margin-left: 0.2rem;
}

/* Hand-drawn marker SVG positioning */
.marker-underline {
    position: absolute;
    bottom: -10px;
    left: -5%;
    width: 110%;
    height: 20px;
    z-index: -1;
    overflow: visible;
}

/* Draw animation path */
.marker-path {
    fill: none;
    stroke: #ff3b3b;
    /* Bold red marker */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
    filter: drop-shadow(0px 2px 4px rgba(255, 59, 59, 0.3));
    /* Subtle glow */
}

/* Trigger animation when in-view via JS observer */
.animate-draw.in-view .marker-path {
    stroke-dashoffset: 0;
    animation: markerBounce 0.4s ease 1.1s;
    /* subtle bounce at end */
}

@keyframes markerBounce {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.2);
    }

    100% {
        transform: scaleY(1);
    }
}

.dynamic-features-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 1rem auto 0;
    /* Reduced margin to pull closer to heading */
    height: 850px;
}

.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.line-path {
    stroke: var(--clr-gold);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-draw.in-view .line-path {
    stroke-dashoffset: 0;
}

.glow-dot {
    fill: var(--clr-gold);
    filter: drop-shadow(0 0 6px var(--clr-gold));
    opacity: 0;
    transition: opacity 0.5s ease 1s;
}

.animate-draw.in-view .glow-dot {
    opacity: 1;
}

.center-person {
    position: absolute;
    left: 50%;
    top: 400px;
    transform: translate(-50%, -50%);
    width: 380px;
    z-index: 5;
    animation: floatImage 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}

@keyframes floatImage {

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

    50% {
        transform: translate(-50%, -53%);
    }
}

.feature-card-dyn {
    position: absolute;
    width: 320px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card-dyn .f-num {
    font-size: 2rem;
    font-weight: 300;
    color: var(--clr-gold);
    margin-bottom: 0.5rem;
    font-family: monospace;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.feature-card-dyn h4 {
    font-size: 1.2rem;
    color: var(--clr-white);
    margin-bottom: 0.5rem;
}

.feature-card-dyn p {
    font-size: 0.95rem;
    color: var(--clr-gray);
    margin-bottom: 0;
}

/* Hover glow effect */
.feature-card-dyn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(197, 168, 128, 0.5);
    box-shadow: 0 15px 30px rgba(197, 168, 128, 0.15),
        inset 0 0 15px rgba(197, 168, 128, 0.05);
}

.feature-card-dyn:hover .f-num {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

/* Absolute Positions based on SVG paths */
.f1 {
    top: 90px;
    left: 0;
}

.f2 {
    top: 390px;
    left: 0;
}

.f3 {
    top: 90px;
    right: 0;
}

.f4 {
    top: 390px;
    right: 0;
}

.f5 {
    top: 600px;
    left: 50%;
    transform: translateX(-50%);
}

.f5:hover {
    transform: translateX(-50%) translateY(-8px) scale(1.02);
}

/* ==========================================================================
   Recruitment Process Timeline
   ========================================================================== */
.process {
    padding: var(--spacing-xl) 0;
    background-color: var(--clr-charcoal-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: rgba(197, 168, 128, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--clr-charcoal);
    border: 2px solid var(--clr-gold);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background: var(--clr-gold);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.8);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--clr-gold-light);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries {
    padding: var(--spacing-xl) 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
}

.industry-card {
    position: relative;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lightened original 0.6 to 0.4 for better visibility */
    background: rgba(18, 20, 24, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.industry-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: scale(0.95);
    transition: var(--transition-smooth);
    /* Add subtle text shadow to ensure it's readable over lightened images */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

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

.industry-card:hover .industry-overlay {
    /* Almost completely remove overlay on hover */
    background: rgba(18, 20, 24, 0.1);
}

.industry-card:hover h3 {
    transform: scale(1);
    color: var(--clr-gold);
}

/* ==========================================================================
   Call to Action (CTA)
   ========================================================================== */
.cta {
    position: relative;
    padding: var(--spacing-xl) 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.cta-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lightened gradient so the CTA handshake image is more visible */
    background: linear-gradient(135deg, rgba(18, 20, 24, 0.85) 0%, rgba(59, 82, 73, 0.5) 100%);
    z-index: -1;
}

.cta-container {
    max-width: 800px;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    color: var(--clr-white);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    position: relative;
    background: linear-gradient(135deg, #F5F6F8 0%, #FFFFFF 100%);
    padding: var(--spacing-lg) 0 0 0;
    border-top: 1px solid #E2E8F0;
    overflow: hidden;
}

/* Subtle Animated Background Glow */
.footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.08), transparent 70%);
    border-radius: 50%;
    animation: floatFooterGlow 15s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatFooterGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.footer-container {
    position: relative;
    z-index: 1;
    /* Above the glow */
    display: grid;
    align-items: start;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    /* Vertically center the logo */
    height: 100%;
}

.footer-logo img {
    height: 140px;
    /* Further increased to act as main brand element */
    width: auto;
    display: block;
    margin-bottom: 0;
    /* Removed trailing margin since there is no text below */
    opacity: 1 !important;
    filter: none !important;
    transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-logo:hover {
    filter: drop-shadow(0 0 15px rgba(197, 168, 128, 0.3)) !important;
    transform: scale(1.02);
}

.footer-col:first-child p {
    margin-top: 0;
    /* Let margin-bottom of logo handle spacing to avoid double gaps */
    max-width: 280px;
    color: #4A5568;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--clr-gold);
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    display: inline-block;
    color: #2D3748;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--clr-gold);
    transform: translateX(3px);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2D3748;
    margin-bottom: 1rem;
}

.contact-list li svg {
    color: var(--clr-gold);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li:hover svg {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.contact-list li span {
    color: #4A5568;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #E2E8F0;
    color: #4A5568;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Interactivity
   ========================================================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.in-view,
.animate-slide-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 992px) {
    .logo img {
        height: 40px;
        /* Responsive tablet nav logo size */
    }

    .footer-logo {
        height: 130px;
        /* Responsive tablet footer logo size */
    }

    .footer-logo {
        margin-bottom: 15px;
    }

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

    .hero-content h1 {
        font-size: 3rem;
    }

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

    .dynamic-features-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .connection-svg {
        display: none;
        /* remove complex connecting lines on mobile */
    }

    .center-person {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 320px;
        order: -1;
        /* move person image to top */
        animation: floatImageMobile 4s ease-in-out infinite;
    }

    @keyframes floatImageMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    .feature-card-dyn {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
    }

    .f5 {
        transform: none;
    }

    .f5:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid for stats on tablet/mobile */
    }
}

@media screen and (max-width: 768px) {
    .logo img {
        height: 30px;
        /* Responsive mobile nav logo size */
    }

    .footer-logo {
        height: 70px;
        /* Responsive mobile footer logo size */
    }

    .nav-btn.desktop-only-btn,
    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        /* Above menu */
    }

    /* Mobile Menu - Slide In from Right */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen by default */
        width: 100%;
        height: 100vh;
        background: rgba(18, 20, 24, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1000;
        padding: 2rem;
    }

    /* Mobile Menu Active State */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.5rem;
        /* Larger tap targets */
        padding: 1rem;
        display: block;
    }

    .mobile-only-btn {
        margin-top: 1rem;
    }

    .mobile-only-btn .btn {
        width: 100%;
        max-width: 300px;
        display: inline-block;
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem 0;
        /* Provide breathing room on mobile instead of forcing vertical viewport */
    }

    .hero-container {
        padding: 0 20px;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 Column Stack */
        gap: 2rem;
    }

    .service-card {
        height: 300px;
        /* Specific height for mobile */
    }

    /* Touch/Tap support for hover logic */
    @media (hover: none) {
        .service-card p {
            opacity: 1;
            /* Always show text explicitly on touch devices */
            max-height: 100px;
            margin-top: 10px;
        }
    }

    /* Industries Vertical Scroll */
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        height: 200px;
    }

    /* CTA Section CTA button stack */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer Mobile Overrides */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        /* Center everything on mobile */
    }

    .footer-col:first-child {
        align-items: center;
        /* Center the logo */
        height: auto;
        /* Remove 100% height from desktop */
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .footer-logo img {
        height: 80px;
        /* Slightly larger on mobile for anchor branding */
        margin-bottom: 0;
    }

    .contact-list li {
        justify-content: center;
        /* Center flex items */
    }
}