/* ============================================
   PUSHPAL KAWARA — PORTFOLIO STYLES
   Theme: Yellow + White + Dark Grey
   ============================================ */

:root {
    --primary: #F5B301;
    --primary-dark: #D99E00;
    --text: #1A1A1A;
    --text-light: #666666;
    --bg: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-card: #F4F4F4;
    --border: #E0E0E0;
    --footer-bg: #2C3E50;
    --footer-text: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --nav-height: 62px;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 8px);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, section, footer { position: relative; }

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

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--bg-light);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.86rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--primary); }

.nav-socials {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-shrink: 0;
}
.nav-socials a {
    color: var(--text);
    transition: color 0.2s ease;
    display: inline-flex;
}
.nav-socials a:hover { color: var(--primary); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
    padding: calc(var(--nav-height) + 32px) 1.5rem 40px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    flex: 0 0 auto;
}

.hero-content {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.hero-statement {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: center;
    line-height: 1.3;
}

.btn-primary { background: var(--primary); color: var(--text); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,179,1,0.35); }

.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-send { width: 100%; max-width: 260px; margin-top: 0.5rem; }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.hero-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    max-width: 500px;
    line-height: 1.55;
}

.hero-links { display: flex; gap: 1rem; align-items: center; }
.hero-links a { color: var(--text-light); transition: color 0.22s ease; display: inline-flex; }
.hero-links a:hover { color: var(--primary); }

.hero-image { display: flex; justify-content: center; align-items: center; }

.profile-frame {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 30px rgba(245,179,1,0.28);
    position: relative;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder {
    display: none;
    position: absolute;
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}
.profile-frame.placeholder .profile-placeholder { display: block; }

/* ========== SECTIONS ========== */
.section {
    padding: 48px 0;
    flex: 0 0 auto;
}

.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.4rem;
    letter-spacing: -0.015em;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 0.4rem;
}

.section-intro {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 720px;
}

/* ========== ABOUT ========== */
.about-block { margin-bottom: 1.6rem; }
.about-block:last-child { margin-bottom: 0; }

.about-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.about-block p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.6rem;
    max-width: 880px;
    font-size: 0.94rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.75rem;
    margin-top: 0.4rem;
}

.capability-group h4 {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.capability-group p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ========== EXPERIENCE ========== */
.experience-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.experience-header h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.experience-header h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.experience-header p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.9rem;
}

.experience-summary {
    color: var(--text-light);
    margin-bottom: 0.9rem;
    line-height: 1.65;
    font-size: 0.92rem;
}

.experience-points { list-style: none; padding: 0; }
.experience-points li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}
.experience-points li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: var(--primary);
    font-weight: 700;
}

/* ========== PROJECTS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    border-color: var(--primary);
}

.project-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-thumbnail img { transform: scale(1.04); }

.project-content {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.project-domain {
    font-size: 0.74rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.project-tools span {
    background: var(--bg-light);
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text);
}

.project-desc {
    font-size: 0.83rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.project-insights {
    background: var(--bg-light);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex: 1;
}
.project-insights h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.project-insights ul { list-style: none; padding: 0; }
.project-insights li {
    position: relative;
    padding: 0.15rem 0 0.15rem 0.85rem;
    font-size: 0.76rem;
    color: var(--text-light);
    line-height: 1.5;
}
.project-insights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.project-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.project-buttons .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.76rem;
    flex: 1 1 auto;
}

/* ========== CONTACT ========== */
.contact-cta {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    transition: color 0.22s ease;
    word-break: break-word;
}
.contact-item:hover { color: var(--primary); }
.contact-item span { font-size: 1.05rem; flex-shrink: 0; }

/* ========== CONNECT FORM ========== */
.connect-intro {
    color: var(--text-light);
    margin-bottom: 1.35rem;
    max-width: 720px;
    font-size: 0.95rem;
}

.connect-form {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 860px;
}

.form-row { margin-bottom: 1rem; }
.form-row:last-of-type { margin-bottom: 1.2rem; }

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

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.req { color: #d32f2f; font-weight: 700; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #A0A0A0; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245,179,1,0.18);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

.error-msg {
    display: block;
    color: #d32f2f;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    min-height: 0;
}

.form-status {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.form-status.success { color: #1b7f3b; }
.form-status.error { color: #d32f2f; }
.form-status.loading { color: var(--text-light); }

/* ========== FOOTER ========== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.4rem 1.5rem 1.4rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-line {
    font-size: 0.85rem;
    opacity: 0.78;
    line-height: 1.55;
    max-width: 520px;
    margin: 0 auto;
}

.footer-data {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--primary);
    margin: 0.55rem 0;
}

.footer-socials {
    display: flex;
    gap: 1.15rem;
    justify-content: center;
    margin: 1.35rem 0 1rem;
}
.footer-socials a {
    color: var(--footer-text);
    transition: color 0.22s ease;
    display: inline-flex;
}
.footer-socials a:hover { color: var(--primary); }

.footer-copy {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* ========== SCROLL TO TOP ========== */
#scroll-to-top {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(245,179,1,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scroll-to-top:hover { background: var(--primary-dark); }
#scroll-to-top:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
    .profile-frame { width: 210px; height: 210px; }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-links { gap: 1.2rem; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --nav-height: 58px; }

    body { font-size: 14.5px; }

    .nav-container { padding: 0.65rem 1.15rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 0.4rem 1.15rem 0.75rem;
        gap: 0;
        border-top: 1px solid var(--bg-light);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }
    .nav-links.active { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--bg-light); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { padding: 0.7rem 0; font-size: 0.9rem; display: block; }

    .nav-socials { display: none; }
    .hamburger { display: flex; }

    .hero { padding: calc(var(--nav-height) + 22px) 1.15rem 30px; }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        text-align: center;
    }
    .hero-image { order: 1; }
    .hero-text { order: 2; }
    .hero-statement { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-note { margin-left: auto; margin-right: auto; }
    .hero-links { justify-content: center; }
    .profile-frame { width: 160px; height: 160px; }

    .section { padding: 34px 0; }
    .section-container { padding: 0 1.15rem; }
    .section-title { margin-bottom: 1.1rem; }

    .capabilities-grid { grid-template-columns: 1fr; gap: 0.85rem; }

    .experience-card { padding: 1.15rem; }

    .projects-grid { grid-template-columns: 1fr; gap: 1.1rem; }

    .contact-item { font-size: 0.86rem; }

    .connect-form { padding: 1.15rem; }
    .form-row.two-col { grid-template-columns: 1fr; gap: 1rem; }
    .btn-send { max-width: 100%; }

    .footer { padding: 2rem 1.15rem 1.2rem; }

    #scroll-to-top { bottom: 1rem; right: 1rem; width: 42px; height: 42px; }
}

/* Small mobile */
@media (max-width: 380px) {
    .hero-buttons .btn { width: 100%; }
    .project-buttons .btn { flex: 1 1 100%; }
    .profile-frame { width: 140px; height: 140px; }
    .footer-data { font-size: 1.3rem; letter-spacing: 4px; }
}

/* 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;
    }
}
/* Capability group — category label and skills all on ONE wrapping row */
.capability-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.45rem;
    min-width: 0;
}

/* Category badge — sits inline with the skills on the same row */
.capability-group h4 {
    display: inline-block;
    background: var(--primary);
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    padding: 0.32rem 0.7rem;
    border-radius: 6px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Skill chips container — now just a passthrough (chips join the row directly) */
.skill-chips {
    display: contents;
}

/* Individual skill chip */
.skill-chip {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.32rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
}

.skill-chip:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(245, 179, 1, 0.06);
}