:root {
    --bg-primary: #04110d;
    --bg-secondary: #0b2c25;
    --text-primary: #f3fff9;
    --text-muted: rgba(217, 242, 232, 0.7);
    --accent: #7df0c6;
    --accent-secondary: #f4b860;
    --accent-soft: rgba(125, 240, 198, 0.28);
    --accent-glow: rgba(125, 240, 198, 0.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(120% 120% at 0% 0%, #103730 0%, #04110d 65%, #020807 100%);
    color: var(--text-primary);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(125, 240, 198, 0.08), transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(244, 184, 96, 0.08), transparent 65%),
        radial-gradient(circle at 50% 80%, rgba(125, 240, 198, 0.06), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.skill-groups {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.skill-panel {
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(4, 26, 21, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.2);
    box-shadow: inset 0 0 18px rgba(3, 20, 16, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-panel h3 {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.86rem;
    color: rgba(217, 242, 232, 0.78);
}

.skill-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-panel li {
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: rgba(217, 242, 232, 0.85);
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.skill-panel li:hover,
.skill-panel li:focus-visible {
    border-color: rgba(125, 240, 198, 0.6);
    background: rgba(5, 30, 24, 0.8);
    color: var(--accent);
    transform: translateX(4px);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 2rem;
    flex-wrap: wrap;
}

.brand-mark {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--accent-secondary);
}

.site-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.site-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.78);
    text-decoration: none;
    padding: 0.25rem 0.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent);
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 2px;
    background: rgba(125, 240, 198, 0.65);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.btn-header {
    padding: 0.6rem 1.4rem;
    flex-shrink: 0;
}

.btn-hero,
.btn-hero-secondary {
    padding: 0.65rem 1.6rem;
    gap: 1rem;
    border-width: 1px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.82);
    text-decoration: none;
    padding: 0.45rem 0.95rem;
    position: relative;
    border-radius: 999px;
    border: 1px solid rgba(125, 240, 198, 0.18);
    background: linear-gradient(180deg, rgba(5, 28, 22, 0.72) 0%, rgba(4, 18, 14, 0.58) 100%);
    box-shadow: inset 0 0 12px rgba(3, 12, 10, 0.45);
    backdrop-filter: blur(10px);
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn.btn-outline-light.btn-hero:hover,
.btn.btn-outline-light.btn-hero:focus,
.btn.btn-outline-light.btn-hero:focus-visible {
    color: var(--accent);
    border-color: rgba(125, 240, 198, 0.7);
    background: linear-gradient(180deg, rgba(10, 44, 34, 0.9) 0%, rgba(6, 24, 18, 0.85) 100%);
    box-shadow: 0 10px 24px rgba(3, 10, 8, 0.55), 0 0 18px rgba(125, 240, 198, 0.25);
    transform: translateY(-2px);
}

}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
    transform: translateY(-2px);
    background: rgba(244, 184, 96, 0.26);
    box-shadow: 0 18px 36px rgba(24, 15, 5, 0.4), 0 0 18px rgba(244, 184, 96, 0.28);
}

.hero-card {
    padding: 3rem 3.4rem;
}

.hero-card::before {
    inset: 14px;
}

.intro-grid {
    display: grid;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3rem;
}

.intro-icon {
    position: relative;
    width: clamp(200px, 26vw, 260px);
    height: clamp(200px, 26vw, 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-6%);
}

.intro-icon::before {
    content: '';
    position: absolute;
    inset: -16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 240, 198, 0.16) 0%, rgba(125, 240, 198, 0) 70%);
    filter: blur(6px);
    opacity: 0.85;
    pointer-events: none;
}

.lottie-slot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(155deg, rgba(9, 40, 32, 0.62), rgba(5, 20, 16, 0.45));
    border: 1px solid rgba(125, 240, 198, 0.28);
    box-shadow: 0 20px 45px rgba(4, 17, 14, 0.6), inset 0 0 22px rgba(4, 28, 21, 0.55), 0 0 30px rgba(125, 240, 198, 0.28);
}

.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(244, 184, 96, 0.24), transparent 68%);
    opacity: 0.6;
    pointer-events: none;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: saturate(1.05) contrast(1.03);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.portrait-frame:hover .portrait-image {
    transform: scale(1.02);
    filter: saturate(1.16) contrast(1.05);
}

.intro-copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.role-tag {
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    background: rgba(5, 32, 26, 0.82);
    border: 1px solid rgba(244, 184, 96, 0.38);
    box-shadow: 0 12px 24px rgba(4, 12, 10, 0.45);
}

.hero-name {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(3.1rem, 6.6vw, 4.5rem);
    letter-spacing: -0.015em;
    color: var(--text-primary);
    text-shadow: 0 22px 44px rgba(4, 8, 7, 0.55), 0 0 22px rgba(125, 240, 198, 0.28);
}

