/* ==========================================================
   RESET
========================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #1f2937;
    background: #ffffff;
}

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


/* ==========================================================
   NAVBAR
========================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid #fce7f3;
}

.nav-container {
    max-width: 1240px;

    margin: auto;

    min-height: 78px;

    padding: 0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ==========================================================
   LOGO
========================================================== */

.logo {
    display: flex;

    align-items: center;

    gap: 10px;
}

.logo-icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #fce7f3;

    color: #db2777;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    color: #111827;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.1;
}

.logo-sub {
    margin-top: 3px;

    color: #9ca3af;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ==========================================================
   DESKTOP NAV
========================================================== */

.desktop-nav {
    display: flex;

    align-items: center;

    gap: 35px;

    margin-left: 100px;
}

.nav-link {
    position: relative;

    color: #6b7280;

    font-size: 14px;

    font-weight: 600;

    padding: 29px 0;

    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #db2777;
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 20px;

    height: 2px;

    border-radius: 10px;

    background: #db2777;
}


/* ==========================================================
   LOGIN
========================================================== */

.login-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 11px 17px;

    border-radius: 10px;

    background: #e91e63;

    color: white;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s ease;
}

.login-button:hover {
    background: #d81b60;

    transform: translateY(-1px);
}


/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-menu-button {
    display: none;

    border: 0;

    background: transparent;

    color: #374151;

    cursor: pointer;
}

.mobile-nav {
    display: none;
}


/* ==========================================================
   HERO
========================================================== */

.hero {
    position: relative;

    min-height: 680px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #fff7fa 0%,
            #ffffff 52%,
            #fdf2f8 100%
        );
}

.hero-container {
    position: relative;

    z-index: 2;

    max-width: 1240px;

    min-height: 680px;

    margin: auto;

    padding: 80px 24px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    width: fit-content;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    margin-bottom: 20px;

    border-radius: 999px;

    background: #fce7f3;

    color: #be185d;

    font-size: 12px;

    font-weight: 700;
}

.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #e91e63;
}

.hero h1 {
    color: #111827;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.02;

    letter-spacing: -0.045em;

    font-weight: 850;
}

.hero h1 span {
    display: block;

    color: #db2777;
}

.hero-description {
    max-width: 530px;

    margin-top: 24px;

    color: #6b7280;

    font-size: 17px;

    line-height: 1.75;
}

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;
}

.primary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 13px 19px;

    border-radius: 11px;

    background: #e91e63;

    color: white;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 10px 25px rgba(233, 30, 99, 0.18);

    transition: 0.2s ease;
}

.primary-button:hover {
    background: #d81b60;

    transform: translateY(-2px);
}

.secondary-button {
    padding: 12px 17px;

    border: 1px solid #f3d1df;

    border-radius: 11px;

    background: white;

    color: #6b7280;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s ease;
}

.secondary-button:hover {
    border-color: #f9a8d4;

    color: #be185d;

    background: #fff7fa;
}


/* ==========================================================
   TRUST
========================================================== */

.hero-trust {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 35px;
}

.trust-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #ecfdf5;

    color: #059669;
}

.hero-trust strong,
.hero-trust span {
    display: block;
}

.hero-trust strong {
    color: #374151;

    font-size: 12px;
}

.hero-trust span {
    margin-top: 2px;

    color: #9ca3af;

    font-size: 11px;
}


/* ==========================================================
   HERO BACKGROUND
========================================================== */

.hero-background-circle {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.circle-one {
    width: 500px;
    height: 500px;

    right: -180px;
    top: -180px;

    background: #fce7f3;

    opacity: 0.45;
}

.circle-two {
    width: 300px;
    height: 300px;

    left: -130px;
    bottom: -150px;

    background: #fdf2f8;
}


/* ==========================================================
   DASHBOARD VISUAL
========================================================== */

.hero-visual {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

.dashboard-card {
    width: min(100%, 520px);

    padding: 22px;

    border: 1px solid #f3d5e3;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 25px 70px rgba(190, 24, 93, 0.13);
}

.dashboard-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.dashboard-header span,
.dashboard-header strong {
    display: block;
}

.dashboard-header span {
    color: #9ca3af;

    font-size: 11px;

    font-weight: 600;
}

.dashboard-header strong {
    margin-top: 3px;

    color: #1f2937;

    font-size: 17px;
}

.dashboard-avatar {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #fce7f3;

    color: #db2777;
}


/* ==========================================================
   STATS
========================================================== */

.dashboard-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 22px;
}

.stat-box {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    border: 1px solid #f3f4f6;

    border-radius: 13px;

    background: #fff;
}

.stat-icon {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;
}

.appointment-icon {
    background: #fce7f3;
    color: #db2777;
}

.patient-icon {
    background: #fdf2f8;
    color: #be185d;
}

.stat-box strong,
.stat-box span {
    display: block;
}

.stat-box strong {
    color: #111827;

    font-size: 18px;

    line-height: 1;
}

.stat-box span {
    margin-top: 4px;

    color: #9ca3af;

    font-size: 10px;

    font-weight: 600;
}


/* ==========================================================
   QUEUE
========================================================== */

.queue-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;

    color: #374151;

    font-size: 12px;

    font-weight: 800;
}

