/* Modern Ophthalmology Website Styles - PREMIUM VERSION */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #0e4d64;
    --primary-light: #1883a8;
    --accent-color: #c9a227;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #555555;
    --bg-white: #ffffff;
    --bg-off-white: #f8f9fa;
    --bg-light-blue: #eef7fc;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 6rem 2rem;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: transparent;
    overflow-x: hidden;
    max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* PREMIUM SECTION BACKGROUNDS - Solid colors for text visibility */
.section {
    padding: var(--section-padding);
    position: relative;
    background-color: rgba(255, 255, 255, 0.97);
}

.bg-off-white {
    background-color: rgba(248, 249, 250, 0.98);
}

.bg-light-blue {
    background-color: rgba(238, 247, 252, 0.98);
}

/* TRANSPARENT SECTIONS - Show background through */
.section-transparent {
    background-color: rgba(14, 77, 100, 0.5);
}

.section-transparent .section-header h2 {
    color: white;
}

.section-transparent .section-header h2::after {
    background: linear-gradient(90deg, var(--accent-color), white);
}

.section-transparent .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.section-transparent .service-card {
    background: rgba(255, 255, 255, 0.95);
}

.section-transparent .equipment-list ul {
    background: rgba(255, 255, 255, 0.95);
}

/* Contact section within transparent - keep the grid visible */
.section-transparent .contact-grid {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* ===== PREMIUM SCROLL ANIMATIONS ===== */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    transform: translateY(30px);
}

.fade-in-up {
    transform: translateY(60px);
}

.fade-in-left {
    transform: translateX(-60px);
}

.fade-in-right {
    transform: translateX(60px);
}

.fade-in.visible,
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered animations for cards */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #64620e, #d0d0d0);
    color: white;
    box-shadow: 0 6px 20px rgba(14, 77, 100, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 77, 100, 0.45);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Active Nav Link (Scroll Spy) */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: transparent;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 77, 100, 0.88), rgba(24, 131, 168, 0.78));
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.hero-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.5s both;
}

/* Hero Stats Counter */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease 0.7s both;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    min-width: 120px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 3.5rem;
    line-height: 1;
}

.stat-number.stat-text {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    display: block;
    width: 100%;
}

/* Plus sign next to numbers */
.stat-plus {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    display: inline-flex;
    align-items: flex-end;
    height: 3.5rem;
}

/* Stat row layout for number + plus alignment */
.stat-item .stat-number,
.stat-item .stat-plus {
    display: inline-flex;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Magnetic Buttons */
.magnetic-btn {
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

@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);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-gray);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* About Section - NEW GRID LAYOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-info {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-info .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-pdf {
    position: sticky;
    top: 100px;
}

.pdf-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
}

.pdf-header i {
    font-size: 1.5rem;
}

.pdf-header span {
    flex: 1;
}

.btn-download {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pdf-container {
    height: 600px;
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.doctor-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.credential-item {
    background: var(--bg-light-blue);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-fast);
}

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

.credential-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.credential-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.credential-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    text-align: center;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(14, 77, 100, 0.03));
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Equipment List */
.equipment-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.equipment-list ul {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 600px;
}

.equipment-list li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.equipment-list li i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-color), #0a3d50);
    color: white;
    padding: 4rem;
}

.contact-info-panel h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.contact-item:hover .contact-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.contact-details h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.map-container {
    height: 100%;
    min-height: 550px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark), #111);
    color: white;
    padding: 5rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-pdf {
        position: static;
    }

    .pdf-container {
        height: 500px;
    }
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 3rem 1rem;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding: 120px 1rem 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* Hero buttons - stack vertically */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Hero stats - smaller and tighter */
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .stat-item {
        flex: 1 1 80px;
        min-width: 80px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    .doctor-credentials {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Contact section mobile fixes */
    .contact-info-panel {
        padding: 2rem 1.5rem;
    }

    .contact-info-panel h2 {
        font-size: 1.5rem;
    }

    .contact-details h4 {
        font-size: 0.8rem;
    }

    .contact-details p,
    .contact-details a {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 1rem;
    }

    .map-container {
        min-height: 350px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* About section mobile */
    .about-info {
        padding: 2rem 1.5rem;
    }

    .about-info .lead {
        font-size: 1rem;
    }

    .pdf-container {
        height: 400px;
    }

    /* Footer mobile */
    footer {
        padding: 3rem 1rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .contact-info-panel {
        padding: 1.5rem 1rem;
    }
}