/* ============================================
   POORNA SUJAMPATHI — PORTFOLIO
   Design: Professional Premium Editorial
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --ink: #111318;
    --ink-light: #3D4149;
    --ink-muted: #6B7280;
    --ink-subtle: #9CA3AF;
    --bg: #FFFFFF;
    --bg-light: #F8F9FB;
    --bg-subtle: #F1F3F7;
    --border: #E5E7EB;
    --border-dark: #D1D5DB;
    --accent: #1A56DB;
    --accent-soft: rgba(26, 86, 219, 0.08);
    --accent-border: rgba(26, 86, 219, 0.2);
    --success: #059669;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(17, 23, 29, 0.06), 0 1px 2px rgba(17, 23, 29, 0.04);
    --shadow-md: 0 4px 12px rgba(17, 23, 29, 0.08), 0 2px 6px rgba(17, 23, 29, 0.05);
    --shadow-lg: 0 12px 32px rgba(17, 23, 29, 0.1), 0 4px 12px rgba(17, 23, 29, 0.06);
    --shadow-xl: 0 24px 48px rgba(17, 23, 29, 0.12), 0 8px 20px rgba(17, 23, 29, 0.08);

    /* Layout */
    --max-w: 1120px;
    --nav-h: 72px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Transition */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t: 0.25s var(--ease);

    /* Typography */
    --font-display: 'Syne', system-ui, -apple-system, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Apply display font to ALL headings */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-name,
.hero-card h3,
.tl-content h3,
.project-header h3 {
    font-family: var(--font-display);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 3px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow var(--t);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-bottom: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--t);
}

.nav-link:hover {
    color: var(--ink);
    background: var(--bg-subtle);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}



.section-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 56px;
    letter-spacing: -1px;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    margin-top: var(--nav-h);
    display: flex;
    align-items: center;
    background: var(--bg);
    position: relative;
}

.hero::after {
    content: '010110 101011 011001 101100 001101 110010 \\A 101011 010110 101100 011001 110010 001101 \\A 011001 101100 010110 101011 001101 110010 \\A 110010 001101 101100 011001 101011 010110 \\A 001101 110010 010110 101011 011001 101100 \\A 101100 011001 110010 001101 010110 101011 \\A 010110 101011 011001 101100 001101 110010';
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 2.5;
    letter-spacing: 4px;
    color: rgba(26, 86, 219, 0.05);
    position: absolute;
    top: 10%;
    left: -10%;
    width: 120%;
    text-align: center;
    background:
        radial-gradient(ellipse 700px 500px at 70% 50%, rgba(26, 86, 219, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 10% 80%, rgba(26, 86, 219, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    animation: binaryMatrix 20s linear infinite;
    mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
}

@keyframes binaryMatrix {
    0% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }

    100% {
        transform: translateY(0) rotate(2deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 72px;
    align-items: center;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Availability Chip */
.availability-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 28px;
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 700;
    line-height: 1.04;
    color: var(--ink);
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.hero-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero-role {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink-muted);
    margin-bottom: 32px;
    letter-spacing: -0.2px;
}

.hero-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 28px;
    border-radius: 1px;
}

.hero-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 44px;
}

.hero-bullets li {
    font-size: 15px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-bullets li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-dark);
    flex-shrink: 0;
}

.hero-bullets li.highlight {
    color: var(--ink);
    font-weight: 500;
}

.hero-bullets li.highlight::before {
    background: var(--success);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Profile Card */
.hero-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #60A5FA 100%);
}

.hero-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.hero-photo {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--border), var(--shadow-md);
}

.hero-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    margin-bottom: 4px;
}

.hero-card-role {
    font-size: 13px;
    color: var(--ink-subtle);
    text-align: center;
    margin-bottom: 22px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-stat {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}

.hero-stat .num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    display: block;
    line-height: 1.1;
    margin-bottom: 3px;
}

.hero-stat .lbl {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 4px;
}

.skill-chip {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--t);
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border-dark);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--ink);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

.btn-accent:hover {
    background: #1547BD;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.4);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-copy {
    padding-top: 4px;
}

.about-copy p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-light);
    margin-bottom: 18px;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-copy strong {
    color: var(--ink);
    font-weight: 600;
}

.about-metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.metric-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}

.metric-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.metric-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.metric-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.skill-category {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: all var(--t);
    position: relative;
}

.skill-category:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skill-category h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cat-icon {
    width: 26px;
    height: 26px;
    background: var(--bg-subtle);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.skill-list li {
    font-size: 14px;
    color: var(--ink-light);
    padding: 6px 8px;
    border-radius: 7px;
    transition: all var(--t);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-dark);
    flex-shrink: 0;
    transition: background var(--t);
}

.skill-list li:hover {
    background: var(--bg-subtle);
    color: var(--ink);
    padding-left: 12px;
}

.skill-list li:hover::before {
    background: var(--accent);
}

/* ============================================
   EXPERIENCE (TIMELINE)
   ============================================ */
.experience {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 28px 1fr;
    gap: 0;
    padding-bottom: 52px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.tl-date {
    text-align: right;
    padding-right: 24px;
    padding-top: 2px;
}

.date-range {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
    display: block;
    margin-bottom: 4px;
}

.date-company {
    font-size: 12px;
    color: var(--ink-subtle);
    font-style: italic;
}

.tl-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-light);
    box-shadow: 0 0 0 3px var(--accent-border);
    flex-shrink: 0;
    margin-top: 4px;
}

.tl-line {
    width: 2px;
    flex: 1;
    background: var(--border-dark);
    margin-top: 8px;
    min-height: 40px;
}

