/* ============================================================
   KAJAL SHARMA PORTFOLIO — FULLY RESPONSIVE STYLESHEET
   Optimized for all devices: mobile, tablet, desktop, large screens
   ============================================================ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy:      #0d1b2a;
    --navy-mid:  #162438;
    --gold:      #c9a84c;
    --gold-soft: rgba(201, 168, 76, 0.13);
    --gold-dim:  rgba(201, 168, 76, 0.25);
    --beige:     #f8f4ee;
    --white:     #ffffff;
    --gray:      #6b7a8d;
    --light:     #eceae5;
    --err:       #c0392b;
    --ok:        #1a7a4a;
    --nav-h:     72px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 4px 16px rgba(13, 27, 42, 0.06);
    --shadow-md: 0 10px 32px rgba(13, 27, 42, 0.09);
    --shadow-lg: 0 20px 50px rgba(13, 27, 42, 0.12);
    --transition: 0.28s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a { 
    color: inherit; 
    text-decoration: none;
}

ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ─── UTILITIES ─── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

section { scroll-margin-top: var(--nav-h); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: rgba(13,27,42,0.22);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-full { width: 100%; justify-content: center; }
.btn-full:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* Section header */
.sec-header {
    text-align: center;
    margin-bottom: 64px;
}

.sec-tag {
    display: inline-block;
    background: var(--gold-soft);
    color: #8a6c1e;
    padding: 5px 16px;
    border-radius: 40px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sec-tag--light {
    background: rgba(201,168,76,0.18);
    color: var(--gold);
}

.sec-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 14px;
}

.sec-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible            { opacity: 1; transform: none; }
.reveal-delay-1.visible    { transition-delay: 0.12s; }
.reveal-delay-2.visible    { transition-delay: 0.24s; }



/* ─── NAVIGATION ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,168,76,0.1);
    z-index: 9999;
}

.nav-inner {
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.logo em { color: var(--gold); font-style: italic; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}

/* Hamburger */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.bar {
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}
.menu-btn.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--light);
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    z-index: 9998;
    box-shadow: var(--shadow-md);
}
.mobile-drawer.open {
    max-height: 420px;
    padding: 24px 32px 32px;
}
.mobile-drawer ul { display: flex; flex-direction: column; gap: 18px; }
.mobile-drawer a {
    text-decoration: none;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 500;
    display: block;
    padding: 4px 0;
    transition: color var(--transition);
}
.mobile-drawer a:hover { color: var(--gold); }



/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--nav-h);
    background: linear-gradient(155deg, #ffffff 0%, #f8f4ee 55%, #ede7dc 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.glow-1 {
    width: 700px; height: 700px;
    top: -200px; right: -200px;
    background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
}
.glow-2 {
    width: 500px; height: 500px;
    bottom: -150px; left: -100px;
    background: radial-gradient(circle, rgba(13,27,42,0.04) 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 72px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-dim);
    color: #7a5c10;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeUp 0.7s ease both;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.8); }
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 24px;
    animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 44px;
    line-height: 1.8;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeUp 0.7s 0.3s ease both;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: fadeUp 0.7s 0.4s ease both;
}
.h-stat {
    padding: 20px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.h-divider {
    width: 1px;
    height: 48px;
    background: var(--gold-dim);
    flex-shrink: 0;
}
.h-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.h-label {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}



/* ─── ABOUT ─── */
.about {
    padding: 110px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 72px;
    align-items: start;
}

.about-text p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}
.about-text strong { color: var(--navy); font-weight: 600; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 32px;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--navy);
    background: var(--beige);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color var(--transition), transform var(--transition);
}
.skill-pill:hover { border-color: var(--gold); transform: translateX(3px); }
.skill-pill i { color: var(--gold); font-size: 0.85rem; flex-shrink: 0; }

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.a-card {
    background: var(--beige);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.a-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.a-card i { font-size: 1.9rem; color: var(--gold); margin-bottom: 12px; }
.a-card strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}
.a-card p { font-size: 0.85rem; color: var(--gray); }



/* ─── PROJECTS ─── */
.projects {
    padding: 110px 0;
    background: var(--beige);
}

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

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.1);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--light);
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.overlay-btn:hover { background: var(--white); }

.project-body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-cat {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-body p {
    font-size: 0.87rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

.p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.p-tags span {
    background: var(--beige);
    color: var(--navy);
    padding: 3px 11px;
    border-radius: 40px;
    font-size: 0.68rem;
    font-weight: 500;
}

.p-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
    margin-top: auto;
}
.p-link:hover { color: var(--navy); gap: 10px; }



/* ─── ALL WORK ─── */
.all-work {
    padding: 110px 0;
    background: var(--white);
}

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

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--beige);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all var(--transition);
}
.work-item:hover {
    background: var(--white);
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}
.work-item a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.work-item a:hover { color: var(--gold); }

