/* 
Authour: Isiah Toilalo
Date Last Modified: 12/2/2025

Note: The code has been cleaned up by Claude AI to make it more readable after all the 
changes have been made.
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #ef9e00;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --medium: #5d5d5d;
    --herobg: url('primeElectricalAndDataPhotos/backgroundImages/heroBackground.png');
    --industrialbg: url('primeElectricalAndDataPhotos/backgroundImages/industrialBackground.jpg');
    --undergroundbg: url('primeElectricalAndDataPhotos/backgroundImages/undergroundConduitBackground.jpg');
    --fansbg: url('primeElectricalAndDataPhotos/backgroundImages/fansBackground.jpg');
    --familybg: url('primeElectricalAndDataPhotos/backgroundImages/familyBackground.jpg');
}


/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
}

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

body { 
    line-height: 1.6; 
    color: #333; 
    text-align: center;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

section { 
    padding: 4rem 2rem; 
}

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

.intro {
    margin-top: 80px;
}

.section-title {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* ============================================
   NAVIGATION COMPONENT
   ============================================ */

/* --- Navigation Container --- */
my-navbar {
    display: block;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* --- Navbar Styling --- */
.navbar { 
    background: var(--light); 
    color: #000; 
    padding: 1rem 0; 
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* --- Brand & Logo --- */
#main-logo {
    height: 3.5rem;
    display: block;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-logo a {
    color: var(--primary);
    font-weight: bold;
    transition: color 0.3s;
}

.brand-logo a:hover {
    color: var(--dark);
}

/* --- Navigation Links --- */
.nav-links { 
    display: flex; 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.nav-links li a { 
    color: #000; 
    text-decoration: none; 
    padding: 0 15px; 
    font-weight: bold; 
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary) !important;
}

/* --- Desktop Navigation --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    my-navbar {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* --- Mobile Navigation --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        position: relative; 
        padding: 2px 0;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #000;
    }
    
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: var(--light);
        position: absolute;
        top: 100%; 
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(0,0,0,0.05);
        display: block;
        padding: 15px 0;
    }
    
    /* Mobile About Section Fix */
    #about .info-container .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero { 
    background: var(--herobg) no-repeat center center/cover;
    height: 80vh; 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: #fff;
}

.main-title {
    font-size: 4rem;
    color: var(--primary);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


/* ============================================
   INTRO SECTIONS (WITH BACKGROUNDS)
   ============================================ */
.intro {
    background: var(--medium) no-repeat center center/cover;
    height: auto;
    width: 100%;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.intro h1 {
    font-size: 3rem;
    color: var(--primary);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    padding: 0 1rem;
}

.intro p {
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 600px;
    padding: 0 2rem;
    align-self: center;
}

#aboutus-intro {
    background: var(--familybg) no-repeat center center/cover;
}

#services-intro {
    background: var(--industrialbg) no-repeat center center/cover;
}

#projects-intro {
    background: var(--undergroundbg) no-repeat center center/cover;
}

#contact-intro {
    background: var(--fansbg) no-repeat center center/cover;
}

/* Triangle decoration at bottom of intro sections */
.intro::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--primary);
    z-index: 1;
}


/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-us {
    background: var(--light);
    padding: 4rem 2rem;
    border-bottom: 3px solid var(--primary);
}

.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-us .about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.about-us .about-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border-bottom: 3px solid var(--primary);
}

.about-us p {
    max-width: 600px;
    padding: 0 2rem;
}

/* ============================================
   MEET THE TEAM SECTION
   ============================================ */
.meet-the-team h2 {
    color: var(--primary);
    font-size: 2.5rem;
    text-align: center;
}

.meet-the-team p {
    padding: 1rem 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 1fr);
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.team-member {
    background: var(--light);
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid var(--primary);
}

.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}


/* ============================================
   SERVICES SECTION
   ============================================ */
#services-intro h2,
.aboutus .hero h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0.5rem 2rem;
}

.services-grid .service-item,
.services-grid .service-card {
    background: var(--light);
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card { 
    background: var(--light); 
    padding: 30px; 
    text-align: center; 
    border-bottom: 5px solid var(--primary); 
}

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


/* ============================================
   PROJECTS / GALLERY SECTION
   ============================================ */
#projects {
    background-color: var(--light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.project-card {
    background: var(--light);
    padding: 30px;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-gallary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-top: 3rem;
    padding: 40px 0;
}

.placeholder-img { 
    background: #ddd; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative;
}

.placeholder-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center;
}


/* ============================================
   LIGHTBOX (IMAGE POPUP)
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border: 2px solid #fff;
}

.nav-btn { 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: 2rem;
}

.contact-methods {
    background: var(--light);
    padding: 1rem 2rem;
    border-bottom: 5px solid var(--primary);
}

.contact-info a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.socials {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 1rem;
    padding: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--primary);
    font-size: 2rem;
    transition: color 0.3s;
}

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


/* ============================================
   REVIEWS SECTION
   ============================================ */
#reviews {
    position: relative;
}

/* Full-width downward-pointing triangle separator */
#reviews::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 50vw solid transparent;
    border-right: 50vw solid transparent;
    border-top: 50px solid #fff;
    z-index: 1;
}

   .review-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Hide review widget branding */
.sk_branding {
    display: none !important;
    visibility: hidden !important;
}

#reviews-section iframe, 
#reviews-section a[href*="featurable"] { 
    filter: grayscale(100%) opacity(0.5);
    transition: 0.3s;
}

#reviews-section:hover iframe {
    filter: grayscale(0%) opacity(1);
}


/* ============================================
   BUTTONS
   ============================================ */
.button-txt { 
    background: var(--primary); 
    padding: 12px 25px; 
    text-decoration: none; 
    color: #000;
    font-weight: bold;
    border-radius: 5px; 
    margin: center;
}

.button-txt:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.button {
    margin-top: 20px;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark); 
    color: #fff; 
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li a {
    color: #ccc;
    text-decoration: none;
    text-align: left;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.footer-grid p {
    text-align: left;
}