:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #111827;
    --text-soft: #4b5563;
    --text-inverse: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0f766e;
    --border: #e5e7eb;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --max-width: 1120px;
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 25%),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 24%, #ffffff 100%);
    line-height: 1.65;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 1000;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96)),
        linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--text-inverse);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -80px auto;
    width: 280px;
    height: 280px;
    background: rgba(37, 99, 235, 0.18);
    border-radius: 50%;
    filter: blur(10px);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bfdbfe;
    margin-bottom: 0.75rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
}

.hero-tagline {
    margin: 1rem 0 0.5rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    color: #ffffff;
}

.hero-subtitle {
    max-width: 820px;
    color: #dbeafe;
    font-size: 1rem;
    margin: 0 0 1.5rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.badge {
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
    backdrop-filter: blur(8px);
}

.hero-links,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-links {
    margin-top: 1.75rem;
}

.social-links {
    margin-top: 1rem;
}

.hero-links a,
.social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform var(--transition), background var(--transition);
}

.hero-links a:hover,
.social-links a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.section {
    padding: 4rem 0;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.9rem;
    color: var(--bg);
}

.section-heading p {
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    color: var(--text-soft);
    max-width: 760px;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    backdrop-filter: blur(6px);
}

.intro-card p:last-child,
.focus-card p:last-child,
.project-card p:last-child,
.timeline-item p:last-child,
.edu-card p:last-child,
.contact-card p:last-child {
    margin-bottom: 0;
}

.focus-grid,
.skills-grid,
.education-grid,
.contact-grid {
    display: grid;
    gap: 1.25rem;
}

.focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.education-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
}

.skills-card ul,
.cert-list,
.project-points,
.profile-list {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
}

.skills-card li,
.cert-list li,
.project-points li,
.profile-list li {
    margin-bottom: 0.45rem;
}

.project-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: #bfdbfe;
}

.featured-project {
    grid-column: span 2;
}

.project-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.project-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.project-header h3 a {
    color: inherit;
}

.project-header h3 a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.project-label {
    background: #dbeafe;
    color: var(--primary-dark);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.project-stack,
.meta {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin: 0.45rem 0 0.85rem;
}

.timeline {
    display: grid;
    gap: 1.25rem;
}

.timeline-item {
    border-left: 4px solid #bfdbfe;
}

.cert-list {
    columns: 2;
    column-gap: 2rem;
}

.profile-links-block p {
    margin-bottom: 0.35rem;
}

.profile-list a {
    word-break: break-word;
}

footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 900px) {
    .featured-project {
        grid-column: span 1;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .cert-list {
        columns: 1;
    }
}

@media (max-width: 520px) {
    .hero-links,
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .badge-row {
        gap: 0.55rem;
    }

    .card {
        padding: 1.2rem;
    }
}
