:root {
    --primary-color: #262A62;
    --accent-color: #35BEBA;
    --light-color: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --bg-main: #ffffff;
    --bg-alt: #f5f5f7;
    --border-radius: 18px;
}

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

body {
    /* Apple-like system fonts */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 140px 0;
}

/* Header (Apple style frosted glass) */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100px;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 80px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.nav-link {
    transition: color 0.3s;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 300vh;
    background-color: var(--bg-main);
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.hero-title, .hero-subtitle, .section-title, .product-card {
    opacity: 0; /* Hidden initially for Framer Motion animation */
    will-change: transform, opacity;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* I Need Section */
.i-need {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 80px;
    text-align: center;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-image-wrap {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.service-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.service-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .service-image {
    transform: scale(1.05);
}

/* Subtle, premium gradients for products */
.bg-teal { background: linear-gradient(135deg, #e0f7f6, var(--accent-color)); }
.bg-blue { background: linear-gradient(135deg, #e8eaf6, var(--primary-color)); }
.bg-light-blue { background: linear-gradient(135deg, #f3f4f6, #80c4e9); }

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.product-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

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

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

.details-link {
    margin-top: 20px;
    text-align: center;
}

.details-link a {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.details-link a:hover {
    text-decoration: underline;
}

/* Doctors Section */
.doctors {
    background-color: var(--bg-main);
}

.doctors-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: -60px; /* pull up closer to section title */
    margin-bottom: 80px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    will-change: transform, opacity;
}

.doctor-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.doctor-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #e8eaf6;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

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

.doctor-info {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-info .btn-book-doc {
    margin-top: auto !important;
}

.doctor-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.specialty {
    color: var(--accent-color) !important; /* override global p color */
    font-size: 0.95rem !important;
    font-weight: 500;
    margin-bottom: 8px !important;
}

.doctor-qual {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--light-color);
    margin: 10vh auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

#booking-form input,
#booking-form select {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-alt);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#booking-form input:focus,
#booking-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(53, 190, 186, 0.15);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--bg-alt);
    color: var(--text-color);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 13px;
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        padding: 0 15px;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 20px;
        line-height: 1.4;
    }
    .nav-list {
        display: none; /* Hide on small screens for minimal look */
    }
    .desktop-only {
        display: inline; /* Actually, we can show full text since it's centered now */
    }
    .nav-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
        gap: 10px;
    }
    .logo {
        position: relative;
        left: auto;
        transform: none;
        order: 1;
    }
    .header-left {
        order: 2;
        margin-top: 10px;
    }
    .header-right {
        order: 3;
    }
    .header {
        top: 0;
        border-radius: 0;
    }
}

.wink-logo { transition: transform 0.2s ease; cursor: pointer; }
.wink-logo:hover { animation: wink 0.6s ease-in-out; }
@keyframes wink { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.1); } 100% { transform: scaleY(1); } }
