@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Colors */
    --primary: #3D4FE0;
    --primary-dark: #2A3ABF;
    --primary-light: #EEF0FF;
    --text-dark: #1A1A1A;
    --text-gray: #52525B;
    --bg-light: #F8FAFF;
    --white: #FFFFFF;
    --border-color: rgba(226, 232, 240, 0.8);
    
    /* Spacing */
    --section-padding: 100px;
    --container-max-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
.text-primary { color: var(--primary); }
.text-gray { color: var(--text-gray); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(61, 79, 224, 0.2);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #E2E4FF;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 80px;
}

header.scrolled .nav-container {
    height: 60px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto; /* Push everything else to the right */
}

.logo span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-right: 32px; /* Add margin to separate from CTA */
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-gray);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 3; /* Ensure it stays before hamburger if needed */
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    margin-left: 16px; /* Space from CTA */
    order: 4;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(61, 79, 224, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(61, 79, 224, 0.03), transparent);
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Stats Section */
.stats {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Section Common Styles */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-gray);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-stats {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(61, 79, 224, 0.3);
}

.about-stats .count {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    height: 100%;
}

.testimonial-rating {
    color: #FBBF24;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.user-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 14px;
    color: var(--text-gray);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-primary {
    background-color: var(--white);
    color: var(--primary);
}

.btn-cta-primary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta-outline {
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-cta-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.info-content p {
    color: var(--text-gray);
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    margin-bottom: 24px;
}

.footer-desc {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

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

.footer-links ul li a {
    color: var(--text-gray);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links { gap: 20px; }
    .nav-cta { gap: 10px; }
    .logo { font-size: 18px; }
    .nav-links a { font-size: 14px; }
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .hero { padding-top: 140px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Header optimization for tablet */
    .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
    
    /* CTA stacking on mobile */
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    /* Hide nav links earlier or more aggressively to avoid overlap */
    .nav-links, .nav-cta .btn-outline { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    .nav-links, .nav-cta .btn { display: none; }
    .hamburger { display: flex; }
    .nav-container { height: 70px; }
    .hero h1 { font-size: 40px; }
    .services-grid, .testimonials-grid, .gallery-grid, .footer-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 32px; }
    .hero-actions { flex-direction: column; }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
