/* ========================================
   Dr. Vardhman Jain - Modern Medical Website
   Enhanced Version with Images & Animations
   ======================================== */

/* CSS Variables - New Color Theme */
:root {
    --primary-color: #1e3a5f;
    --primary-dark: #0d1f33;
    --primary-light: #2d5a8a;
    --secondary-color: #e8b923;
    --secondary-light: #f5d76e;
    --accent-color: #00a896;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --dark-bg: #1a1a2e;
    --dark-text: #16213e;
    --light-text: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #e8b923 0%, #f5d76e 100%);
    --gradient-accent: linear-gradient(135deg, #00a896 0%, #02c39a 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', 'Merriweather', Georgia, serif;
    line-height: 1.8;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

p {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    font-weight: 400;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--light-text);
    font-family: 'Source Sans Pro', sans-serif;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(232, 185, 35, 0.4);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(30, 58, 95, 0); }
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 110px 6% 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(232, 185, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 150, 0.1) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 590px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-family: 'Source Sans Pro', sans-serif;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-image {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: min(42vw, 500px);
    animation: fadeInRight 1s ease 0.8s forwards;
    opacity: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    filter: drop-shadow(20px 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--secondary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.doctor-bio {
    color: var(--light-text);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.achievement-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.2);
    transition: var(--transition);
}

.achievement-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.3);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 35px 25px;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hospital-info {
    background: var(--light-bg);
    padding: 50px;
    border-radius: 25px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hospital-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-secondary);
}

.hospital-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hospital-info p {
    color: var(--light-text);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.facility-tag {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.facility-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
}

.services::before {
    display: none;
}

.services .section-header {
    color: var(--primary-color);
    margin-top: 0;
    background: transparent;
}

.services .section-header h2 {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    color: var(--primary-dark);
    line-height: 1.2;
    text-align: center;
}

.services .section-header::after {
    background: var(--gradient-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 0;
    border-radius: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card .service-icon,
.service-card h3,
.service-card p,
.service-card .service-link {
    padding: 0 25px;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-card h3 {
    padding-top: 20px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-secondary);
    transform: rotate(10deg) scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1rem;
}

.services-cta {
    text-align: center;
}

/* ========================================
   Appointment Section
   ======================================== */
.appointment {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.appointment::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.appointment::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 168, 150, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.appointment-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.appointment-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.appointment-content > p {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.appointment-desc {
    margin-bottom: 40px !important;
    font-size: 1.1rem !important;
    opacity: 0.85 !important;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 25px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    border: 3px solid var(--secondary-color);
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-rating {
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 3px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 120px 0;
    background: var(--light-bg);
}

.quick-connect-float {
    position: fixed;
    right: 35px;
    bottom: 125px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.25);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.quick-connect-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(30, 58, 95, 0.35);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.query-intro {
    position: relative;
    background-color: var(--white);
    padding: 34px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.query-intro::after {
    content: '';
    position: absolute;
    right: -45px;
    top: -45px;
    width: 150px;
    height: 150px;
    background: rgba(0, 168, 150, 0.12);
    border-radius: 50%;
}

.query-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.8rem;
    animation: doctorPulse 2.8s ease-in-out infinite;
}

.query-intro h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.query-intro p {
    color: var(--light-text);
    line-height: 1.7;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-item .fa-whatsapp {
    background: #25D366;
}

.contact-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form-card {
    position: relative;
    background: var(--white);
    padding: 42px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: formFloatIn 0.8s ease both;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: var(--gradient-secondary);
}

.form-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(30, 58, 95, 0.1);
    pointer-events: none;
}

.form-icon-one {
    top: 22px;
    right: 28px;
    font-size: 4.2rem;
    animation: softBeat 2.6s ease-in-out infinite;
}

.form-icon-two {
    bottom: 18px;
    right: 36px;
    font-size: 3.3rem;
    animation: floatIcon 5s ease-in-out infinite;
}

.query-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: var(--primary-color);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 15px 16px;
    color: var(--dark-text);
    background: var(--white);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.12);
}

.form-group.has-error input {
    border-color: #d93025;
    box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.1);
}

.form-error {
    display: none;
    color: #d93025;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-group.has-error .form-error {
    display: block;
}

.send-message-btn {
    width: fit-content;
    border: 0;
}

.send-message-btn i {
    margin-right: 8px;
}

@keyframes doctorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes formFloatIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes softBeat {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.contact-map {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 420px;
    margin-top: 50px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: 100px 0;
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-5deg) rotate(5deg);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-family: 'Source Sans Pro', sans-serif;
}

/* ========================================
   Floating Action Button
   ======================================== */
.fab-button {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.8rem;
    box-shadow: 0 8px 30px rgba(232, 185, 35, 0.4);
    transition: var(--transition);
    z-index: 999;
    animation: pulse 2s infinite;
}

.fab-button:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(232, 185, 35, 0.5);
}

/* ========================================
   Scroll Animations
   ======================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .hero-image {
        width: min(40vw, 430px);
        right: 3%;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        height: auto;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 120px 24px 0;
        text-align: center;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-image {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(76vw, 430px);
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-hover);
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }

    .services .section-header h2 {
        max-width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 25px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 18px 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .services .section-header h2 {
        font-size: 1.65rem;
        line-height: 1.28;
    }
    
    .services-grid,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hospital-info {
        padding: 30px;
    }
    
    .fab-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
