/* ============================================================================
   RESPONSIVE.CSS — Niswatul Chaira Portfolio
   Regenerated — Mobile First Approach
   Breakpoints:
     xs:  < 480px   (small phones)
     sm:  < 576px   (phones)
     md:  < 768px   (large phones / small tablets)
     lg:  < 992px   (tablets)
     xl:  < 1200px  (laptops)
     2xl: < 1400px  (large laptops)
   ============================================================================ */

/* ============================================================================
   1. HAMBURGER BUTTON
   ============================================================================ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================================
   2. MOBILE DRAWER
   ============================================================================ */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.nav-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: linear-gradient(160deg, #0d1117 0%, #111827 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.nav-drawer.active {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drawer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1560BD;
    letter-spacing: 1.5px;
}

.nav-drawer-close {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-drawer-close svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.7);
}

.nav-drawer-links {
    list-style: none;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-drawer-links li {
    padding: 0 16px;
    margin-bottom: 4px;
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.nav-drawer-link:hover,
.nav-drawer-link.active {
    background: rgba(21, 96, 189, 0.12);
    color: #ffffff;
    padding-left: 20px;
}

.nav-drawer-link-num {
    font-size: 11px;
    font-weight: 700;
    color: #1560BD;
    letter-spacing: 0.5px;
    opacity: 0.8;
    min-width: 20px;
}

.nav-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drawer-footer p {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   3. NAVBAR RESPONSIVE
   ============================================================================ */
@media (max-width: 900px) {

    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .navbar {
        top: auto;
        bottom: 16px;
        max-width: calc(100% - 32px);
    }

    .navbar-container {
        justify-content: space-between;
        padding: 0 20px;
        height: 48px;
        border-radius: 999px;
    }

    .nav-logo {
        position: static;
        transform: none;
    }

    .nav-logo a {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .navbar.scrolled {
        top: auto;
        bottom: 10px;
    }

    .navbar.scrolled .navbar-container {
        height: 48px;
    }

    /* Reserve space so footer is not hidden behind the bottom nav */
    body {
        padding-bottom: 76px;
    }
}

@media (max-width: 480px) {
    .navbar {
        max-width: calc(100% - 24px);
    }

    .nav-logo a {
        font-size: 14px;
    }
}

/* ============================================================================
   4. HERO SECTION
   ============================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 36px;
    }

    .hero-avatar {
        width: 420px;
        height: 420px;
    }

    .hero-circle {
        width: 460px;
        height: 460px;
        bottom: -14rem;
    }

    .hero-description {
        left: 40px;
        max-width: 220px;
    }

    .hero-description p {
        font-size: 14px;
    }

    .hero-experience {
        right: 40px;
    }

    .hero-experience .exp-number {
        font-size: 48px;
    }
}

/* Mobile — full restructure */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100svh;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 16px 12px;
        padding: 80px 20px 96px;
        overflow: visible;
    }

    /* Hide decorative elements + avatar image on mobile — content only */
    .hero-circle {
        display: none;
    }

    .hero-avatar {
        display: none;
    }

    /* Content items — full row each */
    .hero-heading {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 30px;
        white-space: normal;
        text-align: center;
        flex: 0 0 100%;
        order: 1;
        letter-spacing: 0;
    }

    .hero-subtitle {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 18px;
        text-align: center;
        flex: 0 0 100%;
        order: 2;
    }

    .hero-description {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        max-width: 340px;
        flex: 0 0 100%;
        order: 3;
    }

    .hero-description p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 0;
    }

    /* Experience badge */
    .hero-experience {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        text-align: center;
        align-items: center;
        justify-content: center;
        flex: 0 0 100%;
        order: 4;
        flex-direction: row;
        gap: 8px;
    }

    .hero-experience .exp-number {
        font-size: 36px;
    }

    .hero-experience .exp-label {
        font-size: 14px;
        text-align: left;
    }

    /* CTA buttons — side by side (no wrapper) */
    .hero-cta-left,
    .hero-cta-right {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        justify-content: center;
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        order: 5;
        margin-bottom: 0;
    }

    .hero-cta-left .btn-hero-primary,
    .hero-cta-right .btn-hero-primary {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 16px 96px;
    }

    .hero-heading {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* ============================================================================
   5. ABOUT SECTION
   ============================================================================ */
@media (max-width: 1024px) {
    .about-container {
        gap: 60px;
    }

    .about-expertise {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
        padding-left: 0;
    }

    .about-badge-float {
        top: 16px;
        right: -8px;
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    .about-exp-tag {
        bottom: 16px;
        left: -8px;
        padding: 12px 16px;
    }

    .about-exp-tag .exp-number {
        font-size: 1.6rem;
    }

    .about-exp-tag .exp-label {
        font-size: 0.6rem;
    }

    .about-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .about-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .about-description {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .about-expertise {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .expertise-item {
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
        gap: 14px;
    }

    .expertise-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .expertise-icon svg,
    .expertise-icon i.bi {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .expertise-text h4 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .expertise-text p {
        font-size: 11px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 0;
        padding: 20px 0;
    }

    .stat-item {
        flex: 0 0 50%;
        padding: 12px 0;
    }

    .stat-divider {
        display: none;
    }

    .about-stats .stat-number {
        font-size: 28px;
    }

    .about-stats .stat-label {
        font-size: 10px;
    }

    .about-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .download-cv-btn,
    .about-btn-secondary {
        justify-content: center;
        width: 100%;
        padding: 15px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 60px 16px;
    }

    .about-image-wrapper {
        max-width: 260px;
    }

    .about-title {
        font-size: 24px;
    }
}

/* ============================================================================
   6. SERVICES SECTION
   ============================================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 20px;
    }

    .services-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
        align-items: flex-start;
    }

    .services-title {
        font-size: 32px;
    }

    .services-description-wrapper {
        justify-content: flex-start;
    }

    .services-description {
        text-align: left;
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 60px 16px;
    }

    .services-title {
        font-size: 28px;
    }
}

/* ============================================================================
   7. EXPERIENCE SECTION
   ============================================================================ */
@media (max-width: 992px) {
    .experience-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }

    .experience-description-wrapper {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .experience-description {
        text-align: left;
        font-size: 14px;
    }

    .experience-timeline {
        padding-left: 32px;
    }

    .experience-timeline::before {
        left: 8px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 20px 24px 44px;
    }

    .experience-item::before {
        left: -25px;
        top: 30px;
    }

    .experience-item:first-child::before {
        left: -27px;
        top: 28px;
    }

    .experience-date {
        justify-content: flex-start;
    }

    .experience-position {
        font-size: 20px;
    }

    .experience-company {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .experience {
        padding: 80px 20px;
    }

    .experience-title {
        font-size: 32px;
    }

    .experience-highlights {
        flex-direction: column;
        gap: 8px;
    }

    .experience-highlights li {
        font-size: 13px;
        padding: 7px 14px;
    }
}

@media (max-width: 480px) {
    .experience {
        padding: 60px 16px;
    }

    .experience-title {
        font-size: 26px;
    }

    .experience-timeline {
        padding-left: 28px;
    }

    .experience-timeline::before {
        left: 6px;
        width: 2px;
    }

    .experience-item {
        padding: 18px 16px 18px 36px;
    }

    .experience-item::before {
        left: -22px;
        top: 22px;
        width: 14px;
        height: 14px;
    }

    .experience-item:first-child::before {
        left: -24px;
        top: 20px;
        width: 16px;
        height: 16px;
    }

    .experience-text {
        font-size: 13px;
    }
}

/* ============================================================================
   8. BLOG SECTION
   ============================================================================ */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 80px 20px;
    }

    .blog-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .blog-title {
        font-size: 32px;
    }

    .blog-description-wrapper {
        justify-content: flex-start;
    }

    .blog-description {
        text-align: left;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog {
        padding: 60px 16px;
    }

    .blog-title {
        font-size: 26px;
    }

    .blog-card-title {
        font-size: 17px;
    }

    .blog-content {
        padding: 18px;
    }
}

/* ============================================================================
   9. FAQ SECTION
   ============================================================================ */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .faq-description-wrapper {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .faq-description {
        text-align: left;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 80px 20px;
    }

    .faq-title {
        font-size: 32px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question-text {
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 60px 16px;
    }

    .faq-title {
        font-size: 26px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-question-text {
        font-size: 14px;
    }
}

/* ============================================================================
   10. TESTIMONIAL SECTION (DESKTOP) — hide on mobile
   ============================================================================ */
.testimonial-mobile {
    display: none;
    /* hidden on desktop */
}

@media (max-width: 992px) {

    /* Hide entire desktop testimonial section on tablet/mobile */
    .testimonial-section {
        display: none;
    }

    /* Show mobile version */
    .testimonial-mobile {
        display: block;
    }
}

/* Desktop testimonial grid responsive (≥ 993px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .testimonial-grid {
        max-width: 860px;
    }

    .t-grid-card {
        flex: 0 1 calc((100% - 24px) / 2);
    }
}

/* ============================================================================
   11. TESTIMONIAL MOBILE SECTION STYLES
   ============================================================================ */
.testimonial-mobile {
    width: 100%;
    background: transparent;
    padding: 80px 20px 60px;
    position: relative;
    z-index: 2;
}

.testimonial-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21, 96, 189, 0.3), transparent);
}

.testimonial-mobile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21, 96, 189, 0.3), transparent);
}

.testimonial-mobile-container {
    max-width: 760px;
    margin: 0 auto;
}

.testimonial-mobile-header {
    margin-bottom: 40px;
}

.testimonial-mobile-title {
    font-size: 32px;
    font-weight: 700;
    color: #1560BD;
    margin-bottom: 12px;
    line-height: 1.2;
}

.testimonial-mobile-desc {
    font-size: 14px;
    color: #888888;
    line-height: 1.6;
    max-width: 480px;
}

/* Grid — 2 cols on tablet, 1 col on phone */
.testimonial-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Card */
.tm-card {
    background: #ffffff;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tm-card:hover {
    border-color: rgba(21, 96, 189, 0.35);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(21, 96, 189, 0.12);
}

.tm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
}

.tm-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.tm-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid rgba(21, 96, 189, 0.4);
    border-radius: 50%;
    display: block;
}

.tm-user-info {
    flex: 1;
    min-width: 0;
}

.tm-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-role {
    font-size: 11px;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-quote-icon {
    position: absolute;
    top: -4px;
    right: 0;
    font-size: 2rem;
    color: rgba(21, 96, 189, 0.4);
    font-family: Georgia, serif;
    line-height: 1;
}

.tm-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.tm-rating i {
    color: #fbbf24;
    font-size: 12px;
}

.tm-text {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
}

/* Single column on small phones */
@media (max-width: 520px) {
    .testimonial-mobile {
        padding: 60px 16px 40px;
    }

    .testimonial-mobile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .testimonial-mobile-title {
        font-size: 26px;
    }

    .tm-card {
        padding: 16px;
    }

    .tm-name {
        font-size: 13px;
    }

    .tm-text {
        font-size: 12.5px;
    }
}

/* ============================================================================
   12. CAROUSEL SECTION
   ============================================================================ */
@media (max-width: 768px) {
    .carousel-section {
        height: auto;
        padding: 20px 0 24px;
        gap: 0;
    }

    .carousel-container {
        height: 50px;
    }

    .carousel-container-bottom {
        margin-top: 12px;
    }

    .carousel-word {
        font-size: clamp(0.8rem, 3.5vw, 1.2rem);
    }

    .carousel-diamond {
        font-size: clamp(0.5rem, 1vw, 0.7rem);
    }

    .carousel-fade-left,
    .carousel-fade-right {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .carousel-word {
        font-size: clamp(0.7rem, 3vw, 1rem);
    }
}

/* ============================================================================
   13. CONTACT SECTION
   ============================================================================ */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-heading {
        font-size: 32px;
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 20px 50px;
    }

    .contact-heading {
        font-size: 28px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-details {
        padding: 20px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 12px;
    }

    .contact-item-content p,
    .contact-item-content a {
        font-size: 14px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 16px 40px;
    }

    .contact-heading {
        font-size: 24px;
    }

    .contact-form-wrapper {
        padding: 20px 16px;
    }

    .contact-form-wrapper h3 {
        font-size: 18px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 14px 24px;
    }
}

/* ============================================================================
   14. FOOTER SECTION
   ============================================================================ */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand .footer-logo {
        margin: 0 auto 16px;
    }

    .footer-title {
        font-size: 16px;
        display: flex;
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .social-links-footer {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 48px 16px 20px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .social-link-footer {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .footer-copyright {
        font-size: 11px;
    }
}

/* ============================================================================
   15. PAGE TRANSITION
   ============================================================================ */
@media (max-width: 768px) {
    .transition-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
        text-align: center;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .transition-text {
        font-size: 0.9rem;
    }
}

/* ============================================================================
   16. EDITOR TOOLBAR — responsive (override editor.css if needed)
   ============================================================================ */
@media (max-width: 640px) {
    #ed-toolbar {
        bottom: 12px;
        max-width: calc(100vw - 24px);
        padding: 6px 10px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #ed-toolbar::-webkit-scrollbar {
        display: none;
    }

    .ed-btn {
        font-size: 11px;
        padding: 7px 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    #ed-mode-badge {
        font-size: 10px;
        padding: 5px 10px;
        flex-shrink: 0;
    }
}

/* ============================================================================
   17. GLOBAL UTILS
   ============================================================================ */

/* Prevent horizontal scroll globally */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Touch targets minimum size */
@media (max-width: 768px) {

    a,
    button {
        min-height: 44px;
    }

    .nav-drawer-link {
        min-height: 48px;
    }
}

/* Smooth scroll on mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }
}

/* Fix section fade-in on mobile (ensure visible) */
@media (max-width: 768px) {
    section {
        opacity: 1;
        transform: none;
    }

    section.section-fade-in,
    section.visible {
        opacity: 1;
        transform: none;
    }
}