/* Color Variables */
:root {
    --primary-color: #4287f5;
    --primary-light: #6ba3f7;
    --primary-dark: #1a5ff0;
    --secondary-color: #42f581;
    --secondary-light: #6ff7a3;
    --secondary-dark: #1df35f;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --muted-color: #6c757d;
    --success-color: #42f581;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4287f5 0%, #6ba3f7 100%);
    --gradient-secondary: linear-gradient(135deg, #42f581 0%, #6ff7a3 100%);
    --gradient-success: linear-gradient(135deg, #42f581 0%, #1df35f 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Fonts */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 76px;
}

html {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Custom Bootstrap Colors */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-success);
    filter: brightness(1.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

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

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

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-primary-subtle {
    background-color: rgba(66, 135, 245, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(66, 245, 129, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(66, 135, 245, 0.05) 0%, rgba(66, 245, 129, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f0f0f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

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

.hero-card {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-stats h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.badge {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
}

/* Floating Elements */
.hero-floating-elements {
    position: relative;
    height: 300px;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    width: 120px;
    text-align: center;
    font-size: 0.75rem;
}

.floating-1 {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.floating-2 {
    top: 120px;
    left: 20px;
    animation-delay: 2s;
}

.floating-3 {
    bottom: 20px;
    right: 80px;
    animation-delay: 4s;
}

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

/* Step Cards */
.step-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-color) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

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

/* Forms */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 135, 245, 0.25);
}

.form-control-lg, .form-select-lg {
    padding: 16px 20px;
    font-size: 1.1rem;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

/* Utility Classes */
.rounded-3 {
    border-radius: var(--border-radius) !important;
}

.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    .floating-element {
        width: 100px;
        font-size: 0.7rem;
    }
    
    .step-card, .service-card, .contact-card, .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    /* Navbar fixes for mobile */
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header, .modal-body {
        padding: 1.5rem;
    }
    
    /* Prevent horizontal overflow on small screens */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Fix navbar buttons spacing */
    .navbar-nav .nav-item .btn {
        margin: 0.125rem 0;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* Footer */
footer {
    background: var(--gradient-dark) !important;
}

footer .social-links a {
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

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