@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;900&display=swap');

@font-face {
  font-family: HeroFont;
  src: url(assets/fonts/Nexen.woff);
}

:root {
    --color-rust: #8B4513;
    --color-industrial-grey: #2B2D2F;
    --color-slate: #0A0A0A;
    --color-safety-yellow: #FFD700;
    --color-text-main: #FFFFFF;
    --color-accent: #E31C1C;
    --color-accent-glow: rgba(227, 28, 28, 0.6);
    --color-swiper-button: #FCF2F2;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--color-slate);
    color: var(--color-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Texture Overlays */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/texture.png');
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Three.js Background Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Pre-loader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-container {
    width: 400px;
}

/* Typography Overrides */
h1 {
    font-size: 6rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

h2 {
    font-size: 2rem;
    color: var(--color-accent);
}

/* Parallax System */
.parallax-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    flex-direction: column;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 7rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: white;
    font-family: var(--font-heading);
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.7;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.layer-back {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('assets/hero_v2.png');
    z-index: -1;
    filter: brightness(0.8) contrast(1.1);
}

.parallax-content::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(227, 28, 28, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(50px);
    pointer-events: none;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

/* Glassmorphism Cards */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.card {
    padding: 3rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/carbon.png');
    opacity: 0.1;
    z-index: -1;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--color-accent);
}

.card:hover::after {
    opacity: 0.3;
}

.card i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--color-accent);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: var(--transition);
}

#nav-logo:hover {
    filter: drop-shadow(0 0 10px var(--color-accent));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--color-accent);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-accent);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-accent);
}

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

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 80%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 2px solid var(--color-accent);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* Services Header with Lines */
.services-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 1.5rem;
    white-space: nowrap;
    letter-spacing: 5px;
    color: white;
}

.services-header .line {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex-grow: 1;
}

/* New Services Grid */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card-new {
    display: flex;
    height: 220px;
    background: #f0f0f0;
    /* Light background like reference */
    color: #1a1a1a;
    border-radius: 0;
    border: none;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.service-card-new.glass {
    background: #f0f0f0;
    backdrop-filter: none;
    box-shadow: none;
}

.service-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(90deg, #f0f0f0 70%, transparent);
}

.service-number {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-family: var(--font-body);
}

.service-info h3 {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.2;
    max-width: 250px;
}

.service-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    transition: var(--transition); /* MY CHANGE */
}

.service-card-new:hover {
    transform: scale(1.02);
}

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

/* Portfolio Section */
.portfolio-grid {
    display: none;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 400px;
}

.swiper-pagination {
    display: none;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-swiper-button);
    filter: drop-shadow(0px 2px 1px black);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Section Title Fix */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1.2rem 3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 900;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: skewX(-5deg) translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 28, 28, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .parallax-section {
        height: auto;
        padding: 120px 0;
    }
}

/* Contact Grid Fix */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 3rem;
    align-items: stretch;
}

.contact-form-container,
.contact-info-container {
    padding: 3rem;
    height: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    border-radius: 5px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(227, 28, 28, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

#nck-design-map {
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

/* Leaflet Popup overrides for Dark Theme */
.leaflet-popup-content-wrapper { border-radius: 4px; padding: 0px !important; }
.leaflet-popup-content { margin: 5px; }

.leaflet-control-eye {
    background: #fff !important; width: 36px !important; height: 36px !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important; border-radius: 4px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4) !important;
    cursor: pointer; color: #333; border: 2px solid rgba(0,0,0,0.2);
}

#footer-logo {
    height: 50px;
    margin-bottom: 2rem;
}

.industrial-footer {
    background: #000;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-simple-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-final-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.footer-info-text p {
    font-size: 1.1rem;
    color: white;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-info-text i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.footer-social-simple {
    display: flex;
    gap: 30px;
}

.footer-social-simple a {
    color: white;
    font-size: 2.2rem;
    transition: var(--transition);
    opacity: 0.7;
}

.footer-social-simple a:hover {
    color: var(--color-accent);
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    opacity: 0.4;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .footer-final-logo {
        height: 80px;
    }

    .footer-social-simple {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-red-box {
        padding: 2rem 1.5rem;
    }

    .footer-contact-items-v2 .contact-item {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 2rem;
    }
}

/* Styles for the about page */
#about-hero {
    position: relative;
    padding-top: 150px; /* Space for nav */
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    z-index: 2;
    overflow: hidden; 
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* LEFT: Text Content */
.about-text {
    color: #f0f0f0;
    padding-top: 40px;
}

.about-text h1 {
    font-family: HeroFont, sans-serif;
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: #E31C1C;
    letter-spacing: 2px;
    line-height: 1;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #cccccc;
    font-weight: 300;
    text-align: justify;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-images-container {
        height: auto;
        margin-top: 50px;
        flex-direction: row;
    }
}
