/* ===================================
   Professional Trustworthy Dental Clinic
   Arockia Dental Care
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Trustworthy Professional Colors */
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    
    /* Trust-Inspiring Purple Accent */
    --accent-purple: #7c3aed;
    --accent-light: #a78bfa;
    --accent-orange: #f97316;
    
    /* Clean Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    
    /* Professional Text Colors */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    
    /* Success & Trust Colors */
    --success: #10b981;
    --trust-green: #059669;
    
    /* Soft Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-tamil: 'Noto Sans Tamil', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* ===================================
   Floating Action Buttons
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.scroll-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Navigation Bar - Clean Professional
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    z-index: 9999;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.logo:hover {
    transform: translateY(-2px);
    color: var(--accent-purple);
}

.logo:hover i {
    color: var(--accent-purple);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-normal);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    width: 32px;
    height: 32px;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

/* ===================================
   Hero Section - Trust-Inspiring
   =================================== */
.hero {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%),
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1920') center/cover;
    position: relative;
    padding-top: 80px;
    overflow-x: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons - Professional & Trustworthy
   =================================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===================================
   About Section - Clean & Professional
   =================================== */
.about {
    background: var(--bg-light);
}

.about-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-main-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.about-image-section {
    margin-bottom: 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    width: 100%;
    max-width: 100%;
}

.about-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.03));
    pointer-events: none;
    z-index: 1;
}

.about-image-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
    object-fit: cover;
}

.about-image-section:hover img {
    transform: scale(1.02);
}

.about-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.about-text-block {
    background: white;
    padding: 2.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.about-text-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.about-text-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.about-text-block:hover::before {
    width: 6px;
}

.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.language-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.english-badge {
    background: var(--primary-blue);
    color: white;
}

.tamil-badge {
    background: var(--primary-blue);
    color: white;
    font-family: var(--font-tamil);
    text-transform: none;
}

.language-badge i {
    font-size: 1rem;
}

/* English text styling */
.about-text-english p {
    font-family: var(--font-primary);
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: justify;
    position: relative;
    padding-left: 1.5rem;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text-english p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.about-text-english p:first-of-type {
    font-weight: 500;
    color: var(--text-dark);
}

/* Tamil text styling - Same size as English */
.about-text-tamil p {
    font-family: var(--font-tamil);
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: justify;
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text-tamil p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.about-text-tamil p:first-of-type {
    font-weight: 600;
    color: var(--text-dark);
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    min-width: 30px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stat i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===================================
   Services Section - Trust-Building Cards
   =================================== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width var(--transition-normal);
}

.service-link:hover {
    gap: 1rem;
    color: var(--accent-purple);
}

.service-link:hover::after {
    width: 100%;
}

/* ===================================
   Doctors Section - Professional Profiles
   =================================== */
.doctors {
    background: var(--bg-light);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
}

.doctor-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.doctor-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.doctor-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.doctor-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 2rem;
}

.doctor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.doctor-specialty {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.doctor-qualification {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.doctor-qualification i {
    color: var(--primary-blue);
}

/* ===================================
   Appointment Section - Highlighted
   =================================== */
.appointment {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-top: 3px solid var(--primary-blue);
    border-bottom: 3px solid var(--accent-purple);
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
}

.appointment-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.appointment-features {
    list-style: none;
    margin-bottom: 2rem;
}

.appointment-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.appointment-features i {
    color: var(--success);
    font-size: 1.2rem;
}

.appointment-contact {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.appointment-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
}

.appointment-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    background: white;
    border: 2px solid var(--success);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-message i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-gray);
}

/* ===================================
   Contact Section - Professional
   =================================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid var(--bg-gray);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-card p {
    color: var(--text-gray);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-card p a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-gray);
    width: 100%;
    max-width: 100%;
}

.contact-map iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   Footer - Professional & Clean
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        white 20%,
        white 80%,
        transparent 100%);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.footer-logo i {
    font-size: 2rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.2rem;
    row-gap: 0.5rem;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: white;
    padding-left: 1.2rem;
}

.footer-links a:hover::before {
    background: white;
    transform: scale(1.3);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.footer-contact i {
    color: white;
    margin-top: 3px;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.developer-credit {
    margin-top: 0.8rem !important;
    font-size: 0.85rem !important;
    opacity: 0.8;
}

.developer-credit strong {
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width var(--transition-normal);
}

.footer-bottom a:hover {
    color: white;
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo span {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        z-index: 10000;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .about-image-section {
        margin-bottom: 3rem;
    }

    .about-text-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text-block {
        padding: 2rem;
    }
    
    .about-text-block p {
        word-wrap: break-word;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .doctor-image {
        height: 300px;
    }

    .appointment-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .appointment-info h3 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .appointment-form-wrapper {
        padding: 2rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card h3 {
        word-wrap: break-word;
    }

    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .logo-image {
        height: 35px;
    }
    
    .logo span {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .footer-logo .logo-image {
        height: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }

    .about-main-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .about-image-section {
        margin-bottom: 2rem;
    }

    .about-text-block {
        padding: 1.5rem;
    }

    .about-text-block p {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
    }

    .language-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info {
        padding: 1.5rem;
    }
    
    .doctor-info h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .appointment-info h3 {
        font-size: 1.6rem;
        word-wrap: break-word;
    }
    
    .appointment-features li {
        font-size: 0.95rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .contact-card p {
        font-size: 0.95rem;
        word-wrap: break-word;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-links li a,
    .footer-contact li {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 20px;
    }

    .appointment-form-wrapper {
        padding: 1.5rem;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

/* ===================================
   Additional Mobile Responsiveness Fixes
   =================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .about-main-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .about-text-block {
        padding: 1.5rem;
    }
    
    .about-text-english p,
    .about-text-tamil p {
        font-size: 0.95rem;
        padding-left: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info {
        padding: 1.5rem;
    }
    
    .doctor-info h3 {
        font-size: 1.3rem;
    }
    
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .appointment-info h3 {
        font-size: 1.6rem;
    }
    
    .appointment-features li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }
    
    .appointment-form-wrapper {
        padding: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-card p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .nav-menu {
        padding: 1rem;
        width: 280px;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-links li a,
    .footer-contact li {
        font-size: 0.9rem;
    }
}

/* Extra small devices - prevent any overflow */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
}

@media print {
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .footer {
        display: none;
    }
}

/* Made with Bob */

/* ===================================
   Global Responsive Image & Media Rules
   =================================== */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    -ms-interpolation-mode: bicubic;
}

/* Prevent horizontal overflow on all elements */
*, *::before, *::after {
    max-width: 100%;
}

/* ===================================
   Global Text Overflow Prevention
   =================================== */
h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, div, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure all containers respect viewport width */
section, div, header, footer, nav, main, article, aside {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent tables from causing overflow */
table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    overflow-x: auto;
    display: block;
}

/* Ensure form elements are responsive */
input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent pre and code blocks from overflowing */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Ensure links don't cause overflow */
a {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Additional overflow prevention for specific elements */
.container, .nav-wrapper, .hero-content, .appointment-form,
.contact-content, .footer-content, .services-grid, .doctors-grid {
    max-width: 100%;
    overflow-x: hidden;
}