.queue-count {
    color: #db2777;

    font-size: 10px;

    font-weight: 700;
}

.queue-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.queue-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    border: 1px solid #f5f5f5;

    border-radius: 12px;

    background: #fff;
}

.queue-avatar {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #fce7f3;

    color: #be185d;

    font-size: 10px;

    font-weight: 800;
}

.queue-info {
    flex: 1;

    min-width: 0;
}

.queue-info strong,
.queue-info span {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.queue-info strong {
    color: #374151;

    font-size: 11px;
}

.queue-info span {
    margin-top: 3px;

    color: #9ca3af;

    font-size: 9px;
}

.queue-status {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 8px;

    font-weight: 800;

    white-space: nowrap;
}

.waiting {
    background: #fef3c7;

    color: #a16207;
}

.checked {
    background: #dcfce7;

    color: #15803d;
}

.treatment {
    background: #dbeafe;

    color: #1d4ed8;
}


/* ==========================================================
   DASHBOARD FOOTER
========================================================== */

.dashboard-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 16px;

    padding-top: 14px;

    border-top: 1px solid #f3f4f6;

    color: #9ca3af;

    font-size: 10px;
}

.online-status {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #059669;

    font-weight: 700;
}

.online-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #10b981;
}


/* ==========================================================
   FLOATING CARD
========================================================== */

.floating-card {
    position: absolute;

    left: -25px;

    bottom: 35px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 12px 14px;

    border: 1px solid #f3d5e3;

    border-radius: 13px;

    background: white;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1);

    animation: floating 3s ease-in-out infinite;
}

.floating-icon {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #ecfdf5;

    color: #059669;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    color: #374151;

    font-size: 10px;
}

