:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --light-bg: #ECF0F1;
    --dark-text: #2C3E50;
    --light-text: #7F8C8D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improve image rendering quality globally */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 0;
    margin: 0;
    background: none;
    margin-top: 80px; /* Add space for fixed header */
}

#heroCarousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-inner {
    width: 100%;
    height: 70vh;
    will-change: transform;
}

/* Optimize carousel performance */
.carousel-item {
    width: 100%;
    height: 70vh;
    will-change: transform;
    backface-visibility: hidden;
}

.carousel-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.carousel-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: inline-block;
}

.carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 2rem;
    background: rgba(0,0,0,0.6); /* Darker overlay for better readability */
    border-radius: 0;
    max-width: 100%;
    text-align: center;
    z-index: 10;
}

.carousel-caption h1 {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.carousel-caption p {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.carousel-caption img {
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: inline-block;
}

/* Button styles */
.btn-primary-custom {
    background: var(--accent-color) !important;
    border: none !important;
    padding: 12px 25px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    margin: 0 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.btn-primary-custom:hover {
    background: #C0392B !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-outline-custom {
    border: 2px solid white !important;
    color: white !important;
    padding: 12px 25px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    margin: 0 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.btn-outline-custom:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
    border-color: white !important;
}

.cta-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

/* Carousel controls styling */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    color: white;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    opacity: 1;
    color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 30px 30px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255,255,255,0.5) !important;
    border: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
    box-sizing: border-box !important;
}

.carousel-indicators [data-bs-target].active {
    background-color: white !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    transform: scale(1.1) !important;
}

.carousel-indicators button {
    background-color: rgba(255,255,255,0.5) !important;
    border: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
    box-sizing: border-box !important;
}

.carousel-indicators button.active {
    background-color: white !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    transform: scale(1.1) !important;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 70px; /* Smaller margin for mobile */
    }
    
    .carousel-caption {
        padding: 2rem 1rem;
    }
    
    .carousel-caption img {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .carousel-logo {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-item,
    .carousel-img {
        height: 50vh;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: high-quality;
        -ms-interpolation-mode: bicubic;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        margin: 5px !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    .cta-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-bg);
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-logo {
    width: 220px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    padding: 20px;
    object-fit: contain;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info {
    padding: 40px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--warning-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: #1A252F;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h5 {
    color: var(--warning-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--warning-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--warning-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation styles for variety */
.animate-on-scroll.slide-left {
    transform: translateX(-30px);
}

.animate-on-scroll.slide-right {
    transform: translateX(30px);
}

.animate-on-scroll.fade-in {
    transform: scale(0.95);
}

.animate-on-scroll.animated.slide-left,
.animate-on-scroll.animated.slide-right,
.animate-on-scroll.animated.fade-in {
    transform: translateX(0) scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        margin: 5px 0;
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}