body {
    background: linear-gradient(135deg, #7c704c, #6b6143);
    overflow-x: hidden; /* Only hide horizontal overflow if needed */
}


/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}
    
/* 🏗️ Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    /* Initially transparent */
    transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
    z-index: 1000;
}

/* 🌐 Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(30, 30, 46, 0.95);
    padding: 10px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 🌐 Desktop View */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* 🌟 Animated Hover Effect */
.nav-links a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #fffffe;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

/* 📱 Mobile View */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
    color: white;
    transition: transform 0.3s ease-in-out;
}

/* 📱 Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        /* Show hamburger icon */
    }

    .nav-links {
        display: none;
        /* Initially hide nav links */
        flex-direction:column;
        background: rgb(26, 26, 24);
        position: absolute;
        top: 60px;
        left: 50%;
        width: 50%;
        padding: 20px;
        text-align: center;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* 🔄 Animated Icon Rotation */
.menu-toggle.active {
    transform: rotate(180deg);
}

/* Home Section */
.home-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #A1BE95;
    padding: 100px 10%;
    height: 100vh;
}

/* Text Content */
.content {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

/* Home Section Text Animation */
h1 {
    font-size: 4rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s ease-out forwards;
    cursor: pointer;
    /* Make text clickable */
    transition: color 0.5s ease-in-out, text-shadow 0.5s ease-in-out;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 2s ease-out forwards;
    animation-delay: 0.7s;
    cursor: pointer;
    /* Make text clickable */
    transition: color 0.5s ease-in-out, text-shadow 0.5s ease-in-out;
}

/* Hover Effect */
h1:hover,
p:hover {
    text-shadow: 0 0 10px #41093d, 0 0 20px #ae4da9, 0 0 40px rgb(240, 132, 231);
}

/* Keyframe Animations */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Container */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1200px;
    /* Adds 3D Depth */
}

/* Home Image Base Style */
.home-image {
    max-width: 80%;
    border-radius: 10px;
    transition: transform 0.8s ease-in-out, box-shadow 0.5s ease-in-out;
    cursor: pointer;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* ✨ Click Rotation Effect + Reflection */
.home-image.clicked {
    transform: rotateY(360deg);
    box-shadow: 0 0 50px rgba(255, 255, 0, 0.8),
        0 0 80px rgba(0, 255, 255, 0.7);
    /* Reflection Effect */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #07331b, #3e9462);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Button Hover Effect */
.btn:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #0c2920, #3f9e77);
}

/* Button Click Effect */
.btn:active {
    transform: scale(0.95);
}

/* Scroll Animation */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}



/* 📱 Mobile View: Image on Top, Content Below */
@media (max-width: 768px) {
    .home-section {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 50px 5%;
    }

    /* Image should appear on top */
    .image-container {
        order: -1;
        /* Moves image to the top */
        width: 100%;
    }

    .home-image {
        max-width: 100%;
        /* Full-width image */
    }

    /* Content Below Image */
    .content {
        max-width: 100%;
        order: 1;
        /* Ensures content is below image */
    }

    h1 {
        font-size: 3rem;
    }

    p {
        font-size: 1.2rem;
    }

    /* Button at the bottom */
    .btn {
        font-size: 16px;
        padding: 10px 20px;
        display: block;
        margin: 20px auto;
        /* Center button */
    }
}


/* About Section Styling */
.about-container {
    text-align: center;
    padding: 80px 10%;
    background: linear-gradient(135deg,  #b3a16e);
    color: rgb(0, 0, 0);
    position: relative;
}

.about-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Main Cards */
.main-card {
    display: inline-block;
    background: linear-gradient(45deg, #52482c, #b3a16e);
    color: white;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin: 20px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(255, 81, 47, 0.3);
}

.main-card:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #52482c, #b3a16e);
}

/* Overlay for Closing */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 998;
}

/* Sub Cards Popup */
.sub-cards-container {
    position: fixed;
    top: 50%;
    ;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50%;
    max-width: 400px;
    background: #f7f7f7;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out;
    z-index: 999;
}

.sub-cards-container {
    overflow-y: auto;
    /* Enable scrolling inside sub-card */
    max-height: 70vh;
    /* Prevent from overflowing the screen */
}

.sub-cards-container.active {
    transform: translate(-50%, -50%) scale(1);
}

.sub-cards {
    display: none;
}

.sub-cards.active {
    display: block;
}

