/* ══════════════════════════════════════
   PORTFOLIO PAGE STYLES
   Fonts & sizes matched to home.css
══════════════════════════════════════ */

:root {
    --bg:           #000000;
    --black-1:      #080808;
    --black-3:      #111111;
    --black-4:      #161616;
    --card-bg:      #141414;
    --card-border:  #242424;
    --orange:       #ff6b35;                       /* matched home.css --accent */
    --orange-light: #ff7d4a;                       /* matched home.css btn hover */
    --orange-dim:   rgba(255,107,53,0.08);         /* matched home.css --accent-faint */
    --text:         #ffffff;
    --muted:        rgba(255,255,255,0.45);        /* matched home.css hero-desc color */
    --muted2:       rgba(255,255,255,0.25);
    --border:       rgba(255,255,255,0.07);        /* matched home.css --border */
    --border-hover: rgba(255,255,255,0.18);        /* matched home.css --border-hover */
    --accent-glow:  rgba(255,107,53,0.25);

    /* ── Fonts — identical to home.css ── */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --font-tech:    'Orbitron', sans-serif;        /* card-category, labels */
    --font-tag:     'Rajdhani', sans-serif;        /* tech tags */

    /* ── Sizes — pulled directly from home.css ── */
    --title-hero:  clamp(2rem, 5vw, 4rem);         /* home .section-title */
    --title-card:  1.2rem;                         /* home .service-title */
    --body-lg:     clamp(0.78rem, 2vw, 0.85rem);   /* home .hero-desc */
    --body-md:     0.88rem;                        /* home .service-description */
    --body-sm:     0.85rem;                        /* home buttons */
    --body-lh:     1.75;                           /* home line-height throughout */
    --radius-full: 50px;
    --radius-lg:   20px;
    --radius-md:   14px;
    --radius-sm:   8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* noise overlay — matches home.css */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* ══════════════════════════════════════
   PAGE HERO
   home.css .hero-title: clamp(2rem,5vw,4rem), 800, -1px
   home.css .hero-eyebrow: 0.58rem, 700, 3px spacing
   home.css .hero-desc: clamp(0.78rem,2vw,0.85rem), lh 1.75
══════════════════════════════════════ */
.hero {
    text-align: center;
    padding: 160px 5% 52px;
    position: relative;
}

/* pill — matches home.css .section-tag: 0.7rem, 600, 3px spacing */
.our-work-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    padding: 0.35rem 1rem;
    background: var(--orange-dim);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

/* hero h1 — matches home.css .section-title: clamp(2rem,5vw,4rem), 800, -1px */
.hero h1 {
    font-family: var(--font-display);
    font-size: var(--title-hero);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--orange) 0%, #ff9f6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

/* hero p — matches home.css .hero-desc */
.hero p {
    font-family: var(--font-body);
    font-size: var(--body-lg);
    color: var(--muted);
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--body-lh);
    font-weight: 400;
}

/* ══════════════════════════════════════
   SECTION WRAPPER
══════════════════════════════════════ */
.port-section { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ══════════════════════════════════════
   SECTION BADGE
   Orbitron for tech label — matches home .card-category: 0.58rem, 600
══════════════════════════════════════ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: var(--radius-full);
    padding: 7px 18px 7px 10px;
    margin-bottom: 28px;
}

.badge-icon {
    width: 30px; height: 30px;
    background: var(--orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* badge text — Orbitron matches home .card-category */
.badge-text {
    font-family: var(--font-tech);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text);
}

.badge-text em { color: var(--orange); font-style: normal; }

/* ══════════════════════════════════════
   FEATURED LABEL
   matches home .hero-eyebrow: 0.58rem, 700, 3px
══════════════════════════════════════ */
.featured-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 3px;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ══════════════════════════════════════
   FEATURED GRID
══════════════════════════════════════ */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 24px;
    align-items: start;
}

