* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-blue: #0037ae; --secondary-blue: #00329d; --accent-teal: #00b3ad;
    --dark-navy: #08172e; --light-gray: #f8f9fa; --white: #ffffff; --text-gray: #666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1); --gradient: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--dark-navy); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--white); box-shadow: var(--shadow); position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease; }
.header-top { background: var(--gradient); color: var(--white); padding: 10px 0; font-size: 14px; }
.header-info { display: flex; justify-content: space-between; align-items: center; }
.info-item { display: flex; align-items: center; gap: 10px; }
.info-item i { font-size: 16px; opacity: 0.9; }
.navbar { padding: 15px 0; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.nav-menu { display: flex; list-style: none; gap: 40px; }
.nav-menu a { text-decoration: none; color: var(--dark-navy); font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav-menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--accent-teal); transition: width 0.3s ease; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-blue); }
.appointment-btn { background: var(--gradient); color: var(--white); padding: 12px 25px; border: none; border-radius: 25px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 55, 174, 0.3); }
.appointment-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 55, 174, 0.4); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--dark-navy); cursor: pointer; }

/* Hero Section with Background Images */
.hero { 
    position: relative;
    height: 100vh; 
    display: flex; 
    align-items: center; 
    color: var(--white); 
    text-align: left; 
    margin-top: 140px; 
    overflow: hidden;
}

/* Hero Background Slider */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.hero-background-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 55, 174, 0.3) 0%, rgba(0, 123, 255, 0.2) 100%) !important;
    z-index: 2;
}

/* Hero Content */
.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content { 
    max-width: 600px; 
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 10;
}

.hero-subtitle { font-size: 18px; font-weight: 600; color: var(--accent-teal); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-description { font-size: 18px; margin-bottom: 30px; opacity: 0.9; line-height: 1.8; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* Hero Navigation Dots */
.hero-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot.active {
    background: var(--accent-teal);
    border-color: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-primary { background: var(--accent-teal); color: var(--white); padding: 15px 30px; border: none; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; }
.btn-secondary { background: transparent; color: var(--white); padding: 15px 30px; border: 2px solid var(--white); border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 179, 173, 0.4); }
.btn-secondary:hover { background: var(--white); color: var(--primary-blue); }

/* Sections */
.section { padding: 80px 0; }
.features { 
    background: var(--light-gray);
    padding: 80px 0;
}
.services { background: var(--white); }
.team { background: var(--light-gray); }
.testimonials { background: var(--white); }
.contact { background: var(--dark-navy); color: var(--white); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; color: var(--dark-navy); margin-bottom: 20px; }
.section-title p { font-size: 18px; color: var(--text-gray); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Grid layouts */
.features-grid, .services-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.feature-card, .service-card, .team-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; text-align: center; }
.feature-card:hover, .service-card:hover, .team-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

/* Updated Features Section - Simplified (no background images) */
.feature-card { 
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-content {
    padding: 30px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Updated section title colors for features */
.features .section-title h2 {
    color: var(--dark-navy);
}

.features .section-title p {
    color: var(--text-gray);
}

/* Service specific */
.service-image { 
    width: 100%; 
    height: 200px; 
    overflow: hidden;
    position: relative;
}
.service-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center;
    transition: transform 0.3s ease;
}
.service-card:hover .service-image img {
    transform: scale(1.05);
}
.service-content { padding: 30px; }
.service-title { font-size: 22px; font-weight: 700; margin-bottom: 15px; color: var(--dark-navy); }
.service-description { color: var(--text-gray); line-height: 1.7; }
.service-link { color: var(--primary-blue); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s ease; margin-top: 15px; }
.service-link:hover { color: var(--accent-teal); }

/* Team specific */
.team-image { 
    width: 100%; 
    height: 300px; 
    overflow: hidden;
    position: relative;
}
.team-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center;
    transition: transform 0.3s ease;
}
.team-card:hover .team-image img {
    transform: scale(1.1);
}
.team-info { padding: 30px; }
.team-name { font-size: 22px; font-weight: 700; margin-bottom: 15px; color: var(--dark-navy); }
.team-role { color: var(--primary-blue); font-weight: 600; margin-bottom: 15px; }

/* Testimonials */
.testimonial-slider { max-width: 800px; margin: 50px auto 0; text-align: center; }
.testimonial-card { background: var(--light-gray); padding: 40px; border-radius: 20px; margin: 0 20px; }
.testimonial-text { font-size: 18px; line-height: 1.8; color: var(--dark-navy); margin-bottom: 30px; font-style: italic; }
.testimonial-author { font-weight: 700; color: var(--primary-blue); font-size: 18px; }
.testimonial-rating { color: #ffc107; font-size: 20px; margin-bottom: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { width: 50px; height: 50px; background: var(--accent-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-details h4 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.contact-details p { opacity: 0.9; line-height: 1.6; }
.contact-form { display: grid; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea { padding: 15px; border: none; border-radius: 10px; font-size: 16px; width: 100%; box-sizing: border-box; }
.contact-form textarea { resize: vertical; font-family: inherit; }

/* Alerts */
.alert { padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
.footer { background: #000; color: var(--white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--accent-teal); }
.footer-section p, .footer-section a { color: #ccc; text-decoration: none; line-height: 1.8; }
.footer-section a:hover { color: var(--accent-teal); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent-teal); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #999; }

/* Admin link */
.admin-link { position: fixed; bottom: 20px; right: 20px; background: var(--primary-blue); color: white; padding: 10px 15px; border-radius: 25px; text-decoration: none; font-size: 14px; z-index: 100; opacity: 0.7; transition: opacity 0.3s; }
.admin-link:hover { opacity: 1; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow); }
    .nav-menu.active { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .section-title h2 { font-size: 2rem; }
    .features-grid, .services-grid, .team-grid { grid-template-columns: 1fr; }
    .header-info { flex-direction: column; gap: 10px; text-align: center; }
    .navbar { flex-wrap: wrap; }
    .team-image { height: 250px; }
    .feature-image { height: 150px; }
    .hero {
        margin-top: 120px;
        height: 80vh;
    }
    
    .hero-navigation {
        bottom: 20px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .container { padding: 0 15px; }
    .team-image { height: 200px; }
    .feature-image { height: 120px; }
    .hero {
        height: 70vh;
    }
}