﻿/* ===== RESET / BASE STYLES ===== */

/* Make the navbar float over the hero, transparent by default */
#mainNav {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

    /* White links when over the hero */
    #mainNav .nav-link {
        color: #fff !important;
        transition: color 0.3s ease;
    }

    /* Once scrolled, apply blue background */
    #mainNav.navbar-scrolled {
        position: fixed; /* ensure it sticks once scrolled */
        background-color: #007bff; /* Bootstrap primary blue */
    }

        /* Keep links visible (you can switch to black if you prefer) */
        #mainNav.navbar-scrolled .nav-link {
            color: #fff !important;
        }

/* Make sure your hero sections sit beneath the navbar */
.hero-section,
.about-hero,
.services-hero,
.projects-hero,
.careers-hero,
.contact-hero {
    position: relative;
    z-index: 0;
    margin-top: -56px; /* pull up behind 56px-tall navbar */
    padding-top: 56px; /* push content back down */
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background: #fff;
}

*, *::before, *::after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}



/* ===== HERO SECTION ===== */
.hero-section {
    background: url('https://images.unsplash.com/photo-1625838144804-300f3907c110?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-section .overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

    .hero-content h1 {
        font-size: 3rem;
        color: #fff;
        animation: fadeInDown 1s ease;
    }

    .hero-content p {
        color: #eee;
        margin-top: 1rem;
        animation: fadeInUp 1s ease 0.5s both;
    }

    .hero-content .btn {
        background: #368BDB;
        border: none;
        padding: 0.8rem 2rem;
        margin-top: 2rem;
        border-radius: 30px;
        color: #fff;
        font-weight: 600;
        transition: background 0.3s;
    }

        .hero-content .btn:hover {
            background: #2b6ca8;
        }


/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

p {
    color: #555;
}


/* ===== SERVICES ===== */
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

    .service-card i {
        color: #368BDB;
        margin-bottom: 20px;
    }


/* ===== SCREENSHOTS CAROUSEL ===== */
.owl-carousel .item img {
    border-radius: 15px;
    height: 400px;
    object-fit: cover;
}


/* ===== CONTACT BOX WITH SMOOTH ROTATION & SCALE ===== */
.contact-box {
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

    .contact-box:hover {
        transform: translateY(-8px);
        box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
    }

/* ICON inside the box */
.contact-icon i {
    font-size: 40px;
    color: #007bff;
    transition: transform 0.6s ease, color 0.3s ease;
}

.contact-box:hover .contact-icon i {
    transform: rotate(15deg) scale(1.2); /* <== Smooth rotate and scale */
}

/* TEXT inside the box */
.contact-text {
    text-align: center;
    width: 100%;
    margin-top: 10px; /* Good spacing under icon */
}

    /* Email smaller and left aligned */
    .contact-text .email {
        display: block;
        font-size: 10px;
        text-align: left;
        color: #007bff;
        font-weight: 600;
        text-decoration: none;
    }

@media (min-width: 900px) {
    .contact-text .email {
        font-size: 14px;
        text-align: center;
    }
}


/* Phone centered */
.contact-text .phone {
    display: block;
    font-size: 14px;
    text-align: center;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

/* Address centered */
.contact-text .address {
    display: block;
    font-size: 14px;
    text-align: center;
    color: #007bff;
    font-weight: 600;
    margin-top: 8px; /* Align same as others */
}

/* Hover effect for links */
.contact-text a:hover {
    text-decoration: underline;
    color: #0056b3;
    transition: color 0.3s ease;
}




/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #ccc;
    padding: 50px 0;
}

    footer p {
        margin: 0;
    }

    footer a:hover {
        color: #368BDB;
    }


/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== AOS (Animate On Scroll) integration ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    [data-aos].aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

.services-hero {
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1581093588401-7e0cdfbb6792') center center/cover no-repeat;
    position: relative;
    color: white;
}

    .services-hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

    .services-hero .container {
        position: relative;
        z-index: 2;
    }

.service-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .service-box:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.15);
    }

    .service-box i {
        transition: transform 0.4s ease;
    }

    .service-box:hover i {
        transform: rotate(10deg) scale(1.1);
    }

.start-project-btn {
    background-color: #368BDB;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-size: 18px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(54, 139, 219, 0.4);
    text-transform: uppercase;
}

    .start-project-btn:hover {
        background-color: #2b6ca8;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 20px rgba(43, 108, 168, 0.6);
        color: #ffffff;
    }

.gradient-section {
    background: linear-gradient(135deg, #368BDB 0%, #2b6ca8 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .gradient-section h2 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 20px;
        animation: fadeInDown 1s ease forwards;
    }

    .gradient-section p {
        font-size: 20px;
        margin-bottom: 30px;
        animation: fadeInUp 1s ease forwards;
    }

    .gradient-section .start-project-btn {
        margin-top: 30px;
    }

    /* Optional - Add soft moving light effect */
    .gradient-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: moveLight 10s linear infinite;
        z-index: 0;
    }

    .gradient-section > * {
        position: relative;
        z-index: 1;
    }

/* Soft floating light animation */
@keyframes moveLight {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50%, 50%) rotate(360deg);
    }
}

