/* ==============================================
   css/responsive.css
   Anish Portfolio — Responsive / Mobile Styles
   ============================================== */

/* -----------------------------------------------
   Breakpoints Used:
   Mobile:  max-width: 768px
   Tablet:  max-width: 1024px (minor tweaks only)
   ----------------------------------------------- */


/* -----------------------------------------------
   Tablet Adjustments (769px – 1024px)
   ----------------------------------------------- */
@media (max-width: 1024px) {

    .navbar {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .navbar__links {
        gap: 0;
    }

    .navbar__link {
        font-size: 0.85rem;
        padding: 0.5rem 0.65rem;
    }

    .navbar__cta {
        padding: 0.5rem 1rem;
        font-size: 0.825rem;
    }
}

/* -----------------------------------------------
   Mobile (max-width: 768px)
   ----------------------------------------------- */
@media (max-width: 768px) {

    /* -- Site Header height adjustment ---------- */
    .site-header {
        height: var(--nav-height-mob);
    }

    /* -- Navbar layout -------------------------- */
    .navbar {
        padding: 0 1.25rem;
        gap: 0;
        justify-content: space-between;
    }

    /* -- Logo: slightly smaller on mobile ------- */
    .navbar__logo-initials {
        font-size: 1.4rem;
    }

    .navbar__logo-dot {
        width: 5px;
        height: 5px;
        margin-bottom: 0.6rem;
    }

    /* -- Hide desktop nav links on mobile ------- */
    .navbar__links {
        display: none;
    }

    /* -- Hide desktop CTA on mobile ------------- */
    .navbar__cta {
        display: none;
    }

    /* -- Show hamburger on mobile --------------- */
    .navbar__hamburger {
        display: flex;
    }

    /* -- Site main padding adjust --------------- */
    .site-main {
        padding-top: var(--nav-height-mob);
    }

    /* ============================================
       FULLSCREEN OVERLAY NAVIGATION
       ============================================ */

    /* Overlay already set to display: flex in main.css.
       Here we fine-tune layout for mobile viewports. */

    .mobile-overlay {
        padding-top: calc(var(--nav-height-mob) + 1.5rem);
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 5rem;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .mobile-overlay__nav {
        width: 100%;
        margin-top: 1rem;
    }

    /* Link sizing on small mobile */
    .mobile-overlay__link {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
        padding: 0.9rem 0;
        gap: 1rem;
    }

    .mobile-overlay__num {
        font-size: 0.7rem;
        min-width: 20px;
    }

    .mobile-overlay__footer {
        bottom: 2rem;
        left: 1.25rem;
    }

    .mobile-overlay__tagline {
        font-size: 0.75rem;
    }

    /* Overlay grid lines: tighter on mobile */
    .mobile-overlay__grid {
        background-size: 40px 40px;
    }
}

/* -----------------------------------------------
   Very Small Screens (max-width: 380px)
   ----------------------------------------------- */
@media (max-width: 380px) {

    .navbar {
        padding: 0 1rem;
    }

    .navbar__logo-initials {
        font-size: 1.25rem;
    }

    .mobile-overlay__link {
        font-size: 1.5rem;
        padding: 0.75rem 0;
    }

    .mobile-overlay__footer {
        left: 1rem;
    }
}

/* -----------------------------------------------
   Reduce Motion (Accessibility)
   ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .mobile-overlay {
        clip-path: none !important;
        transition: opacity 0.2s ease, visibility 0s linear 0.2s !important;
    }

    .mobile-overlay.is-open {
        transition: opacity 0.2s ease, visibility 0s linear 0s !important;
    }

    .mobile-overlay__item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .navbar__logo-initials {
        animation: none !important;
        text-shadow: 0 0 20px rgba(77, 159, 255, 0.6) !important;
    }

    .navbar__logo-dot {
        animation: none !important;
    }

    .mobile-overlay__status-dot {
        animation: none !important;
    }
}

/* -----------------------------------------------
   High Contrast Mode (Accessibility)
   ----------------------------------------------- */
@media (forced-colors: active) {

    .navbar__link.is-active,
    .navbar__link:hover {
        forced-color-adjust: none;
        color: Highlight;
    }

    .navbar__logo-initials {
        forced-color-adjust: none;
        color: Highlight;
    }

    .navbar__cta {
        forced-color-adjust: none;
        background-color: ButtonText;
        color: ButtonFace;
        border-color: ButtonText;
    }
}

/* ==============================================
   css/responsive.css — Hero Section
   Anish Portfolio — Hero Responsive Styles
   Append these rules to your existing responsive.css
   ============================================== */

/* -----------------------------------------------
   Tablet (769px – 1024px) — Minor adjustments
   ----------------------------------------------- */
@media (max-width: 1024px) {

    .hero__inner {
        gap: 3rem;
    }

    .hero__image-wrap {
        width: clamp(220px, 28vw, 340px);
        height: clamp(220px, 28vw, 340px);
    }

    .hero__name {
        font-size: clamp(2.5rem, 5vw, 3.75rem);
    }
}

/* -----------------------------------------------
   Mobile (max-width: 768px) — Single column
   Image on top, text content below
   ----------------------------------------------- */
@media (max-width: 768px) {

    /* ── Hero section padding ──────────────────── */
    .hero {
        padding-top: calc(var(--nav-height-mob) + 2.5rem);
        padding-bottom: 5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        align-items: flex-start;
    }

    /* ── Switch to single column, image FIRST ──── */
    .hero__inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2.5rem;
        justify-items: center;
        text-align: center;
    }

    /* Image moves to row 1, content to row 2 */
    .hero__image-wrap {
        order: -1;
        width: clamp(200px, 55vw, 280px);
        height: clamp(200px, 55vw, 280px);
    }

    .hero__content {
        order: 1;
        align-items: center;
        max-width: 100%;
        gap: 1rem;
    }

    /* ── Typography sizing ─────────────────────── */
    .hero__name {
        font-size: clamp(2.25rem, 9vw, 3rem);
        text-align: center;
    }

    .hero__greeting {
        justify-content: center;
        font-size: 0.9rem;
    }

    .hero__typing-row {
        justify-content: center;
        font-size: clamp(1rem, 4.5vw, 1.25rem);
        flex-wrap: wrap;
        gap: 0.1rem;
    }

    .hero__tagline {
        text-align: center;
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto;
    }

    /* ── Buttons — stack vertically on very small screens ── */
    .hero__buttons {
        justify-content: center;
        gap: 0.875rem;
    }

    .hero__btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.875rem;
    }

    /* ── Social icons — center ─────────────────── */
    .hero__social {
        justify-content: center;
    }

    /* ── Background glow — center on mobile ────── */
    .hero__bg-glow {
        top: 20%;
        right: 50%;
        transform: translateX(50%);
        width: min(400px, 80vw);
        height: min(400px, 80vw);
    }

    /* ── Shapes — hide some on mobile for cleanliness ── */
    .hero__shape--3,
    .hero__shape--4 {
        display: none;
    }

    .hero__shape--1 {
        width: 55px;
        height: 55px;
        top: 8%;
        left: 5%;
    }

    .hero__shape--2 {
        width: 35px;
        height: 35px;
        bottom: 30%;
        left: 5%;
    }

    /* ── Scroll hint — hide on mobile (less vertical space) ── */
    .hero__scroll-hint {
        display: none;
    }
}

