:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

html[data-bs-theme="dark"] {
    color-scheme: dark;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    transition: background-color var(--transition), color var(--transition);
}

html[data-bs-theme="dark"] body {
    background-color: #1a1a1a;
    color: #ffffff;
}

.navbar {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: background-color var(--transition);
}

html[data-bs-theme="dark"] .navbar {
    background: #252525 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: color var(--transition);
}

html[data-bs-theme="dark"] .navbar-brand {
    color: #ffffff !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

html[data-bs-theme="dark"] .nav-link {
    color: #ffffff !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    color: white;
    padding: 100px 0;
    text-align: center;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    color: white !important;
}

.btn-primary-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    color: white !important;
}

.btn-primary-custom:focus,
.btn-primary-custom:active {
    color: white !important;
    background: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: color var(--transition);
}

html[data-bs-theme="dark"] .section-title {
    color: #ffffff;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition);
    height: 100%;
}

html[data-bs-theme="dark"] .service-card {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #ffffff;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
    border-color: var(--secondary-color);
}

html[data-bs-theme="dark"] .service-card:hover {
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 1rem;
}

.feature-item i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.badge-pill {
    display: inline-block;
    padding: 0.7rem 1.2rem !important;
    font-size: 0.95rem !important;
    border-radius: 50px !important;
    background-color: var(--bg-light) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--secondary-color) !important;
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    transition: background-color var(--transition);
}

html[data-bs-theme="dark"] .footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: background-color var(--transition), color var(--transition);
}

html[data-bs-theme="dark"] .contact-info {
    background: #2a2a2a;
    color: #ffffff;
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 8px;
    transition: border-color 0.3s, background-color var(--transition), color var(--transition);
}

html[data-bs-theme="dark"] .form-control {
    background-color: #333;
    border-color: #444;
    color: #ffffff;
}

html[data-bs-theme="dark"] .form-control::placeholder {
    color: #aaa;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

html[data-bs-theme="dark"] .form-control:focus {
    background-color: #333;
    color: #ffffff;
}

#darkModeToggle {
    color: var(--text-dark) !important;
    transition: color var(--transition) !important;
}

html[data-bs-theme="dark"] #darkModeToggle {
    color: #ffffff !important;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.search-bar-wrapper input {
    border: 2px solid var(--secondary-color) !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1) !important;
    transition: all var(--transition);
}

.search-bar-wrapper input:focus {
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary-custom {
    transition: all var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Carousel Styling */
.carousel {
    margin-bottom: 2rem;
}

.carousel-indicators {
    margin-bottom: 1.5rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    transition: all var(--transition);
    opacity: 0.5;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.3);
}

.carousel-indicators button:hover {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    filter: invert(1);
    opacity: 0.7;
    transition: all var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-inner {
    padding: 1rem 0;
}

.carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    padding: 1rem 0;
}

/* Dark mode text colors for all elements */
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] p,
html[data-bs-theme="dark"] label,
html[data-bs-theme="dark"] li,
html[data-bs-theme="dark"] span,
html[data-bs-theme="dark"] a {
    color: #ffffff;
}

html[data-bs-theme="dark"] a {
    color: #64b5f6;
    transition: color var(--transition);
}

html[data-bs-theme="dark"] a:hover {
    color: #90caf9;
}

html[data-bs-theme="dark"] hr {
    border-color: #444;
}

/* Dark mode for light background sections (bg-light) */
html[data-bs-theme="dark"] .bg-light {
    background-color: #2a2a2a !important;
}

/* Brand colors for CTA sections */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Dark mode for sections with default/white background */
html[data-bs-theme="dark"] section:not(.bg-primary) {
    background-color: #1a1a1a !important;
}

html[data-bs-theme="dark"] .bg-primary {
    background-color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .feature-item {
        font-size: 0.95rem;
    }
}