/* Main Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* padding-top: 76px;  */
}

  /* Navbar */
    .navbar {
        background-color: white; /* Dark background */
        padding: 0.6rem 1rem;
    }
    .navbar-brand img {
        /* max-height: 170px;   Limit logo height */
        width: auto;
    }
    .navbar-nav .nav-link {
    color: black;
    font-weight: 500;
    margin: 0 6px;
    transition: color 0.3s ease;
    }
    .navbar-nav .nav-link:hover {
        color: #f4c542; /* Highlight color */
    }
    .navbar-toggler {
        border: none;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }


.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    padding: 0;
    margin: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23333' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav {
    padding: 0.5rem 0;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    /* color: rgba(255, 255, 255, 0.85) !important; */
    color: black;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    /* color: white !important; */
    color: black !important;
    transform: translateY(-1px);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--dark-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Call to Action Button */
.navbar .btn-light {
    background-color: white;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.navbar .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        /* background-color: var(--primary-color); */
        padding: 1rem;
        margin: 1rem -1rem 0;
        border-radius: 8px;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05);
        margin-left: 1rem;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
}

/* Fix for content being hidden behind fixed navbar */
main {
    margin-top: 1.5rem;
}

/* Hero Banner adjustments */
/* .hero-banner {
    margin-top: -76px;
    padding-top: 76px;
} */

/* Hero Banner */
.hero-banner {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 8rem 0;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Services Section */
#services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: white;
}

.service-icon i {
    font-size: 36px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .service-card {
        margin-bottom: 30px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 30px;
    }
}

@media (max-width: 767.98px) {
    #services {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
}

/* About Section */
#about {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-text h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.about-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-features {
    padding: 0;
    margin: 1.5rem 0;
    list-style: none;
}

.about-features li {
    padding: 0.4rem 0 0.4rem 1.8rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #555;
}

.about-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.about-cta {
    margin-top: 1.5rem;
}

.about-cta .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-cta {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    #about {
        padding: 3rem 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Contact Section */
#contact {
    padding: 5rem 0;
}

#contact h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
}

#contact .form-control {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

#contact .form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--secondary-color);
    width: 25px;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-links h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-banner {
        padding: 6rem 0;
        text-align: center;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    #about img {
        margin-top: 2rem;
    }
    
    .navbar-collapse {
        /* background-color: var(--primary-color); */
        padding: 1rem;
        margin: 1rem -1rem;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem;
    }
    
    .navbar-nav .nav-link:after {
        display: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    body {
        padding-top: 62px;
    }
    
    .hero-banner {
        margin-top: -62px;
        padding-top: 62px;
    }
}

@media (max-width: 767.98px) {
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        /* background-color: var(--primary-color); */
        padding: 1rem;
        margin: 1rem -1rem 0;
        border-radius: 8px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05);
        margin-left: 1rem;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
}

/* Ensure content isn't hidden behind fixed navbar */
body {
    /* padding-top: 76px; */
}

/* Adjust hero banner to account for fixed navbar */
.hero-banner {
    /* margin-top: -76px; */
    /* padding-top: 76px; */
}

@media (max-width: 991.98px) {
    body {
        padding-top: 62px;
    }
    
    .hero-banner {
        margin-top: -62px;
        padding-top: 62px;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Remove the old header styles that might be causing conflicts */
#header {
    display: none;
}