/* -----------------------------------------------
   Very small screens (max-width: 380px)
   ----------------------------------------------- */
@media (max-width: 380px) {

    .hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero__image-wrap {
        width: 180px;
        height: 180px;
    }

    .hero__name {
        font-size: 2rem;
    }

    /* Stack buttons vertically on tiny screens */
    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
    }

    .hero__btn {
        justify-content: center;
    }

    .hero__social-link {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }
}
/* ==============================================
   css/responsive.css — About Section
   Anish Portfolio — About Responsive Styles
   Append these rules to your existing responsive.css
   ============================================== */

/* -----------------------------------------------
   Tablet (769px – 1024px)
   ----------------------------------------------- */
@media (max-width: 1024px) {

    .about__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
    }

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

    .about__badge {
        bottom: -12px;
        right: -8px;
    }
}

/* -----------------------------------------------
   Mobile (max-width: 768px) — Single column
   Image on top, content below
   ----------------------------------------------- */
@media (max-width: 768px) {

    /* ── Section padding ───────────────────────── */
    .about {
        padding: 70px 0;
    }

    .about__header {
        margin-bottom: 2.5rem;
    }

    /* ── Single column, image first ────────────── */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        justify-items: center;
    }

    /* Image column — constrain width on mobile */
    .about__image-col {
        width: 100%;
        max-width: 320px;
    }

    .about__image-wrap {
        width: 100%;
    }

    .about__image {
        aspect-ratio: 3 / 4;
    }

    /* Badge: reposition for narrower image */
    .about__badge {
        bottom: -14px;
        right: -10px;
        padding: 0.6rem 0.875rem;
        gap: 0.5rem;
    }

    .about__badge-number {
        font-size: 1.5rem;
    }

    .about__badge-text {
        font-size: 0.65rem;
    }

    /* ── Content column — center-aligned on mobile ── */
    .about__content-col {
        width: 100%;
        align-items: center;
        text-align: center;
        gap: 1.1rem;
        padding-top: 0;
    }

    .about__role {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
    }

    .about__bio {
        font-size: 0.925rem;
        max-width: 100%;
        text-align: center;
    }

    /* ── Detail cards — 2 col stays, but smaller ── */
    .about__details {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
        width: 100%;
    }

    .about__detail-card {
        padding: 0.75rem 0.75rem;
        gap: 0.625rem;
    }

    .about__detail-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .about__detail-value,
    .about__detail-link {
        font-size: 0.8rem;
    }

    .about__detail-label {
        font-size: 0.65rem;
    }

    /* ── CV Button — full width feel ───────────── */
    .about__actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about__cv-btn {
        padding: 0.75rem 2rem;
    }
}

