/* 
 * Modern Medical Portfolio Theme 
 * Dr. Chennamchetty Vijay Kumar
 * Colors: Deep Blue (#00509E), Teal (#00A896), Light Gray (#F4F7F6), White (#FFFFFF)
 */

 :root {
    --primary-color: #00509E;
    --secondary-color: #00A896;
    --background-light: #F4F7F6;
    --text-dark: #333333;
    --text-off-white: #e0e0e0;
    --white: #FFFFFF;
    --accent-gray: #E0E0E0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--background-light);
}

.center-text {
    text-align: center;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.logo-icon {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.dr-name {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}

.dr-title {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-primary-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.btn-primary-nav:hover {
    background-color: #003a75;
    color: var(--white);
}

.btn-primary-nav::after { display: none; }

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    padding: 4rem 0;
    background-color: var(--background-light); 
    background: radial-gradient(circle at 10% 20%, rgba(0, 80, 158, 0.05) 0%, rgba(0, 168, 150, 0.05) 90%),
                linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for background interest */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 150, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 80, 158, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-content {
    flex: 1;
    max-width: 600px;
}

.hero-image-wrapper {
    flex: 0.9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05), -20px -20px 60px rgba(255, 255, 255, 0.8);
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    background-color: var(--white);
}

.hero-label {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background-color: rgba(0, 168, 150, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: #444;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 80, 158, 0.3);
}

.btn-primary:hover {
    background-color: #003a75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 80, 158, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-full {
    display: block;
    width: 100%;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f8;
    height: 480px; /* Increased height for better aspect ratio */
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 10px 10px 40px rgba(0,0,0,0.1); /* Added shadow */
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03); /* Subtle zoom effect */
}

/* Kept for reference or removal later if unused */
.doctor-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.qual-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: transform var(--transition-speed);
}

.qual-card:hover {
    transform: translateY(-5px);
}

.qual-year {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.qual-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.qual-card p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
}

.timeline-item.current .timeline-content {
    border-left: 4px solid var(--primary-color);
}

.timeline-item.past .timeline-content {
    border-left: 4px solid #ccc;
    background-color: #fcfcfc;
}

.timeline-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 80, 158, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.expert-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.expert-card ul {
    list-style: none;
    padding-left: 0;
}

.expert-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

.expert-card li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Services List */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid rgba(0, 80, 158, 0.1);
    transition: all 0.2s;
}

.service-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Achievements */
.achievements-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-box {
    text-align: center;
    padding: 2rem;
    background-color: #f9fbfd;
    border-radius: var(--border-radius);
    border: 1px solid #eef2f5;
}

.achievement-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Reviews */
.review-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-box {
    text-align: center;
    background: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.testimonial-slide {
    display: none;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: -20px;
    color: rgba(0, 80, 158, 0.1);
    z-index: -1;
    font-family: serif;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.slider-controls {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-btn {
    background: none;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.location-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.loc-subtitle {
    font-weight: 500;
    color: #666;
    margin-bottom: 1.5rem;
}

.fee {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.note {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.international-patients {
    text-align: center;
    padding: 2rem;
    background-color: #eaf6ff;
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #cbd5e0;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-info p {
    color: #a0aec0;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.6;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-left, .reveal-right, .reveal-bottom {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-bottom { transform: translateY(50px); }

.reveal-left.active, .reveal-right.active, .reveal-bottom.active {
    opacity: 1;
    transform: translate(0);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) {
        left: 0;
    }
    
    .timeline-item.past .timeline-content {
        border-left: 4px solid #ccc;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 900px) {
    /* Stack hero on mobile */
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .hero-img {
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .qualifications-grid {
        grid-template-columns: 1fr;
    }
}
