/* =========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    /* Main Brand Color */
    --primary-color: #4daee1; 
    --dark-grey: #212529;
    --gorilla-light: #f4f6f9;
    --text-color: #333;
    --overlay-color: rgba(0, 0, 0, 0.6);
}

html, body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

h1, h2, h3, h4, h5, .btn {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Helper Classes for Brand Color */
.text-danger-manual, .text-danger {
    color: var(--primary-color) !important;
}

.bg-danger-manual, .bg-danger {
    background-color: var(--primary-color) !important;
}

.btn-danger-manual, .btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-danger-manual:hover, .btn-danger:hover {
    background-color: #3b9ac6 !important; /* Darker Blue */
    border-color: #3b9ac6 !important;
    transform: translateY(-2px);
}

.btn-outline-danger {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-danger:hover, 
.btn-outline-danger.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.border-danger {
    border-color: var(--primary-color) !important;
}

/* =========================================
   2. NAVBAR & TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--dark-grey);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.navbar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    background: white;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--dark-grey);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-grey) !important;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-cta {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: #3b9ac6;
    color: white;
    transform: translateY(-2px);
}

/* =========================================
   3. HERO SECTIONS (HOME & CONTACT)
   ========================================= */

/* A. HOME HERO (Static) */
.hero-static {
    position: relative;
    /* Quotes are important for filenames with spaces */
    background-image: url('../img/Wooden woders.png'); 
    background-color: #333; /* Fallback color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax for Desktop */
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

/* B. CONTACT HERO */
.contact-hero {
    position: relative;
    background-image: linear-gradient(rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 0.8)), 
                      url('../img/Wooden woders.png');
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax for Desktop */
    padding: 100px 0;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    width: 100%;
}

.contact-info-text { color: white; }
.contact-info-text h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }

/* =========================================
   4. MOBILE RESPONSIVENESS (HERO FIXES)
   ========================================= */
@media (max-width: 991px) {
    
    /* 1. Fix Background Image on iPhone/Mobile */
    .hero-static, 
    .contact-hero {
        background-attachment: scroll !important; /* Critical Fix */
        background-position: center center !important;
        background-size: cover !important;
        height: auto !important;
        min-height: 60vh !important;
        padding: 80px 0 !important;
    }

    /* 2. Contact Page Text & Layout */
    .contact-info-text {
        text-align: center;
        margin-bottom: 40px !important;
    }
    .contact-info-text h1 {
        font-size: 2rem !important;
    }

    /* 3. Hide Red Icons on Mobile */
    .info-icon { display: none !important; }

    /* 4. Align Contact Details */
    .info-item {
        display: block !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    .info-content { margin-left: 0 !important; }
    
    .info-content h5 {
        font-size: 0.9rem !important;
        margin-bottom: 5px;
        color: rgba(255,255,255,0.7);
    }
    .info-content p {
        font-size: 14px !important;
        font-weight: 700;
        word-wrap: break-word;
    }

    /* 5. Adjust Card Padding */
    .contact-card { padding: 25px !important; }
}

/* =========================================
   5. STATS SECTION
   ========================================= */
.border-end-md { border-right: 1px solid #eee; }

@media (max-width: 768px) {
    .border-end-md {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    .hero-static { height: auto; padding: 100px 0; }
    .container[style*="margin-top"] { margin-top: -30px !important; }
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.section-padding { padding: 80px 0; }
#services { background-color: #9bcdff14; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--dark-grey); }
.section-header .divider {
    width: 80px; height: 4px; background: var(--primary-color); margin: 15px auto;
}

.service-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-img { height: 220px; width: 100%; object-fit: cover; }
.service-body { padding: 25px; }
.service-body h4 { font-weight: 700; margin-bottom: 10px; }

/* =========================================
   7. TEAM / ABOUT CARDS
   ========================================= */
.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img-wrapper {
    height: 280px;
    width: 100%;
    overflow: hidden;
    background-color: #f4f6f9;
}

.team-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img { transform: scale(1.05); }
.team-body { padding: 25px 20px; }
.team-body h5 { color: var(--dark-grey); font-weight: 800; }
.team-body p.small { font-size: 0.9rem; line-height: 1.5; }

/* =========================================
   8. PROJECTS / PORTFOLIO
   ========================================= */
.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-img-wrapper img { transform: scale(1.1); }

.client-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
}
.project-details { padding: 25px; }

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonial-section .carousel { padding: 0 20px; }
@media (min-width: 992px) { .testimonial-section .carousel { padding: 0 60px; } }

.testimonial-section .carousel-control-prev,
.testimonial-section .carousel-control-next {
    width: 45px; height: 45px;
    background-color: var(--primary-color);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    border: none;
}

.testimonial-section .carousel-control-prev:hover,
.testimonial-section .carousel-control-next:hover {
    background-color: #3b9ac6; opacity: 1;
    box-shadow: 0 4px 12px rgba(77, 174, 225, 0.4);
}

.testimonial-section .carousel-control-prev-icon,
.testimonial-section .carousel-control-next-icon {
    background-image: none !important; background-color: transparent !important;
}

.testimonial-section .carousel-control-prev-icon::after {
    content: '\f053'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 1.2rem;
}
.testimonial-section .carousel-control-next-icon::after {
    content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 1.2rem;
}

.testimonial-section .carousel-indicators { bottom: -60px; margin-bottom: 0; }
.testimonial-section .carousel-indicators button {
    width: 12px !important; height: 12px !important; border-radius: 50%;
    background-color: #ccc !important; border: none !important; margin: 0 6px !important; opacity: 1 !important;
}
.testimonial-section .carousel-indicators button.active {
    background-color: var(--primary-color) !important; width: 35px !important; border-radius: 20px;
}

/* =========================================
   10. MISSION CARD & FAQ
   ========================================= */
.mission-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #2b3035, #212529);
}
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(77, 174, 225, 0.2) !important;
}
.mission-card:hover .icon-box i { transform: scale(1.2); }

.custom-accordion .accordion-item { border-radius: 8px; overflow: hidden; }
.custom-accordion .accordion-button { background-color: white; padding: 20px; font-size: 1.1rem; color: var(--dark-grey); box-shadow: none; }
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #fff; color: var(--primary-color) !important; border-bottom: 2px solid var(--primary-color);
}
.custom-accordion .accordion-button::after { display: none; }
.custom-accordion .accordion-button i { transition: transform 0.3s ease; }
.custom-accordion .accordion-button:not(.collapsed) i { transform: rotate(45deg); color: var(--primary-color); }
.custom-accordion .accordion-button.collapsed i { transform: rotate(0deg); color: #ccc; }

/* =========================================
   11. CONTACT FORM SPECIFICS
   ========================================= */
.info-icon {
    width: 50px; height: 50px; background-color: var(--primary-color); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-right: 20px; flex-shrink: 0;
}
.contact-card {
    background: white; padding: 40px; border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); border-top: 5px solid var(--primary-color);
}
.form-control {
    background-color: #f8f9fa; border: 1px solid #ddd; padding: 12px; margin-bottom: 15px; border-radius: 4px;
}
.form-control:focus { border-color: var(--primary-color); box-shadow: none; }
.btn-submit {
    background-color: var(--primary-color); color: white; font-weight: 800; padding: 15px; width: 100%; border: none; transition: 0.3s;
}
.btn-submit:hover { background-color: #3b9ac6; }

/* =========================================
   12. PARTNER LOGO CAROUSEL
   ========================================= */
.partner-logo-section {
    background-color: #ffffff; overflow: hidden; border-top: 1px solid #eee;
}
.partner-slider {
    height: 100px; margin: auto; overflow: hidden; position: relative; width: 100%;
}
.partner-slider::before, .partner-slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: ""; height: 100px; position: absolute; width: 100px; z-index: 2;
}
.partner-slider::after { right: 0; top: 0; transform: rotate(180deg); }
.partner-slider::before { left: 0; top: 0; }

.partner-track {
    display: flex; width: calc(250px * 10); animation: partnerScroll 20s linear infinite;
}
.partner-logo-item {
    height: 100px; width: 250px; display: flex; align-items: center; justify-content: center; padding: 0 20px;
}
.partner-logo-item img {
    max-height: 80px; max-width: 100%; width: auto; object-fit: contain;
    mix-blend-mode: multiply; /* Removes white bg */
    filter: none; opacity: 1; transition: transform 0.3s ease; cursor: pointer;
}
.partner-logo-item img:hover { transform: scale(1.1); }

@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

@media (max-width: 768px) {
    .partner-logo-item { width: 50vw; }
    .partner-track { width: calc(50vw * 10); }
    @keyframes partnerScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50vw * 5)); }
    }
    .partner-slider::before, .partner-slider::after { width: 50px; }
}

/* =========================================
   13. FOOTER
   ========================================= */
footer { background-color: #1b1b1b; color: #aaa; padding: 70px 0 20px; }
footer h5 { color: white; margin-bottom: 25px; font-size: 1.1rem; }
footer ul li { margin-bottom: 12px; }
footer a { color: #aaa; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 50px; padding-top: 20px; font-size: 0.8rem; }