.hero-name .typing-wrapper {
    color: var(--text-primary);
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
}

.typing-text {
    display: inline-block;
    white-space: nowrap;
    color: inherit;
}

.typing-text .typing-hi {
    color: var(--accent);
}

.typing-text .typing-rest {
    color: var(--text-primary);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.3em;
    background: var(--accent);
    animation: blinkCursor 0.7s steps(1, end) infinite;
}

.typing-cursor.is-idle {
    opacity: 0.7;
    animation-duration: 1.2s;
}

@keyframes blinkCursor {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-subtitle {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.68);
}

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meta-badges li {
    padding: 0.55rem 0.95rem;
    border-radius: 14px;
    background: rgba(4, 30, 24, 0.6);
    border: 1px solid rgba(125, 240, 198, 0.25);
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 18px rgba(3, 24, 19, 0.45);
}

.hero-infobar {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 0.6rem;
}

.info-card {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(4, 28, 22, 0.6);
    border: 1px solid rgba(125, 240, 198, 0.2);
    box-shadow: inset 0 0 16px rgba(3, 20, 15, 0.45);
}

.info-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.62);
}

.info-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.hero-footer {
    margin-top: 2.6rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.hero-connect,
.hero-activity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(4, 30, 24, 0.6);
    border: 1px solid rgba(125, 240, 198, 0.18);
    box-shadow: inset 0 0 20px rgba(3, 20, 16, 0.4);
    flex: 1 1 280px;
}

.hero-connect p,
.hero-activity p {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.65);
}

.social-links,
.activity-icons {
    display: flex;
    gap: 0.55rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 240, 198, 0.92), rgba(63, 207, 165, 0.7));
    border: 1px solid rgba(125, 240, 198, 0.75);
    box-shadow: 0 12px 26px rgba(10, 45, 34, 0.42);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    transform: translateY(-2px);
    background: radial-gradient(circle, rgba(125, 240, 198, 0.98), rgba(141, 255, 210, 0.55));
    box-shadow: 0 18px 36px rgba(10, 45, 34, 0.55), 0 0 18px rgba(125, 240, 198, 0.3);
}

.activity-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 240, 198, 0.92), rgba(63, 207, 165, 0.7));
    border: 1px solid rgba(125, 240, 198, 0.75);
    box-shadow: 0 12px 26px rgba(10, 45, 34, 0.42);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.activity-icons a:hover,
.activity-icons a:focus {
    transform: translateY(-2px);
    background: radial-gradient(circle, rgba(125, 240, 198, 0.98), rgba(141, 255, 210, 0.55));
    box-shadow: 0 18px 36px rgba(10, 45, 34, 0.55), 0 0 18px rgba(125, 240, 198, 0.3);
}

.social-links .social-icon,
.contact-social .social-icon,
.activity-icons .social-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(125, 240, 198, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-social .social-icon {
    width: 28px;
    height: 28px;
}

.activity-icons a[aria-label="GitHub"] .social-icon {
    width: 28px;
    height: 28px;
}

.social-links a:hover .social-icon,
.contact-social a:hover .social-icon,
.activity-icons a:hover .social-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(125, 240, 198, 0.35));
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.section-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: 0.06em;
}

.section-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(217, 242, 232, 0.72);
}

.projects-section,
.gallery-section,
.patent-section,
.skills-section,
.certificates-section,
.blog-section,
.resume-section,
.about-section,
.contact-section {
    padding: 2.4rem 2.6rem;
}

.patent-section {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.patent-card {
    margin: 0;
    width: 100%;
    padding: 1.8rem 2rem;
    border-radius: 24px;
    background: rgba(4, 24, 19, 0.7);
    border: 1px solid rgba(125, 240, 198, 0.24);
    box-shadow: 0 28px 50px rgba(3, 12, 9, 0.55), inset 0 0 30px rgba(3, 20, 16, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.patent-card h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.patent-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 184, 96, 0.35);
    background: rgba(50, 32, 12, 0.78);
    color: rgba(244, 184, 96, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.patent-meta-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: rgba(217, 242, 232, 0.85);
}

.patent-meta-list strong {
    color: rgba(217, 242, 232, 0.9);
    letter-spacing: 0.08em;
}

.patent-abstract,
.patent-note {
    margin: 0;
    color: rgba(217, 242, 232, 0.82);
    line-height: 1.7;
}

.patent-note {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.62);
}

.patent-card:hover,
.patent-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(125, 240, 198, 0.45);
    background: rgba(6, 34, 28, 0.8);
    box-shadow: 0 38px 64px rgba(3, 12, 9, 0.6), 0 0 24px rgba(125, 240, 198, 0.35);
}