.w-tag {
    font-size: 0.67rem;
    font-weight: 600;
    color: #7a5c10;
    background: var(--gold-soft);
    padding: 3px 10px;
    border-radius: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}



/* ─── SERVICES ─── */
.services {
    padding: 110px 0;
    background: var(--navy);
}
.services .sec-header h2 { color: var(--white); }
.services .sec-header p  { color: rgba(255,255,255,0.5); }

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

.svc-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    transition: all var(--transition);
}
.svc-card:hover {
    background: rgba(201,168,76,0.06);
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-6px);
}

.svc-icon {
    width: 54px;
    height: 54px;
    background: rgba(201,168,76,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.svc-icon i { font-size: 1.45rem; color: var(--gold); }

.svc-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.25;
}
.svc-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
}



/* ─── CONTACT ─── */
.contact {
    padding: 110px 0;
    background: var(--beige);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

/* Info column */
.c-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.c-info > p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 36px;
}

.c-links { display: flex; flex-direction: column; gap: 20px; }

.c-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.c-icon {
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.c-icon i { color: var(--gold); font-size: 1rem; }

.c-link-text { display: flex; flex-direction: column; gap: 2px; }
.c-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}
.c-link-text a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
    transition: color var(--transition);
}
.c-link-text a:hover { color: var(--gold); }

/* Form column */
.c-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    border: 1px solid rgba(201,168,76,0.12);
    box-shadow: var(--shadow-md);
}

.form-header { margin-bottom: 30px; }
.form-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.form-header p { font-size: 0.88rem; color: var(--gray); }

/* Honeypot */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}
.req { color: var(--gold); }

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    background: var(--beige);
    border: 1.5px solid var(--light);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--navy);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    background: var(--white);
}
.form-group input.is-invalid,
.form-group textarea.is-invalid { border-color: var(--err); }

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: 12px;
}

/* select arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.field-err {
    font-size: 0.78rem;
    color: var(--err);
    min-height: 1em;
    line-height: 1;
}

.form-feedback {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 14px;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.form-feedback.show-ok {
    background: #edfaf3;
    border: 1px solid #a3d9ba;
    color: var(--ok);
    padding: 12px 16px;
    max-height: 80px;
}
.form-feedback.show-err {
    background: #fdf0ef;
    border: 1px solid #e8a9a4;
    color: var(--err);
    padding: 12px 16px;
    max-height: 80px;
}

/* Spinner */
.btn-spinner { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-icon { display: none; }
.btn.loading .btn-spinner { display: inline-flex; }



/* ─── FOOTER ─── */
footer {
    background: var(--navy);
    padding: 40px 40px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}
.footer-logo em { color: var(--gold); font-style: italic; }

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.38); }

.footer-socials {
    display: flex;
    gap: 14px;
}
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition);
}
.footer-socials a:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}



/* ═══════════════════════════════════════════
   FULLY RESPONSIVE MEDIA QUERIES
   Optimized for every screen size from 320px to 4K+
═══════════════════════════════════════════ */

/* ── Extra large desktops (1400px+) ── */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: clamp(3rem, 5vw, 5.8rem);
    }
    
    .projects-grid {
        gap: 32px;
    }
    
    .services-grid {
        gap: 28px;
    }
}

