/* ============================================
   Dr. Noor UI Saba - Aesthetic & Skin Wellness
   Medical Professional Theme
   ============================================ */

:root {
    --color-bg: #F0F7F7;
    --color-bg-alt: #E5F0F0;
    --color-text: #1A3A3A;
    --color-text-muted: #4A6B6B;
    --color-accent: #0D9488;
    --color-accent-light: #14B8A6;
    --color-accent-dark: #0F766E;
    --color-accent-soft: rgba(13, 148, 136, 0.15);
    --color-border: #B8D4D4;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 24px rgba(13, 148, 136, 0.08);
    --shadow-elevated: 0 12px 48px rgba(13, 148, 136, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* ========== Professional Page Loader ========== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    position: relative;
}

.loader-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: loaderSpin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    border-top-color: var(--color-accent-light);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    border-top-color: var(--color-accent-dark);
    animation-duration: 0.6s;
}

@keyframes loaderSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loader-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-accent);
    display: block;
    margin-top: 100px;
    animation: loaderFadeIn 0.8s ease 0.5s both;
}

.loader-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    animation: loaderFadeIn 0.8s ease 0.7s both;
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

em {
    font-style: italic;
    color: var(--color-accent);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
    margin-top: 0.5rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 1.5rem;
    background: rgba(240, 247, 247, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s var(--transition);
}

.nav-menu a:hover {
    color: var(--color-accent);
}

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

.nav-cta::after { display: none !important; }

.nav-cta {
    padding: 0.5rem 1rem;
    background: var(--color-accent-soft);
    color: var(--color-accent) !important;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--color-accent);
    color: white !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 1.5rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: heroImageReveal 1.5s ease-out 0.5s both;
}

/* Lighter overlay - background image more visible */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, 
        rgba(240, 247, 247, 0.4) 0%, 
        rgba(240, 247, 247, 0.6) 40%, 
        rgba(240, 247, 247, 0.95) 100%);
}

@keyframes heroImageReveal {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: scale(1); }
}

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

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.5);
}

.hero-title .type-line {
    display: block;
}

.hero-title .type-accent {
    color: var(--color-accent);
    font-style: italic;
}

/* Strong text contrast - dark for visibility */
.hero-content .hero-subtitle { color: var(--color-accent-dark); }
.hero-title { color: var(--color-text); }
.hero-description { 
    color: var(--color-text); 
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-frame {
    aspect-ratio: 4/5;
    background: var(--color-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-elevated);
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.about-image-frame:hover img {
    transform: scale(1.05);
}

.about-content .section-title { margin-bottom: 1.5rem; }

.about-text {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.about-features {
    list-style: none;
    margin-top: 1.5rem;
}

.about-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--color-bg-alt);
}

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

.service-card {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.15);
    border-color: var(--color-accent-soft);
}

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

.service-card-image {
    height: 180px;
    background-image: var(--card-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--transition);
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Expertise Section */
.expertise {
    padding: 6rem 0;
}

.expertise-content .section-title { margin-bottom: 2.5rem; }

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.expertise-item {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all var(--transition);
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.expertise-item:hover {
    background: var(--color-accent-soft);
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-accent);
}

.expertise-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.expertise-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: var(--color-bg-alt);
}

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

.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    font-style: italic;
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-soft);
}

.testimonial-card p {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.testimonial-card cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Contact */
.contact {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title { margin-bottom: 1rem; }

.contact-info > p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

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

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

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

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all var(--transition);
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.footer .logo {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
        transition: right var(--transition);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) { opacity: 0; }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image { order: -1; }

    .about-image-frame {
        max-height: 400px;
        aspect-ratio: 16/10;
    }
}

@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg { width: 28px; height: 28px; }
}