/* ══════════════════════════════════════
   PROJECT MAIN CARD — styled like home .service-card
══════════════════════════════════════ */
.project-main {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.project-main::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-main:hover {
    border-color: rgba(255,107,53,0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,107,53,0.06);
}

.project-main:hover::after { opacity: 1; }

.featured-switching {
    opacity: 0;
    transform: translateY(8px);
}

/* ══════════════════════════════════════
   IMAGE GRIDS
══════════════════════════════════════ */
.project-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: #0d0d0d;
    padding: 3px;
}

.project-images .img-frame {
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid #2a2a2a;
    transition: border-color 0.3s;
    position: relative;
    background: #111;
}

.project-images .img-frame:hover { border-color: var(--orange); }

.project-images img {
    width: 100%;
    height: 185px;
    object-fit: contain;
    object-position: top center;
    display: block;
    transition: filter 0.5s ease;
    filter: brightness(0.85) saturate(1.1);
}

.project-images .img-frame:hover img { filter: brightness(1) saturate(1.2); }

/* ── MOBILE FEATURED IMAGE GRID ── */
.mobile-images {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 1.6fr 0.7fr;
    grid-template-rows: 185px 185px;
    gap: 3px;
    background: #0d0d0d;
    padding: 3px;
}

.mobile-images .img-frame {
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid #2a2a2a;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    background: #111;
}

.mobile-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: brightness(0.85) saturate(1.1);
}

.mobile-images .img-frame:hover img { filter: brightness(1) saturate(1.2); }

.mobile-images .img-frame:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.mobile-images .img-frame:nth-child(2) { grid-column: 2; grid-row: 1; }
.mobile-images .img-frame:nth-child(3) { grid-column: 2; grid-row: 2; }
.mobile-images .img-frame:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.mobile-images .img-frame:nth-child(5) { grid-column: 4; grid-row: 1; }
.mobile-images .img-frame:nth-child(6) { grid-column: 4; grid-row: 2; }

.mobile-images .img-thumb { cursor: pointer; }

.mobile-images .img-thumb.active-thumb {
    border-color: var(--orange) !important;
    box-shadow: 0 0 14px rgba(255,107,53,0.5);
}

.mobile-images .img-thumb:hover { border-color: rgba(255,107,53,0.6); }
.mobile-images .img-featured img.swapping { opacity: 0; }

.slider-track .slider-card,
.slider-track .slider-card * {
    grid-column: unset !important;
    grid-row: unset !important;
}

/* ══════════════════════════════════════
   PROJECT INFO
   home.css: .service-title 1.2rem/700, .service-description 0.88rem/lh 1.75
══════════════════════════════════════ */
.project-info { padding: 26px 28px; }

/* project-tag — Orbitron, matches home .card-category: 0.58rem, 600, 0.18em spacing */
.project-tag {
    display: inline-block;
    font-family: var(--font-tech);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.2);
    padding: 0.28rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
}

/* project title — matches home .service-title: 1.2rem, 700 */
.project-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
    line-height: 1.1;
    color: var(--text);
}

/* project description — matches home .service-description: 0.88rem, lh 1.75 */
.project-info p {
    font-family: var(--font-body);
    font-size: var(--body-md);
    color: var(--muted);
    line-height: var(--body-lh);
    margin-bottom: 1.4rem;
    font-weight: 400;
    text-align: justify;
}

.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; }

/* tech-tag — Rajdhani matches home .tag: 0.65rem, 600 */
.tech-tag {
    font-family: var(--font-tag);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.55);
    background: var(--black-4);
    border: 1px solid var(--border);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tech-tag:hover {
    border-color: var(--border-hover);
    color: rgba(255,255,255,0.85);
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.project-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: border-color 0.3s;
}

.sidebar-card:hover { border-color: rgba(255,107,53,0.2); }

/* sidebar h3 — matches home .about-stat-mini-label: 0.72rem, 600, uppercase */
.sidebar-card h3 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--card-border);
}

.team-list { display: flex; flex-direction: column; gap: 13px; }
.team-member { display: flex; align-items: center; gap: 13px; }