/* ── Large tablets / small desktops (1025px - 1199px) ── */
@media (max-width: 1199px) {
    .container {
        padding: 0 32px;
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ── Tablets & small desktops (768px - 1024px) ── */
@media (max-width: 1024px) {
    :root {
        --nav-h: 68px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-cards {
        flex-direction: row;
        gap: 20px;
    }
    
    .a-card {
        flex: 1;
        padding: 24px 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .c-info {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }
    
    .c-links {
        align-items: center;
    }
    
    .c-link-item {
        justify-content: center;
        min-width: 280px;
    }
    
    .form-row {
        gap: 14px;
    }
}

/* ── Mobile landscape & tablets (768px) ── */
@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav-inner {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-container {
        padding-top: 40px;
        padding-bottom: 48px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 18px;
    }
    
    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 32px;
        padding: 0 12px;
    }
    
    .hero-ctas {
        gap: 12px;
        margin-bottom: 48px;
    }
    
    .btn {
        padding: 11px 24px;
        font-size: 0.88rem;
    }
    
    .hero-stats {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .h-stat {
        padding: 16px 24px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .h-divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }
    
    .h-num {
        font-size: 1.8rem;
    }
    
    .h-label {
        font-size: 0.7rem;
    }
    
    /* Section spacing */
    .about, .projects, .all-work, .services, .contact {
        padding: 70px 0;
    }
    
    .sec-header {
        margin-bottom: 40px;
    }
    
    .sec-header h2 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }
    
    .sec-header p {
        font-size: 0.9rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .project-img {
        height: 200px;
    }
    
    .project-body {
        padding: 20px;
    }
    
    .project-body h3 {
        font-size: 1.3rem;
    }
    
    /* All work */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .work-item {
        padding: 14px 18px;
    }
    
    .work-item a {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
    }
    
    .w-tag {
        font-size: 0.6rem;
        white-space: normal;
        text-align: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .svc-card {
        padding: 28px 24px;
    }
    
    .svc-card h3 {
        font-size: 1.25rem;
    }
    
    /* Contact */
    .c-form-wrap {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .skill-pill {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
    
    /* About cards */
    .about-cards {
        flex-direction: column;
    }
    
    .a-card {
        padding: 20px;
    }
    
    .a-card strong {
        font-size: 1.8rem;
    }
    
    /* Footer */
    footer {
        padding: 32px 20px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-copy {
        font-size: 0.7rem;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

/* ── Small mobile (480px and below) ── */
@media (max-width: 480px) {
    :root {
        --nav-h: 60px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 5px 12px;
        gap: 6px;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    
    .hero-sub {
        font-size: 0.85rem;
        margin-bottom: 28px;
    }
    
    .hero-ctas {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 220px;
    }
    
    .h-stat {
        padding: 12px 20px;
    }
    
    .h-num {
        font-size: 1.5rem;
    }
    
    .about, .projects, .all-work, .services, .contact {
        padding: 60px 0;
    }
    
    .sec-header {
        margin-bottom: 32px;
    }
    
    .sec-header h2 {
        font-size: 1.6rem;
    }
    
    .sec-tag {
        font-size: 0.65rem;
        padding: 4px 12px;
    }
    
    .project-img {
        height: 180px;
    }
    
    .project-body p {
        font-size: 0.82rem;
    }
    
    .p-tags span {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    
    .p-link {
        font-size: 0.82rem;
    }
    
    .work-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .work-item a {
        font-size: 0.82rem;
    }
    
    .w-tag {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
    
    .svc-card {
        padding: 24px 20px;
    }
    
    .svc-icon {
        width: 48px;
        height: 48px;
    }
    
    .svc-icon i {
        font-size: 1.2rem;
    }
    
    .svc-card h3 {
        font-size: 1.15rem;
    }
    
    .svc-card p {
        font-size: 0.82rem;
    }
    
    .c-form-wrap {
        padding: 24px 20px;
    }
    
    .form-header h3 {
        font-size: 1.35rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
    
    .c-info h3 {
        font-size: 1.6rem;
    }
    
    .c-info > p {
        font-size: 0.88rem;
        margin-bottom: 28px;
    }
    
    .c-link-item {
        gap: 12px;
    }
    
    .c-icon {
        width: 40px;
        height: 40px;
    }
    
    .c-link-text a {
        font-size: 0.85rem;
    }
    
    .mobile-drawer.open {
        padding: 20px 24px 28px;
    }
    
    .mobile-drawer a {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

/* ── Ultra small devices (360px and below) ── */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-sub {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 9px 20px;
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    .sec-header h2 {
        font-size: 1.4rem;
    }
    
    .project-body h3 {
        font-size: 1.2rem;
    }
    
    .svc-card h3 {
        font-size: 1.05rem;
    }
    
    .c-form-wrap {
        padding: 20px 16px;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .c-info h3 {
        font-size: 1.4rem;
    }
}

/* ── Landscape orientation fixes for mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero-container {
        padding-top: 20px;
        padding-bottom: 30px;
    }
    
    .hero-stats {
        flex-direction: row;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .h-stat {
        padding: 12px 20px;
    }
    
    .mobile-drawer.open {
        max-height: 280px;
        padding: 16px 24px;
    }
    
    .mobile-drawer a {
        padding: 6px 0;
    }
}

/* ── High-resolution displays (retina, 4K) ── */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 4vw, 6rem);
    }
    
    .projects-grid {
        gap: 40px;
    }
    
    .services-grid {
        gap: 32px;
    }
    
    .work-grid {
        gap: 16px;
    }
    
    .project-img {
        height: 280px;
    }
}

/* ─── Accessibility: prefers reduced motion ─── */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}