.floating-card span {
    margin-top: 2px;

    color: #9ca3af;

    font-size: 9px;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* ==========================================================
   FEATURES
========================================================== */

.features-section {
    padding: 90px 24px;

    background: #ffffff;
}

.section-container {
    max-width: 1120px;

    margin: auto;
}

.section-heading {
    max-width: 650px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-heading > span,
.section-label {
    color: #db2777;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;
}

.section-heading h2 {
    margin-top: 10px;

    color: #111827;

    font-size: 35px;

    line-height: 1.2;
}

.section-heading p {
    margin-top: 14px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.7;
}

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.feature-card {
    padding: 28px;

    border: 1px solid #f3f4f6;

    border-radius: 17px;

    background: white;

    transition: 0.2s ease;
}

.feature-card:hover {
    border-color: #fbcfe8;

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(236, 72, 153, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 13px;

    background: #fce7f3;

    color: #db2777;
}

.feature-card h3 {
    color: #1f2937;

    font-size: 16px;
}

.feature-card p {
    margin-top: 9px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   ABOUT
========================================================== */

.about-section {
    padding: 95px 24px;

    background: #fff7fa;
}

.about-container {
    max-width: 1120px;

    margin: auto;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 80px;

    align-items: center;
}

.about-content h2 {
    margin-top: 10px;

    max-width: 560px;

    color: #111827;

    font-size: 38px;

    line-height: 1.15;
}

.about-content p {
    max-width: 560px;

    margin-top: 17px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.8;
}

.about-content .primary-button {
    margin-top: 25px;
}

.about-visual {
    display: flex;

    justify-content: center;
}

.about-card {
    width: 100%;

    max-width: 370px;

    padding: 35px;

    border: 1px solid #fbcfe8;

    border-radius: 24px;

    background: white;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(236, 72, 153, 0.08);
}

.about-card-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: auto;

    border-radius: 18px;

    background: #fce7f3;

    color: #db2777;
}

.about-card h3 {
    margin-top: 20px;

    font-size: 19px;
}

.about-card p {
    margin-top: 10px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   CONTACT
========================================================== */

.contact-section {
    padding: 80px 24px;

    background: white;
}

.contact-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 40px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #fdf2f8,
            #fff7fa
        );
}

.contact-card h2 {
    margin-top: 8px;

    color: #111827;

    font-size: 28px;
}

.contact-card p {
    max-width: 600px;

    margin-top: 8px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.7;
}

.contact-button {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 17px;

    border-radius: 10px;

    background: white;

    color: #be185d;

    font-size: 13px;

    font-weight: 700;

    border: 1px solid #fbcfe8;
}

.contact-button:hover {
    background: #fce7f3;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {
    padding: 25px 24px;

    border-top: 1px solid #f3f4f6;

    background: white;
}

.footer-container {
    max-width: 1120px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    color: #374151;

    font-size: 14px;
}

.footer-brand span {
    margin-top: 2px;

    color: #9ca3af;

    font-size: 10px;
}

.footer p {
    color: #9ca3af;

    font-size: 10px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {

    .desktop-nav {
        margin-left: 30px;

        gap: 22px;
    }

    .hero-container {
        gap: 40px;
    }

    .floating-card {
        left: -10px;
    }

}


@media (max-width: 850px) {

    .desktop-nav,
    .login-button {
        display: none;
    }

    .mobile-menu-button {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .mobile-nav {
        padding: 10px 24px 20px;

        background: white;

        border-top: 1px solid #f3f4f6;
    }

    .mobile-nav.show {
        display: flex;

        flex-direction: column;

        gap: 4px;
    }

    .mobile-nav a {
        padding: 12px;

        border-radius: 9px;

        color: #6b7280;

        font-size: 14px;

        font-weight: 600;
    }

    .mobile-nav a:hover {
        background: #fff7fa;

        color: #db2777;
    }

    .mobile-login {
        margin-top: 5px;

        background: #e91e63 !important;

        color: white !important;

        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;

        padding-top: 60px;

        padding-bottom: 70px;
    }

    .hero-content {
        max-width: 700px;

        margin: auto;

        text-align: center;
    }

    .hero-badge {
        margin-left: auto;

        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;

        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;

        text-align: left;
    }

    .hero-visual {
        max-width: 600px;

        margin: auto;

        width: 100%;
    }

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

    .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin-left: auto;

        margin-right: auto;
    }

    .about-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2,
    .about-content p {
        margin-left: auto;

        margin-right: auto;
    }

    .contact-card {
        flex-direction: column;

        text-align: center;
    }

}


@media (max-width: 600px) {

    .nav-container {
        min-height: 68px;

        padding: 0 18px;
    }

    .hero-container {
        padding-left: 18px;

        padding-right: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .dashboard-card {
        padding: 16px;

        border-radius: 18px;
    }

    .floating-card {
        display: none;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .footer-container {
        flex-direction: column;

        text-align: center;
    }

}

/* ==========================================
   RECEPTIONIST LANDING - SMOOTH ENTRANCE
========================================== */

@keyframes receptionistFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes receptionistSlideLeft {
    from {
        opacity: 0;
        transform: translate3d(-45px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes receptionistSlideRight {
    from {
        opacity: 0;
        transform: translate3d(45px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes receptionistFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

/* Left-side hero content */
.hero-content {
    animation: receptionistSlideLeft 1s cubic-bezier(.22, 1, .36, 1) both;
}

/* Stagger the text and controls */
.hero-badge {
    animation: receptionistFadeUp .8s ease-out .12s both;
}

.hero-content h1 {
    animation: receptionistFadeUp .9s ease-out .22s both;
}

.hero-description {
    animation: receptionistFadeUp .9s ease-out .34s both;
}

.hero-buttons {
    animation: receptionistFadeUp .9s ease-out .46s both;
}

.hero-trust {
    animation: receptionistFadeUp .9s ease-out .58s both;
}

/* Right-side dashboard preview */
.hero-visual {
    animation: receptionistSlideRight 1.15s cubic-bezier(.22, 1, .36, 1) .12s both;
}

.dashboard-card {
    transition: transform .45s ease, box-shadow .45s ease;
}

.dashboard-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(220, 39, 119, .14);
}

/* Patient queue entrance */
.queue-item {
    animation: receptionistFadeUp .7s ease-out both;
}

.queue-item:nth-child(1) { animation-delay: .45s; }
.queue-item:nth-child(2) { animation-delay: .55s; }
.queue-item:nth-child(3) { animation-delay: .65s; }

/* Floating check-in notification */
.floating-card {
    animation:
        receptionistFadeUp .9s ease-out .75s both,
        receptionistFloat 4s ease-in-out 1.7s infinite;
}

/* Smooth interactive buttons */
.primary-button,
.secondary-button {
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background-color .3s ease;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-4px);
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(-1px) scale(.98);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-badge,
    .hero-content h1,
    .hero-description,
    .hero-buttons,
    .hero-trust,
    .hero-visual,
    .queue-item,
    .floating-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .primary-button,
    .secondary-button,
    .dashboard-card {
        transition: none !important;
    }
}