/* -----------------------------------------------
   Very small screens (max-width: 420px)
   ----------------------------------------------- */
@media (max-width: 420px) {

    /* Stack detail cards to single column */
    .about__details {
        grid-template-columns: 1fr;
    }

    .about__detail-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .about__image-col {
        max-width: 260px;
    }

    .about__role {
        font-size: 1.35rem;
    }

    /* Corner brackets closer on small wrap */
    .about__image-corner--tl { top: -4px; left: -4px; }
    .about__image-corner--br { bottom: -4px; right: -4px; }
}

/* ============================================================
   SKILLS SECTION — responsive.css
   Theme: Anish Portfolio
   ============================================================ */

/* ---------- Tablet: 2 columns (max-width: 768px) ---------- */
@media (max-width: 768px) {

    .skills-section {
        padding: 72px 0;
    }

    .skills-container {
        padding: 0 20px;
    }

    /* Tabs: allow wrapping, full-width container */
    .skills-tabs {
        width: 100%;
        justify-content: center;
        gap: 6px;
        padding: 5px;
        border-radius: 10px;
    }

    .skills-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.825rem;
        gap: 6px;
    }

    /* 2-column grid */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Reset the 5th-card centering trick for 2-col layout */
    .skills-grid .skill-card:last-child:nth-child(4n + 1) {
        grid-column: auto;
    }

    /* Center the last card if it's alone in its row */
    .skills-grid .skill-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 280px;
        justify-self: center;
    }

    .skill-card {
        padding: 24px 16px 20px;
    }

    .skill-card__icon {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .skill-card__icon i {
        font-size: 1.3rem;
    }

    .skill-card__name {
        font-size: 0.9rem;
    }
}

/* ---------- Mobile: 1 column (max-width: 480px) ---------- */
@media (max-width: 480px) {

    .skills-section {
        padding: 56px 0;
    }

    .skills-container {
        padding: 0 16px;
    }

    .skills-heading {
        font-size: 1.75rem;
    }

    .skills-header {
        margin-bottom: 40px;
    }

    /* Stack tabs vertically on very small screens */
    .skills-tabs {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }

    .skills-tab {
        justify-content: flex-start;
        padding: 11px 16px;
        font-size: 0.875rem;
        border-radius: 8px;
    }

    /* 1-column grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Reset all grid-column overrides for single column */
    .skills-grid .skill-card:last-child:nth-child(4n + 1),
    .skills-grid .skill-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }

    .skill-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 18px 20px;
        gap: 16px;
    }

    .skill-card__icon {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
    }

    /* Text block takes remaining space */
    .skill-card__name {
        flex: 1;
        font-size: 0.9rem;
    }

    /* Rearrange card internals for row layout */
    .skill-card {
        display: grid;
        grid-template-columns: 46px 1fr auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 0 16px;
    }

    .skill-card__icon {
        grid-column: 1;
        grid-row: 1;
    }

    .skill-card__name {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 4px;
    }

    .skill-badge {
        grid-column: 3;
        grid-row: 1;
        white-space: nowrap;
    }
}

/* ============================================================
   PROJECTS SECTION (Homepage) — responsive.css
   Theme: Anish Portfolio
   ============================================================ */

