/* ==========================================================================
   Base & Themes
   ========================================================================== */
:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent: #FF4500;
    /* Vibrant Vermilion Orange/Red */

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --t-fast: 0.3s cubic-bezier(0.7, 0, 0.3, 1);
    --t-normal: 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    --t-slow: 1s cubic-bezier(0.7, 0, 0.3, 1);
}

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

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

/* Hide scrollbar for custom smooth scroll feel */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.section {
    padding: 8rem 0;
}

.mb-lg {
    margin-bottom: 4rem;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
.section-heading {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--accent);
}

h3,
h4 {
    font-family: var(--font-heading);
}

/* For SplitType lines/words */
.line {
    overflow: hidden;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 69, 0, 0.1);
    border-color: var(--accent);
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

@media (max-width: 768px) {
    .lt-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        white-space: normal;
    }

    .lt-main {
        font-size: clamp(1.4rem, 7vw, 2rem);
        line-height: 1;
    }

    .lt-sub {
        font-size: clamp(0.5rem, 3vw, 0.7rem);
        margin-left: 0;
        letter-spacing: 0.4em;
        opacity: 0.8;
    }
}

/* ==========================================================================
   Loader
   ========================================================================== */
body.loading {
    overflow: hidden;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-text {
    font-family: var(--font-heading);
    position: relative;
    margin-bottom: 1rem;
    text-align: center;
}

.loader-logo {
    width: clamp(50px, 12vw, 80px);
    height: clamp(50px, 12vw, 80px);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    animation: logoReveal 2s cubic-bezier(0.7, 0, 0.3, 1) forwards 0.2s;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Force the SVG to white for visibility */
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lt-wrapper {
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    /* Pin width to prevent distortion during reveal */
}

.lt-bg {
    color: rgba(255, 255, 255, 0.1);
}

.lt-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    overflow: hidden;
    animation: fillText 4s ease-in-out forwards;
}

.lt-reveal .lt-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /* Keep content width fixed while parent reveals */
}

.lt-main {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 1;
    font-weight: 800;
}

.lt-sub {
    font-size: clamp(0.6rem, 2.5vw, 0.9rem);
    margin-top: 0.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 500;
}

.lt-bg .lt-main {
    color: rgba(255, 255, 255, 0.1);
}

.lt-bg .lt-sub {
    color: rgba(255, 69, 0, 0.15);
}

.lt-reveal .lt-main {
    color: #ffffff;
}

.lt-reveal .lt-sub {
    color: var(--accent);
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent);
    animation: fillProgress 2s ease-in-out forwards;
}

@keyframes fillText {
    to {
        width: 100%;
    }
}

