/* Base Styles and Variables */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1558b7;
    --primary-light: #c6dafc;
    --secondary-color: #34a853;
    --accent-color: #ff7043;
    --danger-color: #ea4335;
    --warning-color: #fbbc05;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: #212529;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Custom Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

/* Header Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding-bottom: 12rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p.lead {
    font-size: 1.5rem;
    color: #e3eaf6;
}

.hero-visual img.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(26,115,232,0.15));
}

.hero-stats-card {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 3;
}

.bg-glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(26,115,232,0.10);
}

.hero-bg-shape {
    z-index: 1;
    pointer-events: none;
}

.mt-hero-stats {
    margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
    .hero {
        padding-bottom: 12rem;
    }
    .hero-stats-card {
        position: static !important;
        transform: none !important;
        margin-top: 2.5rem;
        width: 100% !important;
        max-width: 100% !important;
    }
    .mt-hero-stats {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .hero-content p.lead {
        font-size: 1.1rem;
    }
    .hero {
        padding-bottom: 10rem;
    }
    .hero-visual img.hero-image {
        max-height: 180px;
    }
    .hero-stats-card {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    .bg-glass {
        padding: 1.5rem 0.5rem !important;
    }
    .mt-hero-stats {
        margin-top: 1rem;
    }
}

/* Services Section */
.service-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.service-icon {
    display: inline-block;
    height: 80px;
    width: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    background: #eaf3fb !important;
    color: #1a73e8 !important;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    color: #1a73e8 !important;
    font-size: 2rem;
}

/* Feature Card Styles */
.feature-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.feature-icon {
    display: inline-block;
    height: 60px;
    width: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(26, 115, 232, 0.1);
    background: #eaf3fb !important;
    color: #1a73e8 !important;
}

.feature-icon i {
    color: #1a73e8 !important;
    font-size: 2rem;
}

/* Partner Logo Styles */
.partner-logo {
    height: 100px;
    transition: transform var(--transition-speed);
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 70px;
    transition: opacity var(--transition-speed);
}

.partner-logo:hover img {
    opacity: 1 !important;
}

/* Success Story Card Styles */
.success-story-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-radius: var(--border-radius);
}

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

.success-icon {
    display: inline-block;
    height: 60px;
    width: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(26, 115, 232, 0.1);
    background: #eaf3fb !important;
    color: #1a73e8 !important;
}

.success-icon i {
    color: #1a73e8 !important;
    font-size: 2rem;
}

/* How It Works Section */
.process-step {
    position: relative;
    padding: 1rem;
}

.process-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-speed);
}

.process-step:hover .process-number {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.process-step::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--medium-gray);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

/* Testimonials Section */
.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 2rem;
}

.testimonial-text::before, .testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    line-height: 1;
}

.testimonial-text::before {
    top: -0.5rem;
    left: 0;
}

.testimonial-text::after {
    bottom: -2rem;
    right: 0;
}

/* Quote Request Modal */
.step-indicators {
    position: relative;
}

.step-indicator {
    text-align: center;
    z-index: 2;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--medium-gray);
    color: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
    transition: all var(--transition-speed);
}

.step-label {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--dark-gray);
}

.step-indicator.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-indicator.completed .step-number {
    background-color: var(--secondary-color);
    color: white;
}

/* Form Styling */
.form-check.p-3 {
    transition: all var(--transition-speed);
}

.form-check.p-3:hover {
    background-color: var(--light-gray);
}

.form-check-input:checked ~ .form-check-label {
    font-weight: 500;
}

/* Word Count Display */
.word-count-display {
    transition: all var(--transition-speed);
}

/* Animation for Price Updates */
@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(26, 115, 232, 0.1); }
    100% { background-color: transparent; }
}

.highlight-change {
    animation: highlight 1s ease;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-gray);
}

.social-icons a {
    transition: transform var(--transition-speed);
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Statistics bar */
.stat-icon {
    opacity: 0.8;
    transition: transform var(--transition-speed);
}

.stat-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Experience section */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* CTA section */
.cta .card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: transform var(--transition-speed);
}

.cta .card:hover {
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .process-step::after {
        display: none;
    }
    
    .step-label {
        display: none;
    }
    
    .step-indicators {
        margin-bottom: 2rem;
    }

    .partner-logo {
        height: 70px;
    }

    .partner-logo img {
        max-height: 40px;
    }

    .hero {
        padding: 3rem 0;
    }

    .testimonial-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Admin Dashboard Styles */
.admin-sidebar {
    min-height: 100vh;
    background-color: var(--dark-gray);
}

.admin-menu-item {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    transition: all var(--transition-speed);
}

.admin-menu-item:hover, .admin-menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.admin-menu-item i {
    margin-right: 0.75rem;
}

.admin-content {
    padding: 2rem;
}

.stat-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* .stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
} */

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(26, 115, 232, 0.05);
}

/* Status Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Stats Bar Bridge Section Styles */
.stats-bridge-section {
    position: relative;
    z-index: 3;
    background: transparent;
    padding: 0;
}
.hero-stats-card {
    position: relative;
    margin-top: -4rem;
    z-index: 4;
    box-shadow: 0 8px 32px rgba(26,115,232,0.10);
}
@media (max-width: 991.98px) {
    .hero-stats-card {
        margin-top: -2.5rem;
    }
}
@media (max-width: 767.98px) {
    .hero-stats-card {
        margin-top: 1rem;
    }
}
.hero {
    padding-bottom: 6rem;
}

/* Modern Section Backgrounds */
.bg-gradient-blue {
    background: linear-gradient(135deg, #eaf3fb 0%, #f6fafd 100%);
}
.bg-gradient-blue-light {
    background: linear-gradient(135deg, #f6fafd 0%, #eaf3fb 100%);
}
.bg-light-gray {
    background: #f6f8fa;
}

/* Section Divider Styles */
.section-divider {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
}
.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}
.section-divider-top {
    margin-top: -1px;
}
.section-divider-bottom {
    margin-bottom: -1px;
}

/* Card and Icon Enhancements */
.card {
    border-radius: 1.25rem;
    box-shadow: 0 2px 16px rgba(26,115,232,0.06);
}
.service-icon, .feature-icon, .success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--primary-light, #eaf3fb);
    color: var(--primary-color, #1a73e8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(26,115,232,0.07);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

/* Responsive for Dividers and Backgrounds */
@media (max-width: 991.98px) {
    .section-divider svg {
        height: 40px;
    }
}
@media (max-width: 767.98px) {
    .section-divider svg {
        height: 24px;
    }
    .section-title {
        font-size: 1.4rem;
    }
}