:root {
    --bg-section: #ffffff;
    --bg-light: #f5f6f7;
    --accent-metal: #191b1c;
    --accent-highlight: #4a90e2;
    --text-primary: #2a2a2a;
    --text-muted: #090909;
    --border-light: #d1d3d4;
    --radius: 8px;
    --transition-speed: 0.3s
}



/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML styling*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Header Styling */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    /*so it stays on top*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
}

/* Logo Styling */
header .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 3px;
    flex-shrink: 1;
}

.logo-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Navigation Container */
.navbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Navigation Styling */

.nav-links a {
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--accent-highlight);
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--accent-highlight);
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 1;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-size: 2rem;
    z-index: 3;
}


/* Background Video */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}


.bg-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Services Styling */
.services {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
    font-size: 2.4rem;
    color: var(--text-primary);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.service {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-section);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-toggle img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
    transition: transform var(--transition-speed);
}

.service-toggle:hover img {
    transform: scale(1.03);
}

.service-toggle span {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-metal);
    transition: color var(--transition-speed);
}

.service-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 28px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* when active, extra padding/show info */
.service.active .service-info {
    max-height: none;
}


/* Contact Styling */

.contact-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: center;
    color: var(--text-primary);
    border-top: 1px solid var(--bg-light);
}

.contact-section h2 {
    font-size: 2.4rem;
    margin-bottom: 34px;
    color: var(--accent-metal);
    position: relative;
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-metal);
    margin: 10px auto 0;
    border-radius: 2px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--bg-section);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0, 0.06);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row input {
    flex: 1 1 45%;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background-color: white;
    color: var(--text-primary);
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-metal);
}

.file-label {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form button {
    padding: 14px;
    background-color: #0e6b99;
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background var(--transition-speed), transform 0.2s;
}

.contact-form button:hover {
    background-color: var(--accent-highlight);
    transform: translateY(-2px);
}

/* Social Media */

.social-section a:hover {
    background-color: var(--accent-highlight);
    transform: translateY(-2px);
    color: white;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.social-overlay {
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.social-section {
    bottom: 20px;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-section a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.3s ease;
}


/* Footer */

.site-footer {
    background: var(--bg-light);
    padding: 60px 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.footer-left,
.footer-right {
    flex: 1 1 45%;
    min-width: 280px;
}

.footer-left h4,
.footer-right h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    columns: var(--text-primary);
    position: relative;
}

.footer-left a:hover,
.footer-right a:hover {
    color: var(--accent-metal);
}

.map-container iframe {
    width: 100%;
    height: 240px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

/* Gallery Styling*/
.gallery {
    max-width: 1200px;
    margin: auto;
}

.job-type {
    padding: 2rem;
    background-color: var(--bg-light);
    margin-bottom: 3%;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.job-type h2 {
    border-left: 5px solid var(--accent-highlight);
    color: var(--accent-highlight);
    text-transform: uppercase;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: 1px;
}

.project {
    /*margin-bottom: 1.5rem;*/
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.project-toggle {
    all: unset;
    color: var(--accent-metal);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 6px 0;
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.project-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent rgba(255, 255, 255, 0.6),
            transparent);
    transform: skew(-20deg);
    transition: left 0.5s ease;
}

.project-toggle:hover {
    color: var(--accent-highlight);
    text-decoration: underline;
    transform: scale(1.05);
}

.project-toggle:hover::before {
    left: 100%;
}

.images-wrapper {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
}

.images {
    display: grid;
    overflow-x: auto;
    scroll-behavior: smooth;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    /* margin-top: 1rem;
    transition: all var(--transition-speed) ease; */
    padding: 10px 0;
}

.images img {
    width: auto;
    border-radius: var(--radius);
    object-fit: cover;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0, 0.1);
    max-height: 200px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.images img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.collapsed {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-highlight);
    border: none;
    font-size: 2.5rem;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    user-select: none;
    z-index: 20;
    transition: var(--transition-speed);
}

/* Lightbox Styling */

.lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    overflow: auto;
    background-color: rgba(42, 42, 42, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 70%;
    max-height: 70%;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.25);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10001;
}

.lightbox-content:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(74, 144, 226, 0.35);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: none;
    color: var(--accent-highlight);
    border: none;
    cursor: pointer;
    z-index: 10002;
    padding: 0.5rem;
    user-select: none;
    transition: var(--transition-speed);
}

.lightbox-arrow:hover {
    background: var(--accent-metal);
}

.lightbox-arrow.left {
    left: 2rem;
}

.lightbox-arrow.right {
    right: 2rem;
}

.lightbox .close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 2.5rem;
    color: var(--accent-highlight);
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10002;
}

.lightbox .close:hover {
    transform: scale(1.2);
}

/************************************************************************************************************************/

/* Mobile Styling */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .nav a {
        padding: 12px 20px;
        line-height: 1.5;
        font-size: 18px;
        border-top: 1px solid white;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        top: 100%;
        width: 100%;
        left: 0;
        text-align: center;
        background-color: var(--bg-light);
        padding: 10px 0;
        position: absolute;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav button {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        font-size: 18px;
    }

    .nav-links.show {
        display: flex;
    }

    .hero-text {
        font-size: 1.2rem;
        padding: 20px;
        width: 90%;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .bg-video {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        z-index: -1;
    }

    .social-overlay {
        flex-direction: column;
        gap: 20px;
        bottom: 40px;
    }

    .social-section a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        flex: 1 1 100%;
    }

    .footer-right iframe {
        height: 250px;
    }
}