/* =============================================
   Dinesh Kumar S — Portfolio
   Soft, professional light theme
   ============================================= */

:root {
    --bg: #f7f9fc;
    --bg-alt: #eef3f9;
    --surface: #ffffff;
    --surface-2: #f2f6fb;
    --border: #e2e9f3;
    --text: #2b3648;
    --muted: #64748b;
    --accent: #5b7fd4;
    --accent-soft: #e8eefb;
    --accent-2: #5fae9d;
    --accent-2-soft: #e4f2ee;
    --shadow-sm: 0 2px 8px -2px rgba(43, 54, 72, 0.08);
    --shadow-md: 0 12px 32px -16px rgba(43, 54, 72, 0.18);
    --shadow-lg: 0 24px 60px -28px rgba(91, 127, 212, 0.35);
    --radius: 18px;
    --maxw: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 100;
    transition: width 0.1s linear;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: var(--shadow-md);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    box-shadow: var(--shadow-md);
}

.nav-cta:hover {
    filter: brightness(1.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: blobFloat 14s ease-in-out infinite alternate;
}

.blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: #cfdcf7;
}

.blob-2 {
    width: 380px;
    height: 380px;
    top: 10%;
    right: -120px;
    background: #cdeae2;
    animation-delay: -4s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 35%;
    background: #e4dcf5;
    animation-delay: -8s;
}

@keyframes blobFloat {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(40px, 30px) scale(1.12);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.dot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4fbf8b;
    position: relative;
}

.dot-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #4fbf8b;
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    from {
        transform: scale(0.5);
        opacity: 0.9;
    }
    to {
        transform: scale(1.4);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.9rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
}

.grad-text {
    background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 5s ease-in-out infinite alternate;
}

@keyframes gradShift {
    from {
        background-position: 0% center;
    }
    to {
        background-position: 100% center;
    }
}

