:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--dark-color);
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

/* Banner Section */
.banner {
    background: var(--gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    height: 80vh;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('banner.jpg') center/cover;
    opacity: 0.5;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    margin-top: 10%;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.banner p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.btn-custom {
    background: rgb(246, 246, 246);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--accent-color);
    color: white;
}

/* ===== HEADING STYLE WITH UNDERLINE ===== */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #222;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 50px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 180px;
}


/* Floating Service Icons in Banner */
.floating-service-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-service-icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    animation: float-random 15s infinite ease-in-out;
}

.floating-service-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-service-icon:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.floating-service-icon:nth-child(3) {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
    animation-duration: 16s;
}

.floating-service-icon:nth-child(4) {
    top: 70%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.floating-service-icon:nth-child(5) {
    top: 40%;
    left: 3%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.floating-service-icon:nth-child(6) {
    top: 30%;
    right: 5%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.floating-service-icon:nth-child(7) {
    top: 80%;
    left: 12%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.floating-service-icon:nth-child(8) {
    top: 15%;
    left: 50%;
    animation-delay: 7s;
    animation-duration: 18s;
}

.floating-service-icon:nth-child(9) {
    top: 85%;
    right: 8%;
    animation-delay: 8s;
    animation-duration: 16s;
}

.floating-service-icon:nth-child(10) {
    top: 50%;
    right: 3%;
    animation-delay: 9s;
    animation-duration: 15s;
}

.floating-service-icon:nth-child(11) {
    top: 25%;
    left: 15%;
    animation-delay: 10s;
    animation-duration: 19s;
}

@keyframes float-random {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }

    75% {
        transform: translate(40px, 10px) rotate(270deg);
    }
}

/* 3D House Model */
.home-3d-container {
    perspective: 1000px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.house-3d {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 10s infinite linear;
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.house-base {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateZ(50px);
    left: 50px;
    top: 100px;
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.5);
}

.house-roof {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 100px solid #ff6b6b;
    transform: translateZ(100px) rotateX(30deg);
    left: 0;
    top: 50px;
}

.house-door {
    position: absolute;
    width: 40px;
    height: 60px;
    background: #8b4513;
    transform: translateZ(51px);
    left: 130px;
    top: 180px;
}

.house-window {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #87ceeb;
    transform: translateZ(51px);
    border: 3px solid #fff;
}

.window1 {
    left: 80px;
    top: 130px;
}

.window2 {
    left: 180px;
    top: 130px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about-icon {
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.float-icon {
    position: absolute;
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float-icon 3s infinite ease-in-out;
}

.float-icon:nth-child(1) {
    animation-delay: 0s;
    top: 0;
}

.float-icon:nth-child(2) {
    animation-delay: 0.5s;
    top: 60px;
}

.float-icon:nth-child(3) {
    animation-delay: 1s;
    top: 120px;
}

.float-icon:nth-child(4) {
    animation-delay: 1.5s;
    top: 180px;
}

.float-icon:nth-child(5) {
    animation-delay: 2s;
    top: 240px;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(-20px) rotate(10deg);
    }
}

/* Services Section - FIXED */
.services {
    padding: 100px 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-content {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.service-icon {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card:hover .service-name {
    color: var(--primary-color);
}

.service-desc {
    color: #6c757d;
    transition: all 0.3s ease;
    opacity: 1;
}

.service-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.95) 0%, rgba(37, 117, 252, 0.95) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:hover .service-details {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .service-content {
    opacity: 0;
    transform: translateY(-100%);
}

.service-details h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.internal-services {
    list-style: none;
    padding: 0;
}

.internal-services li {
    padding: 10px 0;
    color: white;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}

.service-card:hover .internal-services li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:hover .internal-services li:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:hover .internal-services li:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:hover .internal-services li:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.internal-services li i {
    color: #ffd700;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Why Choose Us */
.why-choose {
    padding: 100px 0;
    background: var(--light-color);
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid white;
}

.stars {
    color: #ffd700;
    margin-bottom: 15px;
}

/* Subscribe Section */
.subscribe {
    padding: 100px 0;
    background: var(--light-color);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-color);
}

.contact-info {
    background: var(--gradient);
    color: white;
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    width: 40px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid #444;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    color: #bbb;
}

/* Alert Overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.alert-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.alert-overlay.show .alert-content {
    transform: scale(1);
}

.alert-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .floating-service-icon {
        font-size: 1.8rem;
    }

    .service-card {
        min-height: auto;
    }

    .service-details {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 20px;
        background: transparent;
    }

    .service-details h3 {
        color: var(--primary-color);
    }

    .service-card:hover .service-content {
        opacity: 1;
        transform: none;
    }

    .service-card:hover .service-desc {
        opacity: 1;
    }

    .internal-services li {
        color: #6c757d;
    }

    .internal-services li i {
        color: var(--secondary-color);
    }

    .floating-icons {
        display: none;
    }

    .house-3d {
        width: 200px;
        height: 200px;
    }

    .house-base {
        width: 150px;
        height: 150px;
        left: 25px;
        top: 75px;
    }

    .house-roof {
        border-left-width: 100px;
        border-right-width: 100px;
        border-bottom-width: 70px;
        left: 0;
        top: 35px;
    }
}