:root {
    --primary-color: #003366;
    /* Deep Blue */
    --secondary-color: #f39c12;
    /* Industrial Orange */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #222;
    --white: #fff;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
    position: relative;
}

.nav-list a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:not(.btn-contact):hover::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
}

.btn-contact:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 30, 60, 0.8)), url('../assets/hero-bg.jpg') center/cover;
    /* Fallback if image missing */
    background-color: #001e3c;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    /* Reset margin since header is fixed/overlay */
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--dark-gray);
    color: var(--white);
}

.text-white h2 {
    color: var(--white);
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.6);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img::after {
    opacity: 1;
}

.portfolio-img::before {
    content: '\f00e';
    /* fa-search-plus */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: var(--white);
    font-size: 2.5rem;
    opacity: 0;
    z-index: 2;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-info {
    padding: 25px;
    border-top: 1px solid #eee;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.portfolio-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-item p {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: #666;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 75%;
    /* Reduced to make room for thumbnails */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.lightbox-media-container img,
.lightbox-media-container video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: var(--transition);
    border-radius: 50%;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.next-slide {
    right: -80px;
}

.prev-slide {
    left: -80px;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.lightbox-caption {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 500;
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 90%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0.6;
}

.lightbox-thumbnail img,
.lightbox-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumbnail:hover {
    opacity: 1;
}

.lightbox-thumbnail.active {
    border-color: var(--secondary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .prev-slide {
        left: 10px;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .next-slide {
        right: 10px;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .section {
        padding: 60px 0;
    }

    .lightbox-thumbnails {
        max-width: 100%;
        border-radius: 0;
    }
}