@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Splash / Intro Screen ── */
.splash {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #040a14 0%, #0b1623 50%, #060d18 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    overflow: hidden;
}

.splash.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Code rain background on splash */
.splash::before {
    content: 'const portfolio = { name: "Maganti Praveen Sai", skills: ["MERN", "JavaScript", "Python"], passion: true }; function build() { return "Welcome!"; } const data = { education: "B.Tech CSE", cgpa: 8.04 }; async function innovate() { const result = await buildAwesome(); return result; } if (developer === true) { launch.website(); } class Portfolio { constructor() { this.ready = true; } } const stars = [1,2,3,4,5]; for(let i=0; i<stars.length; i++) { console.log("Success!"); } const mission = "Make an Impact"; let journey = "Just Started"; var dreams = ["Full Stack", "MERN", "Software Eng"]; const api = fetch("/api/portfolio"); const spread = [...array]; const rest = (...args) => args;';
    position: absolute;
    inset: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(0, 217, 126, 0.25);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    animation: code-fall 14s linear infinite;
    z-index: 0;
    pointer-events: none;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 217, 126, 0.15);
    padding: 1rem;
}

@keyframes code-fall {
    0% {
        transform: translateY(-100%);
        opacity: 0.4;
    }

    10% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.25;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.splash-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.splash-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 217, 126, 0.4), 0 0 60px rgba(0, 217, 126, 0.15), 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    padding: 0 1rem;
    opacity: 0;
    animation: name-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes name-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(24px);
        filter: blur(8px);
    }

    60% {
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.splash-cursor {
    display: inline-block;
    width: 0.12em;
    height: 1em;
    background: #00d97e;
    margin-left: 0.1em;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(0, 217, 126, 0.8);
    animation: cursor-blink 1s steps(2) infinite;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.splash-tagline {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: rgba(0, 217, 126, 0.8);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-up 1s ease 1.6s forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fade-up 0.8s ease 1.8s forwards;
}

.splash-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00d97e, #f5a623);
    border-radius: 2px;
    animation: bar-load 1.6s ease 2s forwards;
    box-shadow: 0 0 10px rgba(0, 217, 126, 0.6);
}

@keyframes bar-load {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

:root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-card2: #1c2128;
    --border: #21262d;
    --emerald: #00d97e;
    --emerald-dim: #00b368;
    --gold: #f5a623;
    --gold-dim: #d4891a;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --text-dim: #6e7681;
    --gradient-em: linear-gradient(135deg, #00d97e, #00b368);
    --gradient-gold: linear-gradient(135deg, #f5a623, #d4891a);
    --gradient-hero: linear-gradient(135deg, #00d97e 0%, #f5a623 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-em: 0 0 30px rgba(0, 217, 126, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald);
    border-radius: 3px;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease, background 0.3s ease;
}

header.nav-hidden {
    transform: translateY(-100%);
}

header.scrolled {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-resume {
    background: var(--gradient-em);
    color: #0d1117 !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-resume:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 126, 0.3);
}

.btn-resume::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 217, 126, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(245, 166, 35, 0.05) 0%, transparent 50%),
        var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 217, 126, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.25);
    color: var(--emerald);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-label span {
    width: 7px;
    height: 7px;
    background: var(--emerald);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.hero-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero-text h1 .name-accent {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    max-width: 480px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-meta-item i {
    color: var(--emerald);
    font-size: 0.85rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-em);
    color: #0d1117;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 217, 126, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-avatar-wrap {
    position: relative;
    width: 360px;
    height: 360px;
}

.hero-avatar-ring {
    position: absolute;
    inset: -12px;
    border-radius: 24px;
    background: conic-gradient(from 180deg, var(--emerald), var(--gold), var(--emerald));
    animation: spin 8s linear infinite;
    opacity: 0.6;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-avatar-ring2 {
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: var(--bg);
}

.hero-avatar {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stats {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-stats-row {
    display: flex;
    gap: 1.5rem;
}

.hero-stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--emerald);
}

.hero-stat .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Section ── */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: #0b0f15;
}

.section-tag {
    display: inline-block;
    color: var(--emerald);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

.em {
    color: var(--emerald);
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.about-img-wrap {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-img img {
    width: 100%;
    display: block;
    filter: grayscale(10%);
}

.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gradient-gold);
    color: #0d1117;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 0.98rem;
}

.about-text strong {
    color: var(--emerald);
    font-weight: 600;
}

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.chip {
    background: rgba(0, 217, 126, 0.08);
    border: 1px solid rgba(0, 217, 126, 0.2);
    color: var(--emerald);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--emerald);
}

.stat-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-em);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.skill-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-em);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.skill-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 217, 126, 0.12);
    border: 1px solid rgba(0, 217, 126, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    font-size: 1.2rem;
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tag:hover {
    color: var(--emerald);
    border-color: rgba(0, 217, 126, 0.4);
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-em);
}

.project-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

.project-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-role {
    background: rgba(245, 166, 35, 0.12);
    color: var(--gold);
    border: 1px solid rgba(245, 166, 35, 0.25);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    background: rgba(0, 217, 126, 0.12);
    color: var(--emerald);
    border: 1px solid rgba(0, 217, 126, 0.25);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.project-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.tech {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.proj-link:hover {
    color: var(--emerald);
}

.proj-link.primary {
    color: var(--emerald);
}

/* ── Experience ── */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--emerald), var(--gold), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--emerald);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--emerald);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.75rem;
    border-radius: 14px;
    transition: all 0.3s;
}

