/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}
body.scrolled .navbar {
    padding: 10px 10%;
    background: rgba(0,0,0,0.95);
}
h1, h2, h3 {
    font-weight: 700;
}
a {
    text-decoration: none;
    color: inherit;
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0,0,0,0.85);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: top 0.3s ease, background 0.3s ease;
}

/* Navbar top & bottom not needed for desktop layout */
.navbar-top {
    display: flex;
    align-items: center;
}
.navbar-bottom {
    display: flex; /* show links in row */
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

/* Logo image */
.logo-img {
    width: 60px; /* desktop size */
    height: auto;
}

/* Mobile adjustments */
/* Mobile adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 16px; /* increase text size */
        justify-content: center;
    }
    .logo-img {
        width: 65px; /* increase image size */
        height: auto;
    }
}


/* Desktop Links */

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #f4c542;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2000; /* above menu */
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger turns into X when active */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Hide links by default */
    /* Mobile Navbar */
@media (max-width: 768px) {
    .navbar-bottom {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.95);
        position: absolute;
        top: 100px; /* increased from 70px to 90px to drop menu lower */
        left: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
    }

    .navbar-bottom.active {
        display: flex;
        max-height: 500px;
    }
}


    .nav-links {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
        margin: 0;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }
}

/* Hero */
/* Hero */
.hero {
    background: url("images/hero.jpg") no-repeat center center/cover;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Dark overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* semi-transparent black */
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero h1 span {
    color: #f4c542;
}

.hero p {
    margin: 20px 0;
    font-size: 18px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #f4c542;
    color: #000;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s;
}
.btn:hover {
    background: #e0a800;
    color: #fff;
}

/* About */
.about {
    display: flex;
    align-items: center;
    padding: 80px 10%;
    gap: 50px;
}
.about img {
    width: 100%;
    border-radius: 10px;
}
.about-text {
    max-width: 600px;
}

/* Services */
.services {
    padding: 80px 10%;
    text-align: center;
}
.service-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.service-box {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}
.service-box:hover {
    transform: translateY(-10px);
}
.service-box img {
    width: 100%;
    height: 250px;   /* fixed height for all service images */
    object-fit: cover;  /* crop & fit nicely */
    border-radius: 10px;
}

/* Portfolio */
.portfolio {
    padding: 80px 10%;
    text-align: center;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.portfolio-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}
.portfolio-grid img:hover {
    transform: scale(1.05);
}

/* Contact */
.contact {
    padding: 80px 10%;
    text-align: center;
}
.contact form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact input, 
.contact textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.contact button {
    border: none;
    cursor: pointer;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.whatsapp-float:hover {
    background: #1ebe57;
}

/* Connect With Us */
.connect {
    padding: 60px 10%;
    background: #f9f9f9;
    text-align: center;
}
.connect h2 {
    margin-bottom: 20px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.social-links a {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}
.social-links a i {
    margin-right: 8px;
    color: #cda63a;
}
.social-links a:hover {
    color: #f4c542;
}


/* Footer */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    .service-container {
        flex-direction: column;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