.hero-role {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    min-height: 1.6em;
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    margin-left: 4px;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    max-width: 560px;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.97rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease),
        background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
    0%, 60% {
        left: -80%;
    }
    100% {
        left: 160%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px -24px rgba(91, 127, 212, 0.5);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    list-style: none;
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-meta svg {
    width: 17px;
    height: 17px;
    fill: var(--accent);
    flex-shrink: 0;
}

/* Hero entrance animation */
.anim {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s var(--ease) forwards;
}

.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.25s; }
.anim-4 { animation-delay: 0.35s; }
.anim-5 { animation-delay: 0.45s; }
.anim-6 { animation-delay: 0.55s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Terminal card */
.hero-card {
    display: flex;
    justify-content: center;
}

.terminal {
    width: 100%;
    max-width: 440px;
    background: #232c3d;
    border-radius: var(--radius);
    box-shadow: 0 30px 70px -30px rgba(35, 44, 61, 0.5);
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-14px);
    }
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    background: #1b2231;
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-bar span:nth-child(1) { background: #f28b82; }
.terminal-bar span:nth-child(2) { background: #fdd663; }
.terminal-bar span:nth-child(3) { background: #81c995; }

.terminal-bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.75rem;
    color: #8b98b3;
}

.terminal-body {
    padding: 20px 20px 24px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    color: #c9d4e8;
}

.t-prompt {
    color: #7ea2e8;
    font-weight: 600;
}

.t-out {
    color: #8b98b3;
}

.t-ok {
    color: #81c995;
}

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: #7ea2e8;
    vertical-align: text-bottom;
    animation: blink 1s steps(2) infinite;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid var(--muted);
    border-radius: 14px;
    position: relative;
    opacity: 0.7;
}

.wheel {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: var(--muted);
    animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ---------- Tech ticker ---------- */
.ticker {
    overflow: hidden;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    padding: 13px 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 26s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-group {
    display: flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
}

.ticker-group span {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-group i {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    font-size: 0.75rem;
}

@keyframes tickerScroll {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Stats band ---------- */
.stats-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin-bottom: 52px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 18px;
}

.about-text strong {
    color: var(--text);
    font-weight: 700;
}

.about-points {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.about-points li {
    position: relative;
    padding: 14px 18px 14px 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    font-size: 0.96rem;
    font-weight: 500;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.about-points li:hover {
    transform: translateX(6px);
    border-color: var(--accent);
}

.about-points li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 800;
}

.about-side {
    display: grid;
    gap: 20px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.info-card dl {
    display: grid;
    gap: 12px;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.info-card dl div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-card dt {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-card dd {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.info-card--accent {
    background: linear-gradient(150deg, var(--accent-soft), var(--accent-2-soft));
    border-color: transparent;
}

/* ---------- Chips ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.chips li {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.chips li:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
        border-color 0.28s var(--ease);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
    margin-bottom: 20px;
    transition: transform 0.3s var(--ease);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--accent);
    stroke: var(--accent);
}

.service-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.93rem;
}

/* ---------- Skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
        box-shadow 0.28s var(--ease);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.skill-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.skill-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
    flex-shrink: 0;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.skill-card h3 {
    font-size: 1.12rem;
}

.skill-card .chips {
    margin-bottom: 22px;
}

.skill-bars {
    display: grid;
    gap: 14px;
}

.bar-row span {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.bar {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1.2s var(--ease);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 8px;
    max-width: 860px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
    opacity: 0.5;
}

.tl-item {
    position: relative;
    padding-left: 42px;
    margin-bottom: 28px;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: 0;
    top: 26px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.tl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.tl-card:hover {
    transform: translateX(6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.tl-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 16px;
    margin-bottom: 4px;
}

.tl-top h3 {
    font-size: 1.15rem;
}

.tl-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.tl-org {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.94rem;
    margin-bottom: 14px;
}

.tl-points {
    list-style: none;
    display: grid;
    gap: 8px;
}

.tl-points li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.94rem;
}

.tl-points li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ---------- Education ---------- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.edu-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.edu-card--highlight {
    background: linear-gradient(150deg, var(--accent-soft), var(--surface) 65%);
    border-color: rgba(91, 127, 212, 0.35);
}

.edu-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 999px;
}

.edu-card h3 {
    font-size: 1.12rem;
    margin: 14px 0 6px;
}

.edu-org {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 18px;
}

.edu-score {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ---------- Certifications ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.cert-badge {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
}

.cert-badge svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.cert-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.cert-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-panel {
    background: linear-gradient(150deg, var(--accent-soft), var(--accent-2-soft));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(36px, 6vw, 72px);
    box-shadow: var(--shadow-md);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
        box-shadow 0.22s var(--ease);
}

.contact-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.contact-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
}

.contact-ico svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.93rem;
    word-break: break-word;
}

.contact-info em {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 44px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    font-size: 0.98rem;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
}

.footer-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-top {
    color: var(--accent);
    font-weight: 600;
    transition: opacity 0.2s var(--ease);
}

.footer-top:hover {
    opacity: 0.7;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal,
    .anim {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions,
    .hero-meta {
        justify-content: center;
    }
    .hero-card {
        justify-content: center;
    }
    .terminal {
        text-align: left;
    }
    .services-grid,
    .skills-grid,
    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .about-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        inset: 74px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 24px 24px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-140%);
        transition: transform 0.4s var(--ease);
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .nav-links a {
        padding: 13px 16px;
        font-size: 1rem;
    }
    .section {
        padding: 72px 0;
    }
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }
    .services-grid,
    .skills-grid,
    .edu-grid,
    .cert-grid,
    .contact-links {
        grid-template-columns: 1fr;
    }
    .about-side {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-meta {
        align-items: flex-start;
    }
    .scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    .hero {
        padding: 108px 0 64px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
    }
    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .terminal-body {
        padding: 16px 14px 20px;
        font-size: 0.72rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-head {
        margin-bottom: 36px;
    }
    .contact-panel {
        border-radius: 20px;
    }
    .tl-card {
        padding: 20px 18px;
    }
    .tl-item {
        padding-left: 34px;
    }
    .footer {
        padding: 34px 0;
    }
}
