* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00AEEF;
    --secondary-color: #0093CB;
    --accent-color: #EFF9FF;
    --header-blue: #00AEEF;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #F9FCFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 85px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header Bar */
.top-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-right {
    display: flex;
    gap: 2rem;
}

.header-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-item i {
    font-size: 1rem;
}

/* Navigation */
.navbar {
    background: rgba(234, 246, 255, 0.85);
    /* Proper transparency for glass effect */
    backdrop-filter: blur(12px);
    /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Soft, premium shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.brand-text {
    line-height: 1;
}

.brand-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #5a6b80;
    /* Softer, professional text color */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.book-now-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
    white-space: nowrap;
}

.book-now-btn.mobile-floating-btn {
    display: none;
}

.book-now-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    /* Initial background will be set by JS or fallback */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('assets/images/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 20px 100px;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    transition: background-image 0.8s ease-in-out;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.schedule-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2.5rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.4);
}

.schedule-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.feature-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.feature-dot.green {
    background: #48BB78;
}

.feature-dot.blue {
    background: var(--primary-color);
}

/* Hero Image Real */
.hero-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--white);
}

.hero-img-real {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-img-real {
    transform: scale(1.03);
}

/* Slider Styles */
.hero-slider {
    display: grid;
    grid-template-areas: "stack";
    overflow: hidden;
    border-radius: 32px;
}

.slide {
    grid-area: stack;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    aspect-ratio: 4/3;
    /* Enforce a consistent aspect ratio */
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

/* Section Styles */
.section {
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--accent-color);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    transition: transform 0.4s ease;
}



.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Doctor Section */
.doctor-section {
    background: var(--light-bg);
    padding: 60px 20px;
}

.doctor-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.doctor-image-wrapper {
    flex: 1;
    position: relative;
}

.doctor-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.quote-card {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--white);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 220px;
    border-left: 4px solid var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.quote-text {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    font-family: 'Poppins', sans-serif;
}

.quote-author {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.doctor-info {
    flex: 1;
}

.doctor-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.doctor-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.doctor-img-container {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.doctor-img-container .doctor-img {
    box-shadow: none;
    /* Shadow moved to container */
    margin-bottom: 0;
}

.specialization-desktop,
.certifications-desktop {
    display: block;
    margin-top: 1.5rem;
}

.specialization-mobile,
.certifications-mobile {
    display: none;
}

.doctor-bio {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.doctor-credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.credential-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.credential-icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    cursor: default;
}

.credential-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.credential-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.credentials-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.experience-item p {
    margin-bottom: 0;
}

.role-title {
    margin-bottom: 0.1rem !important;
    color: var(--text-dark) !important;
    font-weight: 600;
}

.role-duration {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9em;
}

.role-location {
    margin-bottom: 0 !important;
}

.cert-list {
    padding-left: 1rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.cert-list li {
    margin-bottom: 0.3rem;
}

.cert-list span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 40px 20px;
    /* Reduced specific padding for this section */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
    /* Align items to the top */
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.contact-info>p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.3rem;
    min-width: 35px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(5deg);
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 8px solid #f0f4f8;
    /* Creates 3D thickness */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-5px);
}

.contact-form-container:hover {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
    border-bottom: 12px solid #e1e8f0;
    /* Thicker base on hover */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-dark);
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 0 5px;
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s ease;
}

.form-group textarea+label {
    top: 1.2rem;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

/* Floating Label Active State */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    color: var(--primary-color);
    font-weight: 600;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 1rem 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-header {
        font-size: 0.8rem;
    }

    .header-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-header .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-header {
        position: relative;
    }

    .navbar {
        top: 0;
    }

    body {
        padding-top: 70px;
    }

    .hamburger {
        display: flex;
    }

    .book-now-btn.desktop-only {
        display: none !important;
    }

    .book-now-btn.mobile-floating-btn {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 9998 !important;
        width: auto !important;
        max-width: 240px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-shadow: 0 10px 30px rgba(0, 174, 239, 0.4);
        border-radius: 50px;
        white-space: nowrap;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        font-weight: 600;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        align-items: center;
        gap: 0.5rem;
    }

    .whatsapp-float {
        bottom: 90px !important;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        margin-top: 40px;
        padding: 80px 20px 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mobile-break-text {
        display: block;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-image {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .doctor-content {
        flex-direction: column;
        gap: 4rem;
    }

    .specialization-desktop,
    .certifications-desktop {
        display: none;
    }

    .specialization-mobile,
    .certifications-mobile {
        display: block;
    }

    .doctor-image-wrapper {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .quote-card {
        right: 0;
        bottom: 0px;
        max-width: 180px;
        padding: 0.8rem;
    }

    .quote-text {
        font-size: 0.95rem;
    }

    .quote-author {
        font-size: 0.8rem;
    }

    .doctor-credentials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-header .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        height: 250px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card,
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

.animate-delay-6 {
    transition-delay: 0.6s;
}

/* Enhanced Transitions */
.service-card,
.feature-item,
.contact-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Hero Section Animations */
.hero-left {
    animation: slideInLeft 1s ease-out;
}

.hero-right {
    animation: slideInRight 1s ease-out;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.schedule-btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-features {
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Navbar Enhancement */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button Hover Effects */
.schedule-btn,
.book-now-btn,
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.schedule-btn::before,
.book-now-btn::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.schedule-btn:hover::before,
.book-now-btn:hover::before,
.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.schedule-btn:hover,
.book-now-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

/* Enhanced Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title-large {
    color: #1a3b5d;
    /* Dark blue from reference */
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-title-large {
        font-size: 2.2rem;
    }
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    /* High z-index to stay above other elements */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    /* Darker shade on hover */
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #666;
    color: #FFF;
}