.sub-card {
    background: linear-gradient(45deg, #52482c, #b3a16e);
    padding: 10px;
    margin: 10px;
    height: 220px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
}


/* Responsive Design */
@media (max-width: 768px) {
    .about-content h1 {
        font-size: 28px;
    }

    .about-content p {
        font-size: 16px;
    }

    .main-card {
        font-size: 18px;
        padding: 12px 25px;
    }

    .sub-cards-container {
        width: 95%;
        max-width: 500px;
        padding: 20px;
    }

    .sub-card {
        font-size: 16px;
    }
}

/* 🎨 Why Choose Us Section */
.why-container {
    text-align: center;
    padding: 100px 10%;
    background: linear-gradient(135deg, #0f0f0f, #1a1a2e);
    color: white;
    position: relative;
    overflow: hidden;
}

/* 🌟 Section Title */
.section-title {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

/* 📖 Section Description */
.section-description {
    font-size: 20px;
    max-width: 750px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s 0.5s ease-out forwards;
}

/* 🌐 Cards Grid */
.why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* 🏗️ 3D Scroll Effect Card */
.why-card {
    width: 320px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 1;
    transform: translateY(50px) rotateY(15deg) scale(0.9);
}

/* 🖼️ Card Image */
.why-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: transform 0.5s ease-in-out;
}

/* 📖 Card Title */
.why-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
    transition: transform 0.5s ease-in-out;
}

/* 📜 Card Description */
.why-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.5s ease-in-out;
}

/* 🔼 Move Content to the Top on Click */
.why-card.active img {
    transform: translateY(-60px);
}

.why-card.active h3 {
    transform: translateY(-40px);
}

.why-card.active p {
    transform: translateY(-20px);
}

/* 🖱️ Hover Effect */
.why-card:hover {
    transform: scale(1.05) rotateY(0);
    box-shadow: 0 15px 25px rgba(0, 255, 255, 0.3);
}

/* 🌪️ Scroll Effect (Makes the Card Appear with 3D Tilt) */
.show-card {
    opacity: 1 !important;
    transform: translateY(0) rotateY(0) scale(1) !important;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* 🏗️ 3D Scroll Effect Card */
.why-card {
    width: 320px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.3s ease, background 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 1;
    transform: translateY(50px) rotateY(15deg) scale(0.9);
}

/* 🎨 Click Effect - Change Background */
.why-card.active {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    box-shadow: 0 15px 25px rgba(255, 0, 255, 0.3);
    transform: scale(1.05) rotateY(0);
}

/* 🖼️ Image Effect on Click */
.why-card.active img {
    transform: translateY(-60px) scale(1.2);
    filter: brightness(1.2);
}

/* 📖 Title Effect on Click */
.why-card.active h3 {
    transform: translateY(-40px);
    color: #ffffff;
}

/* 📜 Description Effect on Click */
.why-card.active p {
    transform: translateY(-20px);
    color: rgba(255, 255, 255, 0.9);
}

/* ✨ Smooth Fade In Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .why-grid {
        flex-direction: column;
        align-items: center;
    }

    .why-card {
        width: 90%;
        max-width: 350px;
    }
}

/* sample project section*/
.sample-projects {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f0f0f, #1e1e2e);
    color: #fff;
    text-align: center;
}

.project-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}

.project-row {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    flex: 1 1 45%;
    max-width: 600px;
    height: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.project-box:hover img {
    transform: scale(1.1);
}

.project-box .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    text-align: center;
    color: #fff;
    transition: all 0.4s ease;
    transform: translateY(100%);
}

.project-box:hover .overlay {
    transform: translateY(0);
}

/* pro buton */
.project-footer-button {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-right: 20px;
}

