/* --- CSS Reset & Variables --- */
:root {
    --primary-red: #cc1e1e;
    /* Deep Red for buttons and accents */
    --primary-red-hover: #aa1414;
    --dark-bg: #0f0f0f;
    --darker-bg: #050505;
    --text-dark: #222222;
    --text-light: #777777;
    --text-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --success-green: #2e7d32;
    --border-color: #eaeaea;
    --font-primary: 'Inter', sans-serif;

    /* Typography Sizes */
    --text-xs: 10px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 32px;
    --text-5xl: 40px;
    --text-6xl: 48px;

    /* Typography Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; Removed for Lenis compatibility */
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    /* Enhanced max-width for better display on big monitors */
    width: 100%;
    margin: 0 auto;
    /* This guarantees perfect centering on ultra-wide monitors */
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-white);
}

.text-red {
    color: var(--primary-red);
}

.text-green {
    color: var(--success-green);
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: var(--text-md);
}

.btn-primary {
    position: relative;
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(204, 30, 30, 0.3);
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 30, 30, 0.4);
}

/* Button Icon Animation */
.btn-content {
    display: inline-flex;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-left {
    display: inline-flex;
    margin-right: 8px;
    transition: opacity 0.3s ease;
}

.btn-icon-right {
    position: absolute;
    right: 28px;
    top: 50%;
    margin-top: -10px;
    /* half of 20px height */
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.btn-icon-right svg {
    width: 20px;
    height: 20px;
}

.btn-primary:hover .btn-content {
    transform: translateX(-22px);
}

.btn-primary:hover .btn-icon-left {
    opacity: 0;
}

.btn-primary:hover .btn-icon-right {
    opacity: 1;
    transform: translateX(0);
}

.btn-primary i {
    margin-right: 8px;
}

.chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.chip-dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin-bottom: 12px;
}

.chip-light {
    border: 1px solid var(--Border-chip-static, rgba(210, 209, 209, 0.30));
    background: var(--Surface-chip-static, rgba(232, 232, 232, 0.40));
    color: var(--primary-red);
}

.chip i {
    margin-right: 6px;
}

.section-title {
    font-size: var(--text-2xl);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 28.8px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px auto;
    
}

/* --- Header / Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 12px 0;
    transition: transform 0.4s ease-in-out, padding 0.4s ease-in-out, border-color 0.4s ease-in-out;
    border-bottom: 1px solid var(--Border-navbar-main, rgba(232, 232, 232, 0.50));
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    padding: 15px 0;
    border-bottom-color: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    /* Exactly matches main .container */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar.scrolled .nav-container {
    max-width: 1240px;
    /* 1280px minus the 40px side padding of the main container, so the pill edge aligns perfectly with content edge */
    width: calc(100% - 40px);
    padding: 12px 35px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-img {
    height: 50px;
    transition: height 0.4s ease;
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
}

.nav-links a {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-dark);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    font-size: var(--text-2xl);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.hero-container {
    display: flex;
    align-items: stretch;
    gap: 50px;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
    /* Minor adjustment to perfectly align first line text with top of image border */
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-semibold);
    line-height: 52.8px;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: var(--text-base);
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 500px;
    line-height: 19.2px;
    letter-spacing: -0.32px;
}

.trusted-by {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars {
    display: flex;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: 2px solid var(--bg-white);
    margin-left: -12px;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.trusted-text {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 12px;
}

.trusted-text strong {
    color: #211F1F;
    font-weight: 600;
}

/* --- Client Logos Marquee --- */
.client-logos-small-wrapper {
    margin-top: 15px;
    overflow: hidden;
    width: 42%;
    max-width: 350px;
    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);
}

.client-logos-small {
    display: flex;
    width: max-content;
}

.marquee-track {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex-shrink: 0;
    animation: marquee 30s linear infinite;
}

.c-logo-img {
    height: 35px;
    object-fit: contain;
}

/* --- Large Clients Marquee --- */
.clients-marquee-wrapper {
    margin-top: 40px;
    overflow: hidden;
    width: 100%;
    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);
}

.client-logos-large {
    display: flex;
    width: max-content;
}

.client-logos-large .marquee-track {
    animation-duration: 90s; /* Slower speed for 19 logos */
}

.c-logo-img-large {
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.c-logo-img-large:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Hero Carousel --- */
.hero-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
}

.carousel-images {
    width: 100%;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transform: translateX(100%);
    display: block;
}

.slide-img:first-child {
    position: relative;
}

.slide-img.active {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    z-index: 1;
}

.slide-img.exit {
    animation: slideOutLeft 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    z-index: 1;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Hero Floating Chip --- */
.hero-floating-chip-wrapper {
    position: absolute;
    bottom: 40px;
    left: -60px;
    z-index: 2;
    overflow: hidden;
    height: 70px;
    width: 400px;
}

.hero-floating-chip {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(80, 80, 80, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 25px;
    border-radius: 16px;
    font-weight: var(--font-semibold);
    font-size: var(--text-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-floating-chip.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.hero-floating-chip.exit {
    transform: translateY(-100px);
    opacity: 0;
    visibility: hidden;
}

.hero-floating-chip i {
    font-size: var(--text-lg);
}

.hero-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
}

.hero-carousel-dots .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.hero-carousel-dots .dot.active {
    background-color: rgba(255, 255, 255, 1);
}

/* --- About Us --- */
.about {
    position: relative;
    background-color: #0c0202;
    padding: 56px 0;
    color: var(--text-white);
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

.about-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/about us-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-text {
    color: #ddd;
    margin-bottom: 30px;
    line-height: 18.2px;
    font-size: 14px;
}

.about-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 30px;
    margin-top: 20px;
    width: 372px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-list li {
    font-weight: var(--font-semibold);
    font-size: var(--text-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-left i {
    font-size: var(--text-xl);
    width: 25px;
    text-align: center;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.about-image-wrapper img {
    max-width: 100%;
    height: auto;
}

/* --- Clients --- */
.clients {
    padding-top: 56px;
    background-color: var(--bg-white);
}

.clients-grid {
    height: 100px;
    /* Empty space based on design */
}

/* --- Services --- */
.services {
    padding: 56px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    border-radius: 12px;
    text-align: left;
}

.service-img-wrapper {
    width: 100%;
    height: 236px;
    background-color: #f1f1f1;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}

.img-sprinkler {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    margin-bottom: 8px;

}

.service-features li {
    font-size: var(--text-base);
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: var(--font-medium);
}

.service-features li svg {
    margin-top: 6px; /* Push the checkmark down slightly to align with the first line of text */
    flex-shrink: 0; /* Prevent the SVG from squishing on very small screens */
}

/* --- Industries We Serve --- */
.industries {
    position: relative;
    background-color: #111;
    padding: 56px 0;
    max-width: 1600px;
    margin: 0 auto;
}

.industries-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/industries-serve-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}

.industries-content {
    position: relative;
    z-index: 2;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: 8px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 32px;
    border-radius: 40px;
    overflow: hidden;
}

.industry-item {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.ind-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.industry-item:hover .ind-img {
    transform: scale(1.1);
}

.ind-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(80, 80, 80, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    text-align: center;
    white-space: nowrap;
}

/* --- Our Work --- */
.work {
    padding: 56px 0;
    background-color: var(--bg-white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 5px;
    margin-top: 32px;
    border-radius: 40px;
    overflow: hidden;
}

.work-item {
    overflow: hidden;
    position: relative;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-item:hover .work-img {
    transform: scale(1.1);
}

.w-item-1 {
    grid-column: span 2;
}

.w-item-2 {
    grid-column: span 1;
}

.w-item-3 {
    grid-column: span 1;
}

.w-item-4 {
    grid-column: span 2;
}

.w-item-5 {
    grid-column: span 2;
}

.w-item-6 {
    grid-column: span 1;
}

/* --- Certificates --- */
.certificates {
    position: relative;
    background-color: #1a0808;
    padding: 56px 0;
    max-width: 1600px;
    margin: 0 auto;
}

.certificates-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/certificates-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}

.certificates-content {
    position: relative;
    z-index: 2;
}

.cert-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cert-img {
    width: 120px;
    height: auto;
}

/* --- Why Us --- */
.why-us {
    padding: 56px 0;
    background-color: var(--bg-white);
}

.chip-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fdeded;
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: 15px;
}

.chip-light.text-red {
    color: #87171C;
    font-size: 12px;
    font-weight: var(--font-semibold);
    background-color: rgba(232, 232, 232, 0.40);
}



.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.why-card {
    background-color: rgba(244, 243, 243, 1);
    border-radius: 16px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 70%;
    height: auto;
}

.why-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    text-align: center;
}

/* --- Footer --- */
.footer {
    position: relative;
    background-color: #000;
    color: #ddd;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.footer-red-bg {
    width: 30%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    opacity: 0.8;
}

.footer-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.footer-top {
    padding: 60px 0 40px 0;
    background: transparent;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.footer-bottom-mobile-group {
    display: contents; /* Invisible wrapper for flexbox on desktop */
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: var(--text-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-semibold);
}

.footer-col p {
    font-size: var(--text-sm);
    margin-bottom: 4px;
    color: #aaa;
}

.footer-msme {
    min-width: 210px; /* Prevents layout shifting during typing animation */
}

/* Premium Silver Flare Highlight + Typing Effect */
.silver-flare-text {
    font-weight: 600 !important;
    font-size: 16px !important;
    background: linear-gradient(
        110deg,
        #666666 30%,
        #ffffff 50%,
        #666666 70%
    );
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Typewriter properties */
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    
    /* Only play the flare indefinitely, width starts at 0 */
    animation: silverFlare 1.5s linear infinite;
    width: 0;
}

.silver-flare-text.typing-active {
    animation: 
        silverFlare 1.5s linear infinite,
        typing 3s steps(20, end) forwards;
}

@keyframes silverFlare {
    to { background-position: -200% center; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 19.5ch; } /* Fits the 19 characters and stays */
}

.footer-logo {
    height: 117px;
    width: 173px;
}

.flex-end {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 10px;
    width: 45px;
}

.scroll-top-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    border: none;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed !important;
    right: 20px;
    /* JS will perfectly pin this horizontally */
    left: auto !important;
    bottom: auto !important;
    top: 0;
    /* JS updates this on every scroll — do not set a static value here */
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(211, 211, 211, 0.8);
}

.scroll-top-btn:hover {
    background-color: #eee;
}

.scroll-top-btn.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.scroll-top-btn.is-docked {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.footer-bottom {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mail-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
}

.email-link-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gmail-icon {
    height: 30px;
}

.email-link {
    color: #fff;
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.email-arrow-icon {
    height: 30px;
    margin-left: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {

    .services-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-container {
        flex-direction: column;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .trusted-by {
        justify-content: center;
    }

    .client-logos-small {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Navbar Adjustments for Tablet & Mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 640px) {

    /* Container constraints matching Figma */
    .container {
        padding: 0 32px;
    }

    .hero-content {
        width: 100%;
    }

    /* Hero Section Mobile */
    .hero-container {
        /* text-align: left; */
        align-items: flex-start;
        gap:20px;
    }

    .hero-title {
        font-size: var(--text-4xl);
        line-height: 1.2;
        text-align: left;
    }

    .hero-subtitle {
        font-size: var(--text-md);
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-primary {
        width: 100%;
        height:52px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Section Typography & Padding */
    .section-title {
        font-size: 22px;
    }

    section,
    section[class] {
        padding: 32px 0;
        /* High specificity to override .hero, .about, etc. */
    }

    .trusted-by {
        justify-content: start;
    }
    

    /* Grid Stacking for Mobile - 2 COLUMNS EXACTLY LIKE FIGMA SCREENSHOT */
    .industries-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        margin-top: 24px;
    }
    .ind-overlay{
        white-space: wrap;
        line-height: 16px;
    }

    .why-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .service-card h3 {
        font-size: var(--text-base);
    }
    .service-img-wrapper{
        height: 200px;
    }
    .service-features{
        line-height: 16px;
    }

    /* About List - 1 COLUMN */
    .about-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-text{
        font-size: var(--text-base);
    }
    .about-glass-card {
        width: 100%;
    }
    .about-list li{
        font-size: var(--text-base);
        line-height: 16px;
    }
    .section-subtitle{
        line-height: 16.8px;
        margin: 0 auto 24px auto !important;
        font-size: var(--text-base);
    }
    .about-list .icon-arrow-long{
        height:18px;
        width:18px;
    }


    /* Our Work (Portfolio) - 1 LARGE, 4 GRID, 1 LARGE */
    .work-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto; /* Override desktop 250px rows */
        gap: 5px;
        margin-top: 24px;
    }

    .w-item-1 {
        grid-column: span 2;
        height: 200px;
    }

    .w-item-2,
    .w-item-3,
    .w-item-4,
    .w-item-5 {
        grid-column: span 1;
        height: 150px;
    }

    .w-item-6 {
        grid-column: span 2;
        height: 200px;
    }

    /* Certificates - 2 COLUMNS */
    .cert-flex {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: center;
        justify-items: center;
        margin-top: 24px;
        justify-self: center;
        width: 200px;
    }

    .cert-flex img {
        width: 100%;
        max-width: 120px;
    }
    .footer-top{
        padding: 40px 0 24px 0 !important;
    }
    .footer-logo {
        height: auto;
        width: 120px;
    }
    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 32px;
        text-align: left;
    }
    .footer-col p {
    font-size: var(--text-md);
    margin-bottom: 4px;
    }
    .footer-col h4{
        margin-bottom: 12px;
    }
    .footer-bottom-mobile-group {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
    }
    .footer-col.flex-end {
        padding-top: 0; /* Remove top padding on mobile to align properly */
        display: flex !important; /* Ensure it is visible */
    }
    .footer-red-bg {
        margin-bottom: 80px; /* Push red waves up to sit exactly above the email box */
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        gap: 16px;
        padding-top: 32px !important;
        padding-bottom: 120px !important;
        background: radial-gradient(circle at center top, #4a0505 0%, #080000 100%) !important;
        border-top: none !important;
    }
    .mail-card {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        gap: 0px;
    }
    .email-link {
        font-size: var(--text-base); /* Shrink email so it doesn't bleed off screen */
        word-break: break-word;
    }

    /* Hero Carousel Mobile Floating Elements */
    .hero-floating-chip-wrapper {
        left: 50%;
        transform: translateX(-50%);
        bottom: 60px; /* Sits precisely above the dots */
        width: 300px; /* Specific width because children are absolute */
        max-width: 90%;
    }

    .hero-floating-chip {
        width: 100%;
        justify-content: center;
    }

    /* =========================================
       Mobile Bottom Navigation Redesign 
       ========================================= */
    .navbar {
        top: auto !important;
        bottom: 24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 64px) !important; /* 32px padding on each side */
        max-width: none !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Disable hide-on-scroll transform on mobile */
    .navbar.nav-hidden {
        transform: translateX(-50%) !important;
    }

    .nav-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 12px 24px !important;
        background: rgba(255, 255, 255, 0.65) !important; 
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 40px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        width: 100% !important;
        max-width: none !important;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    /* When menu is open, make the pill less rounded */
    .navbar.mobile-menu-active .nav-container {
        border-radius: 64px !important;
    }

    /* The new bottom bar wrapper */
    .nav-bottom-bar {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        width: 100% !important;
        align-items: center !important;
    }

    /* Top Row: The expandable links container */
    .nav-links {
        width: 100% !important;
        position: static !important; /* override absolute */
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        background: transparent !important;
        background-color: transparent !important; /* Force override */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important; /* Kill any borders */
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0 !important; /* Kill radius */
        margin: 0 !important;
        
        /* Animation states - removed opacity to prevent Safari render layers */
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s ease !important;
    }

    .nav-links.mobile-open {
        max-height: 1000px !important; /* Huge max-height to never constrain the flex items */
        padding: 16px 0 32px 0 !important; 
    }

    .nav-links a {
        font-size: 18px;
        color: #575454;
    }

    /* Disable red color for inner links on mobile so they don't duplicate the bottom text */
    .nav-links a.active {
        color: #575454 !important; 
    }

    /* Hide Desktop Logo, Show Mobile Logo */
    .desktop-logo { display: none !important; }
    .mobile-logo { 
        display: block !important; 
        height: 32px; 
        object-fit: contain;
    }
    
    /* Layout inside bottom bar */
    .logo { 
        display: flex;
        align-items: center;
        justify-self: start;
    }

    /* Show Active Text */
    .mobile-active-text {
        display: block !important;
        color: #e63946; /* Matching the red */
        font-weight: 600;
        font-size: 14px;
        transition: opacity 0.3s ease;
        white-space: nowrap;
        text-align: center;
        justify-self: center; /* True center in grid */
    }

    /* Update Icon Toggle */
    .desktop-menu-icon { display: none !important; }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-self: end;
    }
    .mobile-icons { 
        display: flex !important; 
        align-items: center; 
        justify-content: center; 
        cursor: pointer; 
        /* Remove strict width/height to let SVG dictate size */
    }
    .icon-open { 
        display: block !important; 
    }
    .icon-close { 
        display: none !important; 
        margin-bottom: -4px;
    }

    /* When menu is open, toggle the icons */
    .navbar.mobile-menu-active .icon-open { display: none !important; }
    .navbar.mobile-menu-active .icon-close { display: block !important; }
    
}
