/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --primary-blue: #007bff; /* Bright, energetic blue */
    --primary-dark-blue: #002349; /* Deep navy for text/backgrounds */
    --glow-blue: #00aaff; /* The color for all glows */
    --light-grey: #f8f8f8; /* Slightly lighter grey for sections */
    --text-dark: #333;
    --text-light: #ffffff;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Slightly more modern font */
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    background-color: var(--text-light);
    color: var(--text-dark);
}

h1, h2, h3 {
    color: var(--primary-dark-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px;}
h3 { font-size: 1.5rem; }
p { color: var(--text-dark); margin-bottom: 15px; }

.content-section {
    padding: 80px 5%;
    /* Initial state for fade-in animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out; /* Add transition for js scroll */
}

.content-section.fade-in { /* Class added by JS */
    opacity: 1;
    transform: translateY(0);
}


/* ======== HEADER & NAVIGATION ======== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
    border-radius: 5px; /* Added for the logo image */
}

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

.nav-links li {
    margin-left: 30px;
}

.logo {
  height: 70px;  /* increase this value to make it bigger */
  width: auto;   /* keeps aspect ratio */
  margin-right: 15px; /* optional, adds spacing */
}


header nav {
  display: flex;
  align-items: center;
  padding: 10px 40px;
}

header nav img.logo {
  flex-shrink: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: white;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 35px; /* make it bigger */
  width: auto;
  margin-right: 15px;
}

.brand-name h1 {
  font-size: 20px;
  margin: 0;
  color: #000;
}

.brand-name p {
  font-size: 12px;
  margin: 0;
  color: #555;
}

#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('your-image.jpg'); /* replace with your image */
    background-size: cover;
    background-position: center;
    filter: blur(8px);  /* adjust blur intensity */
    transform: scale(1.05); /* prevent edges showing due to blur */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* make sure content is above blurred background */
}


.nav-links a {
    text-decoration: none;
    color: var(--primary-dark-blue);
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative; /* For the glow effect */
}

/* --- NAV LINK GLOW --- */
.nav-links a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--primary-dark-blue);
    margin: 5px;
    transition: all 0.3s ease;
}

/* ======== CALL TO ACTION (CTA) BUTTON ======== */
.cta-button {
    text-decoration: none;
    color: var(--text-light);
    background: var(--primary-blue);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* For the ripple effect */
    display: inline-block;
    cursor: pointer;
    text-align: center;
    border: none;
}

/* --- BUTTON GLOW ANIMATION --- */
.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px 5px var(--glow-blue);
}

/* --- HERO BUTTON PULSING GLOW --- */
.hero-cta {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(0, 170, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
    }
}

/* ======== HERO SECTION ======== */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    color: var(--text-light);
    /* High-quality Unsplash image for Hero */
    background: linear-gradient(rgba(0, 35, 73, 0.6), rgba(0, 35, 73, 0.6)), url('https://images.unsplash.com/photo-1550953041-edbf049b49f5?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
    padding: 0 5%;
    margin-top: 80px; /* To account for fixed header */
}

#hero h1 {
    color: var(--text-light);
    font-size: 4rem; /* Slightly larger */
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

#hero p {
    color: var(--text-light);
    font-size: 1.4rem; /* Slightly larger */
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ======== WHY CHOOSE US (ABOUT) SECTION ======== */
#about {
    background: var(--light-grey);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for more cards */
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

/* --- CARD GLOW --- */
.why-us-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 20px 8px rgba(0, 170, 255, 0.35);
}

.why-us-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.why-us-card p {
    font-size: 0.95rem;
}

/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    text-align: center;
}

/* --- CARD GLOW --- */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 25px 8px rgba(0, 170, 255, 0.4);
}

.service-card img {
    width: 100%;
    height: 250px; /* Slightly taller */
    object-fit: cover;
    display: block; /* Remove extra space below image */
}

.service-card h3 {
    padding-top: 25px;
}
.service-card h3, .service-card p {
    padding-left: 25px;
    padding-right: 25px;
}
.service-card p {
    padding-bottom: 25px;
    font-size: 0.95rem;
}


/* ======== PROJECTS/GALLERY SECTION ======== */
#projects {
    background: var(--light-grey);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for better small screen fit */
    gap: 15px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid img {
    width: 100%;
    height: 220px; /* Consistent height */
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* --- IMAGE GLOW --- */
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px 5px rgba(0, 170, 255, 0.5);
    cursor: pointer;
}

/* ======== FINAL CTA SECTION ======== */
.cta-section {
    background: var(--primary-dark-blue);
    text-align: center;
    padding: 80px 5%;
}

.cta-section h2, .cta-section p {
    color: var(--text-light);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}


/* ======== FOOTER ======== */
footer {
    background: #1a1a1a; /* Darker footer */
    color: var(--light-grey);
    padding: 50px 5% 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    height: 60px;
    border-radius: 5px;
    filter: brightness(1.2); /* Make logo pop a bit */
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-links a, .footer-contact p {
    display: block;
    text-decoration: none;
    color: var(--light-grey);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.footer-contact a {
    color: var(--light-grey);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- FOOTER LINK GLOW --- */
.footer-links a:hover, .footer-contact a:hover {
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    flex-direction: column;
}
.footer-social div {
    display: flex;
    gap: 15px;
}
.social-icon {
    width: 30px;
    height: 30px;
    filter: grayscale(100%) brightness(200%); /* Make icons white */
    transition: all 0.3s ease;
}
.social-icon:hover {
    filter: grayscale(0%) brightness(100%); /* Color on hover */
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--glow-blue);
    border-radius: 50%;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* ======== MOBILE RESPONSIVE STYLES ======== */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }

    .navbar {
        padding: 15px 4%;
    }
    .nav-links {
        position: fixed;
        top: 80px; /* Height of the navbar */
        right: 0;
        width: 100%;
        height: calc(100vh - 80px); /* Fill remaining viewport */
        background: var(--text-light);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        margin: 20px 0;
    }

    .nav-cta {
        display: none; /* Hide button in nav, show in menu */
    }

    .hamburger {
        display: block;
    }

    /* Hamburger X animation */
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    #hero {
        height: 80vh;
        margin-top: 70px; /* Adjust for potentially shorter header on mobile */
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.1rem;
    }


    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links, .footer-contact, .footer-social {
        width: 100%;
        text-align: center;
    }
    .footer-social div {
        justify-content: center;
    }
}