:root {
    --primary-color: #006e9f;
    --secondary-color: #4a4a4a;
    --accent-color: #f8f9fa;
    --text-dark: #2a2a2a;
    --text-light: #faf6f6;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'OFL Sorts Mill Goudy', serif;
}

.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand img {
    max-height: 60px;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
}

.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: var(--secondary-color);
    background-color: white;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.navbar.scrolled .nav-link.active {
    color: var(--secondary-color);
    background-color: var(--accent-color);
}

.hero {
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

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

.section-title {
    position: relative;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 20px 0;
}

.service-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.featured-image {
    height: 400px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.featured-image i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.partner-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

.about-img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Team Carousel */
#teamCarousel {
    position: relative;
    padding: 0 50px 50px;
    overflow: hidden;
}

#teamCarousel .carousel-inner {
    overflow: hidden;
}

#teamCarousel .carousel-item {
    overflow: hidden;
}

.team-card {
    padding: 20px 10px;
    overflow: hidden;
}

.team-headshot {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #ec60f0;
    position: relative;
}

#teamCarousel .team-headshot img,
.team-headshot img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.team-headshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.team-headshot-placeholder i {
    font-size: 5rem;
    color: #999;
    line-height: 1;
}

.team-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.team-title {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-team-info {
    background: none;
    border: 2px solid #ec60f0;
    color: #ec60f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-team-info:hover {
    background: #ec60f0;
    color: #fff;
    transform: scale(1.1);
}

.team-contact {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

/* Team Modal */
.team-modal-photo {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ec60f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.team-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.team-modal-photo .bi-person-circle {
    font-size: 6rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

#teamModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

#teamModal .team-name {
    font-size: 1.5rem;
}

#teamModal .team-title {
    font-size: 1rem;
    min-height: auto;
    display: block;
}

/* Carousel Controls */
.team-carousel-indicators {
    bottom: 10px;
}

.team-carousel-indicators button {
    background-color: #ec60f0 !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.35;
}

.team-carousel-indicators button.active {
    opacity: 1;
}

.team-carousel-control {
    width: 40px;
    height: 40px;
    background-color: #ec60f0;
    border-radius: 50%;
    top: 40%;
    opacity: 0.7;
}

.team-carousel-control:hover {
    opacity: 1;
}

.carousel-control-prev.team-carousel-control {
    left: 0;
}

.carousel-control-next.team-carousel-control {
    right: 0;
}

@media (max-width: 991.98px) {
    #teamCarousel {
        padding: 0 40px 45px;
    }

    .team-headshot {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }

}

@media (max-width: 575.98px) {
    #teamCarousel {
        padding: 0 35px 45px;
    }

    .team-headshot {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .team-headshot-placeholder i {
        font-size: 3.5rem;
    }
}

.career-item {
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#contact-form .form-control {
    border-radius: 0;
    padding: 15px;
    margin-bottom: 20px;
}

footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Animation for infinity scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.8);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-collapse .nav-link {
        color: var(--text-light);
    }
    
    .navbar-collapse .nav-link.active {
        color: var(--secondary-color);
        background-color: white;
    }
    
    .navbar.scrolled .navbar-collapse {
        background-color: #fff;
    }
    
    .navbar.scrolled .navbar-collapse .nav-link {
        color: var(--secondary-color);
    }
    
    .navbar.scrolled .navbar-collapse .nav-link.active {
        color: var(--secondary-color);
        background-color: var(--accent-color);
        font-weight: 600;
    }
    
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .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='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar.scrolled .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .navbar.scrolled .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='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .hero {
        height: auto;
        padding: 100px 0;
    }
}
