/* Sri Venkateshwara Healthcare - Main Stylesheet */
/* assets/css/style.css */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

/* Color Variables */
:root {
    --primary-green: #2d5a3d;
    --light-green: #4ade80;
    --very-light-green: #f0fdf4;
    --dark-green: #1e3a28;
    --white: #ffffff;
    --black: #1f2937;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { 
    font-size: 2.75rem; 
    font-weight: 700;
}

h2 { 
    font-size: 2.25rem; 
    font-weight: 600;
}

h3 { 
    font-size: 1.75rem; 
    font-weight: 600;
}

h4 { 
    font-size: 1.375rem; 
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 1.05rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-green);
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo h1 {
    font-size: 1.625rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
}

/* Navigation Styles */
.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    background-color: var(--very-light-green);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--very-light-green);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Main Content */
.main-content {
    margin-top: 85px;
    min-height: calc(100vh - 85px);
}

/* Hero/Banner Section */
.hero-section {
    background: linear-gradient(135deg, var(--very-light-green) 0%, var(--white) 50%, var(--gray-100) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(45, 90, 61, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--very-light-green);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    padding: 16px 32px;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Content Sections */
.section {
    padding: 100px 0;
}

.section.bg-light {
    background-color: var(--gray-100);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-600);
}

/* Doctor Profile Section */
.doctor-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.doctor-image {
    text-align: center;
}

.doctor-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--very-light-green);
}

.doctor-info h3 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctor-qualification {
    color: var(--light-green);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.experience-badge {
    background: linear-gradient(135deg, var(--very-light-green), var(--white));
    color: var(--primary-green);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--light-green);
    font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-green);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--very-light-green), var(--white));
    border: 2px solid var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    transform: scale(1.1);
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-size: 1.375rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Specializations List */
.specializations {
    background: var(--very-light-green);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--light-green);
    margin-top: 1.5rem;
}

.specializations h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.specializations ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.specializations li {
    color: var(--gray-600);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.specializations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: bold;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1.125rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    color: white;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--black), var(--gray-800));
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 90, 61, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: var(--light-green);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--light-green);
    transform: translateX(4px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--light-green);
    margin-top: 2px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-300);
    position: relative;
    z-index: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1.5rem 0;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--light-green);
}

.breadcrumb-item.active {
    color: var(--primary-green);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-green { color: var(--primary-green); }
.text-light-green { color: var(--light-green); }
.bg-light { background-color: var(--gray-100); }
.bg-white { background-color: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.whatsapp-float:focus,
.scroll-top:focus {
    outline: 2px solid var(--light-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--primary-green);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Social Media Icons Fix - Add this to your style.css */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.social-link {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Ensure icons are perfectly centered */
.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    z-index: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}