.tl-content {
    padding-left: 24px;
    padding-bottom: 8px;
}

.tl-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.tl-award {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: #92400E;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
    margin-top: 6px;
}

.tl-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.tl-bullets li {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
    padding-left: 14px;
    position: relative;
}

.tl-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
    top: 1px;
    font-weight: 700;
}

.tl-bullets li strong {
    color: var(--ink);
    font-weight: 600;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.project-image {
    width: calc(100% + 56px);
    height: 200px;
    object-fit: cover;
    margin: -28px -28px 10px -28px;
    border-bottom: 1px solid var(--border);
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-links {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 10px;
}

.project-card--featured {
    border-color: var(--accent-border);
    background: linear-gradient(135deg, var(--bg) 0%, rgba(26, 86, 219, 0.02) 100%);
}

.project-card--featured::after {
    content: '★ Featured';
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 3px 9px;
    border-radius: 100px;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.project-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.project-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-subtle);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.project-details p {
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.project-details strong {
    color: var(--ink);
    font-weight: 600;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.tech-tag {
    font-size: 11.5px;
    font-weight: 600;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    transition: all var(--t);
}

.tech-tag:hover {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent);
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certifications {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.certifications::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.certifications .container {
    position: relative;
    z-index: 1;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.cert-card {
    background: linear-gradient(135deg, var(--bg) 0%, rgba(26, 86, 219, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--t) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(26, 86, 219, 0.08), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--t);
}

.cert-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--accent-border);
    transform: translateY(-5px);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-icon {
    width: 56px;
    height: 56px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(26, 86, 219, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-card:hover .cert-icon {
    transform: scale(1.1) rotate(-5deg);
    border-color: var(--accent-border);
    background: var(--bg-light);
    box-shadow: inset 0 2px 8px rgba(26, 86, 219, 0.1);
}

.cert-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform var(--t);
}

.cert-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.cert-card p {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-subtle);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.edu-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--t);
}

.edu-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.edu-card--current {
    border-color: var(--accent-border);
    background: linear-gradient(135deg, var(--bg) 0%, rgba(26, 86, 219, 0.03) 100%);
}

.edu-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.edu-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.edu-card-header>div h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.edu-institution {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
}

.edu-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-dark);
    color: var(--ink-muted);
    white-space: nowrap;
}

.edu-badge--active {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.3);
    color: var(--success);
}

.edu-dates {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
}

.edu-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edu-highlights li {
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.65;
    padding-left: 14px;
    position: relative;
}

.edu-highlights li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
    top: 1px;
    font-weight: 700;
}

/* ============================================
   GOALS / PENDING WORK
   ============================================ */
.pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.pending-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--t);
}

.pending-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.pending-inprogress .status-badge {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: var(--success);
}

.pending-inprogress .status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 1.5s infinite;
}

.pending-upcoming .status-badge {
    background: var(--bg-subtle);
    border: 1px solid var(--border-dark);
    color: var(--ink-muted);
}

.pending-upcoming .status-badge::before {
    content: '◦';
    font-size: 14px;
    color: var(--ink-subtle);
    line-height: 1;
}

.pending-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.pending-description {
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.pending-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.meta-item {
    font-size: 12px;
    color: var(--ink-subtle);
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 380px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t);
    text-decoration: none;
}

.contact-item:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    transform: translateX(3px);
}

.contact-item-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-subtle);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-subtle);
    margin-bottom: 2px;
    display: block;
}

.contact-item a,
.contact-item p {
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--t);
}

.contact-item:hover a {
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: all var(--t);
    resize: vertical;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--ink);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--t);
}

.footer-links a:hover {
    color: #fff;
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ── Tablet large (1024px) ────────────────── */
@media (max-width: 1024px) {

    .container,
    .nav-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hero-content {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
}

/* ── Tablet (992px) ─── nav collapses, layout stacks ── */
@media (max-width: 992px) {

    /* Collapse nav into hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s var(--ease);
        z-index: 900;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: 13px 10px;
        font-size: 15px;
    }

    /* Stack hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 60px;
    }

    .hero-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Stack about and contact */
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-intro {
        max-width: 100%;
    }

    /* Collapse timeline to single column */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 40px;
    }

    .tl-date {
        text-align: left;
        padding-right: 0;
        padding-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tl-spine {
        display: none;
    }

    .tl-content {
        padding-left: 0;
    }

    /* Skills: 2 columns on tablet */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile (768px) ─────────────────────── */
@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }

    section {
        padding: 64px 0;
    }

    .container,
    .hero-content,
    .nav-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-name {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
        letter-spacing: -0.5px;
    }

    /* All major grids → single column */
    .skills-grid,
    .certifications-grid,
    .projects-grid,
    .pending-grid {
        grid-template-columns: 1fr;
    }

    /* Hero stats: 2×2 grid */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer stacks vertically */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Timeline date row */
    .tl-date {
        flex-wrap: wrap;
    }
}

/* ── Small phones (480px) ─────────────── */
@media (max-width: 480px) {
    :root {
        --nav-h: 60px;
    }

    .hero-name {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    /* Stack CTA buttons vertically */
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero-card-badges {
        flex-wrap: wrap;
    }

    .timeline-item {
        padding-bottom: 28px;
    }

    .tl-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tl-content h3 {
        font-size: 17px;
    }

    .tl-bullets li {
        font-size: 13px;
    }

    /* Cert cards: 2 per row on small phones */
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cert-card {
        padding: 20px 14px;
    }

    .project-card {
        padding: 20px;
    }

    .contact-wrapper {
        gap: 40px;
    }
}