/* CSS Variables & Theme Setup */
:root {
    --primary-hue: 210;
    /* Blue/Industrial */
    /* Light Theme (Default) */
    --bg-body: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-surface: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --text-light: #ffffff;
    --primary: hsl(var(--primary-hue), 90%, 50%);
    --primary-dark: hsl(var(--primary-hue), 90%, 40%);
    --accent: #2d3436;
    --border: #e1e1e1;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

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

    --nav-height: 80px;
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-alt: #1a1a1a;
    --bg-surface: #252525;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --accent: #ffffff;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    /* Assuming used on dark bg usually */
    border: 2px solid white;
}

[data-theme="light"] .hero .btn-outline {
    color: white;
    border-color: white;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-body);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Added slight shadow for visibility */
    transition: background-color 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }
}

.dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    background-color: #111;
    /* Fallback */
    overflow: hidden;
}

.hero-bg-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

#hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: blur(4px);
    transform: scale(1.1);
    /* Prevent blurred edges from showing */
}

.hero-slide.active {
    opacity: 1;
}

/* Note: In real logic, JS could swap the background image if needed, or CSS can handle it.
   For now hardcoding one hero image in CSS or using style tag injection in JS.
   I will leave the CSS pointing to one valid image, and maybe JS can override. */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 3rem;
    width: 90%;
    max-width: 1200px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.accent-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 50%;
    height: 50%;
    background-color: var(--primary);
    z-index: 1;
    border-radius: 8px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.about-features i {
    color: var(--primary);
}

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

.service-card {
    background-color: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

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

.service-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background-color: var(--bg-alt);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Contact Section */
.contact {
    color: white;
    background-color: #1a1a1a;
    /* Dark Default */
    position: relative;
    overflow: hidden;
}

.bg-dark-section {
    background-color: #0f0f0f;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 4px;
}

.contact-item h5 {
    color: white;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #ccc;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    border-radius: 50%;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .contact-map-visual iframe {
    filter: invert(90%) hue-rotate(180deg);
}

.contact-map-visual {
    background-color: #1f1f1f;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.map-card {
    text-align: center;
    color: #666;
}

.map-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 3rem 0;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
}

.footer-brand p {
    max-width: 300px;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    font-size: 0.85rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

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

    .hero-stats {
        display: none;
        /* Hide stats on mobile for space */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map-visual {
        display: none;
    }
}

/* Animations Utility */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Marquee */
.marquee-strip {
    background-color: var(--primary);
    overflow: hidden;
    padding: 1rem 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.marquee-content span {
    margin: 0 1rem;
}

.marquee-content i {
    font-size: 0.5rem;
    vertical-align: middle;
    margin: 0 0.5rem;
}

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

    100% {
        transform: translateX(-50%);
    }
}