@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --background: #10171e;
    --surface: #19232d;
    --surface-light: #222f3b;
    --blue: #8fc9e8;
    --blue-dark: #548eae;
    --cream: #e9e4d9;
    --white: #f5f7f8;
    --grey: #aab5be;
    --border: rgba(255,255,255,0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVIGATION */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 5%;
    background: rgba(16,23,30,0.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--blue);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    color: var(--grey);
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 25px;
}

/* HERO */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background:
    radial-gradient(circle at 80% 40%,
    rgba(100,170,210,0.16), transparent 35%);
}

.hero-content {
    max-width: 750px;
    padding: 90px 0;
}

.tag {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.12;
    margin: 25px 0;
    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--blue);
}

.hero p {
    color: var(--grey);
    max-width: 650px;
    font-size: 17px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    padding: 14px 25px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--blue);
    color: #10171e;
}

.btn-primary:hover {
    background: white;
    transform: translateY(-3px);
}

.btn-outline {
    border-color: var(--border);
    color: white;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* SECTIONS */

.section {
    padding: 90px 0;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    margin: 12px 0;
}

.section-heading p {
    color: var(--grey);
    max-width: 650px;
}

/* CARDS */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 28px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    background: var(--surface-light);
}

.card-icon {
    font-size: 30px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.card p {
    color: var(--grey);
    font-size: 14px;
}

/* INFORMATION BOXES */

.info-box {
    background: var(--surface);
    padding: 30px;
    border-radius: 14px;
    border-left: 4px solid var(--blue);
    margin-bottom: 20px;
}

.info-box h3 {
    margin-bottom: 12px;
}

.info-box p {
    color: var(--grey);
}

/* INTERACTIVE ACCORDION */

.accordion {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    padding: 22px;
    color: white;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 700;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 22px;
    color: var(--grey);
}

.accordion.open .accordion-content {
    max-height: 600px;
    padding-bottom: 22px;
}

/* SUBSTANCE CARDS */

.substance-card {
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
}

.substance-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
}

.substance-visual {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#263b4c,#17232e);
    font-size: 65px;
}

.substance-info {
    padding: 24px;
}

.substance-info p {
    color: var(--grey);
    font-size: 14px;
    margin: 10px 0 20px;
}

.details-btn {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
}

.substance-details {
    display: none;
    color: var(--grey);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.substance-card.expanded .substance-details {
    display: block;
}

.search-box {
    width: 100%;
    padding: 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 15px;
}

/* TABS */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--grey);
    padding: 12px 20px;
    border-radius: 8px;
}

.tab-btn.active {
    background: var(--blue);
    color: #10171e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade 0.4s ease;
}

/* QUIZ */

.quiz-box {
    background: var(--surface);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 750px;
}

.quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px;
    margin: 12px 0;
    background: var(--surface-light);
    color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.2s;
}

.quiz-option:hover {
    border-color: var(--blue);
}

.quiz-option.correct {
    border-color: #69c99b;
    background: rgba(105,201,155,0.15);
}

.quiz-option.wrong {
    border-color: #e77c7c;
    background: rgba(231,124,124,0.15);
}

.feedback {
    margin-top: 18px;
    color: var(--blue);
    font-weight: 600;
}

.progress-track {
    background: var(--surface-light);
    height: 7px;
    border-radius: 20px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    background: var(--blue);
    height: 100%;
    width: 0%;
    transition: 0.3s;
}

/* SUPPORT */

.support-box {
    background: linear-gradient(120deg,#263e50,#1b2934);
    border-radius: 18px;
    padding: 40px;
    border: 1px solid var(--border);
}

.support-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

/* FOOTER */

footer {
    padding: 35px 5%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--grey);
    font-size: 13px;
}

/* ANIMATION */

@keyframes fade {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

.reveal {
    animation: fade 0.7s ease;
}

/* MOBILE */

@media(max-width:850px) {

    .grid {
        grid-template-columns: repeat(2,1fr);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media(max-width:550px) {

    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 43px;
    }

    .section {
        padding: 65px 0;
    }

    .support-box {
        padding: 25px;
    }
}/* ==========================================
   MINDSHIFT SEARCHABLE MEDICINE DIRECTORY
========================================== */

.medicine-directory {
    max-width: 1200px;
    width: 90%;
    margin: 85px auto;
    padding: 45px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.directory-heading {
    max-width: 750px;
    margin-bottom: 32px;
}

.directory-label {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.directory-heading h2 {
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(32px, 4vw, 45px);
    margin: 14px 0;
}

.directory-heading p {
    color: var(--grey);
    font-size: 17px;
    line-height: 1.8;
}

.medicine-search {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.medicine-search input {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-light);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.medicine-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(143, 201, 232, 0.12);
}

.medicine-search button {
    padding: 0 25px;
    border: none;
    border-radius: 12px;
    background: var(--blue);
    color: #10171e;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
}

.medicine-search button:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.directory-status {
    margin: 22px 0;
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
}

.medicine-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.directory-empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--grey);
    font-size: 16px;
    line-height: 1.7;
}

.medicine-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-light);
    transition: 0.25s;
}

.medicine-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.medicine-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.medicine-card h3 {
    color: var(--white);
    font-size: 20px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.medicine-badge {
    padding: 6px 11px;
    border-radius: 30px;
    background: rgba(143, 201, 232, 0.12);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.medicine-brand {
    color: var(--grey);
    font-size: 14px;
    margin: 12px 0 20px;
    line-height: 1.6;
}

.medicine-details-button {
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(143, 201, 232, 0.3);
    border-radius: 10px;
    background: rgba(143, 201, 232, 0.1);
    color: var(--blue);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
}

.medicine-details-button:hover {
    background: var(--blue);
    color: #10171e;
}

.medicine-details {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
}

.medicine-info-block {
    margin-bottom: 20px;
}

.medicine-info-block h4 {
    color: var(--blue);
    font-size: 16px;
    margin-bottom: 8px;
}

.medicine-info-block p {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.8;
}

.directory-disclaimer {
    margin-top: 30px;
    padding: 20px;
    border-left: 3px solid var(--blue);
    border-radius: 5px;
    background: rgba(143, 201, 232, 0.07);
    color: var(--grey);
    font-size: 14px;
    line-height: 1.8;
}

.directory-disclaimer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 16px;
}

@media (max-width: 750px) {

    .medicine-directory {
        width: 92%;
        padding: 25px 18px;
        margin: 55px auto;
    }

    .medicine-results {
        grid-template-columns: 1fr;
    }

    .medicine-search {
        flex-direction: column;
    }

    .medicine-search button {
        padding: 15px;
    }

    .medicine-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}