/* CSS Variables & Reset */
:root {
    /* Obsidian / Midnight Theme */
    --bg-color: #02040a;
    /* Obsidian */
    --bg-secondary: #0a0f1c;
    /* Midnight Blue */

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */

    /* Accents */
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-glow: #60a5fa;
    /* Blue 400 */
    --accent-dark: #1d4ed8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-obsidian: radial-gradient(circle at center, #0f172a 0%, #02040a 100%);

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(59, 130, 246, 0.15);
    /* Blue tint border */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: 20px;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --radius-lg: 32px;
    --radius-pill: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.overline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--accent-glow);
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- FOOTER STYLES (Moved to Top for Priority) --- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Increased visibility */
    padding: 80px 0 40px;
    background: #02040a;
    width: 100%;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 32px !important;
    /* Reduced from 40px for compactness */
    margin-bottom: 60px;
    align-items: start;
    width: 100%;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

.link-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
}

.link-group a {
    display: block !important;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.8;
    transition: all 0.2s ease;
}

.link-group a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.link-group h4 {
    margin-bottom: 20px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
}

.social-links {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    /* Increased spacing */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    /* Increased size */
    height: 50px;
    /* Increased size */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ------------------------------------------------- */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Marquee Section */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 20px;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    /* Spacing between states */
    width: max-content;
    animation: scroll-left 80s linear infinite;
    /* Slower 80s */
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    /* Increased visibility from 0.05 */
    /* Added subtle fill for readability */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    /* Increased stroke contrast */
    /* Increased contrast */
    /* Outline effect */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.marquee-content span:hover {
    color: var(--accent-primary);
    -webkit-text-stroke: 1px var(--accent-primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
        /* Move by 1/3 since we have 3 sets */
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--accent-glow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    transition: gap 0.3s;
}

.btn-link:hover {
    color: var(--accent-primary);
    gap: 12px;
}

.btn-text {
    padding: 0;
    color: var(--accent-glow);
    font-weight: 600;
    background: none;
    box-shadow: none;
    font-family: var(--font-sans);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Apply requested blur filter */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    background: rgba(2, 4, 10, 0.8);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link {
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1001;
}

/* Nav Mobile Overlay */
.nav.mobile-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 4, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nav.mobile-active.open {
    opacity: 1;
    pointer-events: auto;
}

.nav.mobile-active .nav-list {
    flex-direction: column;
    gap: 32px;
    font-size: 1.5rem;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Deep obsidian-to-midnight blue radial gradient */
    background: radial-gradient(circle at center, #0f172a 0%, #02040a 80%);
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, #02040a 90%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    padding-bottom: 60px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 7vw, 7rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -3px;
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 20px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: center;
}

.scroll-indicator {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

/* Adjust text shadow for smaller logo usage */
.logo .gradient-text {
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Common Section */
.section {
    padding: 160px 0;
    /* Updated to 160px as requested */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    color: white;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Recruitment Engine (Steps) */
/* Recruitment Engine (Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    counter-reset: step-counter;
}

.step-card {
    background: rgba(15, 23, 42, 0.4);
    height: 100%;
    /* Ensure glass-card base styles are preserved/overridden as needed */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring */
    position: relative;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-12px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    line-height: 0.8;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    transform-origin: top left;
}

.step-card:hover .step-number {
    color: var(--accent-primary);
    transform: scale(1.1) translateX(10px);
    opacity: 0.2;
    /* Subtle fill */
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
    transition: color 0.3s;
}

.step-card:hover h3 {
    color: var(--accent-glow);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s;
}

.step-card:hover p {
    color: var(--text-primary);
}

/* Precision Placement */
.precision-placement {
    background: linear-gradient(to bottom, #02040a, #0a0f1c);
}

.precision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.precision-image-wrapper {
    position: relative;
    border-radius: 32px;
    /* 32px rounded corners */
    overflow: hidden;
}

.precision-image {
    width: 100%;
    height: auto;
    border-radius: 32px;
    /* Duotone Filter logic */
    /* Often done with SVG filters or mix-blend-mode overlays on container, 
       here using CSS filter approximation or assumptions. 
       Standard CSS filter: grayscale + tinted overlay. */
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: transform 0.5s ease;
}

.precision-glow {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 50px rgba(59, 130, 246, 0.3);
    /* Inner glow */
    pointer-events: none;
    mix-blend-mode: overlay;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
}

.precision-image-wrapper:hover .precision-image {
    transform: scale(1.03);
}

/* Outer glow on wrapper */
.precision-image-wrapper {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.15);
    /* Subtle outer glow */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.precision-metrics {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.p-metric {
    display: flex;
    flex-direction: column;
}

.p-metric strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.p-metric span {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Integrated Solutions (Cards) */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.solution-card {
    border: 1px solid rgba(0, 82, 255, 0.2);
    /* Low opacity blue default */
    padding: 0;
    /* Remove default padding to handle positions */
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #060b14;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Ghost Background */
/* --- Contact Form Styles --- */
.form-toggle-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.form-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-toggle-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.form-toggle-btn:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-toggle-container {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
    }

    .form-toggle-btn {
        justify-content: center;
        width: 100%;
    }
}

.form-control {
    width: 100%;
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(10, 15, 28, 0.8);
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.form-control-file {
    padding: 10px;
    background: rgba(10, 15, 28, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 100%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.form-control-file:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.required {
    color: var(--accent-primary);
}

.form-footer {
    margin-top: 32px;
    text-align: center;
}

/* Compliance Text */
.compliance-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    border-color: rgba(59, 130, 246, 0.8);
    /* Stronger glow border */
    box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.3);
    transform: translateY(-10px);
}

.solution-card:hover .ghost-bg {
    opacity: 0.3;
    filter: brightness(1.5);
    transform: scale(1.1);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 32px;
    transition: all 0.4s ease;
}

.solution-card:hover .icon-box {
    background: var(--accent-primary);
    color: white;
    transform: rotateY(180deg);
}

.solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: white;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.solution-card:hover h3 {
    color: var(--accent-glow);
}

.solution-card p {
    color: var(--text-secondary);
    margin-bottom: auto;
    /* Push link to bottom */
    transition: color 0.3s;
}

.solution-card:hover p {
    color: var(--text-primary);
}

/* Industry Verticals */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.glass-tag {
    /* Glassmorphism tag */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: default;
}

.glass-tag i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.glass-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* CTA Box update */
.cta-box {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Footer */
/* Footer - Enforced */


/* Mobile Responsive Override */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .link-group {
        align-items: center !important;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* --- Mobile Responsive & Optimization --- */

/* Tablet & Mobile (Max Width 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .nav-list {
        display: none;
        /* Hide default nav */
    }

    .mobile-menu-btn {
        display: block;
        /* Show hamburger */
    }

    .header-container {
        justify-content: space-between;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .stats-grid,
    .solutions-grid,
    .steps-grid,
    .precision-grid {
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablet (Max Width 768px) */
@media (max-width: 768px) {

    /* Stack Grids */
    .steps-grid,
    .solutions-grid,
    .stats-grid,
    .precision-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .precision-grid {
        gap: 48px;
    }

    /* Adjust Spacing */
    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 100px;
        height: auto;
    }

    .glass-card {
        padding: 32px;
    }

    .solution-card .card-content {
        padding: 32px;
    }

    /* Typography */
    .hero-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

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

    .step-number {
        font-size: 3.5rem;
    }

    /* Precision Section Reorder */
    .precision-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .precision-image-wrapper {
        border-radius: 24px;
    }

    /* Footer Alignment */
    .footer-content {
        text-align: center;
    }

    .footer-address,
    .social-links,
    .footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .link-group {
        align-items: center;
    }

    /* Contact Form Toggles */
    .form-toggle-container {
        flex-direction: column;
        width: 100%;
        border-radius: 24px;
    }

    .form-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Mobile (Max Width 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .glass-card {
        padding: 24px;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Reduce complex effects for performance */
    .glass-card,
    .header,
    .glass-tag {
        backdrop-filter: none;
        /* Remove heavy blur */
        background: rgba(15, 23, 42, 0.95);
        /* Solid fallback */
    }

    .ghost-bg {
        display: none;
        /* Remove background images in cards */
    }

    .noise-overlay {
        opacity: 0.02;
        /* Reduce noise visibility or remove */
    }

    /* Improve scrolling */
    * {
        scroll-behavior: auto !important;
        /* Native smooth scroll is better on mobile */
    }

    .step-card:hover,
    .solution-card:hover {
        transform: none;
        /* Disable hover lifts on touch */
    }
}