/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 20px;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
}

.mobile-cta {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 120px; /* Increased space above the main headline */
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    animation: float 6s ease-in-out infinite;
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    margin-bottom: 4rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.metric {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #f8fafc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 columns */
  gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Process Section */
.process {
    padding: 5rem 0;
    background: white;
}

.process-grid  {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 columns */
  gap: 2rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.step-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.step-details {
    list-style: none;
}

.step-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.step-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Case Studies Section */
.case-studies {
    padding: 5rem 0;
    background: #f8fafc;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-study-header {
    padding: 2rem 2rem 1rem;
}

.case-study-category {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.case-study-title {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: #1a1a1a;
}

.case-study-content {
    padding: 0 2rem 2rem;
}

.case-study-content p {
    margin-bottom: 1rem;
    color: #666;
}

.case-study-content h4 {
    margin: 1.5rem 0 1rem;
    color: #1a1a1a;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.result-label {
    font-size: 0.75rem;
    color: #666;
}

/* Analytics Section */
.analytics {
    padding: 5rem 0;
    background: white;
}

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

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.metric-info {
    margin-bottom: 1rem;
}

.metric-title {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
}

.metric-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    width: 0;
    transition: width 2s ease;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: white;
    min-height: 300px; /* Set a minimum height for charts */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.about-features {
    list-style: none;
}

.about-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #666;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

a.profile-link {
  text-decoration: none; /* no underline */
  color: inherit;        /* keep normal text color */
  display: block;        /* make the whole card clickable */
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 1rem;
}

.profile-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.profile-title {
    color: #666;
    margin-bottom: 1.5rem;
}

.profile-quote {
    font-style: italic;
    color: #666;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: white;
}

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

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-content {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
    border: none;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.author-title {
    color: #666;
    font-size: 0.875rem;
}

.author-company {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.contact-features {
    list-style: none;
}

.contact-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #666;
}

.contact-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.invalid-feedback {
    font-size: 14px;
    color: red;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group .form-control,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-description {
    color: #d1d5db;
    margin: 1rem 0;
    text-align: left;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #60a5fa;
}



.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero {
        padding-top: 150px; /* Adjusted for mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-card,
    .process-step,
    .case-study-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}



.chart-container canvas {
    height: 300px !important; /* Fixed height for charts */
    width: 100% !important;
}




/* Chart Responsiveness Fix */
.chart-container {
    position: relative;
    height: 400px; /* Fixed height for chart containers */
    width: 100%;
    margin-bottom: 2rem;
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important; /* Ensure canvas takes full width */
    height: 100% !important; /* Ensure canvas takes full height */
}

/* General Responsiveness Improvements */
@media (max-width: 1024px) {

        .mobile-menu-btn {
        display: flex;
    }

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


    .nav-menu,
    .nav-cta {
        display: none;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .services-grid, .process-grid, .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {

    .hero {
        padding-top: 150px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .services, .process, .case-studies, .testimonials, .contact {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .service-card, .process-step, .case-study-card, .testimonial-card {
        padding: 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile Menu Specific Styles */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    position: fixed;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    transform: translateY(0%);
}

.mobile-menu-btn {
    position: relative;
    z-index: 1001; /* Ensure button is above menu */
}

.hamburger {
    display: block;
}

.hamburger:nth-child(1) {
    transform-origin: top;
}

.hamburger:nth-child(3) {
    transform-origin: bottom;
}

.mobile-menu.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.d-none {
    display: none;
}

.alert-success {
    display: inline-block;
    padding: 30px;
    border-radius: 10px;
    color: #10b981;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #f8fafc;
    margin: 0 auto;
    text-align: center;
}


