/* ========================================
   Color Theme Variables
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385db;
    
    /* Secondary Colors */
    --secondary-color: #00c4a4;
    --secondary-dark: #00a88a;
    --secondary-light: #33d9ba;
    
    /* Accent Colors */
    --accent-orange: #ff8c42;
    --accent-purple: #7c5cdb;
    --accent-pink: #e84c89;
    
    /* Neutral Colors */
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-dark: #1a2332;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00c4a4 100%);
    --gradient-warm: linear-gradient(135deg, #ff8c42 0%, #e84c89 100%);
    --gradient-dark: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    /* color: var(--text-dark); */
    color: var(--text-light);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, #0052a3 0%, #00a88a 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* ========================================
   Dropdown Menu Styling
   ======================================== */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding: 50px 0 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 196, 164, 0.05) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 55px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 196, 164, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease;
}

.hero-section .lead {
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-section .d-flex {
    animation: slideInUp 0.8s ease 0.4s both;
}

.hero-section img {
    animation: slideInRight 0.8s ease 0.3s both;
    transition: transform 0.3s ease;
}

.hero-section img:hover {
    transform: scale(1.05);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Section Styling
   ======================================== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem 0 3rem;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   Features Section
   ======================================== */
#services {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========================================
   Team Section
   ======================================== */
.team-card {
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
    background: var(--light-bg);
}

.team-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ========================================
   Contact Form Section
   ======================================== */
#contact {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 196, 164, 0.05) 100%);
    padding: 80px 0;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.appointment-form {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
    margin-top: 1rem;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2332 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    margin-top: 80px;
}

footer h4,
footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color);
}

footer hr {
    opacity: 0.1;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    cursor: pointer;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Fade In Animation
   ======================================== */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple elements */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   Parallax Scrolling Effect
   ======================================== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* ========================================
   Testimonials Carousel
   ======================================== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border-radius: 50%;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-dark);
}

/* ========================================
   Badge Styles
   ======================================== */
.badge {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

/* ========================================
   Stats Section
   ======================================== */
.stat-box {
    text-align: center;
    padding: 2.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section::before,
    .hero-section::after {
        width: 300px;
        height: 300px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .appointment-form {
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .hero-section .btn {
        width: 100%;
    }

    footer {
        text-align: center;
    }
}

/* ========================================
   Dark Theme (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--dark-bg);
        color: var(--white);
    }

    .navbar {
        background-color: var(--dark-bg) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .form-control,
    .form-select {
        background-color: #1a2332;
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .service-card,
    .testimonial-card,
    .appointment-form {
        background-color: #1a2332;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .team-info {
        background-color: #1a2332;
    }

    p {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .back-to-top,
    .btn,
    form {
        display: none;
    }
}
:root {
    --primary-color: #2a6ebb;
    --secondary-color: #3a8dde;
    --accent-color: #ff6b35;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--dark-color) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 0;
}

/* Forms */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(42, 110, 187, 0.25);
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Appointment Form */
.appointment-form {
    margin-top: 2rem;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}


.cta {
    background: var(--gradient-primary);
}