/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    --primary: #1d4ed8;
    --primary-hover: #1e3a8a;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

.text-center { text-align: center; }
.text-yellow { color: #f59e0b; }
.text-green { color: #10b981; }

.section {
    padding: 60px 0;
}

.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }

.section-header {
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--secondary);
    background-color: var(--bg-light);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Ensure dynamic logo handles sizes correctly */
.brand-logo-link img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 90px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f1f5f9 0%, var(--bg-white) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.6rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero UI Cards (Glassmorphism) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.main-ui-card {
    width: 100%;
    max-width: 340px;
    height: 400px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.ui-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.ui-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
}

.ui-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding: 0 10px;
}

.bar-chart {
    display: flex;
    width: 100%;
    height: 200px;
    align-items: flex-end;
    justify-content: space-between;
}

.bar-chart .bar {
    width: 45px;
    height: 100%;
    background-color: var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.bar-chart .fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--primary);
    border-radius: 8px;
    animation: growUp 1.5s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.bar-chart .bar:nth-child(2) .fill { animation-delay: 0.2s; background-color: var(--accent); }
.bar-chart .bar:nth-child(3) .fill { animation-delay: 0.4s; background-color: var(--secondary); }
.bar-chart .bar:nth-child(4) .fill { animation-delay: 0.6s; background-color: #10b981; }

@keyframes growUp {
    to { transform: scaleY(1); }
}

.float-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: bounceSlow 4s ease-in-out infinite alternate;
}

.float-card .icon-wrap {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.float-data h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2px;}
.float-data span { font-size: 1.5rem; font-weight: 700;}

@keyframes bounceSlow {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.bg-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* ==========================================================================
   Layout Grids
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   About Split Layout
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.feature-list {
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 1.1rem;
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.step-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid var(--border-color);
}

.step-item h3 { margin-bottom: 16px; font-size: 1.3rem;}
.step-item p { color: var(--text-muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}
.icon-wrapper.blue { background: rgba(29, 78, 216, 0.1); color: var(--primary); }
.icon-wrapper.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-wrapper.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-wrapper.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.icon-wrapper.teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.icon-wrapper.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.review-card .stars {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-dark);
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.reviewer .avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.reviewer h4 { margin-bottom: 2px; color: var(--secondary); font-size: 1rem; }
.reviewer span { color: var(--text-muted); font-size: 0.85rem; }

/* Swiper Custom Navigation */
.testimonial-swiper {
    padding: 10px 10px 50px 10px;
}
.custom-swiper-nav {
    background: var(--bg-white);
    color: var(--primary) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.custom-swiper-nav:hover {
    background: var(--primary);
    color: var(--bg-white) !important;
    transform: scale(1.1);
}
.custom-swiper-nav::after {
    font-size: 1.2rem !important;
    font-weight: 800;
}
.swiper-button-prev { left: -15px !important; }
.swiper-button-next { right: -15px !important; }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg-white);
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-question .icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-question {
    background: var(--bg-light);
}

.faq-item.active .icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px; /* arbitrary max height for animation */
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.cta-text h2 {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 550px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-white);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-logo i { color: var(--primary); }

.brand-col p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating Contact Buttons
   ========================================================================== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.phone {
    background-color: var(--primary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .split-layout, .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin-top: 10px;
        height: auto;
    }
    
    .hero-title { font-size: 3rem; }
    
    .hero-actions, .cta-btn-group, .feature-list li {
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        flex-direction: column;
        padding: 50px 30px;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    
    .float-card {
        display: none; /* Hide floating UI elements on small screens to prevent overflow */
    }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links, .contact-info li, .footer-logo { justify-content: center; }
    .brand-col p { margin: 0 auto 24px; }
    .contact-info li { word-break: break-word; flex-wrap: wrap; }
    
    .custom-swiper-nav {
        display: none !important;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}
