/* =========================================
           1. CSS VARIABLES & RESET
           ========================================= */
:root {
    --primary: #7c3aed;       /* Purple */
    --secondary: #16a34a;     /* Green */
    --accent: #eab308;        /* Mustard Yellow */
    --light: #fefce8;
    --dark: #1e293b;
    --gray: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
           2. HEADER & NAVIGATION
           ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================
           3. HERO SECTION & ANIMATION
           ========================================= */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #e6dafb 0%, #d5c6f0 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* 2D Animation Area */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.anim-card {
    background: var(--white);
    width: 320px;
    height: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    animation: float 6s ease-in-out infinite;
}

/* Graph Lines Animation */
.graph-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    gap: 10px;
}

.bar {
    width: 100%;
    background: var(--secondary);
    border-radius: 5px 5px 0 0;
    animation: growBar 2s ease-out forwards;
    opacity: 0.8;
}

.bar:nth-child(1) {
    height: 30%;
    animation-delay: 0.2s;
}

.bar:nth-child(2) {
    height: 50%;
    animation-delay: 0.4s;
}

.bar:nth-child(3) {
    height: 40%;
    animation-delay: 0.6s;
}

.bar:nth-child(4) {
    height: 70%;
    animation-delay: 0.8s;
}

.bar:nth-child(5) {
    height: 60%;
    animation-delay: 1.0s;
}

.anim-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Floating Coins Animation */
.coin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
    z-index: 3;
}

.coin i {
    font-size: 0.8rem;
}

.coin-1 {
    top: 10%;
    right: 20%;
    animation: float 4s ease-in-out infinite 1s;
}

.coin-2 {
    bottom: 20%;
    left: 10%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.coin-3 {
    top: 40%;
    right: -10%;
    animation: float 4.5s ease-in-out infinite 1.5s;
}

/* Decor blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #bae6fd;
    top: -50px;
    right: -50px;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: #d1fae5;
    bottom: 50px;
    left: 50px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }
}

/* =========================================
           4. ABOUT PREVIEW
           ========================================= */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.02);
}

.about-text h3 {
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* =========================================
           5. WHY CHOOSE US
           ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #ecfdf5;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* =========================================
           6. SERVICES (TABS)
           ========================================= */
.services {
    background: var(--primary);
    color: var(--white);
}

.services .section-title h2 {
    color: var(--white);
}

.services .section-title p {
    color: #94a3b8;
}

.tabs-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(5px);
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* =========================================
           7. TESTIMONIALS
           ========================================= */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: #e2e8f0;
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================
           8. FAQ
           ========================================= */
.faq {
    background: #f1f5f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px;
    /* Arbitrary height for animation */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* =========================================
           9. NEWSLETTER & GET IN TOUCH
           ========================================= */
.contact-section {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    box-shadow: var(--shadow);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details div {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    color: var(--white);
    text-align: center;
}

.newsletter-form {
    max-width: 800px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.checkbox-group {
    grid-column: span 4;
    text-align: left;
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

/* =========================================
           10. FOOTER
           ========================================= */
footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.legal-links a {
    margin: 0 10px;
    cursor: pointer;
    text-decoration: underline;
}

/* =========================================
           11. MODALS & TOAST
           ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-left: 5px solid var(--secondary);
    min-width: 300px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--secondary);
    font-size: 1.5rem;
}

/* =========================================
           RESPONSIVE
           ========================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        z-index: 900;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .anim-card {
        width: 90%;
        height: 350px;
    }
}