/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #6d28d9;
    --secondary-color: #ec4899;
    --text-dark: #1e1b4b;
    --text-light: #7c7ea1;
    --bg-light: #faf5ff;
    --bg-white: #ffffff;
    --border-color: #e9d5ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}


body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    gap: 8px;
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    padding: 24px;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 16px;
}

.mega-menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mega-menu-column h4 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 8px;
}

.mega-menu-column a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.mega-menu-column a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-right {
    animation: fadeInRight 0.8s ease 0.6s backwards;
}

.dashboard-preview {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 14px;
    color: var(--text-light);
}

.balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

.stat-value.green {
    color: var(--primary-color);
}

.stat-value.blue {
    color: var(--secondary-color);
}

.dashboard-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 60px;
    gap: 8px;
}

.chart-bar {
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    flex: 1;
    animation: growBar 1s ease forwards;
}

/* Service Cards */
.service-cards {
    padding: 80px 0;
    background: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    align-items: start;
    gap: 16px;
}

.step-number {
    font-size: 32px;
    min-width: 60px;
    text-align: center;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose {
    padding: 80px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Detailed Services */
.detailed-services {
    padding: 80px 0;
    background: white;
}

.service-categories {
    max-width: 800px;
    margin: 0 auto;
}

.service-category {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.category-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-header:hover {
    background: var(--bg-light);
}

.category-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.category-header i {
    color: var(--text-light);
    transition: var(--transition);
}

.service-category.active .category-header i {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-category.active .category-content {
    max-height: 200px;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    padding: 0 24px 20px;
    gap: 12px;
}

.service-item {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
}

.service-item:hover {
    background: var(--primary-color);
    color: white;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials-carousel {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.testimonial-slide:not(.active) {
    display: none;
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-name {
    font-weight: 600;
    color: var(--text-dark);
}

.client-role {
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--text-light);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 16px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    display: none;
    background: #10b981;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.form-success i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-column p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #374151;
    border-radius: 6px;
    background: #374151;
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-buttons {
    display: flex;
    gap: 12px;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #374151;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.app-button:hover {
    background: var(--primary-color);
}

.app-button i {
    font-size: 20px;
}

.app-button small {
    display: block;
    font-size: 10px;
    opacity: 0.8;
}

.app-button span {
    font-weight: 600;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-newsletter {
    max-width: 400px;
}

.popup-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.popup-close:hover {
    background: var(--bg-light);
}

.popup-body {
    padding: 0 24px 24px;
}

.popup-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 8px;
}

.popup-body p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

.popup-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.newsletter-popup-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .mega-menu {
        min-width: 100%;
        left: -20px;
        right: -20px;
        border-radius: 0;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-carousel {
        padding: 0 16px;
    }
    
    .testimonial-slide {
        padding: 24px;
    }
    
    .dashboard-preview {
        padding: 16px;
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Success Animation */
@keyframes success {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success.show {
    display: block;
    animation: success 0.5s ease;
}