/* ========== GLOBAL STYLES ========== */

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: var(--body-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Improved accessibility with focus states */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(13, 110, 253, 0.25);
    outline-offset: 2px;
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/* ========== NAVIGATION ========== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background-color: #e9f2ff;
    margin-top: -1.5rem;
}

.hero-section h1,
.page-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ========== FEATURES SECTION ========== */
.feature-box {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
}

/* ========== SERVICES SECTION ========== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* ========== TEAM SECTION ========== */
.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: #0d6efd;
    color: white !important;
}

/* ========== CONTACT SECTION ========== */
.contact-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 1.25rem;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

#contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background-color: #e9f2ff;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--dark-color);
}

.social-icons a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* ========== MEDIA QUERIES ========== */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .hero-section, .page-header {
        padding: 60px 0;
    }
    
    .hero-section h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .feature-box, .service-card, .team-member {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .service-icon, .feature-icon {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 2.5rem 1.5rem;
    }
    
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: 120px 0;
    }
    
    .navbar-nav .nav-link {
        margin-left: 0.5rem;
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
    
    .service-card:hover,
    .team-member:hover,
    .feature-box:hover {
        transform: translateY(-7px);
    }
}