.member-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: white;
    border: 2px solid rgba(255,107,53,0.4);
}

/* member-name — matches home .contact-text h4: 0.9rem, 600 */
.member-name {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

/* member-role — matches home .contact-text p: 0.85rem */
.member-role {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 400;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.stat-box {
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

/* stat-value — matches home .about-stat-mini-num: 1.8rem, 800 */
.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -1px;
    line-height: 1;
}

/* stat-label — matches home .about-stat-mini-label: 0.72rem, uppercase, 1px spacing */
.stat-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════ */
.section-divider {
    max-width: 1280px;
    margin: 68px auto 0;
    padding: 0 40px;
}

.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,107,53,0.3) 20%, rgba(255,107,53,0.3) 80%, transparent);
    margin-bottom: 68px;
}

/* ══════════════════════════════════════
   SLIDER
══════════════════════════════════════ */
.slider-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 40px 0;
}

.slider-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

/* slider-label — matches home .hero-eyebrow: 0.58rem, 700, 3px spacing */
.slider-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

.slider-header-line {
    flex: 1; height: 1px;
    background: var(--card-border);
}

.slider-track-container { overflow: hidden; width: 100%; }

.slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
    width: 100%;
}

/* slider-card — matches home .service-card style */
.slider-card {
    min-width: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
    flex-shrink: 0;
    flex-grow: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.slider-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.slider-card:hover {
    border-color: rgba(255,107,53,0.3);
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255,107,53,0.08);
}

.slider-card:hover::after { opacity: 1; }

.slider-card--active {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 2px rgba(255,107,53,0.35), 0 8px 30px rgba(255,107,53,0.2);
}

.slider-card-thumb {
    width: 100%; height: 220px;
    display: block;
    position: relative;
    overflow: hidden;
    background: #111;
    grid-column: unset !important;
    grid-row: unset !important;
}

.slider-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
    filter: brightness(0.9) saturate(0.9);
}

.slider-card:hover .slider-card-thumb img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.05);
}

.slider-card-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(20,20,20,0.75));
    z-index: 2;
    pointer-events: none;
}

.slider-card-thumb--icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slider-card-thumb--icon span { font-size: 2.5rem; position: relative; z-index: 1; }

.slider-card-thumb--mobile {
    display: flex !important;
    gap: 6px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
}

.mob-thumb-img {
    flex: 1; height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #2a2a2a;
    transition: border-color 0.3s;
    background: #111;
}

.slider-card:hover .mob-thumb-img { border-color: rgba(255,107,53,0.5); }

.mob-thumb-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.slider-card-body { padding: 15px 16px 18px; }

/* slider-card-tag — Orbitron matches home .card-category: 0.58rem, 600 */
.slider-card-tag {
    font-family: var(--font-tech);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* slider card title — matches home .service-title: 1.2rem but smaller for card context */
.slider-card h4 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
    color: var(--text);
    letter-spacing: -0.2px;
}

/* slider card desc — matches home body style */
.slider-card p {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 400;
}

/* ── CONTROLS ── */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.arrow-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all 0.22s;
    flex-shrink: 0;
    font-family: var(--font-body);
}

.arrow-btn:hover:not(:disabled) {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 20px var(--accent-glow);
}

.arrow-btn:disabled { opacity: 0.22; cursor: not-allowed; }

.slider-dots { display: flex; gap: 7px; }

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #333;
    transition: all 0.25s;
    cursor: pointer;
}

.dot.active { background: var(--orange); width: 20px; border-radius: 3px; }
.dot:hover  { background: #555; }

.footer-spacer { height: 90px; }

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
#portfolio-lightbox {
    position: absolute;
    z-index: 9999;
    background: rgba(0,0,0,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,107,53,0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,107,53,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    overflow: hidden;
}

#portfolio-lightbox.lb-active {
    opacity: 1;
    pointer-events: all;
}