@keyframes fillProgress {
    to {
        width: 100%;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    transition: padding var(--t-fast);
}

.navbar.scrolled {
    padding: 1.5rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
}

.logo-link {
    display: block;
    mix-blend-mode: normal;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: transform 0.3s ease;
    z-index: 5;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-icon {
    height: clamp(30px, 6vw, 48px);
    width: auto;
    margin-bottom: 4px;
    transition: height 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.navbar.scrolled .logo-icon {
    height: clamp(24px, 4vw, 36px);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: font-size 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.navbar.scrolled .logo-main {
    font-size: clamp(0.8rem, 2.5vw, 1.3rem);
}

.logo-sub {
    font-size: clamp(0.4rem, 1.2vw, 0.6rem);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.4em;
    margin-top: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Logo specific mobile overrides removed in favor of fluid scaling above */

.menu-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-link::before {
    content: attr(data-hover);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--accent);
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

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

.nav-link:hover::before {
    transform: translateY(-100%);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 20px;
    position: relative;
    z-index: 102;
}

.menu-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.menu-line:nth-child(1) {
    top: 0;
}

.menu-line:nth-child(2) {
    bottom: 0;
}

@media (max-width: 768px) {
    .menu-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

/* Mobile Nav Overlay */
.mob-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.mob-overlay.active {
    clip-path: circle(150% at 100% 0%);
}

.mob-close {
    position: absolute;
    top: 1.5rem;
    right: 5%;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 105;
}

.mob-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mob-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* JS will animate this */
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.95) 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 4%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    /* JS reveal */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    opacity: 0;
    /* JS reveal */
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 1.5rem 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    opacity: 0;
    /* JS reveal */
}

.btn-arr {
    width: 35px;
    height: 35px;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.explore-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.explore-btn:hover .btn-arr {
    transform: translateX(5px) rotate(-45deg);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    /* JS reveal */
}

.scroll-down span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollDrop 2s infinite ease-in-out;
}

@keyframes scrollDrop {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.8rem 0;
    }

    .section {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
        word-break: keep-all;
        /* Prevent awkward breaks */
    }

    .hero-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
        margin-bottom: 1.2rem;
    }

    .hero-content {
        padding-top: 40px;
        /* Give room for navbar */
    }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-section {
    padding: 3rem 0;
    background: var(--accent);
    color: #fff;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-inner {
    display: flex;
    width: fit-content;
    animation: marqueeRoll 25s linear infinite;
}

.mq-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 2rem;
}

@keyframes marqueeRoll {
    to {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.about-desc p {
    margin-bottom: 1.5rem;
}

.parallax-img-container {
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.parallax-img {
    width: 100%;
    height: 120%;
    /* Extra height for parallax */
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s;
}

.parallax-img:hover {
    filter: grayscale(0%) contrast(1);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep 2 cols for desktop feel */
        gap: 1.5rem;
    }

    .parallax-img-container {
        height: 300px;
        /* Smaller for mobile */
    }

    .about-desc {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   Services (Screenshot Layout)
   ========================================================================== */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-new {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    color: #050505;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card-new:hover {
    transform: translateY(-8px);
}

.scn-img-wrap {
    position: relative;
    height: 250px;
    width: 100%;
}

.scn-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scn-icon {
    position: absolute;
    bottom: -25px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scn-info {
    padding: 3.5rem 2rem 2.5rem;
}

.scn-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #050505;
}

.scn-info p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Products (Swiper Layout)
   ========================================================================== */
.products-swiper {
    width: 100%;
    padding-bottom: 3rem;
    overflow: hidden;
    cursor: grab;
}

.products-swiper:active {
    cursor: grabbing;
}

.prod-card-new {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pcn-img-wrap {
    background: #f4f4f4;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    /* fixed height */
    transition: transform 0.3s ease;
}

.prod-card-new:hover .pcn-img-wrap {
    transform: scale(1.02);
}

.pcn-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Extracts white background making images cutouts */
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
}

.prod-card-new h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-transform: uppercase;
    text-align: left;
    transition: color 0.3s;
}

.prod-card-new:hover h4 {
    color: var(--accent);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .pcn-img-wrap {
        height: 250px;
    }

    .section-heading {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Industries Tags
   ========================================================================== */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.ind-tag {
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
}

/* ==========================================================================
   Sectors We Serve (Grid Layout)
   ========================================================================== */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.sector-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.sector-card:hover {
    background: rgba(0, 0, 0, 0.4);
    /* Darken bg on hover to make image pop */
    border-color: rgba(255, 69, 0, 0.5);
    transform: translateY(-10px);
}

.sector-card:hover::before {
    opacity: 0.1;
}

.sector-card:hover h3,
.sector-card:hover p {
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.sector-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.6s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    /* Changed from -1 to 0 */
}

.sector-card:hover .sector-hover-bg {
    opacity: 0.4;
    /* Slightly higher opacity */
    transform: scale(1);
}

.sc-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    /* Content above background */
}

.sector-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    position: relative;
    z-index: 2;
    /* Content above background */
}

.sector-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    /* Content above background */
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding-bottom: 2rem;
}

.footer-top {
    text-align: center;
    margin-bottom: 6rem;
}

.mega-text {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
}

.huge-email {
    font-size: 2.5rem;
    color: var(--text-primary);
    transition: color 0.3s;
    display: block;
    margin-bottom: 1.5rem;
}

.huge-email:hover {
    color: var(--accent);
}

.footer-contact-info {
    margin-top: 2rem;
}

.footer-phone {
    font-size: 1.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-location {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mega-text {
        font-size: 4rem;
    }

    .huge-email {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
}