:root {
    --primary-color: #0d6efd;
    --dark-blue: #0a58ca;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --text-light: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 76px;
}

/* Remove padding-top for pages with hero-section */
body:has(.hero-section),
.index-page {
    padding-top: 0;
}

/* Ensure content is not hidden behind fixed navbar */
html {
    scroll-padding-top: 100px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 1rem 0;
}

.navbar-brand {
    /* font-size: 1.5rem; */
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #0d1b2a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

/* Hero section text animations */
.hero-section h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead {
    animation: fadeInUp 1s ease-out;
}

.hero-section .btn {
    animation: fadeInUp 1.2s ease-out;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero section responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 76px);
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
    
    .hero-section .btn-lg {
        min-width: 100% !important;
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    .hero-section .badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem !important;
    }
}

/* KPI Section */
.kpi-item {
    padding: 2rem 1rem;
    transition: transform 0.3s;
}

.kpi-item:hover {
    transform: translateY(-5px);
}

.counter {
    font-size: 3rem;
    color: var(--primary-color);
}

/* KPI Section text visibility on dark background */
.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: #ffffff !important;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Better text contrast on dark backgrounds */
.bg-dark p,
.bg-dark li {
    color: rgba(255, 255, 255, 0.9);
}

.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 10rem 0 4rem;
    color: white;
    text-align: center;
    margin-top: -76px;
    padding-top: calc(76px + 6rem);
    
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

/* Ensure first content section has proper spacing */
.content-section:first-of-type {
    padding-top: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-bg);
}

/* Feature Box */
.feature-box {
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Map Section */
.map-container {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Brand Logos */
.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.brand-logo {
    width: 150px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    transition: all 0.3s;
}

.brand-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
}

.process-step:last-child::after {
    display: none;
}

/* Footer improvements */
footer {
    position: relative;
    z-index: 1;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s;
}

footer a.text-muted:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding-top: calc(76px + 4rem);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improve link hover states */
a.text-white-50:hover {
    color: var(--primary-color) !important;
}
