:root {
    --primary: #0F172A;
    /* Primary (Dark Navy) */
    --primary-light: #1E3A8A;
    /* Secondary (Steel Blue) */
    --accent: #C2410C;
    /* Darkened Orange for better contrast (WCAG AA pass) */
    --bg-main: #F8FAFC;
    /* Background (Light Gray) */
    --bg-alt: #FFFFFF;
    --text-main: #111827;
    /* Text Dark */
    --text-muted: #374151;
    /* Darkened for better contrast */
    --border: #CBD5E1;
    /* Slightly darker for better UI definition */
    --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tech-font {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    letter-spacing: -0.5px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background-image: radial-gradient(var(--border) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-attachment: fixed;
    /* Fixed background for better scrolling performance */
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    /* Ensure header is above everything */
    padding: 1.25rem 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1002;
}

/* Button UI */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

/* Process Section Refinement */
.process-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    /* Industrial Square-roundish feel */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 0 var(--primary-light);
}

.hero {
    min-height: clamp(500px, 85vh, 800px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out text and image on PC */
    padding: 120px 8% 60px;
    background: linear-gradient(135deg, var(--bg-main) 0%, #E2E8F0 100%);
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    /* Allow text to take half space */
    max-width: 650px;
    z-index: 2;
}

.hero-image {
    flex: 1;
    /* Allow image to take half space */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-img-styled {
    max-width: 550px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    object-fit: cover;
    display: block;
}

.hero-img-styled:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Sub (for subpages) */
.hero-sub {
    min-height: clamp(250px, 40vh, 400px) !important;
    padding-top: 160px !important;
    background: var(--bg-alt);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.hero-sub .hero-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    flex: none !important;
    text-align: center !important;
}

.hero-sub h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.hero-sub p {
    font-size: 1.25rem;
    max-width: 750px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.hero-sub .section-tag {
    margin: 0 auto 1.5rem !important;
}

/* Service Cards */
.section {
    padding: 100px 8%;
    content-visibility: auto;
    /* Performance: Only render when near viewport */
    contain-intrinsic-size: 0 500px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-light);
}

.service-card-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover .service-card-img {
    transform: scale(1.03);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.why-us-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 450px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Why Choose Us */
.why-us {
    background-color: var(--bg-alt);
    border-radius: 30px;
    margin: 0 2%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Contact Info Grid */
.contact-info-grid {
    display: flex;
    gap: 4rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    min-width: 250px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -100px;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.stat-item {
    text-align: center;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 8% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #94A3B8;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Work Gallery Styles */
.gallery-section {
    padding: 60px 1%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 4px;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-header {
    text-align: center;
    background: var(--bg-alt);
    padding: 120px 8% 60px;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {

    header,
    .hero,
    .section,
    footer,
    .gallery-header,
    .gallery-section {
        padding-left: 1%;
        padding-right: 1%;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 40px;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        text-align: center;
        padding-top: 140px;
        min-height: auto;
        flex-direction: column;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-image {
        margin-top: 3.5rem;
        padding-left: 0;
        justify-content: center;
        width: 100%;
    }

    .hero-img-styled {
        max-width: 100%;
        border-radius: 16px;
    }

    .hero-btns {
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .why-us {
        padding: 60px 5%;
        margin: 0;
        border-radius: 0;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .why-us-img {
        max-height: 300px;
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
        padding: 2rem;
        gap: 1.5rem;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .hero-sub h1 {
        font-size: 2.2rem;
    }

    .contact-info-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1.5rem;
    }

    .hero-sub h1 {
        font-size: 1.8rem;
    }

    .hero-sub {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .contact-info-item {
        min-width: 100%;
    }
}

/* Client Grid Style (Static) */
.clients-section {
    padding: 80px 8%;
    background: var(--bg-main);
    text-align: center;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.clients-section .section-tag {
    color: var(--accent);
    margin-bottom: 0;
}

.slider-nav {
    display: none;
    gap: 0.75rem;
}

.nav-btn {
    background: white;
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

.clients-section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    line-height: 1.3;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.client-card {
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 12px;
    height: 90px;
    border: 1px solid var(--border);
}

.client-card i {
    font-size: 1.25rem !important;
    /* Forces small symbol size */
    margin-bottom: 2px;
}

.client-card img {
    max-width: 110px;
    max-height: 30px;
    object-fit: contain;
}

.client-card span {
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    margin-top: 5px;
}

/* Hover effect removed as per request */


@media (max-width: 768px) {
    .slider-nav {
        display: flex;
    }

    .clients-wrapper {
        overflow-x: auto;
        padding-bottom: 1.5rem;
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
        scroll-behavior: smooth;
        margin: 0 -5%;
        padding: 0 5%;
    }

    .clients-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .clients-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 1.25rem;
        width: max-content;
    }

    .client-card {
        width: 170px;
        flex-shrink: 0;
        height: 85px;
    }

    .clients-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .client-card {
        width: 160px;
    }
}

/* Mobile Map Overlay Fix */
.mobile-map-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.02);
    z-index: 20;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
    text-decoration: none;
    cursor: pointer;
}

.mobile-map-overlay span {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--accent);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .mobile-map-overlay {
        display: flex;
    }
}