.view-more-btn {
    background-color: #363636;
    color: white;
    padding: 20px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(151, 151, 151, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Hover animation for desktop */
.view-more-btn:hover {
    background-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(255, 255, 255);
}

/* 📱 Mobile Responsive Styling */
@media (max-width: 768px) {
    .project-footer-button {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    .view-more-btn {
        width: 80%;
        text-align: center;
        font-size: 15px;
        padding: 12px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
        gap: 20px;
    }

    .project-box {
        flex: 1 1 100%;
        height: 250px;
    }

    .project-box.full-width {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .project-box {
        height: 200px;
    }

    .project-box.full-width {
        height: 220px;
    }

    .project-box .overlay h3 {
        font-size: 16px;
    }
}


/* 🎨 Services Section */
.services-container {
    text-align: center;
    padding: 100px 10%;
    background: linear-gradient(135deg, #0f0f0f, #1e1e2e);
    color: white;
    position: relative;
    overflow: hidden;
}

/* 🌟 Section Title & Description */
.section-title {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(90deg, #9b6b9b, #00ffff);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-description {
    font-size: 20px;
    max-width: 850px;
    margin: 0 auto 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

/* 🌐 Service Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* 🏗️ 3D Service Cards */
.service-card {
    width: 320px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1500px;
    cursor: pointer;
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 🌀 Card Animation - 3D Flip on Hover */
.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* 🎭 Inner Card */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

/* 🔥 Card Front & Back */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

/* ✨ Front Design */
.card-front {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* 🖼️ Front Image */
.card-front img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .card-front img {
    transform: scale(1.1);
}

/* 📖 Back Design */
.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #1e1e2e;
    font-size: 18px;
    padding: 35px;
    border: none;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.5);
}

/* 💡 Floating Hover Effect */
.service-card:hover {
    transform: translateY(-10px);
    transition: transform 0.5s ease-in-out;
}

/* 🎭 Button for Services */
.service-btn-container {
    margin-top: 60px;
}

.view-services-btn {
    background: linear-gradient(90deg, #0f0f0f, #2e2e30);
    color: white;
    border: none;
    padding: 18px 32px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
    font-weight: bold;
}

.view-services-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 30px rgba(0, 238, 255, 0.623);
    
}

/* ✨ Glowing Animated Particles */
@keyframes glow {
    0% {
        transform: translateY(0px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px);
        opacity: 1;
    }

    100% {
        transform: translateY(0px);
        opacity: 0.6;
    }
}

.animated-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: glow 3s infinite ease-in-out alternate;
}

.animated-glow:nth-child(1) {
    top: 10%;
    left: 15%;
}

.animated-glow:nth-child(2) {
    bottom: 15%;
    right: 10%;
}

.animated-glow:nth-child(3) {
    top: 50%;
    left: 80%;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        max-width: 100%;
    }

    .view-services-btn {
        font-size: 18px;
        padding: 14px 28px;
    }
}

/* 🌍 Footer Section */
/* General Footer Styling */
footer {
    background: #0d0d0d;
    color: #fff; /* Changed from #ccc to #fff */
    padding: 60px 20px 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* Footer Logo & Glow Effect */
.footer-logo img {
    width: 120px;
    height: auto;
    animation: glowUp 3s infinite alternate;
    filter: drop-shadow(0 0 8px #00f7ff);
}

@keyframes glowUp {
    0% {
        filter: drop-shadow(0 0 5px #00f7ff);
    }
    100% {
        filter: drop-shadow(0 0 20px #00f7ff);
    }
}

.footer-logo p {
    margin-top: 10px;
    font-size: 14px;
    color: #fff; /* Changed from #aaa to #fff */
}

/* Section Headings */
.footer-links h3,
.footer-contact h3,
.footer-visit h3,
.footer-social h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

/* Links - Updated to white and no underline */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 8px 0;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links ul li a:hover {
    color: #00f7ff;
    padding-left: 5px;
    text-decoration: none;
}

/* Contact Info - Updated to white */
.footer-contact p,
.footer-visit p {
    font-size: 14px;
    margin: 8px 0;
    color: #ffffff;
}
.footer-contact a{
    color: white;
}

.footer-contact i {
    margin-right: 8px;
    color: #00f7ff;
}

/* Social Media - Updated to white */
.footer-social a {
    display: block;
    color:  #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-social i{
    color: #00f7ff;
}
.footer-social a:hover {
    color: #00f7ff;
    text-decoration: none;
}

/* Visit Location - Updated to white */
.footer-visit a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-visit a:hover {
    color: #00f7ff;
    text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    margin-top: 30px;
    font-size: 8px;
    color: #fff; /* Added to ensure white color */
}

.footer-bottom a {
    color: #00f7ff;
    text-decoration: none;
}

.footer-bottom p {
    font-size: small;
    color: #fff; /* Added to ensure white color */
}

.footer-bottom a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo img {
        margin-bottom: 10px;
    }

    .footer-links,
    .footer-contact,
    .footer-visit,
    .footer-social {
        margin-top: 20px;
    }
}