:root {
    --primary: #35c2ff;
    --primary-strong: #0ea5e9;
    --bg: #050816;
    --panel: rgba(15, 23, 42, 0.75);
    --panel-strong: #0f172a;
    --surface: #0b1220;
    --surface-2: #111a2e;
    --text-main: #f8fafc;
    --text-muted: #b7c2d3;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

body:not(.dark-mode) {
    --bg: #f7fafc;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(15, 23, 42, 0.12);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(53, 194, 255, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 26%),
        var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.22;
    pointer-events: none;
    z-index: -1;
    animation: drift 16s ease-in-out infinite alternate;
}

body::before {
    top: -7rem;
    right: -6rem;
    background: rgba(53, 194, 255, 0.42);
}

body::after {
    bottom: -10rem;
    left: -8rem;
    background: rgba(99, 102, 241, 0.18);
    animation-delay: -6s;
}

a {
    color: inherit;
}

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

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    inset: 16px auto auto 50%;
    width: min(86%, 920px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(53, 194, 255, 0.2), transparent);
    pointer-events: none;
}

.bg-light {
    background: linear-gradient(180deg, transparent, rgba(53, 194, 255, 0.03));
}

nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 18px 0;
    transition: 0.3s ease;
}

nav.scrolled {
    background: rgba(5, 8, 22, 0.58);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

body:not(.dark-mode) nav.scrolled {
    background: rgba(247, 250, 252, 0.82);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.logo span {
    color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn,
.menu-trigger,
.close-menu {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text-main);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover,
.menu-trigger:hover,
.close-menu:hover {
    transform: translateY(-2px);
    border-color: rgba(53, 194, 255, 0.35);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
}

.menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    font-weight: 800;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 100%);
    height: 100vh;
    z-index: 2000;
    padding: 1.5rem;
    background: var(--panel-strong);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(26px);
    transition: right 0.45s cubic-bezier(0.77, 0, 0.18, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-overlay.active {
    right: 0;
}

.close-menu {
    width: 46px;
    height: 46px;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.6rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.menu-overlay a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.menu-overlay hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-section::before {
    width: 16rem;
    height: 16rem;
    top: 10%;
    right: 4%;
    background: radial-gradient(circle, rgba(53, 194, 255, 0.2), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    width: 22rem;
    height: 22rem;
    left: -8rem;
    bottom: 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-grid,
.about-grid,
.contact-grid {
    display: grid;
    gap: 2.5rem;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.hero-image-first {
    order: -1;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s ease both;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    line-height: 0.95;
    margin-bottom: 1.4rem;
    letter-spacing: -0.04em;
    animation: fadeUp 0.85s ease both, titleGlow 6s ease-in-out infinite;
}

#typewriter {
    color: var(--primary);
}

.type-accent {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, var(--primary) 55%, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(53, 194, 255, 0.18);
}

.hero-subtitle,
.lead,
.timeline-item p,
.card p,
.portfolio-content p,
.mini-card p,
.skill-card p {
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 60ch;
    animation: fadeUp 0.95s ease both;
}

.text-highlight {
    color: var(--text-main);
    background: linear-gradient(180deg, transparent 58%, rgba(53, 194, 255, 0.2) 58%);
    padding: 0 0.15rem;
    border-radius: 6px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.3rem;
    animation: fadeUp 1.05s ease both;
}

.hero-badges span {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(53, 194, 255, 0.12);
    border: 1px solid rgba(53, 194, 255, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 2rem;
    animation: fadeUp 1.1s ease both;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    backdrop-filter: blur(20px);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeUp 1.2s ease both;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--panel);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeUp 1s ease both;
}

.image-border {
    width: min(420px, 100%);
    padding: 14px;
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(53, 194, 255, 0.18), rgba(14, 165, 233, 0.06));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: glow 5s ease-in-out infinite;
}

.image-border img {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    border-radius: 30px;
}

.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 0.95rem 1rem;
    max-width: 180px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

body:not(.dark-mode) .floating-card {
    background: rgba(255, 255, 255, 0.9);
}

.floating-card strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.floating-card span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.floating-card.one {
    left: -10px;
    bottom: 42px;
}

.floating-card.two {
    right: -6px;
    top: 22px;
    animation-delay: -2.4s;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.2rem;
    letter-spacing: -0.04em;
    position: relative;
    display: inline-block;
}

.section-title.left {
    text-align: left;
}

.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    margin-top: 0.7rem;
    background: linear-gradient(90deg, var(--primary), transparent);
    animation: underlineGrow 0.8s ease both;
}

.section-title:not(.left) {
    text-align: center;
    width: 100%;
}

.section-title:not(.left)::after {
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.profile-stack {
    display: grid;
    gap: 1rem;
}

.profile-showcase {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(28px);
    box-shadow: var(--shadow);
    animation: cardRise 0.9s ease both;
}

body:not(.dark-mode) .profile-showcase {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
        var(--panel);
}

.profile-frame {
    max-width: 100%;
    padding: 10px;
    border-radius: 34px;
}

.profile-frame img {
    border-radius: 24px;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-copy h3 {
    font-size: 1.45rem;
}

.profile-copy p {
    color: var(--text-muted);
}

.hero-badges.compact {
    margin-top: 0.2rem;
}

.lead {
    font-size: 1.05rem;
    max-width: 60ch;
}

.profile-points,
.skills-grid,
.portfolio-grid,
.grid-3 {
    display: grid;
    gap: 1.2rem;
}

.profile-points {
    grid-template-columns: 1fr;
}

.mini-card,
.skill-card,
.card,
.contact-form,
.portfolio-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.mini-card,
.skill-card,
.card,
.portfolio-card {
    animation: cardRise 0.9s ease both;
}

.grid-3 > .card:nth-child(1),
.portfolio-grid > .portfolio-card:nth-child(1),
.skills-grid > .skill-card:nth-child(1),
.profile-points > .mini-card:nth-child(1) {
    animation-delay: 0.08s;
}

.grid-3 > .card:nth-child(2),
.portfolio-grid > .portfolio-card:nth-child(2),
.skills-grid > .skill-card:nth-child(2),
.profile-points > .mini-card:nth-child(2) {
    animation-delay: 0.16s;
}

.grid-3 > .card:nth-child(3),
.portfolio-grid > .portfolio-card:nth-child(3),
.skills-grid > .skill-card:nth-child(3),
.profile-points > .mini-card:nth-child(3) {
    animation-delay: 0.24s;
}

.grid-3 > .card:nth-child(4),
.portfolio-grid > .portfolio-card:nth-child(4),
.skills-grid > .skill-card:nth-child(4) {
    animation-delay: 0.32s;
}

.grid-3 > .card:nth-child(5) {
    animation-delay: 0.4s;
}

.grid-3 > .card:nth-child(6) {
    animation-delay: 0.48s;
}

.mini-card {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    align-items: flex-start;
}

.mini-card i,
.card-icon {
    color: var(--primary);
}

.mini-card h3,
.skill-card h3,
.card h3,
.portfolio-content h3 {
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 1.6rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.portfolio-card:hover,
.skill-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(53, 194, 255, 0.36);
}

.portfolio-card:hover .portfolio-media img,
.portfolio-card:hover .portfolio-image {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

.portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-card {
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.portfolio-media img,
.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.portfolio-image {
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: shimmer 8s linear infinite;
    background-size: 200% 200%;
}

.portfolio-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-overlay span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.gradient-a {
    background: linear-gradient(135deg, #0f172a, #0ea5e9);
}

.gradient-b {
    background: linear-gradient(135deg, #111827, #14b8a6);
}

.gradient-c {
    background: linear-gradient(135deg, #1e1b4b, #f97316);
}

.portfolio-content {
    padding: 1.35rem;
}

.portfolio-tag {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(53, 194, 255, 0.14);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-card {
    padding: 1.4rem;
}

.skill-featured {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(53, 194, 255, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        var(--panel);
    border: 1px solid rgba(53, 194, 255, 0.2);
    transform-origin: center;
    animation: cardRise 0.9s ease both;
}

.skill-featured::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(53, 194, 255, 0.14);
    filter: blur(20px);
    animation: none;
}

.skills-kicker {
    color: var(--primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.skill-featured h3 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.skill-featured p {
    color: var(--text-muted);
    max-width: 68ch;
    position: relative;
    z-index: 1;
}

.skills-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

.skills-cards .skill-card {
    min-height: 100%;
}

.skill-featured:nth-child(1) { animation-delay: 0.05s; }
.skill-featured:nth-child(2) { animation-delay: 0.12s; }
.skill-featured:nth-child(3) { animation-delay: 0.19s; }
.skill-featured:nth-child(4) { animation-delay: 0.26s; }
.skill-featured:nth-child(5) { animation-delay: 0.33s; }
.skill-featured:nth-child(6) { animation-delay: 0.40s; }
.skill-featured:nth-child(7) { animation-delay: 0.47s; }
.skill-featured:nth-child(8) { animation-delay: 0.54s; }

.skills-cards .skill-card:hover {
    transform: translateY(-8px) scale(1.015);
}

.skills-cards .skill-card::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 194, 255, 0.12), transparent 68%);
    pointer-events: none;
}

.skills-cards .skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    transform: translateX(-120%);
    pointer-events: none;
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 1.3rem;
    margin-left: 0.4rem;
    border-left: 2px solid var(--border);
}

.timeline-item + .timeline-item {
    margin-top: 1rem;
}

.date-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateX(4px);
    border-color: rgba(53, 194, 255, 0.28);
}

.contact-form {
    padding: 1.5rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        var(--panel);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.input-group input,
.input-group textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 1rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: rgba(53, 194, 255, 0.6);
}

.full-width {
    width: 100%;
}

.form-status {
    min-height: 1.2rem;
    margin-top: 0.9rem;
    text-align: center;
    font-weight: 700;
}

.motion-strip {
    margin-top: 1.5rem;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.motion-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 24s linear infinite;
}

.motion-track span {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.footer {
    padding: 34px 0 48px;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 920px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .grid-3,
    .portfolio-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .profile-showcase {
        grid-template-columns: 1fr;
    }

    .hero-image-first {
        order: 0;
    }

    .floating-card.one {
        left: 12px;
    }

    .floating-card.two {
        right: 12px;
    }

    .section-title {
        text-wrap: balance;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 76px 0;
    }

    .hero-section {
        min-height: auto;
        padding-top: 98px;
        padding-bottom: 56px;
    }

    .hero-text,
    .contact-info {
        text-align: center;
    }

    .hero-grid {
        row-gap: 1.2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .hero-title br {
        display: none;
    }

    .type-accent {
        display: inline;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-badges {
        justify-content: center;
        gap: 0.55rem;
    }

    .menu-overlay {
        width: 100%;
    }

    .floating-card {
        position: static;
        margin-top: 0.7rem;
        max-width: none;
    }

    .hero-image {
        flex-direction: column;
    }

    .motion-strip {
        display: none;
    }

    .section-title {
        font-size: clamp(1.6rem, 6.8vw, 2.2rem);
        margin-bottom: 1.4rem;
        line-height: 1.08;
    }

    .section-title::after {
        width: 56px;
    }

    .lead,
    .hero-subtitle,
    .skill-featured p,
    .skills-intro p {
        font-size: 0.98rem;
    }

    .profile-copy h3,
    .skill-featured h3 {
        font-size: 1.28rem;
    }

    .profile-showcase {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .profile-copy {
        align-items: center;
        text-align: center;
    }

    .skills-cards {
        grid-template-columns: 1fr;
    }

    .skills-cards .skill-card,
    .mini-card,
    .card,
    .portfolio-card,
    .contact-form {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .profile-copy {
        gap: 0.6rem;
    }

    .mini-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portfolio-content {
        padding: 1.1rem;
    }

    .motion-strip {
        margin-top: 1.1rem;
        padding: 0.7rem 0;
    }

    .motion-track {
        animation-duration: 16s;
    }

    .social-link {
        justify-content: center;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(18px, 12px, 0) scale(1.06); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28); }
    50% { box-shadow: 0 24px 80px rgba(53, 194, 255, 0.14); }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes underlineGrow {
    from { width: 0; opacity: 0; }
    to { width: 72px; opacity: 1; }
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(53, 194, 255, 0.08); }
    50% { text-shadow: 0 0 28px rgba(53, 194, 255, 0.2); }
}

@keyframes tagPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
