/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #0a192f;
    /* Deep Navy Blue */
    --primary-light: #112240;
    --secondary: #ff8c00;
    /* Construction Orange */
    --secondary-hover: #e07b00;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #f8f9fa;
    --bg-light: #f4f5f7;
    --bg-white: #ffffff;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --transition: all 0.3s ease-in-out;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

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

.btn-primary.outlined {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-primary.outlined:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    gap: 12px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary);
    /* Always dark blue */
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header.scrolled .nav-links a {
    color: var(--white);
}

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

.header.scrolled .hamburger {
    color: var(--white);
}

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

.logo img {
    height: 60px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

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

.about-features {
    margin: 30px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-features i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius);
    width: 100%;
}

.shadow {
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 600;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-image: url('../AdobeStock_210511256.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
}

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

.cta-content h2 {
    color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li,
.footer-contact li,
.footer-branches li {
    margin-bottom: 15px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--secondary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-branches li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-branches img {
    border-radius: 2px;
}

.footer-bottom {
    background-color: #071222;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

.delay-3 {
    transition-delay: 0.6s;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {

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

    .experience-badge {
        bottom: -20px;
        left: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 10001;
        position: relative;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 25, 47, 0.98);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 10000;
    }

    .navbar.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.8rem;
        font-weight: 600;
    }

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

    .header.scrolled .hamburger {
        color: var(--white);
    }

    .d-none-sm {
        display: none;
    }

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

    .section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   Page Headers (Inner Pages)
   ========================================================================== */
.page-header {
    padding: 160px 0 80px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../AdobeStock_211309382.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

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

.page-header-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 50px 0;
    }

    .page-header-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
}

.breadcrumb {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.header-dark-bg {
    background-color: var(--primary) !important;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* Make some items span multiple rows/cols for masonry effect */
.gallery-item:nth-child(3n) {
    grid-row: span 2;
}

.gallery-item:nth-child(5n) {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item:nth-child(3n),
    .gallery-item:nth-child(5n) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.2) 50%, rgba(10, 25, 47, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20px);
    color: var(--white);
    font-size: 2.5rem;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 85%;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--secondary);
}

.lightbox-prev {
    left: -20px;
}

.lightbox-next {
    right: -20px;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }

    .lightbox-prev {
        left: 5px;
        font-size: 20px;
        padding: 10px;
    }

    .lightbox-next {
        right: 5px;
        font-size: 20px;
        padding: 10px;
    }
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}