/* ==============================
   AQILAH PERSONAL WEBSITE
   ============================== */

:root {
    --cream: #f7f1e8;
    --cream-dark: #eee3d4;
    --paper: #fffdf9;
    --sage: #758873;
    --sage-dark: #4d604d;
    --sage-light: #dfe7da;
    --pink: #dca8aa;
    --pink-light: #f3dddd;
    --brown: #735f51;
    --ink: #29342c;
    --muted: #69736b;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(73, 91, 72, 0.12);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 44px));
    margin-inline: auto;
}

/* Decorative elements */
.decor {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    color: var(--pink);
    opacity: 0.35;
    font-size: 3rem;
}

.decor-one {
    top: 18%;
    left: 2%;
}

.decor-two {
    bottom: 18%;
    right: 2%;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(117, 136, 115, 0.12);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 1.65rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--sage-dark);
}

.logo span {
    color: var(--pink);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 21px;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: var(--pink);
    transition: width 0.25s ease;
}

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

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--sage-light);
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: var(--sage-dark);
    border-radius: 10px;
    transition: 0.25s;
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 135px;
    padding-bottom: 90px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 70px;
}

.eyebrow,
.section-number {
    color: var(--sage);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.8px;
}

.eyebrow {
    margin-bottom: 20px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span {
    color: var(--sage);
}

.hero-description {
    max-width: 590px;
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 22px;
}

.hero-description strong {
    color: var(--sage-dark);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.hero-tags span {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--brown);
    font-size: 0.78rem;
    font-weight: 600;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 21px;
    border-radius: 999px;
    background: var(--sage);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 12px 25px rgba(117, 136, 115, 0.22);
    transition: 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-3px);
    background: var(--sage-dark);
}

.hero-photo {
    position: relative;
    display: flex;
    justify-content: center;
}

.photo-frame {
    position: relative;
    width: min(420px, 100%);
    padding: 12px;
    background: var(--cream);
    border-radius: 40% 40% 18% 18%;
    transform: rotate(2deg);
    box-shadow: var(--shadow);
}

.photo-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(117, 136, 115, 0.38);
    border-radius: 37% 37% 15% 15%;
    pointer-events: none;
    z-index: 1;
}

.photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 0.78;
    object-fit: cover;
    object-position: center top;
    border-radius: 37% 37% 15% 15%;
}

.photo-note {
    position: absolute;
    right: -25px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 14px;
    background: var(--white);
    color: var(--sage-dark);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: rotate(-4deg);
}

.flower-doodle {
    position: absolute;
    left: 0;
    bottom: 18px;
    color: var(--pink);
    font-size: 3rem;
    transform: rotate(-15deg);
}

.sparkle {
    position: absolute;
    color: var(--pink);
    font-size: 2rem;
}

.sparkle-1 {
    top: 4%;
    right: 3%;
}

.sparkle-2 {
    bottom: 4%;
    right: 11%;
}

/* Sections */
.section {
    padding: 115px 0;
}

.section-heading {
    margin-bottom: 46px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-top: 8px;
}

.section-intro {
    max-width: 650px;
    color: var(--muted);
    margin-top: 14px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: start;
}

.about-text {
    color: var(--muted);
}

.about-text p {
    margin-bottom: 18px;
}

.about-text .lead {
    color: var(--ink);
    font-size: 1.17rem;
    font-weight: 600;
}

.mini-facts {
    display: grid;
    gap: 12px;
}

.fact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border-radius: 18px;
    background: var(--cream);
    border: 1px solid rgba(117, 136, 115, 0.1);
}

.fact-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--white);
    font-size: 1.2rem;
}

.fact-card div {
    display: flex;
    flex-direction: column;
}

.fact-card small {
    color: var(--muted);
    font-size: 0.68rem;
}

.fact-card strong {
    color: var(--sage-dark);
    font-size: 0.86rem;
}

/* Education */
.education-section {
    background: var(--cream);
}

.education-section .section-heading {
    text-align: center;
}

.education-section .section-intro {
    margin-inline: auto;
}

.education-timeline {
    width: min(800px, 100%);
    margin-inline: auto;
    position: relative;
}

.education-timeline::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 25px;
    bottom: 25px;
    width: 2px;
    background: var(--sage-light);
}

.education-item {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--sage-light);
    box-shadow: 0 6px 18px rgba(73, 91, 72, 0.08);
}

.education-card {
    padding: 22px 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(117, 136, 115, 0.12);
}

