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

:root {
    --primary-color: #106cb1; /* New Blue */
    --primary-hover-color: #0d5a9a; /* Darker Blue */
    --secondary-color: #4A5568; /* Dark Gray */
    --accent-color: #92be1f; /* New Green */
    --whatsapp-color: #25D366;
    --background-color: #F7FAFC;
    --card-bg-color: #FFFFFF;
    --text-color: #2D3748;
    --heading-color: #1A202C;
    --border-color: #E2E8F0;
    --white-color: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    background: linear-gradient(170deg, #F7FAFC, #EDF2F7);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.site-wrapper {
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

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


/* Navbar */
.navbar {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between logo and text */
    text-decoration: none;
}
.navbar .logo-img {
    height: 60px; /* Adjust logo height */
}
.navbar .logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white-color);
    transition: color 0.4s ease;
}

/* On scroll: make text dark */
.navbar.scrolled .logo-img {
    filter: none;
}
.navbar.scrolled .logo-text {
    color: var(--heading-color);
}

.navbar .btn-primary {
    background-color: #91bd1f;
}

.navbar .btn-primary:hover {
    background-color: #7da519; /* Darker green for hover */
}

.navbar .nav-links {
    display: flex;
    gap: 2rem;
}

.navbar .nav-links a {
    color: var(--white-color);
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.navbar.scrolled .nav-links a {
    color: var(--secondary-color);
    opacity: 1;
}

.navbar .nav-links a:hover, .navbar .nav-links a.active {
    color: var(--white-color);
    font-weight: 600;
    opacity: 1;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    padding-top: 0; /* Removed padding-top as navbar is transparent */
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: linear-gradient(rgba(16, 108, 177, 0.6), rgba(29, 37, 48, 0.7)), url('assets/hero-dashboard.png') no-repeat center center/cover;
    position: relative;
}

#hero .container {
    max-width: 800px;
}

.hero-content {
    max-width: 100%;
}

#hero h1, #hero p {
    color: var(--white-color);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0 2.5rem 0;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-image {
    max-width: 45%;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.features-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.features-image {
    flex-basis: 45%;
    perspective: 1000px; /* For 3D hover effect */
    animation: float 6s ease-in-out infinite; /* Floating animation */
}
.features-image img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
    transform: rotateY(-7deg) rotateX(10deg) scale(1.05); /* Default 3D tilt effect */
    filter: drop-shadow(5px 8px 15px rgba(0, 0, 0, 0.15));
}

.features-image:hover img {
    transform: rotateY(-8deg) rotateX(12deg) scale(1.08); /* Enhance effect on hover */
    filter: drop-shadow(8px 12px 20px rgba(16, 108, 177, 0.2));
}

.features-grid {
    flex-basis: 55%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}


/* How It Works Section */
#about {
    background-color: var(--white-color);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--card-bg-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step .step-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Stats Section */
#stats {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#stats h3, #stats p {
    color: var(--white-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Pricing Section */
#pricing {
    background-color: var(--white-color);
}

.pricing-card-single {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--primary-color);
}

.pricing-card-single h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.pricing-card-single .price-subtitle {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    color: var(--secondary-color);
}

.pricing-card-single .features-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-card-single .features-list ul {
    list-style: none;
    padding: 0;
}

.pricing-card-single .features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-card-single .features-list i {
    color: var(--accent-color);
    margin-right: 0.8rem;
}


/* Contact Section */
#contact {
    background-color: var(--white-color);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: center;
    gap: 3rem;
}

.contact-details .section-title, .contact-details .section-subtitle {
    text-align: left;
    margin: 0 0 1.5rem 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(16, 108, 177, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}

.contact-action-card {
    background: var(--card-bg-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-action-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-action-card p {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-block i {
    margin-right: 0.5rem;
}

.btn-form {
    background-color: var(--accent-color);
    color: var(--white-color);
}
.btn-form:hover {
    background-color: #7da519;
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white-color);
}
.btn-whatsapp:hover {
    background-color: #1ebe58;
}

/* Footer */
.footer {
    background-color: var(--heading-color);
    color: var(--background-color);
    padding: 4rem 0 0;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer .logo-img {
    height: 50px;
}

.footer .logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white-color);
}

.footer-about {
    margin-top: 1rem;
    max-width: 300px;
    color: var(--border-color);
}

.footer-col h3 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--border-color);
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col p {
    color: var(--border-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.footer-col p i {
    margin-right: 0.8rem;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer .social-links a {
    color: var(--border-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--border-color);
}

/* Mobile Nav */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white-color);
    transition: color 0.3s ease;
    z-index: 1001; /* Ensure it's clickable */
}

.navbar.scrolled .mobile-menu-toggle {
    color: var(--heading-color);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 92px; /* Adjust based on navbar height */
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--heading-color);
    padding: 1rem 2rem;
    text-align: center;
}

.mobile-nav a:hover {
    background-color: var(--background-color);
}

.mobile-nav .btn {
    margin: 1rem 2rem;
}

/* Scroll Animation */
.animated {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}
.fade-in-left {
    transform: translateX(-40px);
}
.fade-in-right {
    transform: translateX(40px);
}
.zoom-in {
     transform: scale(0.95);
}

.animated.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* CTA Section (formerly Stats) */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-section .container {
    max-width: 800px;
}

.cta-section .cta-title {
    color: var(--white-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-section .cta-subtitle {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-secondary {
    background: var(--white-color);
    color: var(--primary-color);
    font-weight: 600;
}

.cta-section .btn-secondary:hover {
    background: #eef2f7;
    transform: translateY(-2px);
}

/* Company About Section */
#company-about {
    background-color: var(--white-color);
}
.company-about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.company-about-image {
    perspective: 1000px;
}
.company-about-image img {
    width: 70%;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease, filter 0.4s ease;
    transform: rotateY(15deg) rotateX(10deg) scale(1.05);
    filter: drop-shadow(5px 8px 15px rgba(0, 0, 0, 0.2));
}
.company-about-image:hover img {
    transform: rotateY(18deg) rotateX(12deg) scale(1.08);
    filter: drop-shadow(8px 12px 20px rgba(16, 108, 177, 0.25));
}
.company-about-details .section-title,
.company-about-details .section-subtitle {
    text-align: left;
    margin-left: 0;
}
.company-about-details .section-subtitle {
    margin-bottom: 2rem;
}
.about-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.about-point {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.about-point i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}
.about-point h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.about-point p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Staggered Animation Delay */
.features-grid .feature-card, .pricing-grid .pricing-card {
    transition-delay: var(--stagger-delay);
}

/* Responsive */
@media(max-width: 992px) {
    h1 { font-size: 2.5rem; }

    .navbar .nav-links { display: none; }
    .navbar .desktop-btn { display: none; }
    .mobile-menu-toggle { display: block; }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 80%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .features-content, .company-about-wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    #hero {
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(146, 190, 31, 0.15); /* Accent color with opacity */
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: rgba(16, 108, 177, 0.1); /* Primary color with opacity */
    bottom: -200px;
    right: -200px;
}

/* Keyframes for Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Back to Site Button */
#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top-btn:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-5px);
}

#back-to-top-btn i {
    position: relative;
    z-index: 2;
}

/* Custom Tooltip */
#back-to-top-btn .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--heading-color);
    color: var(--white-color);
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#back-to-top-btn .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--heading-color);
}

#back-to-top-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
