/* Senior data engineering portfolio theme */
:root {
    --bg-primary: #111318;
    --bg-secondary: #1B2027;
    --bg-tertiary: #2A303A;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --accent-cyan: #06B6D4;
    --accent-cyan-light: #22D3EE;
    --accent-gold: #F59E0B;
    --accent-gold-light: #FBBF24;
    --accent-emerald: #10B981;
    --gradient-primary: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-mesh: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 46%, #F59E0B 100%);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.3);
    --shadow-gold: 0 0 40px rgba(245, 158, 11, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section {
    padding: 120px 0;
    position: relative;
    scroll-margin-top: 96px;
}

#about {
    padding-top: 84px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.noscript-summary {
    padding: 120px 0 48px;
    background: rgba(17, 19, 24, 0.96);
}

.noscript-summary h1 {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.noscript-summary p,
.noscript-summary li {
    max-width: 780px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.noscript-summary ul {
    margin: 1.5rem 0 0 1.25rem;
}

.noscript-summary a {
    color: var(--accent-cyan-light);
}

.section-title {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(17, 19, 24, 0) 32%),
        linear-gradient(225deg, rgba(245, 158, 11, 0.12) 0%, rgba(17, 19, 24, 0) 28%),
        linear-gradient(180deg, var(--bg-primary) 0%, #151922 52%, #121317 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-brand {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    min-width: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    flex: 0 0 auto;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

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

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-cyan);
}

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

/* Hero Section */
.hero-section {
    min-height: 88svh;
    display: flex;
    align-items: flex-start;
    padding: 112px 0 48px;
}

.hero-section .container {
    width: 100%;
    min-width: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-content {
    min-width: 0;
}

.hero-media {
    position: relative;
    justify-self: end;
    width: min(100%, 420px);
    aspect-ratio: 1;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.28);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), var(--shadow-glow);
    animation: fadeInUp 0.6s ease 0.45s backwards;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 36%;
}

.hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero-name {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(3.25rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
    word-break: normal;
    background: var(--gradient-mesh);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--text-secondary);
    width: min(100%, 980px);
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    width: min(100%, 600px);
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-bottom: 1.5rem;
    line-height: 1.65;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.social-link:focus-visible,
.work-link:focus-visible {
    outline: 3px solid var(--accent-gold-light);
    outline-offset: 4px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 680px;
    animation: fadeInUp 0.6s ease 0.7s backwards;
}

.stat-item {
    text-align: center;
    padding: 0.85rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-item .stat-number {
    font-size: 2.1rem;
}

.stat-number {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.highlight-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.highlight-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.highlight-card h3,
.highlight-value {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-card p,
.highlight-label {
    color: var(--text-tertiary);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 22px;
    width: 2px;
    background: rgba(6, 182, 212, 0.25);
}

.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.experience-marker {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.experience-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.experience-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}

.experience-logo {
    width: 110px;
    height: 60px;
    flex: 0 0 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.experience-logo span {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bg-primary);
}

.experience-role {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.experience-company {
    color: var(--accent-gold);
    font-weight: 700;
}

.experience-meta {
    color: var(--text-tertiary);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 220px;
}

.experience-list {
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.experience-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 2.5rem;
}

.work-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.work-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    backdrop-filter: blur(10px);
}

.work-content {
    padding: 2rem;
}

.work-category {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.work-title {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.work-description {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.work-detail {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.work-meta span {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: var(--accent-gold-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.work-highlights {
    margin: 0 0 1.5rem 1.1rem;
    color: var(--text-secondary);
}

.work-highlights li {
    margin-bottom: 0.55rem;
    line-height: 1.55;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.work-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(6, 182, 212, 0.55);
    border-radius: 999px;
    color: var(--accent-cyan-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.work-link:hover {
    background: rgba(6, 182, 212, 0.14);
    border-color: var(--accent-cyan);
}

.activity-projects {
    margin-top: 4rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.activity-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 8px;
}

.activity-card h3 {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.activity-card p {
    color: var(--text-tertiary);
}

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

.skill-category {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.skill-category:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-category-header i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.skill-category-name {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Education Section */
.section-subheading {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
    margin: 4rem 0 2rem;
}

.education-grid,
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.education-card,
.certification-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.education-card i,
.certification-card i {
    color: var(--accent-cyan);
    font-size: 2rem;
    flex: 0 0 auto;
}

.education-card h3,
.certification-card h3 {
    font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-card p,
.certification-card p {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.education-card span {
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-item {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--accent-cyan-light);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.footer p {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

#footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: 0.3s;
}

#footer-links a:hover {
    color: var(--accent-cyan);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-glow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 95px;
        left: 0;
        width: min(300px, 100vw);
        height: calc(100dvh - 95px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-110%);
        visibility: hidden;
        transition: transform 0.3s, visibility 0.3s;
    }
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    .hero-section {
        min-height: auto;
        padding: 96px 0 42px;
    }
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .hero-content {
        text-align: center;
        justify-self: center;
        max-width: 720px;
    }
    .hero-media {
        order: -1;
        justify-self: center;
        width: 150px;
        border-radius: 50%;
    }
    .hero-tagline,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta,
    .hero-social {
        justify-content: center;
    }
    .work-grid { grid-template-columns: 1fr; }
    .experience-header {
        flex-direction: column;
    }
    .experience-brand {
        align-items: flex-start;
    }
    .experience-meta {
        text-align: left;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 2rem;
        overflow-wrap: anywhere;
    }
    .hero-name {
        font-size: clamp(2.05rem, 11.5vw, 2.55rem);
        line-height: 1.08;
        margin-bottom: 0.55rem;
    }
    .hero-title {
        font-size: clamp(1.25rem, 6.8vw, 1.75rem);
        line-height: 1.2;
        margin-bottom: 0.65rem;
    }
    .hero-greeting {
        font-size: 1rem;
        margin-bottom: 0.55rem;
    }
    .hero-tagline,
    .hero-description {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .hero-tagline {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 0.9rem;
    }
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    .hero-media {
        width: 128px;
    }
    .hero-cta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem;
        margin-bottom: 1rem;
    }
    .hero-social {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    .social-link {
        width: 40px;
        height: 40px;
    }
    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .stat-item {
        padding: 0.8rem 0.4rem;
        border-radius: 14px;
    }
    .stat-number {
        font-size: clamp(1.85rem, 10vw, 2.5rem);
    }
    .stat-label {
        font-size: 0.68rem;
        line-height: 1.25;
    }
    .btn {
        width: auto;
        min-width: 132px;
        padding: 0.78rem 1rem;
        text-align: center;
        font-size: 0.9rem;
    }
    .container { padding: 0 1rem; }
    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .experience-brand {
        flex-direction: column;
    }
    .experience-logo {
        width: 120px;
        height: 66px;
    }
    .experience-content,
    .skill-category,
    .education-card,
    .certification-card,
    .work-content {
        padding: 1.5rem;
        min-width: 0;
    }
    .skill-category-header {
        flex-wrap: wrap;
    }
    .skill-category-name,
    .skill-tag,
    .tag {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .experience-timeline::before,
    .experience-marker {
        display: none;
    }
    .work-grid,
    .skills-grid,
    .education-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    .work-title,
    .experience-role {
        font-size: 1.45rem;
    }
    .contact-item {
        font-size: 1.1rem;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 92px 0 16px;
    }
    .hero-section .container {
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-layout {
        gap: 0.6rem;
    }
    .hero-media {
        width: 96px;
    }
    .hero-media img {
        object-position: center 32%;
    }
    .hero-greeting {
        margin-bottom: 0.4rem;
    }
    .hero-name {
        font-size: clamp(1.95rem, 11vw, 2.35rem);
        margin-bottom: 0.45rem;
    }
    .hero-title {
        margin-bottom: 0.5rem;
    }
    .hero-tagline {
        font-size: 0.92rem;
        line-height: 1.38;
        margin-bottom: 0.7rem;
    }
    .hero-description,
    .hero-stats {
        display: none;
    }
    .hero-cta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .btn {
        min-width: 0;
        width: 100%;
        padding: 0.7rem 0.5rem;
        font-size: 0.82rem;
    }
    .work-image {
        height: 220px;
    }
    #about {
        padding-top: 36px;
    }
    .contact-item {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .nav-brand {
        font-size: 1.45rem;
    }

    .nav-toggle span {
        width: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