.education-stage {
    color: var(--sage);
    font-size: 0.68rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 700;
}

.education-card h3 {
    font-family: "Playfair Display", serif;
    margin-top: 4px;
    font-size: 1.2rem;
}

.education-card p {
    color: var(--muted);
    font-size: 0.82rem;
}

.education-item.current .education-card {
    background: var(--sage);
    color: var(--white);
}

.education-item.current .education-stage,
.education-item.current p {
    color: #e8eee5;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 29px;
    min-height: 230px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid rgba(117, 136, 115, 0.1);
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-7px);
    background: var(--sage);
    color: var(--white);
    box-shadow: var(--shadow);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 13px;
}

.skill-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    margin-bottom: 7px;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.85rem;
}

.skill-card:hover p {
    color: #e9eee7;
}

/* Experience */
.experience-section {
    background: #fbf8f3;
}

.experience-list {
    display: grid;
    gap: 18px;
}

.experience-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 22px;
    padding: 29px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(117, 136, 115, 0.11);
    box-shadow: 0 8px 30px rgba(73, 91, 72, 0.045);
}

.experience-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--sage-light);
    font-size: 1.8rem;
}

.experience-content > span {
    color: var(--sage);
    font-size: 0.67rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.experience-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin: 2px 0 7px;
}

.experience-content p {
    color: var(--muted);
    font-size: 0.88rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.experience-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--brown);
    font-size: 0.66rem;
    font-weight: 600;
}

/* Future */
.future-section {
    background: var(--sage);
    color: var(--white);
}

.future-section .section-number {
    color: #dfe8da;
}

.future-section .section-heading h2 span {
    color: var(--pink-light);
}

.future-intro {
    max-width: 780px;
    color: #e9eee7;
    font-size: 1rem;
    margin-bottom: 42px;
}

.future-intro p {
    margin-bottom: 13px;
}

.future-intro strong {
    color: var(--white);
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.future-card {
    padding: 28px;
    min-height: 220px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
}

.future-card > span {
    color: #dfe8da;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
}

.future-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    margin: 8px 0;
}

.future-card p {
    color: #e2e9df;
    font-size: 0.84rem;
}

/* Contact */
.contact-section {
    padding-bottom: 120px;
}

.contact-box {
    padding: 65px;
    border-radius: 34px;
    background: var(--cream);
    text-align: center;
}

.contact-box .section-intro {
    margin-inline: auto;
}

.contact-grid {
    width: min(720px, 100%);
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    text-decoration: none;
    text-align: left;
    transition: 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--pink-light);
    font-size: 1.2rem;
}

.contact-card > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-card small {
    color: var(--muted);
    font-size: 0.67rem;
}

.contact-card strong {
    color: var(--sage-dark);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

/* Footer */
.footer {
    padding: 22px 0;
    background: var(--sage-dark);
    color: #e8eee5;
    font-size: 0.75rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--sage);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Tablet */
@media (max-width: 900px) {
    .nav-menu {
        gap: 13px;
    }

    .nav-menu a {
        font-size: 0.75rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-description {
        margin-inline: auto;
    }

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

    .hero-photo {
        order: -1;
    }

    .photo-frame {
        width: min(360px, 82%);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Phone */
@media (max-width: 700px) {
    .container {
        width: min(100% - 30px, 560px);
    }

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 15px;
        right: 15px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 18px;
        max-height: 0;
        overflow: hidden;
        border-radius: 0 0 20px 20px;
        background: rgba(255, 253, 249, 0.98);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .nav-menu.active {
        max-height: 500px;
        padding-block: 8px;
    }

    .nav-menu a {
        padding: 11px 4px;
        font-size: 0.85rem;
    }

    .hero {
        min-height: auto;
        padding-top: 115px;
        padding-bottom: 70px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
        letter-spacing: -1px;
    }

    .photo-frame {
        width: min(330px, 86%);
    }

    .photo-note {
        right: -4px;
    }

    .section {
        padding: 82px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

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

    .experience-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .experience-icon {
        width: 55px;
        height: 55px;
        border-radius: 16px;
    }

    .contact-box {
        padding: 38px 20px;
        border-radius: 26px;
    }

    .education-timeline::before {
        left: 21px;
    }

    .education-item {
        grid-template-columns: 44px 1fr;
        gap: 13px;
    }

    .timeline-dot {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .education-card {
        padding: 17px;
    }

    .education-card h3 {
        font-size: 1.02rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .decor {
        display: none;
    }
}