#portfolio-lightbox .lb-close-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,107,53,0.25);
    border: 1px solid rgba(255,107,53,0.7);
    color: #fff;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
    font-family: var(--font-body);
}

#portfolio-lightbox .lb-close-btn:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

#portfolio-lightbox img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: top center;
    border-radius: 6px;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
    transform: scale(0.96);
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#portfolio-lightbox.lb-active img { transform: scale(1); }

.project-images .img-frame,
.mobile-images .img-featured { cursor: zoom-in; }

/* ══════════════════════════════════════
   RESPONSIVE — 1280px
══════════════════════════════════════ */
@media (max-width: 1280px) {
    .port-section,
    .slider-section,
    .section-divider { padding-left: 24px; padding-right: 24px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — 1024px
══════════════════════════════════════ */
@media (max-width: 1024px) {
    /* hero h1 — matches home 1024: clamp(1.9rem,5vw,3.2rem) */
    .hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }

    .featured-grid { grid-template-columns: 1fr; }
    .project-sidebar { flex-direction: row; gap: 14px; }
    .project-sidebar .sidebar-card { flex: 1; min-width: 0; }

    .mobile-images {
        grid-template-columns: 1.6fr 0.7fr 1.6fr 0.7fr;
        grid-template-rows: 170px 170px;
    }

    .slider-card {
        min-width: calc(33.333% - 11px);
        max-width: calc(33.333% - 11px);
    }

    .section-divider { margin: 50px auto 0; }
    .divider-line    { margin-bottom: 50px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — 768px  (matches home 768 block)
══════════════════════════════════════ */
@media (max-width: 768px) {
    .hero { padding: 90px 4% 36px; }

    /* hero h1 — matches home 768: clamp(1.8rem,7vw,2.8rem) */
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); letter-spacing: -0.5px; }

    /* hero p — matches home 768 .hero-desc: 0.8rem */
    .hero p { font-size: 0.8rem; margin-top: 0.8rem; }

    .our-work-pill { font-size: 0.7rem; letter-spacing: 2.5px; padding: 0.3rem 0.85rem; margin-bottom: 0.8rem; }

    .port-section,
    .slider-section,
    .section-divider { padding-left: 16px; padding-right: 16px; }

    .project-sidebar { flex-direction: column; gap: 12px; }

    .project-info { padding: 20px 18px; }

    /* project h2 — slightly reduced but stays strong */
    .project-info h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }

    /* body text — matches home 768: 0.8rem */
    .project-info p { font-size: 0.8rem; }

    .project-images img { height: 155px; }

    .mobile-images {
        grid-template-columns: 1.6fr 0.7fr 1.6fr 0.7fr;
        grid-template-rows: 140px 140px;
        gap: 2px;
    }

    /* 2 slider cards visible */
    .slider-card {
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .slider-card-thumb { height: 190px; }
    .slider-card h4 { font-size: 0.88rem; }
    .slider-card p  { font-size: 0.75rem; }

    .section-divider { margin: 36px auto 0; }
    .divider-line    { margin-bottom: 36px; }

    .sidebar-card { padding: 18px; }

    /* stat-value — matches home 768 .about-stat-mini-num */
    .stat-value { font-size: 1.4rem; }
    .stats-grid { gap: 10px; }

    .tech-tag { font-size: 0.58rem; padding: 0.25rem 0.7rem; }
    .member-name { font-size: 0.82rem; }
    .member-role { font-size: 0.68rem; }
}

/* ══════════════════════════════════════
   RESPONSIVE — 600px
══════════════════════════════════════ */
@media (max-width: 600px) {
    .hero { padding: 88px 4% 30px; }

    /* matches home 480: clamp(1.6rem,8vw,2.2rem) */
    .hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); letter-spacing: -0.5px; }
    .hero p  { font-size: 0.78rem; max-width: 100%; }

    .our-work-pill { font-size: 0.68rem; letter-spacing: 2px; padding: 0.28rem 0.75rem; margin-bottom: 0.7rem; }

    .port-section,
    .slider-section,
    .section-divider { padding-left: 14px; padding-right: 14px; }

    .project-images {
        grid-template-columns: 1fr 1fr;
        gap: 2px; padding: 2px;
    }
    .project-images img { height: 130px; }

    .mobile-images {
        grid-template-columns: 1.6fr 0.7fr;
        grid-template-rows: 160px 160px 160px 160px;
        gap: 2px; padding: 2px;
    }
    .mobile-images .img-frame:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
    .mobile-images .img-frame:nth-child(2) { grid-column: 2; grid-row: 1; }
    .mobile-images .img-frame:nth-child(3) { grid-column: 2; grid-row: 2; }
    .mobile-images .img-frame:nth-child(4) { grid-column: 1; grid-row: 3 / 5; }
    .mobile-images .img-frame:nth-child(5) { grid-column: 2; grid-row: 3; }
    .mobile-images .img-frame:nth-child(6) { grid-column: 2; grid-row: 4; }

    .project-info { padding: 18px 16px; }
    .project-info h2 { font-size: 1.3rem; }
    .project-info p { font-size: 0.78rem; }

    .sidebar-card { padding: 16px; }
    .member-avatar { width: 36px; height: 36px; font-size: 0.72rem; }
    .member-name   { font-size: 0.78rem; }
    .member-role   { font-size: 0.65rem; }
    .stats-grid    { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-value    { font-size: 1.3rem; letter-spacing: -0.5px; }
    .stat-label    { font-size: 0.65rem; }
    .tech-tag      { font-size: 0.55rem; padding: 0.22rem 0.65rem; }

    /* 1 wide slider card */
    .slider-card {
        min-width: calc(78% - 8px);
        max-width: calc(78% - 8px);
    }
    .slider-card-thumb { height: 170px; }
    .slider-card h4    { font-size: 0.84rem; }
    .slider-card p     { font-size: 0.72rem; }

    .slider-controls { gap: 8px; margin-top: 18px; }
    .arrow-btn { width: 40px; height: 40px; font-size: 0.9rem; }

    .section-divider { margin: 28px auto 0; }
    .divider-line    { margin-bottom: 28px; }

    .footer-spacer { height: 60px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — 420px  (matches home 360/480 block)
══════════════════════════════════════ */
@media (max-width: 420px) {
    .hero { padding: 84px 4% 26px; }
    .hero h1 { font-size: clamp(1.5rem, 8vw, 1.9rem); }
    .hero p  { font-size: 0.75rem; margin-top: 0.7rem; }

    .project-images img { height: 110px; }

    .mobile-images {
        grid-template-rows: 140px 140px 140px 140px;
    }

    .project-info h2  { font-size: 1.2rem; }
    .project-info p   { font-size: 0.75rem; }
    .member-name      { font-size: 0.75rem; }
    .stat-value       { font-size: 1.2rem; }
    .stat-label       { font-size: 0.62rem; }

    .slider-card {
        min-width: calc(88% - 8px);
        max-width: calc(88% - 8px);
    }
    .slider-card-thumb { height: 155px; }

    .section-badge { padding: 6px 14px 6px 8px; }
    .badge-icon    { width: 26px; height: 26px; font-size: 0.78rem; }
    .badge-text    { font-size: 0.52rem; letter-spacing: 0.12em; }
}

/* ══════════════════════════════════════
   TOUCH IMPROVEMENTS
══════════════════════════════════════ */
@media (hover: none) {
    .project-main:hover { transform: none; }
    .slider-card:hover  { transform: none; }
    .arrow-btn:hover:not(:disabled) { box-shadow: none; }
}

/* ══════════════════════════════════════
   SAFE AREA (notched phones)
══════════════════════════════════════ */
@supports (padding: max(0px)) {
    .hero {
        padding-left: max(5%, env(safe-area-inset-left));
        padding-right: max(5%, env(safe-area-inset-right));
    }
    .port-section,
    .slider-section,
    .section-divider {
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
    }
}