/* Optional - Fade animations for headings/text */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .project-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
    }

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.gradient-section {
    background: linear-gradient(135deg, #368BDB, #5AA9E6);
    padding: 80px 20px;
    color: white;
    text-align: center;
}

    .gradient-section h2 {
        font-weight: 700;
        margin-bottom: 20px;
    }

    .gradient-section p {
        font-size: 18px;
        margin-bottom: 30px;
    }

.filter-buttons button {
    transition: all 0.3s ease;
}

    .filter-buttons button.active,
    .filter-buttons button:hover {
        background-color: #368BDB;
        color: white;
    }


.story-hero {
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1531297484001-80022131f5a1') center center/cover no-repeat;
    position: relative;
    color: white;
}

    .story-hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

    .story-hero .container {
        position: relative;
        z-index: 2;
    }

.our-story-content img {
    max-height: 400px;
    object-fit: cover;
}

.story-cta {
    background-color: #368BDB;
    color: white;
}

    .story-cta h2 {
        font-weight: 600;
        font-size: 32px;
    }

    .story-cta .btn {
        background: white;
        color: #368BDB;
        border-radius: 50px;
        padding: 10px 30px;
        font-weight: bold;
    }

        .story-cta .btn:hover {
            background: #ffffffdd;
        }

.careers-hero {
    background: url('https://images.unsplash.com/photo-1556761175-4b46a572b786') no-repeat center center/cover;
    height: 60vh;
    position: relative;
}

.career-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .career-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    }

    .career-card h4 {
        margin-bottom: 15px;
        font-weight: 700;
    }

    .career-card p {
        font-size: 15px;
        color: #555;
    }

.legal-hero {
    background: url('https://images.unsplash.com/photo-1573164574396-9f7e5b0dbd5c') no-repeat center center/cover;
    height: 50vh;
    position: relative;
}

.legal-section h2 {
    font-weight: 700;
    color: #368BDB;
    margin-bottom: 20px;
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

    .legal-section ul li {
        margin-bottom: 10px;
    }

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #368BDB;
        box-shadow: 0 4px 15px rgba(54, 139, 219, 0.6);
        transform: translateY(-3px);
    }

.img-fluid {
    transition: transform 0.3s ease;
}

    .img-fluid:hover {
        transform: scale(1.05);
    }

.hero-logo {
    width: 120px; /* or whatever small size you want */
    height: auto;
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
}

/* Dark Overlay */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* slight dark effect */
    z-index: 1;
}

/* Content above Overlay */
.hero-logo {
    height: 130px; /* Smaller and cleaner */
    max-height: 100px;
    width: auto;
}

/* Navbar default (Before Scroll) */
.navbar {
    background-color: transparent;
    padding: 0.8rem 1rem;
    transition: all 0.4s ease-in-out;
}

    /* Force white color when NOT scrolled */
    .navbar:not(.navbar-scrolled) .nav-link {
        color: #ffffff !important;
    }

.navbar-brand img {
    height: 100px;
    transition: height 0.4s ease-in-out;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 17px;
    transition: color 0.4s ease-in-out;
}

    .navbar-nav .nav-link:hover {
        color: #00c6d7;
    }

/* When Scrolled */
.navbar-scrolled {
    background-color: #368BDB !important;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.6s ease-in-out, padding 0.4s ease-in-out;
}

    .navbar-scrolled .nav-link {
        color: #333333 !important; /* Dark text after scroll */
    }

        .navbar-scrolled .nav-link:hover {
            color: #000000;
        }

    .navbar-scrolled .navbar-brand img {
        height: 95px;
    }

/* Burger Button */
.navbar-toggler {
    border: none;
    outline: none;
}

/* Burger Icon Container */
.navbar-toggler-icon-custom {
    width: 30px;
    height: 22px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

    /* The 3 Lines */
    .navbar-toggler-icon-custom span {
        display: block;
        height: 3px;
        width: 100%;
        background: #ffffff;
        border-radius: 2px;
        position: absolute;
        left: 0;
        transition: all 0.4s ease-in-out;
    }

        /* Line Positions */
        .navbar-toggler-icon-custom span:nth-child(1) {
            top: 0;
        }

        .navbar-toggler-icon-custom span:nth-child(2) {
            top: 9px;
        }

        .navbar-toggler-icon-custom span:nth-child(3) {
            top: 18px;
        }

/* Animate Open (Cross) */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon-custom span:nth-child(1) {
    transform: rotate(45deg) translateY(9px) scale(1.1);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon-custom span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px) scale(1.1);
}

/* Animate Close (Burger) */
.navbar-toggler.collapsed .navbar-toggler-icon-custom span:nth-child(1),
.navbar-toggler.collapsed .navbar-toggler-icon-custom span:nth-child(2),
.navbar-toggler.collapsed .navbar-toggler-icon-custom span:nth-child(3) {
    transform: rotate(0deg) translateY(0) scale(1);
    opacity: 1;
}

/* Scroll Navbar - Burger Color */
.navbar-scrolled .navbar-toggler-icon-custom span {
    background: #333333;
}

/* Transition Smoothness */
.navbar,
.navbar-nav .nav-link,
.navbar-brand img {
    transition: all 0.4s ease-in-out;
}

/* Partners Logos Styling */
/* Partners Logos Styling */
.partner-logo {
    width: 100%;
    height: 100px; /* Fixed height */
    object-fit: contain; /* Keep proportions without stretching */
    padding: 10px; /* Optional: add a little breathing room inside */
    background: #ffffff; /* Optional: clean background for all logos */
    border-radius: 12px; /* Optional: make logos a bit rounded */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .partner-logo:hover {
        transform: scale(1.08);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    }

/* Make sure the container holding logos is centered nicely */
.partners-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}