/* ---------- Tablet (≤ 768px) ---------- */
@media (max-width: 768px) {
    .projects-section {
        padding: 72px 0;
    }

    .projects-container {
        padding: 0 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card__body {
        padding: 20px;
        gap: 12px;
    }
}

/* ---------- Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
    .projects-section {
        padding: 56px 0;
    }

    .projects-container {
        padding: 0 16px;
    }

    .projects-header {
        margin-bottom: 36px;
    }

    .projects-heading {
        font-size: 1.75rem;
    }

    .projects-grid {
        gap: 16px;
    }

    .project-card__body {
        padding: 18px 16px;
        gap: 10px;
    }

    .project-card__title {
        font-size: 1rem;
    }

    .project-card__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn--primary,
    .btn--ghost {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
    }

    .btn--outline-lg {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }
}

/* ============================================================
   ARCHIVE — projects — responsive.css
   Theme: Anish Portfolio
   ============================================================ */

/* ---------- Tablet: 2 columns (≤ 768px) ---------- */
@media (max-width: 768px) {

    .archive-projects {
        padding: 60px 0 80px;
    }

    .archive-projects__container {
        padding: 0 20px;
    }

    .archive-projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .archive-projects__header {
        margin-bottom: 40px;
    }

    .project-card__body {
        padding: 18px;
        gap: 10px;
    }
}

/* ---------- Mobile: 1 column (≤ 480px) ---------- */
@media (max-width: 480px) {

    .archive-projects {
        padding: 48px 0 64px;
    }

    .archive-projects__container {
        padding: 0 16px;
    }

    .archive-projects__heading {
        font-size: 1.75rem;
    }

    .archive-projects__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card__body {
        padding: 16px;
    }

    .project-card__title {
        font-size: 1rem;
    }

    .project-card__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn--primary,
    .btn--ghost {
        flex: 1;
        justify-content: center;
    }

    /* Pagination wrap nicely on small screens */
    .archive-projects__pagination .page-numbers li a,
    .archive-projects__pagination .page-numbers li span {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   SINGLE PROJECT — responsive.css
   Theme: Anish Portfolio
   ============================================================ */

/* ---------- Tablet (≤ 900px): stack sidebar below content ---------- */
@media (max-width: 900px) {

    .sp-hero {
        height: 420px;
    }

    .sp-body__container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Sidebar: un-sticky, full width */
    .sp-sidebar {
        position: static;
        top: auto;
    }

    .sp-details-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 32px;
    }

    /* Heading spans full width */
    .sp-details-card__heading {
        grid-column: 1 / -1;
    }

    /* Live button spans full width */
    .sp-live-btn {
        grid-column: 1 / -1;
    }

    /* Related: 2 columns on tablet */
    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide the 3rd related card on 2-col to avoid orphan */
    .sp-related__grid .project-card:nth-child(3) {
        display: none;
    }
}

/* ---------- Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {

    .sp-hero {
        height: 340px;
        align-items: flex-end;
    }

    .sp-hero__content {
        padding-bottom: 36px;
    }

    .sp-hero__inner {
        padding: 0 16px;
    }

    .sp-hero__title {
        font-size: 1.6rem;
    }

    .sp-body {
        padding: 40px 0 60px;
    }

    .sp-body__container {
        padding: 0 16px;
        gap: 28px;
    }

    /* Sidebar back to single column */
    .sp-details-card {
        grid-template-columns: 1fr;
    }

    .sp-details-card__heading {
        grid-column: auto;
    }

    .sp-live-btn {
        grid-column: auto;
    }

    .sp-content__inner {
        font-size: 0.95rem;
    }

    .sp-related {
        padding: 56px 0 72px;
    }

    .sp-related__container {
        padding: 0 16px;
    }

    .sp-related__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Show all 3 related cards on single column */
    .sp-related__grid .project-card:nth-child(3) {
        display: flex;
    }

    .sp-related__header {
        margin-bottom: 32px;
    }
}

/* ---------- Very small (≤ 380px) ---------- */
@media (max-width: 380px) {

    .sp-hero {
        height: 280px;
    }

    .sp-hero__title {
        font-size: 1.35rem;
    }

    .sp-details-card {
        padding: 20px 16px;
    }

    .project-card__actions {
        flex-wrap: wrap;
    }

    .btn--primary,
    .btn--ghost {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================
   SERVICES SECTION — responsive.css
   Theme: Anish Portfolio
   ============================================================ */

/* ---------- Tablet: 2 columns (≤ 768px) ---------- */
@media (max-width: 768px) {

    .services-section {
        padding: 72px 0;
    }

    .services-container {
        padding: 0 20px;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Center the lone 6th card if it's by itself (shouldn't happen with 6 cards, but safety) */
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 360px;
        justify-self: center;
    }

    .service-card {
        padding: 26px 20px 22px;
        gap: 14px;
    }
}

/* ---------- Mobile: 1 column (≤ 480px) ---------- */
@media (max-width: 480px) {

    .services-section {
        padding: 56px 0;
    }

    .services-container {
        padding: 0 16px;
    }

    .services-heading {
        font-size: 1.75rem;
    }

    .services-header {
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Reset centering override for 1-col */
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }

    /* Row layout on mobile: icon left, content right */
    .service-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px 18px;
        gap: 18px;
        flex-wrap: wrap;
    }

    .service-card__icon {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .service-card__icon i {
        font-size: 1.2rem;
    }

    /* Text block fills remaining space */
    .service-card__title {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
    }

    /* Stack title + desc + btn in a column */
    .service-card {
        display: grid;
        grid-template-columns: 46px 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 16px;
        row-gap: 8px;
        align-items: start;
    }

    .service-card__icon {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
    }

    .service-card__title {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .service-card__desc {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.825rem;
    }

    .service-card__btn {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: start;
        margin-top: 4px;
    }
}

/* ============================================================
   CONTACT SECTION — Responsive Styles
   File: css/responsive.css
   ============================================================ */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrap {
        padding: 36px 32px;
    }
}

@media (max-width: 768px) {
    /* ── Section ─────────────────────────────────────────── */
    .contact-section {
        padding: 72px 0;
    }

    .contact-container {
        padding: 0 24px;
    }

    .contact-header {
        margin-bottom: 48px;
    }

    /* ── Stack: info on top, form below ─────────────────── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Force info panel above form */
    .contact-info {
        order: 1;
    }

    .contact-form-wrap {
        order: 2;
    }

    /* ── Info Panel ──────────────────────────────────────── */
    .contact-info {
        gap: 24px;
    }

    .contact-info-heading {
        font-size: 1.5rem;
    }

    .contact-card {
        padding: 14px 18px;
    }

    .contact-card-value {
        font-size: 0.88rem;
    }

    /* ── Form ────────────────────────────────────────────── */
    .contact-form-wrap {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .form-row--two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-input {
        padding: 13px 16px;
        font-size: 1rem; /* Prevent iOS zoom on focus */
    }

    .form-textarea {
        min-height: 130px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 56px 0;
    }

    .contact-container {
        padding: 0 16px;
    }

    .contact-section-title {
        font-size: 1.75rem;
    }

    .contact-form-wrap {
        padding: 22px 18px;
    }

    .contact-cards {
        gap: 12px;
    }

    .contact-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }

    .contact-socials {
        gap: 10px;
    }

    .contact-social-link {
        width: 40px;
        height: 40px;
    }
}

/* ============================================================
   FOOTER — Responsive Styles
   File: css/responsive.css
   ============================================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    /* Brand spans full width on tablet */
    .footer-col--brand {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer-bio {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    /* ── Container ───────────────────────────────────────── */
    .footer-container {
        padding: 0 24px;
    }

    /* ── Single Column Stack ─────────────────────────────── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 56px 0 48px;
    }

    /* Reset tablet override */
    .footer-col--brand {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 0;
        border-bottom: none;
    }

    /* Add divider between stacked columns */
    .footer-col + .footer-col {
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* ── Brand ───────────────────────────────────────────── */
    .footer-logo {
        width: 52px;
        height: 52px;
    }

    .footer-logo-text {
        font-size: 1.2rem;
    }

    .footer-bio {
        max-width: 100%;
        font-size: 0.9rem;
    }

    /* ── Quick Links: 2-col mini grid ───────────────────── */
    .footer-nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 20px;
    }

    /* ── Contact Info ────────────────────────────────────── */
    .footer-contact-link,
    .footer-contact-text {
        font-size: 0.88rem;
    }

    /* ── Bottom Bar: Stack ───────────────────────────────── */
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .footer-copyright,
    .footer-credit {
        font-size: 0.8rem;
    }

    /* ── Back to Top ─────────────────────────────────────── */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-grid {
        padding: 44px 0 36px;
        gap: 32px;
    }

    /* Revert nav to single column on very small screens */
    .footer-nav-list {
        grid-template-columns: 1fr;
    }

    .footer-col-heading {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .footer-socials {
        gap: 10px;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .footer-contact-item {
        gap: 12px;
    }

    .footer-contact-icon {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .footer-bottom {
        padding-bottom: 24px;
    }

    .footer-bottom-bar {
        gap: 6px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 0.82rem;
    }
}