/* --- Base Styles & Variables --- */
:root {
    --primary-color: #007bff; /* A brighter blue for better contrast on dark bg */
    --secondary-color: #1a1a1a;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --border-color: #333;
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--surface-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 10px 26px;
    background: transparent;
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: background 0.3s, transform 0.3s, color 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: #fff;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #0069d9;
    border-color: #0069d9;
}


/* --- Header & Navigation --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s, background-color 0.3s;
}

#header.scrolled {
    background-color: rgba(30, 30, 30, 0.85);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1.2rem;
}

.logo {
    height: 40px;
    margin-right: 30px;
    filter: invert(1);
}

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

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

.nav-links .btn {
    padding: 8px 20px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--heading-color);
}

.nav-logo-mobile {
    display: none;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    min-height: 500px;
    background: url('hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


/* --- About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.portfolio-item:hover {
    border-color: var(--primary-color);
}
.portfolio-item:hover img {
    transform: scale(1.05);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--surface-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Equipment Section --- */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.equipment-category h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.equipment-category ul {
    padding: 0;
}

.equipment-category li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.equipment-category i {
    margin-right: 8px;
}

/* --- Contact Section --- */
#contact {
    text-align: center;
}
.contact-info {
    margin-bottom: 40px;
}
.contact-info .btn {
    margin: 10px;
}
.contact-info i {
    margin-right: 8px;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0 15px;
    transition: color 0.3s;
}

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

/* --- Footer --- */
footer {
    background: var(--bg-color);
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

/* --- Lightbox --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-btn:hover, .close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-btn {
        display: block;
    }

    .nav-logo-mobile {
        display: block;
        width: 100%;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-logo-mobile .logo-link {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }
}