:root {
    --primary: #FFB703; /* Vibrant Construction Yellow */
    --hover: #FB8500;
    --dark: #111111;
    --darker: #000000;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --text: #333333;
    --gray: #777777;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Utilities */
.section { padding: 100px 5%; flex: 1; }
.text-center { text-align: center; margin-bottom: 50px; }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }

.section-title {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    color: var(--dark);
    margin-bottom: 20px;
}

.bg-dark .section-title {
    color: var(--white);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--darker);
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
}

.btn-primary:hover {
    background-color: var(--hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(251, 133, 0, 0.5);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--darker);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: var(--transition);
}

.fade-in-nav {
    animation: fadeInNav 1s ease-out forwards;
}

@keyframes fadeInNav {
    0% { top: -100px; opacity: 0; }
    100% { top: 0; opacity: 1; }
}

nav.scrolled, nav.solid-bg {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 15px 5%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2100;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

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

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

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

.nav-links li a:hover::after, .nav-links li a.active-link::after { width: 100%; }
.nav-links li a:hover, .nav-links li a.active-link { color: var(--primary); text-shadow: 0 0 8px rgba(255, 183, 3, 0.4); }

/* Innovative Mobile Hamburger Toggle */
.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 2100;
    position: relative;
    width: 35px;
    height: 25px;
}

.hamburger {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(2.5px, -3px);
    background-color: var(--primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(15px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2.5px, 2px);
    background-color: var(--primary);
}

/* Page Headers for subpages */
.page-header {
    height: 50vh;
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}
.page-header::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    z-index: 0;
}
.page-header-content {
    position: relative;
    z-index: 1;
}
.page-header-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.85);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #E0E0E0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

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

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

.about-img { position: relative; }
.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.02);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    z-index: -1;
    border-radius: 12px;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--dark);
    margin-top: 15px;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.features-list { list-style: none; margin-bottom: 40px; }
.features-list li {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}
.features-list li i { color: var(--primary); font-size: 1.3rem; }

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

.service-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.service-card:hover::before { left: 0; }
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(251, 133, 0, 0.2);
}

.service-card:hover h3, .service-card:hover p, .service-card:hover i {
    color: var(--darker);
}

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

.service-card h3 { font-size: 1.6rem; margin-bottom: 15px; }
.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 350px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95), rgba(17,17,17,0.3));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay { bottom: 0; }
.portfolio-item:hover img { transform: scale(1.15); }

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.8rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.portfolio-overlay p {
    color: var(--primary);
    font-size: 1.1rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    text-transform: uppercase;
    font-weight: 600;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.modal.active { opacity: 1; pointer-events: auto; }
.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255,183,3,0.2);
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active img { transform: scale(1) translateY(0); }

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }

/* Counters */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.counter-item {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.counter-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
    border-color: rgba(255,183,3,0.3);
}

.counter-item i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.counter-count {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 10px;
}

.counter-item p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cccccc;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-img {
    height: 350px;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img img { transform: scale(1.1); }

.team-social {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    transition: bottom 0.4s ease;
}

.team-card:hover .team-social { bottom: 0; }

.team-social a {
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
}
.team-social a:hover { color: var(--primary); transform: translateY(-3px); }

.team-info {
    padding: 30px 20px;
    text-align: center;
}
.team-info h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 5px; }
.team-info p { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;}

/* Testimonials */
.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fade 0.8s ease-in-out;
}

.testimonial-slide.active { display: block; }

@keyframes fade {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.testimonial-text {
    font-size: 1.8rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--text);
}

.testimonial-author img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary);
}

.testimonial-author h4 { font-size: 1.3rem; color: var(--dark); }
.testimonial-author p { color: var(--gray); font-size: 1rem; }

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--dark);
    color: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.contact-info::after {
    content: '\f1ad';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 15rem;
    color: rgba(255,255,255,0.03);
}

.contact-info h3 { font-size: 2.5rem; margin-bottom: 40px; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
}
.info-item i { font-size: 2rem; color: var(--primary); margin-top: 5px; }
.info-item h4 { font-size: 1.3rem; margin-bottom: 5px; color: var(--white); }
.info-item p { color: #bbb; font-size: 1.1rem; line-height: 1.6; }

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 25px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    transition: var(--transition);
    background: #F8F9FA;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(251, 133, 0, 0.1);
}

/* Footer layout & Newsletter */
footer {
    background: var(--darker);
    color: #adb5bd;
    padding: 80px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

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

.footer-col p { line-height: 1.8; margin-bottom: 20px; font-size: 1.05rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    display: inline-block;
}
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }

.footer-social { display: flex; gap: 15px; flex-wrap: wrap;}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 6px 0 0 6px;
    outline: none;
}

.newsletter-form input:focus { border-color: var(--primary); background: transparent; }
.newsletter-form button { border-radius: 0 6px 6px 0; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
}

/* Responsive Styles for Mobile Nav & General */
@media (max-width: 991px) {
    .about-grid, .contact-container { grid-template-columns: 1fr; }
    .about-img::before { display: none; }
    .page-header h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    nav, nav.scrolled, nav.solid-bg { padding: 20px 5%; background: rgba(17, 17, 17, 0.98); }
    
    .menu-btn { display: block; }
    
    /* Fixed nested transform issue by removing transform from parent nav and making this truly fixed */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 2000;
        margin: 0;
        padding: 0;
    }

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

    .nav-links li {
        display: block;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.6s; }

    .nav-links li a {
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: 3px;
    }

    .hero-content h1 { font-size: 3.5rem; }
    .counters-grid { grid-template-columns: 1fr; gap: 20px;}
    .contact-info, .contact-form { padding: 30px; }
    .contact-info::after { display: none; }
    
    /* Ensure no section overflows */
    img, video { max-width: 100%; }
    .section { padding: 80px 5%; overflow: hidden; }
}
