:root {
    --bs-primary: #2563eb;
    --bs-secondary: #0f172a;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand span {
    color: var(--bs-primary);
    font-weight: 700;
}

.hero-section {
    background: linear-gradient(to right, #0f172a, #1e293b);
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--bs-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.team-img-container {
    height: 400px;
    width: 100%;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
}

.team-member img {
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

.team-member:hover img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

.feature-icon {
    font-size: 2rem;
    color: var(--bs-primary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--bs-primary);
    transform: translateY(-3px);
}

footer {
    background-color: var(--bs-secondary);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--bs-primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--bs-primary);
}

#back-to-top {
    display: none;
    transition: opacity 0.3s ease;
    width: 45px;
    height: 45px;
    text-align: center;
    z-index: 999;
}

.text-white-50.hover-white {
    transition: color 0.3s ease;
}

.text-white-50.hover-white:hover {
    color: #fff !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .section-title, .hero-section h1, .hero-section p {
    animation: fadeIn 0.8s ease forwards;
}

.project-image{
    height: 250;
    object-fit: fill;
    object-position: center;
}

/* Responsive improvements */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .display-4 {
        font-size: calc(1.4rem + 1.5vw);
    }
    
    .display-5 {
        font-size: calc(1.3rem + 1.2vw);
    }
    
    .lead {
        font-size: 1rem;
    }
}