:root {
    --primary: #6C63FF;
    --secondary: #3BCEAC;
    --accent: #FF6584;
    --dark: #2D3561;
    --light: #F8F9FE;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --green-gradient: linear-gradient(135deg, #0fd850 0%, #f9f047 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: var(--light);
}

/* Navbar */
.navbar {
    background: rgba(45, 53, 97, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    box-shadow: 0 5px 30px rgba(108, 99, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(45, 53, 97, 0.98);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-link {
    color: white !important;
    margin: 0 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

/* Banner */
.banner {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
    /* This accounts for fixed navbar height */
    padding: 80px 0;
}

.banner::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 206, 172, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.banner-content {
    z-index: 2;
}

.banner h1 {
    font-size: 4.5rem;
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.banner p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    animation: slideInLeft 1s 0.2s backwards;
    font-weight: 300;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-modern {
    background: white;
    color: var(--primary);
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    animation: slideInLeft 1s 0.4s backwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--secondary);
    color: white;
}

/* 3D Icon Card Model */
.icon-3d-card {
    width: 450px;
    height: 450px;
    position: relative;
    animation: float3d 4s ease-in-out infinite;
    perspective: 1000px;
}

@keyframes float3d {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-30px) rotateY(10deg);
    }
}

.card-3d-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cardRotate 20s linear infinite;
}

@keyframes cardRotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.card-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    top: 50%;
    left: 50%;
    margin-left: -150px;
    margin-top: -150px;
}

.card-face i {
    font-size: 5rem;
    color: white;
    margin-bottom: 20px;
}

.card-face h4 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.card-front {
    transform: translateZ(100px);
}

.card-back {
    transform: rotateY(180deg) translateZ(100px);
}

.card-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.card-right {
    transform: rotateY(90deg) translateZ(100px);
}

/* About Section - FIXED */
.about-section {
    padding: 120px 0;
    /* Normal padding instead of excessive padding */
    background: white;
    position: relative;
    /* Ensure proper stacking context */
    z-index: 1;
    /* Lower than navbar but above normal content */
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    /* Normal margin instead of excessive top margin */
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title h2::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--green-gradient);
    border-radius: 3px;
}

.about-icon {
    font-size: 4rem;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.about-box {
    text-align: center;
    padding: 40px;
    background: var(--light);
    border-radius: 20px;
    transition: all 0.4s;
    margin: 15px;
    border: 3px solid transparent;
}

.about-box:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.2);
}

.about-box h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Services - New Flip Card Effect */
.services-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.service-flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    margin: 20px 0;
}

.service-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 25px;
}

.service-flip-card:hover .service-flip-inner {
    transform: rotateY(180deg);
}

.service-flip-front,
.service-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-flip-front {
    background: white;
    border: 3px solid transparent;
    transition: border 0.3s;
}

.service-flip-card:hover .service-flip-front {
    border-color: var(--primary);
}

.service-flip-back {
    background: var(--purple-gradient);
    color: white;
    transform: rotateY(180deg);
}

.service-flip-icon {
    font-size: 5rem;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.service-flip-back i {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.service-flip-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-flip-desc {
    color: #666;
    font-size: 1rem;
}

.service-flip-back h4 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.service-flip-back ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-flip-back li {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-flip-back li:last-child {
    border-bottom: none;
}

.service-flip-back li i {
    font-size: 1rem;
    margin-right: 10px;
}

/* Why Choose Us */
.why-section {
    padding: 120px 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

.why-box {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px 0;
    transition: all 0.4s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.why-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.why-box:hover::before {
    left: 100%;
}

.why-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    transform: translateY(-10px);
}

.why-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

/* Testimonials */
.testimonials-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0fd850 0%, #f9f047 100%);
    position: relative;
}

.testimonial-card {
    background: white;
    border-radius: 25px;
    padding: 45px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.4s;
    border-top: 5px solid var(--primary);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.testimonial-card::before {
    content: '"';
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Subscribe Form */
.subscribe-section {
    padding: 120px 0;
    background: white;
}

.subscribe-form-container {
    background: var(--purple-gradient);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-control {
    border-radius: 15px;
    padding: 15px 25px;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.overlay-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 400px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.overlay-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* FAQ */
.faq-section {
    padding: 120px 0;
    background: var(--light);
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.3s;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: var(--light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.4s;
}

.faq-question.active .faq-icon {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s;
    padding: 0 30px;
    color: #666;
    line-height: 1.8;
}

.faq-answer.active {
    max-height: 600px;
    padding: 0 30px 25px 30px;
}

/* Contact */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-info {
    color: white;
}

.contact-info h3 {
    font-weight: 800;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-info-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-right: 25px;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 80px 0 30px;
}

.footer h5 {
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 1.3rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    font-size: 0.95rem;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.newsletter-input {
    display: flex;
    margin-top: 20px;
}

.newsletter-input input {
    flex: 1;
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
}

.newsletter-btn {
    border-radius: 25px ;
    border: none;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
}

.newsletter-btn:hover {
    background: var(--primary);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .icon-3d-card {
        width: 300px;
        height: 300px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .subscribe-form-container {
        padding: 30px;
    }

    .banner {
        margin-top: 70px;
        /* Adjust for mobile navbar height */
        padding: 60px 0;
    }
}