.project-grid {
    margin-top: 2.1rem;
    display: grid;
    gap: 1.65rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
    padding: 1.6rem 1.8rem;
    border-radius: 18px;
    background: rgba(4, 26, 21, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.2);
    box-shadow: inset 0 0 22px rgba(3, 20, 16, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    background: rgba(6, 34, 28, 0.74);
    border-color: rgba(125, 240, 198, 0.38);
    box-shadow: 0 26px 42px rgba(4, 18, 14, 0.55), inset 0 0 28px rgba(125, 240, 198, 0.18);
}

.project-thumb {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(125, 240, 198, 0.35);
    box-shadow: 0 14px 26px rgba(4, 16, 13, 0.45);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card:hover .project-thumb,
.project-card:focus-within .project-thumb {
    transform: scale(1.02);
    filter: saturate(1.1);
}

.project-card h3 {
    margin: 0;
    font-size: 1.12rem;
    color: var(--accent);
}

.project-copy {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(217, 242, 232, 0.8);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 240, 198, 0.3);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.filter-row {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-chip {
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 240, 198, 0.28);
    background: rgba(4, 30, 24, 0.55);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-card {
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    background: rgba(4, 24, 19, 0.6);
    border: 1px solid rgba(125, 240, 198, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    color: rgba(217, 242, 232, 0.82);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.gallery-thumb {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(125, 240, 198, 0.25);
    box-shadow: 0 14px 26px rgba(4, 16, 13, 0.35);
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-thumb--full {
    height: auto;
    object-fit: contain;
    background: rgba(2, 10, 8, 0.8);
}

.gallery-card:hover,
.gallery-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(125, 240, 198, 0.7);
    background: rgba(6, 32, 26, 0.8);
    box-shadow: 0 24px 40px rgba(3, 14, 12, 0.5), 0 0 20px rgba(125, 240, 198, 0.35);
}

.gallery-card:hover .gallery-thumb,
.gallery-card:focus-within .gallery-thumb {
    transform: scale(1.015);
    filter: saturate(1.08);
}

.skills-bubbles {
    margin: 2rem 0 1.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.skills-bubbles span {
    padding: 1.2rem;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(125, 240, 198, 0.22);
    background: radial-gradient(circle, rgba(125, 240, 198, 0.14), rgba(6, 32, 26, 0.8));
    display: grid;
    place-items: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--accent);
    box-shadow: 0 12px 20px rgba(4, 10, 8, 0.55);
    animation: skillFloat 6s ease-in-out infinite;
}

.skills-bubbles span:nth-child(2n) {
    animation-duration: 7.2s;
    animation-delay: 0.3s;
}

.skills-bubbles span:nth-child(3n) {
    animation-duration: 5.4s;
    animation-delay: 0.6s;
}

.skills-bubbles span:nth-child(4n) {
    animation-duration: 6.6s;
    animation-delay: 0.9s;
}

.skills-categories {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}


@keyframes skillFloat {
    0% {
        transform: translate3d(0, 0, 0);
        box-shadow: 0 12px 20px rgba(4, 10, 8, 0.55);
    }
    50% {
        transform: translate3d(6px, -12px, 0);
        box-shadow: 0 18px 26px rgba(4, 8, 7, 0.4), 0 0 14px rgba(125, 240, 198, 0.25);
    }
    100% {
        transform: translate3d(0, 0, 0);
        box-shadow: 0 12px 20px rgba(4, 10, 8, 0.55);
    }
}
.skills-categories article {
    padding: 1.4rem;
    border-radius: 18px;
    background: rgba(4, 26, 21, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.18);
}

.skills-categories h3 {
    margin: 0 0 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(217, 242, 232, 0.7);
}

.skills-categories ul {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(217, 242, 232, 0.85);
    line-height: 1.6;
}

.certificate-grid {
    margin-top: 1.9rem;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.certificate-card {
    padding: 1.5rem 1.6rem;
    border-radius: 18px;
    background: rgba(4, 26, 21, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.certificate-card:hover,
.certificate-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(125, 240, 198, 0.45);
    background: rgba(6, 32, 26, 0.78);
    box-shadow: 0 20px 34px rgba(3, 14, 12, 0.45);
}

.certificate-card:hover a,
.certificate-card:focus-within a {
    color: var(--accent-secondary);
}

.certificate-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent);
}

.certificate-meta {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.62);
}

.certificate-card a {
    margin-top: auto;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.resume-profile {
    margin-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.resume-profile h3 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
}

.resume-headline {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(217, 242, 232, 0.75);
}

.resume-summary-text {
    margin: 0;
    color: rgba(217, 242, 232, 0.85);
    line-height: 1.6;
}

.resume-quick-facts {
    margin-top: 1.8rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.resume-card {
    padding: 1.3rem;
    border-radius: 16px;
    border: 1px solid rgba(125, 240, 198, 0.22);
    background: rgba(4, 24, 19, 0.6);
    box-shadow: inset 0 0 18px rgba(3, 18, 14, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resume-card h4 {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: rgba(217, 242, 232, 0.75);
}

.resume-card p {
    margin: 0;
    color: rgba(217, 242, 232, 0.88);
    line-height: 1.6;
}

.resume-footer--compact {
    margin-top: 1.6rem;
    display: flex;
    justify-content: flex-start;
}

.blog-grid {
    margin-top: 1.8rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.blog-card {
    padding: 1.6rem 1.7rem;
    border-radius: 20px;
    background: rgba(4, 24, 19, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--accent);
}

.blog-card p {
    margin: 0;
    line-height: 1.6;
    color: rgba(217, 242, 232, 0.78);
}

.blog-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(217, 242, 232, 0.65);
}

.resume-layout {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.resume-summary {
    padding: 1.6rem 1.8rem;
    border-radius: 18px;
    background: rgba(4, 24, 19, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.22);
}

.resume-summary h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.resume-summary p {
    margin: 0 0 0.75rem;
    line-height: 1.6;
    color: rgba(217, 242, 232, 0.8);
}

.resume-contact {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(217, 242, 232, 0.78);
    line-height: 1.6;
}

.resume-columns {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.resume-columns article {
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(4, 26, 21, 0.65);
    border: 1px solid rgba(125, 240, 198, 0.18);
}

.resume-columns h4 {
    margin: 0 0 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(217, 242, 232, 0.7);
}

.resume-columns ul {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(217, 242, 232, 0.82);
    line-height: 1.6;
}

.skill-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-tag-row span {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 240, 198, 0.28);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.resume-footer {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.resume-links {
    display: flex;
    gap: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.resume-links a {
    color: var(--accent);
    text-decoration: none;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-top: 1.6rem;
    line-height: 1.75;
    color: rgba(217, 242, 232, 0.82);
}

.contact-body {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

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

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 240, 198, 0.9), rgba(63, 207, 165, 0.68));
    border: 1px solid rgba(125, 240, 198, 0.75);
    box-shadow: 0 16px 34px rgba(10, 45, 34, 0.45);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-social a:hover,
.contact-social a:focus {
    transform: translateY(-2px);
    background: radial-gradient(circle, rgba(125, 240, 198, 0.98), rgba(141, 255, 210, 0.55));
    box-shadow: 0 22px 44px rgba(10, 45, 34, 0.58), 0 0 20px rgba(125, 240, 198, 0.32);
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(125, 240, 198, 0.2);
    background: rgba(4, 20, 16, 0.8);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(217, 242, 232, 0.5);
}

.contact-form .btn-hero {
    background: var(--accent);
    color: #04110d;
    border-color: rgba(125, 240, 198, 0.9);
    width: auto;
    justify-self: center;
    padding: 0.55rem 1.25rem;
}

.contact-form .btn-hero:hover,
.contact-form .btn-hero:focus {
    background: #a5ffe0;
    color: #02130c;
}

.site-footer {
    padding: 1.4rem 1.6rem;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(5, 25, 20, 0.78), rgba(4, 18, 14, 0.55));
    border: 1px solid rgba(125, 240, 198, 0.18);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: rgba(217, 242, 232, 0.68);
    backdrop-filter: blur(18px);
}

@media (max-width: 1024px) {
    .hero-card {
        padding: 2.6rem 2.8rem;
    }

    .intro-grid {
        gap: 2.2rem;
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .intro-copy {
        align-items: center;
    }

    .role-tag {
        align-self: center;
    }

    .hero-infobar {
        width: 100%;
    }

    .hero-card::before {
        inset: 12px;
    }
}

@media (max-width: 860px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .btn-header {
        order: 3;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 720px) {
    body {
        padding: 5vh 0;
    }

    .page-shell {
        gap: 2rem;
    }

    .glass-card {
        padding: 1.9rem 2rem;
        border-radius: 22px;
    }

    .hero-footer {
        grid-template-columns: 1fr;
    }

    .projects-section,
    .gallery-section,
    .patent-section,
    .skills-section,
    .certificates-section,
    .blog-section,
    .resume-section,
    .about-section,
    .contact-section {
        padding: 2.1rem;
    }

    .skills-bubbles span {
        width: 96px;
        height: 96px;
        font-size: 0.7rem;
    }
}

@media (max-width: 560px) {
    .site-nav {
        gap: 0.65rem;
    }

    .site-nav a {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
    }

    .hero-card {
        padding: 2.2rem 1.8rem;
    }

    .project-grid,
    .gallery-grid,
    .blog-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
    }
}
