/* =====================================================
   ABOUT-RESPONSIVE.CSS
   All responsive breakpoints for the About page.
   This file must be linked LAST in <head>
   (after About.css, Header.css, Footer.css, NavBar.css).
===================================================== */


/* =====================================================
   GLOBAL RESPONSIVE FIXES
===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}


/* =====================================================
   NAVBAR — TABLET & MOBILE (≤900px)
   (Same behavior as the Home page navbar)
===================================================== */

@media (max-width: 900px) {

    .navbar {
        width: 100%;
        min-height: auto;
        padding: 15px 0;
    }

    .navbar .container {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 15px;
        padding: 12px 20px;
    }

    .logo {
        display: block;
        text-align: center;
    }

    .logo-text {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    .nav-links {
        position: static;

        width: 100%;
        height: auto;

        display: flex;
        flex-direction: row;

        align-items: center;
        justify-content: center;

        flex-wrap: wrap;

        gap: 10px 25px;

        margin: 0;
        padding: 0;

        background: transparent;
        box-shadow: none;

        transform: none;
        transition: none;
    }

    .nav-links.open {
        transform: none;
    }

    .nav-links li {
        display: block;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        display: block;

        font-size: 1rem;
        padding: 7px 4px;

        white-space: nowrap;
    }

    .nav-toggle {
        display: none;
    }
}


/* =====================================================
   NAVBAR — SMALL PHONES (≤600px)
===================================================== */

@media (max-width: 600px) {

    .navbar .container {
        padding: 12px 15px;
        gap: 12px;
    }

    .logo-text {
        font-size: 1.55rem;
        letter-spacing: 1.5px;
    }

    .nav-links {
        width: 100%;
        gap: 6px 17px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 2px;
    }
}


/* =====================================================
   NAVBAR — VERY SMALL PHONES (≤400px)
===================================================== */

@media (max-width: 400px) {

    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .nav-links {
        gap: 5px 13px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }
}


/* =====================================================
   FOOTER — MOBILE (≤768px)
===================================================== */

@media (max-width: 768px) {

    .site-footer {
        width: 100%;
        padding: 60px 0 20px;
    }

    .footer-container {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        text-align: center;

        gap: 45px;

        padding: 0 25px;
    }

    .footer-brand,
    .footer-navigation,
    .footer-contact {
        width: 100%;
        max-width: 500px;

        text-align: center;

        margin-left: 0;
        left: 0;
    }

    .footer-brand p {
        max-width: 100%;

        margin-left: auto;
        margin-right: auto;
    }

    .footer-navigation {
        margin-left: 0;
    }

    .footer-navigation h3 {
        margin-left: 0;
    }

    .footer-contact {
        left: 0;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        text-align: center;

        padding: 20px 25px 0;
    }
}


/* =====================================================
   FOOTER — SMALL PHONES (≤480px)
===================================================== */

@media (max-width: 480px) {

    .site-footer {
        padding: 45px 0 20px;
    }

    .footer-brand h2,
    .footer-navigation h3,
    .footer-contact h3 {
        font-size: 1.4rem;
    }

    .footer-navigation a,
    .footer-contact p {
        font-size: 1.05rem;
    }

    .footer-bottom p,
    .footer-bottom span {
        font-size: 1rem;

        text-align: center;
    }
}


/* =====================================================
   ABOUT HERO — MOBILE (≤768px)
   (pulled from About.css, unchanged)
===================================================== */

@media (max-width: 768px) {

    .drop-text {
        font-size: 2.6rem;
    }

    .hero-description {
        font-size: 1rem;
        width: auto;
        max-width: 90%;
    }
}


/* =====================================================
   ABOUT SECTION / AUTHOR CARD — ≤576px
   (pulled from About.css, unchanged — kept in its
   original source position relative to the ≤1100px and
   ≤768px blocks below since later rules win ties)
===================================================== */

@media (max-width: 576px) {

    .about-section {
        padding: 60px 0;
    }

    .about-section .container {
        padding: 0 20px;
    }

    .about-wrapper {
        gap: 45px;
    }

    .author-frame {
        width: 100%;
        max-width: 330px;
    }

    .author-photo {
        height: 390px;
    }

    .quote-card {
        width: 100%;
        padding: 25px 22px;
    }

    .quote-card p {
        font-size: 16px;
    }

    .about-right h2 {
        font-size: 38px;
    }

    .featured-label {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .about-right p,
    .about-right .intro {
        font-size: 16px;
        line-height: 1.8;
        text-align: justify;
    }
}


/* =====================================================
   ABOUT WRAPPER — TABLET (≤1100px)
===================================================== */

@media (max-width: 1100px) {

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .about-left {
        order: 1;
    }

    .about-right {
        order: 2;
    }

    .author-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-frame {
        width: 360px;
    }
}


/* =====================================================
   ABOUT SECTION — MOBILE (≤768px)
===================================================== */

@media (max-width: 768px) {

    .about-section {
        padding: 90px 0;
    }

    .paper-card {
        padding: 40px;
    }

    .author-frame {
        width: 300px;
    }

    .author-highlights {
        grid-template-columns: 1fr;
    }

    .paper-card h3 {
        font-size: 3rem;
    }

    .about-heading h2 {
        font-size: 2.5rem;
    }

    .intro {
        font-size: 1.1rem;
        line-height: 1.9;
    }

    .quote-box p {
        font-size: 1.45rem;
    }

    .gold-divider {
        width: 220px;
    }
}


/* =====================================================
   ABOUT SECTION — SMALL PHONES (≤500px)
===================================================== */

@media (max-width: 500px) {

    .author-frame {
        width: 250px;
    }

    .paper-card {
        padding: 30px;
    }

    .paper-card h3 {
        font-size: 2.3rem;
    }

    .about-heading h2 {
        font-size: 2rem;
    }

    .feather-icon {
        font-size: 2rem;
    }

    .quote-box i {
        font-size: 2rem;
    }
}


/* =====================================================
   ABOUT SECTION — VERY SMALL PHONES (≤400px)
===================================================== */

@media (max-width: 400px) {

    .about-hero {
        min-height: 420px;
        padding: 30px 15px;
    }

    .drop-text {
        font-size: 2.1rem;
    }

    .paper-card {
        padding: 22px;
    }

    .author-highlights {
        gap: 18px;
    }

    .highlight {
        padding: 25px 16px;
    }
}


/* =====================================================
   ABOUT HERO — SHOW FULL TEXT ON MOBILE
===================================================== */

@media (max-width: 768px) {

    .about-hero {
        height: auto !important;
        min-height: 420px;
        overflow: visible !important;
    }

    .about-hero .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .about-hero .hero-description {
        width: auto !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;

        white-space: normal !important;
        word-wrap: break-word;

        text-align: center;

        display: block !important;
    }

    /* Disable the typing width restriction */
    .about-hero .typing-about {
        width: auto !important;
        animation: none !important;
        border-right: none !important;
    }
}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 400px) {

    .about-hero {
        min-height: 400px;
        padding: 40px 15px;
    }

    .about-hero .drop-text {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .about-hero .hero-description {
        width: 100% !important;
        font-size: 1rem;
        line-height: 1.6;
    }
}


/* =====================================================
   MEET THE AUTHOR — MOBILE
===================================================== */

@media (max-width: 768px) {

    .about-hero .drop-text {
        width: 100%;
        max-width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        flex-wrap: nowrap;

        text-align: center;

        font-size: 2.5rem;
        line-height: 1.2;

        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 480px) {

    .about-hero .drop-text {
        font-size: 2rem;
    }

}

@media (max-width: 360px) {

    .about-hero .drop-text {
        font-size: 2rem;
    }

}



/* =====================================================
   ABOUT THE AUTHOR — CENTER HEADING ON MOBILE
===================================================== */

@media (max-width: 768px) {

    .about-heading {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .about-heading h2 {
        width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .about-heading .feather-icon,
    .about-heading .heading-divider {
        margin-left: auto;
        margin-right: auto;
    }
}