.timeline-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateX(4px);
}

.tl-date {
    display: inline-block;
    background: rgba(0, 217, 126, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(0, 217, 126, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tl-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.tl-company {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tl-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tl-list li {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.6;
}

.tl-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--emerald);
}

/* ── Education ── */
.edu-grid {
    display: grid;
    gap: 1.2rem;
    max-width: 780px;
    margin: 0 auto;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.edu-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateX(4px);
}

.edu-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    font-size: 1.2rem;
}

.edu-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.edu-inst {
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.edu-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.edu-score {
    color: var(--emerald);
    font-weight: 700;
}

/* ── Certifications ── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-card.featured {
    border-color: rgba(245, 166, 35, 0.35);
}

.cert-card.featured::after {
    content: '★ Featured';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-gold);
    color: #0d1117;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-em);
}

.cert-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
}

.cert-card.featured:hover {
    border-color: rgba(245, 166, 35, 0.6);
}

.cert-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.cert-icon-wrap.gold {
    background: rgba(245, 166, 35, 0.12);
    color: var(--gold);
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.cert-icon-wrap.em {
    background: rgba(0, 217, 126, 0.12);
    color: var(--emerald);
    border: 1px solid rgba(0, 217, 126, 0.25);
}

.cert-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.cert-issuer {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.cert-year {
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

.cert-extra {
    color: var(--emerald);
    font-size: 0.78rem;
    font-weight: 600;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.2s;
}

.cert-link:hover {
    color: var(--emerald);
}

/* ── Contact ── */
.contact-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}

.contact-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateY(-3px);
}

.c-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    font-size: 1.1rem;
}

.c-label {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.c-value {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-card>div {
    min-width: 0;
    flex: 1;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.social-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--emerald);
    color: #0d1117;
    border-color: var(--emerald);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 217, 126, 0.3);
}

/* ── Footer ── */
footer {
    background: #0b0f15;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

footer span {
    color: var(--emerald);
}

/* ── Scroll-reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-avatar-wrap {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }

    .hero-stats {
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-wrap {
        max-width: 340px;
        margin: 0 auto 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        bottom: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s;
        backdrop-filter: blur(16px);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .btn-resume {
        display: none;
    }

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

    .hero-desc {
        margin: 0 auto 1.8rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-stats {
        display: none;
    }
}