:root {
--bg-primary: #0f172a;
--bg-secondary: #111827;
--primary: #0ea5e9;
--secondary: #2563eb;
--accent: #38bdf8;
--text-light: #ffffff;
--text-muted: #94a3b8;
}

body {
font-family: 'Roboto', sans-serif;
background: radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.2), transparent 30%),
radial-gradient(circle at 88% 16%, rgba(37, 99, 235, 0.16), transparent 32%),
linear-gradient(180deg, #0f172a 0%, #0b1324 55%, #0f172a 100%);
color: var(--text-light);
min-width: 320px;
overflow-x: hidden;
overflow-x: clip;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 88px;
}

img {
max-width: 100%;
height: auto;
}

.skip-link {
position: fixed;
top: 0.75rem;
left: 0.75rem;
z-index: 1100;
padding: 0.7rem 1rem;
border-radius: 0.5rem;
background: #fff;
color: #0f172a;
transform: translateY(-150%);
}

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

:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 3px;
}

a {
color: inherit;
}

a:hover,
.nav-link:hover,
.btn:hover {
color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Playfair Display', serif;
}

.navbar-brand {
font-family: 'EB Garamond', serif;
font-size: 1.8rem;
letter-spacing: 0.06em;
color: var(--text-light);
}

.navbar {
padding-top: 1rem;
padding-bottom: 1rem;
}

.site-navbar {
background: rgba(15, 23, 42, 0.05);
backdrop-filter: blur(0);
border-bottom: 1px solid transparent;
transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-navbar.is-scrolled {
background: rgba(15, 23, 42, 0.86);
backdrop-filter: blur(12px);
border-color: rgba(148, 163, 184, 0.2);
box-shadow: 0 8px 28px rgba(2, 6, 23, 0.45);
}

.navbar-nav .nav-link {
color: #cbd5e1;
font-weight: 500;
position: relative;
transition: color 0.25s ease;
}

.navbar-nav .nav-link.active {
color: #fff;
}

.navbar-nav .nav-link::after {
content: '';
position: absolute;
left: 0.5rem;
right: 0.5rem;
bottom: 0.2rem;
height: 2px;
background: linear-gradient(90deg, var(--primary), var(--accent));
transform: scaleX(0);
transform-origin: center;
transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
transform: scaleX(1);
}

.hero {
padding: 7rem 0 5.5rem;
min-height: calc(100vh - 76px);
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}

.hero::before {
content: '';
position: absolute;
inset: -8% -16%;
background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.22), transparent 35%),
radial-gradient(circle at 14% 80%, rgba(37, 99, 235, 0.2), transparent 34%);
animation: heroGradientDrift 16s ease-in-out infinite alternate;
pointer-events: none;
}

.hero::after {
content: '';
position: absolute;
inset: 0;
background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
background-size: 64px 64px;
mask-image: radial-gradient(circle at center, black 38%, transparent 82%);
opacity: 0.18;
pointer-events: none;
}

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

.hero-kicker {
font-size: 1.05rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 0.95rem;
}

.hero-name {
font-size: clamp(2.3rem, 5.4vw, 4.35rem);
line-height: 1.04;
margin-bottom: 0.95rem;
}

.hero-typing {
font-size: clamp(1.1rem, 2.4vw, 1.55rem);
font-weight: 700;
color: #e2e8f0;
min-height: 2.15rem;
margin-bottom: 1.15rem;
}

#typing-text {
border-right: 2px solid var(--accent);
padding-right: 0.2rem;
animation: caretBlink 0.9s steps(1) infinite;
}

.hero-intro {
color: var(--text-muted);
font-size: 1.03rem;
line-height: 1.8;
max-width: 640px;
margin-bottom: 1.9rem;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.9rem;
}

.hero .btn {
padding: 0.85rem 1.55rem;
font-weight: 600;
border-radius: 0.9rem;
transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.hero .btn-primary {
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: 1px solid transparent;
box-shadow: 0 16px 30px rgba(14, 165, 233, 0.26);
}

.hero .btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 20px 34px rgba(14, 165, 233, 0.34);
}

.hero-btn-secondary {
color: #dbeafe;
border: 1px solid rgba(148, 163, 184, 0.42);
background: rgba(15, 23, 42, 0.36);
backdrop-filter: blur(6px);
}

.hero-btn-secondary:hover {
color: #fff;
border-color: rgba(56, 189, 248, 0.68);
transform: translateY(-3px);
box-shadow: 0 16px 28px rgba(2, 132, 199, 0.2);
}

.hero-visual {
position: relative;
width: min(100%, 520px);
margin: 0 auto;
aspect-ratio: 1 / 1;
display: grid;
place-items: center;
}

.profile-glow {
position: absolute;
inset: 18%;
background: radial-gradient(circle, rgba(14, 165, 233, 0.48) 0%, rgba(37, 99, 235, 0.22) 48%, transparent 72%);
filter: blur(14px);
animation: pulseGlow 5.4s ease-in-out infinite;
}

.profile-frame {
position: relative;
z-index: 2;
width: min(76%, 360px);
aspect-ratio: 1 / 1;
border-radius: 2rem;
padding: 0.95rem;
background: linear-gradient(150deg, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.76));
border: 1px solid rgba(148, 163, 184, 0.32);
backdrop-filter: blur(10px);
box-shadow: 0 28px 60px rgba(2, 6, 23, 0.52);
animation: floatProfile 6.6s ease-in-out infinite;
}

.profile-frame img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 1.4rem;
box-shadow: 0 16px 34px rgba(2, 6, 23, 0.5);
}

.floating-shape {
position: absolute;
z-index: 1;
display: block;
border: 1px solid rgba(148, 163, 184, 0.38);
backdrop-filter: blur(5px);
background: rgba(17, 24, 39, 0.34);
}

.shape-one {
width: 76px;
height: 76px;
border-radius: 1.1rem;
top: 12%;
right: 8%;
animation: floatShape 7s ease-in-out infinite;
}

.shape-two {
width: 90px;
height: 90px;
border-radius: 50%;
bottom: 16%;
left: 6%;
animation: floatShape 8.2s ease-in-out infinite reverse;
}

.shape-three {
width: 58px;
height: 58px;
border-radius: 0.95rem;
top: 58%;
right: 20%;
transform: rotate(34deg);
animation: floatShape 6.4s ease-in-out infinite;
}

.hero-scroll-indicator {
position: absolute;
left: 50%;
bottom: 1.1rem;
transform: translateX(-50%);
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 0.45rem;
text-decoration: none;
color: var(--text-muted);
z-index: 2;
animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll-indicator .mouse {
width: 28px;
height: 44px;
border: 2px solid rgba(148, 163, 184, 0.72);
border-radius: 16px;
display: grid;
place-items: start center;
padding-top: 7px;
}

.hero-scroll-indicator .wheel {
width: 4px;
height: 10px;
border-radius: 20px;
background: var(--accent);
animation: wheelDrop 1.5s ease-in-out infinite;
}

.hero-scroll-indicator .scroll-text {
font-size: 0.8rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.fade-up {
opacity: 0;
transform: translateY(20px);
animation: fadeUp 0.78s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.26s; }
.delay-4 { animation-delay: 0.34s; }

.section-title {
font-size: 2.75rem;
letter-spacing: 0.02em;
margin-bottom: 0.6rem;
}

.about-section {
position: relative;
overflow: hidden;
}

.about-section::before {
content: '';
position: absolute;
inset: -20% -5%;
background: radial-gradient(circle at 18% 28%, rgba(14, 165, 233, 0.14), transparent 34%),
radial-gradient(circle at 78% 62%, rgba(37, 99, 235, 0.12), transparent 36%);
pointer-events: none;
}

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

.about-media {
position: relative;
width: min(100%, 460px);
margin: 0 auto;
}

.about-media::before {
content: '';
position: absolute;
width: 230px;
height: 230px;
border-radius: 999px;
background: rgba(56, 189, 248, 0.2);
filter: blur(44px);
top: -46px;
left: -58px;
animation: aboutPulseGlow 6.2s ease-in-out infinite;
}

.about-shape {
position: absolute;
right: -24px;
bottom: 22px;
width: 118px;
height: 118px;
border-radius: 1.3rem;
background: rgba(148, 163, 184, 0.14);
backdrop-filter: blur(8px);
border: 1px solid rgba(148, 163, 184, 0.26);
animation: aboutFloat 7s ease-in-out infinite;
}

.about-image-wrap {
position: relative;
z-index: 1;
padding: 0.9rem;
border-radius: 2rem;
background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(17, 24, 39, 0.78));
backdrop-filter: blur(9px);
border: 1px solid rgba(148, 163, 184, 0.3);
box-shadow: 0 24px 52px rgba(2, 6, 23, 0.48);
animation: aboutFloat 6.8s ease-in-out infinite;
}

.about-image-wrap img {
display: block;
width: 100%;
aspect-ratio: 4 / 5;
object-fit: cover;
border-radius: 1.45rem;
}

.about-label {
font-size: 0.86rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent);
font-weight: 700;
margin-bottom: 0.75rem;
}

.about-heading {
font-size: clamp(1.95rem, 3.6vw, 2.9rem);
line-height: 1.15;
margin-bottom: 0.8rem;
}

.about-subtitle {
color: var(--text-muted);
margin-bottom: 1.15rem;
font-size: 1.02rem;
}

.about-copy {
color: var(--text-muted);
line-height: 1.82;
margin-bottom: 1rem;
}

.about-stats-grid {
margin-top: 1.25rem;
margin-bottom: 1.45rem;
}

.about-stat-card {
height: 100%;
border-radius: 1.1rem;
padding: 1rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(148, 163, 184, 0.18);
backdrop-filter: blur(8px);
transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-stat-card:hover {
transform: translateY(-4px);
border-color: rgba(56, 189, 248, 0.35);
box-shadow: 0 14px 28px rgba(2, 132, 199, 0.16);
}

.about-stat-icon {
display: inline-flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
border-radius: 0.75rem;
margin-bottom: 0.7rem;
color: #dbeafe;
background: linear-gradient(145deg, rgba(14, 165, 233, 0.35), rgba(37, 99, 235, 0.25));
}

.about-stat-title {
display: block;
color: var(--text-muted);
font-size: 0.86rem;
margin-bottom: 0.2rem;
}

.about-stat-value {
font-size: 1.08rem;
font-weight: 700;
}

.about-resume-btn {
padding: 0.85rem 1.55rem;
font-weight: 600;
border-radius: 0.9rem;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: 1px solid transparent;
box-shadow: 0 16px 30px rgba(14, 165, 233, 0.26);
transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.about-resume-btn:hover {
transform: translateY(-3px);
box-shadow: 0 20px 34px rgba(14, 165, 233, 0.34);
}

.skills-section {
position: relative;
overflow: hidden;
}

.skills-section::before {
content: '';
position: absolute;
inset: -14% -6%;
background: radial-gradient(circle at 12% 24%, rgba(14, 165, 233, 0.16), transparent 32%),
radial-gradient(circle at 88% 74%, rgba(37, 99, 235, 0.14), transparent 34%);
pointer-events: none;
}

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

.skills-heading {
text-align: center;
max-width: 780px;
margin: 0 auto 2.25rem;
}

.skills-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.25rem;
}

.skill-group-card {
background: rgba(17, 24, 39, 0.56);
backdrop-filter: blur(12px);
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 1.2rem;
padding: 1.3rem;
height: 100%;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-group-card:hover {
transform: translateY(-5px);
border-color: rgba(56, 189, 248, 0.42);
box-shadow: 0 18px 32px rgba(2, 132, 199, 0.2);
}

.skill-group-title {
font-size: 1rem;
margin-bottom: 0.9rem;
line-height: 1.35;
}

.skill-tech-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.6rem;
}

.skill-tech-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.6rem;
padding: 0.6rem 0.68rem;
border-radius: 0.8rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(148, 163, 184, 0.12);
}

.skill-tech-info {
display: inline-flex;
align-items: center;
gap: 0.48rem;
min-width: 0;
}

.skill-tech-icon {
color: var(--accent);
font-size: 1rem;
line-height: 1;
transition: transform 0.25s ease;
}

.skill-tech-item:hover .skill-tech-icon {
transform: translateY(-2px) scale(1.08);
}

.skill-tech-name {
font-size: 0.94rem;
color: #e5e7eb;
white-space: normal;
overflow: visible;
text-overflow: clip;
}

.skill-level-badge {
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.03em;
padding: 0.22rem 0.46rem;
border-radius: 999px;
border: 1px solid transparent;
white-space: nowrap;
}

.skill-level-badge.advanced {
color: #dbeafe;
background: rgba(14, 165, 233, 0.25);
border-color: rgba(56, 189, 248, 0.45);
}

.skill-level-badge.intermediate {
color: #e2e8f0;
background: rgba(37, 99, 235, 0.22);
border-color: rgba(96, 165, 250, 0.38);
}

.skill-level-badge.learning {
color: #f1f5f9;
background: rgba(148, 163, 184, 0.22);
border-color: rgba(203, 213, 225, 0.34);
}

.projects-section {
position: relative;
overflow: hidden;
}

.projects-section::before {
content: '';
position: absolute;
inset: -18% -6%;
background: radial-gradient(circle at 12% 16%, rgba(14, 165, 233, 0.14), transparent 35%),
radial-gradient(circle at 90% 76%, rgba(37, 99, 235, 0.13), transparent 36%);
pointer-events: none;
}

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

.project-card {
background: rgba(17, 24, 39, 0.56);
border: 1px solid rgba(148, 163, 184, 0.2);
backdrop-filter: blur(12px);
border-radius: 1.4rem;
overflow: hidden;
box-shadow: 0 16px 38px rgba(2, 6, 23, 0.38);
transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
height: 100%;
}

.project-card:hover {
transform: translateY(-6px);
border-color: rgba(56, 189, 248, 0.46);
box-shadow: 0 24px 44px rgba(2, 132, 199, 0.24);
}

.project-media-wrap {
position: relative;
overflow: hidden;
}

.project-media-wrap img {
width: 100%;
display: block;
object-fit: cover;
transition: transform 0.5s ease;
}

.project-card:hover .project-media-wrap img {
transform: scale(1.035);
}

.featured-project .project-media-wrap img {
aspect-ratio: 16 / 8;
}

.project-card:not(.featured-project) .project-media-wrap img {
aspect-ratio: 16 / 9;
}

.project-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.5rem;
}

.project-title a {
color: inherit;
text-decoration: none;
}

.project-body {
padding: 1.25rem;
}

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

.project-badge,
.status-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.24rem 0.56rem;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.03em;
border-radius: 999px;
}

.project-badge {
color: #dbeafe;
background: rgba(14, 165, 233, 0.24);
border: 1px solid rgba(56, 189, 248, 0.4);
}

.status-badge {
color: #e2e8f0;
background: rgba(37, 99, 235, 0.24);
border: 1px solid rgba(96, 165, 250, 0.36);
}

.project-title {
font-size: 1.36rem;
margin-bottom: 0.35rem;
}

.project-subtitle {
color: #dbeafe;
font-weight: 600;
font-size: 0.97rem;
margin-bottom: 0.7rem;
}

.project-copy {
color: var(--text-muted);
line-height: 1.72;
font-size: 0.94rem;
margin-bottom: 0.85rem;
}

.project-label {
display: block;
font-size: 0.83rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #93c5fd;
font-weight: 700;
margin-bottom: 0.55rem;
}

.feature-list {
list-style: none;
padding: 0;
margin: 0 0 0.95rem;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.45rem 0.7rem;
}

.feature-list li {
color: #e5e7eb;
font-size: 0.89rem;
display: inline-flex;
align-items: center;
gap: 0.42rem;
}

.feature-list li i {
color: var(--accent);
font-size: 0.82rem;
}

.tech-pill-wrap {
display: flex;
flex-wrap: wrap;
gap: 0.46rem;
margin-bottom: 1rem;
}

.tech-pill {
display: inline-flex;
align-items: center;
padding: 0.26rem 0.58rem;
font-size: 0.76rem;
color: #dbeafe;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 999px;
}

.project-actions {
display: flex;
gap: 0.7rem;
margin-top: auto;
}

.project-btn-primary,
.project-btn-secondary {
flex: 1;
padding: 0.7rem 0.95rem;
border-radius: 0.82rem;
font-weight: 600;
font-size: 0.88rem;
text-align: center;
text-decoration: none;
transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-btn-primary {
color: #fff;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: 1px solid transparent;
box-shadow: 0 14px 26px rgba(14, 165, 233, 0.23);
}

.project-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 18px 30px rgba(14, 165, 233, 0.31);
}

.project-btn-secondary {
color: #dbeafe;
border: 1px solid rgba(148, 163, 184, 0.38);
background: rgba(15, 23, 42, 0.4);
}

.project-btn-secondary:hover {
color: #fff;
transform: translateY(-2px);
border-color: rgba(56, 189, 248, 0.62);
box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
}

.project-reveal {
opacity: 0;
transform: translateY(22px);
}

.project-reveal.is-visible {
animation: fadeUp 0.78s ease forwards;
}

.section-subtitle {
color: var(--text-muted);
max-width: 680px;
}

.section-card,
.card,
.contact-card {
border: none;
border-radius: 1.5rem;
background: rgba(255, 255, 255, 0.06);
backdrop-filter: blur(10px);
}

.card-img-top {
border-top-left-radius: 1.5rem;
border-top-right-radius: 1.5rem;
}

.card-body {
padding: 1.75rem;
}

.btn-primary {
background: linear-gradient(135deg, #00d1ff, #0063ff);
border: none;
}

.btn-primary:hover {
background: linear-gradient(135deg, #18d7ff, #3a74ff);
}

.progress {
height: 1.1rem;
border-radius: 1rem;
background: rgba(255, 255, 255, 0.12);
}

.progress-bar {
border-radius: 1rem;
background: linear-gradient(135deg, #00f2ff, #2a8eff);
}

.skill-badge {
width: 48px;
height: 48px;
border-radius: 12px;
background: rgba(0, 242, 255, 0.1);
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 0.85rem;
}

.skill-badge img {
width: 28px;
height: 28px;
}

.footer-bar {
padding: 1rem 0;
background: rgba(255, 255, 255, 0.05);
}

footer {
color: var(--text-muted);
}

.scroll-top {
position: fixed;
right: 1.25rem;
bottom: 1.25rem;
z-index: 999;
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 50%;
color: #fff;
text-decoration: none;
background: linear-gradient(135deg, var(--primary), var(--secondary));
box-shadow: 0 12px 26px rgba(2, 6, 23, 0.42);
}

.page-hero {
position: relative;
overflow: hidden;
padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
background: radial-gradient(circle at 82% 25%, rgba(56, 189, 248, 0.2), transparent 32%);
}

.page-hero::after {
content: '';
position: absolute;
inset: 0;
background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
background-size: 64px 64px;
pointer-events: none;
}

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

.page-hero h1 {
font-size: clamp(2.35rem, 7vw, 4.5rem);
line-height: 1.08;
overflow-wrap: anywhere;
}

.page-hero p:not(.about-label) {
max-width: 720px;
color: var(--text-muted);
font-size: clamp(1rem, 2vw, 1.2rem);
line-height: 1.7;
}

.project-detail-hero {
padding-bottom: 7rem;
}

.back-link {
display: inline-flex;
align-items: center;
gap: 0.55rem;
color: #dbeafe;
text-decoration: none;
font-weight: 600;
}

.detail-image {
position: relative;
z-index: 2;
margin: -4rem 0 3rem;
border-radius: 1.2rem;
overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.25);
background: #111827;
box-shadow: 0 24px 52px rgba(2, 6, 23, 0.5);
}

.detail-image img {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}

.detail-image figcaption {
padding: 0.65rem 1rem;
color: var(--text-muted);
font-size: 0.84rem;
}

.detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.25rem;
}

.detail-panel {
padding: clamp(1.2rem, 3vw, 2rem);
border-radius: 1.2rem;
background: rgba(17, 24, 39, 0.56);
border: 1px solid rgba(148, 163, 184, 0.2);
}

.detail-panel h2 {
font-size: clamp(1.4rem, 3vw, 2rem);
}

.detail-panel h3 {
margin-top: 1.2rem;
font-size: 1.08rem;
color: #dbeafe;
}

.detail-panel p {
color: var(--text-muted);
line-height: 1.75;
}

.error-page {
min-height: 70vh;
display: flex;
align-items: center;
}

@media (max-width: 991px) {
.site-navbar,
.site-navbar.is-scrolled {
background: rgba(15, 23, 42, 0.94);
backdrop-filter: blur(12px);
}

.navbar-collapse {
padding: 0.8rem 0 0.4rem;
}

.navbar-nav .nav-link {
padding: 0.8rem 0.75rem;
min-height: 48px;
display: flex;
align-items: center;
}

.hero {
min-height: auto;
padding-top: 5.6rem;
padding-bottom: 5rem;
}

.hero-scroll-indicator {
bottom: 0.65rem;
}

.about-media {
width: min(100%, 380px);
}

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

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

.feature-list {
grid-template-columns: 1fr;
}
}

@media (max-width: 767px) {
.section-title {
font-size: clamp(1.9rem, 9vw, 2.2rem);
}
.navbar-brand {
font-size: 1.5rem;
}
.hero {
padding-top: 4.8rem;
}

.hero-name {
font-size: clamp(2.1rem, 10vw, 2.9rem);
}

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

.hero-actions .btn {
width: 100%;
}

.hero-scroll-indicator {
display: none;
}

.about-heading {
font-size: clamp(1.75rem, 8vw, 2.2rem);
}

.about-media {
margin-bottom: 1.1rem;
}

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

.project-grid,
.detail-grid {
grid-template-columns: 1fr;
}

.project-actions {
flex-direction: column;
}

.project-btn-primary,
.project-btn-secondary {
width: 100%;
}

.detail-image {
border-radius: 0.8rem;
}
}

@media (max-width: 430px) {
.container {
--bs-gutter-x: 1.5rem;
}

.hero {
padding-top: 3.8rem;
padding-bottom: 3.5rem;
}

.hero-visual {
width: min(100%, 330px);
}

.hero-name {
font-size: clamp(2rem, 12vw, 2.7rem);
overflow-wrap: anywhere;
}

.hero-typing {
font-size: 1rem;
min-height: 3rem;
}

.profile-frame {
border-radius: 1.4rem;
padding: 0.65rem;
}

.about-stat-card,
.project-body,
.contact-form-shell,
.detail-panel {
padding: 1rem;
}

.feature-list {
grid-template-columns: 1fr;
}

.footer-shell {
border-radius: 0.9rem;
}
}

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

*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}

.fade-up,
.project-reveal {
opacity: 1;
transform: none;
}
}

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

@keyframes caretBlink {
0%,
49% {
border-right-color: var(--accent);
}
50%,
100% {
border-right-color: transparent;
}
}

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

@keyframes floatShape {
0%,
100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-11px) rotate(8deg); }
}

@keyframes pulseGlow {
0%,
100% { opacity: 0.82; transform: scale(1); }
50% { opacity: 1; transform: scale(1.05); }
}

@keyframes heroGradientDrift {
0% { transform: translate3d(0, 0, 0); }
100% { transform: translate3d(-2.2%, 2.2%, 0); }
}

@keyframes scrollBounce {
0%,
100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes wheelDrop {
0% { opacity: 0; transform: translateY(0); }
30% { opacity: 1; }
100% { opacity: 0; transform: translateY(12px); }
}

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

@keyframes aboutPulseGlow {
0%,
100% { opacity: 0.8; transform: scale(1); }
50% { opacity: 1; transform: scale(1.07); }
}

#contact .contact-wrap {
position: relative;
z-index: 1;
}

#contact .contact-left-copy {
color: var(--text-muted);
line-height: 1.78;
font-size: 1rem;
max-width: 540px;
}

#contact .contact-grid {
display: grid;
grid-template-columns: 1fr;
gap: 0.8rem;
margin-top: 1.1rem;
margin-bottom: 1.2rem;
}

#contact .contact-info-card {
display: flex;
align-items: center;
gap: 0.7rem;
padding: 0.8rem 0.9rem;
border-radius: 0.95rem;
background: rgba(17, 24, 39, 0.56);
border: 1px solid rgba(148, 163, 184, 0.2);
backdrop-filter: blur(10px);
box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34);
transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

#contact .contact-info-card:hover {
transform: translateY(-3px);
border-color: rgba(56, 189, 248, 0.42);
box-shadow: 0 16px 28px rgba(2, 132, 199, 0.22);
}

#contact .contact-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 0.72rem;
color: #dbeafe;
background: linear-gradient(145deg, rgba(14, 165, 233, 0.34), rgba(37, 99, 235, 0.24));
}

#contact .contact-info-label {
font-size: 0.74rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #93c5fd;
margin-bottom: 0.1rem;
}

#contact .contact-info-value {
font-size: 0.95rem;
color: #e5e7eb;
word-break: break-word;
}

#contact .social-links {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
}

#contact .social-link-btn {
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
color: #dbeafe;
background: rgba(17, 24, 39, 0.62);
border: 1px solid rgba(148, 163, 184, 0.3);
text-decoration: none;
transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

#contact .social-link-btn:hover {
transform: translateY(-2px);
border-color: rgba(56, 189, 248, 0.52);
box-shadow: 0 14px 24px rgba(2, 132, 199, 0.22);
color: #fff;
}

#contact .contact-form-shell {
padding: 1.3rem;
border-radius: 1.2rem;
background: rgba(17, 24, 39, 0.56);
border: 1px solid rgba(148, 163, 184, 0.2);
backdrop-filter: blur(12px);
box-shadow: 0 14px 34px rgba(2, 6, 23, 0.38);
}

#contact .contact-form-shell .form-label {
color: #cbd5e1;
font-weight: 500;
}

#contact .contact-form-shell .form-control {
background: rgba(15, 23, 42, 0.65);
border: 1px solid rgba(148, 163, 184, 0.26);
color: #f8fafc;
border-radius: 0.8rem;
}

#contact .contact-form-shell .form-control::placeholder {
color: #94a3b8;
}

#contact .contact-form-shell .form-control:focus {
background: rgba(15, 23, 42, 0.78);
border-color: rgba(56, 189, 248, 0.58);
box-shadow: 0 0 0 0.22rem rgba(14, 165, 233, 0.18);
}

#contact .contact-send-btn {
padding: 0.8rem 1rem;
font-weight: 600;
border-radius: 0.86rem;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: 1px solid transparent;
box-shadow: 0 14px 26px rgba(14, 165, 233, 0.24);
transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#contact .contact-send-btn:hover {
transform: translateY(-2px);
box-shadow: 0 18px 30px rgba(14, 165, 233, 0.3);
}

@media (max-width: 767px) {
#contact .contact-send-btn {
width: 100%;
}
}

.footer-shell {
background: rgba(17, 24, 39, 0.58);
border: 1px solid rgba(148, 163, 184, 0.2);
backdrop-filter: blur(10px);
border-radius: 1.3rem;
box-shadow: 0 16px 34px rgba(2, 6, 23, 0.38);
padding: 1.5rem 1.25rem;
}

.footer-brand {
font-family: 'EB Garamond', serif;
font-size: 1.8rem;
letter-spacing: 0.05em;
color: #fff;
margin-bottom: 0.45rem;
display: inline-block;
text-decoration: none;
}

.footer-copy {
color: var(--text-muted);
line-height: 1.75;
font-size: 0.94rem;
}

.footer-title {
font-size: 0.9rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #93c5fd;
font-weight: 700;
margin-bottom: 0.75rem;
}

.footer-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.52rem;
}

.footer-link {
position: relative;
color: #dbeafe;
text-decoration: none;
display: inline-block;
width: fit-content;
transition: color 0.25s ease;
}

.footer-link::after {
content: '';
position: absolute;
left: 0;
bottom: -2px;
width: 100%;
height: 1.5px;
background: linear-gradient(90deg, var(--primary), var(--accent));
transform: scaleX(0);
transform-origin: left;
transition: transform 0.25s ease;
}

.footer-link:hover {
color: #fff;
}

.footer-link:hover::after {
transform: scaleX(1);
}

.footer-social-row {
display: flex;
flex-wrap: wrap;
gap: 0.58rem;
}

.footer-social-btn {
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
color: #dbeafe;
text-decoration: none;
background: rgba(15, 23, 42, 0.62);
border: 1px solid rgba(148, 163, 184, 0.3);
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-social-btn:hover {
color: #fff;
transform: scale(1.05);
border-color: rgba(56, 189, 248, 0.6);
box-shadow: 0 12px 20px rgba(2, 132, 199, 0.24);
}

.footer-bottom {
border-top: 1px solid rgba(148, 163, 184, 0.22);
margin-top: 1.2rem;
padding-top: 0.85rem;
display: flex;
justify-content: space-between;
gap: 0.8rem;
color: var(--text-muted);
font-size: 0.88rem;
}

@media (max-width: 991px) {
.footer-shell {
padding: 1.25rem 1rem;
}
}

@media (max-width: 767px) {
.footer-shell,
.footer-shell .text-md-start {
text-align: center !important;
}

.footer-link,
.footer-brand {
margin-left: auto;
margin-right: auto;
}

.footer-social-row {
justify-content: center;
}

.footer-bottom {
flex-direction: column;
text-align: center;
}
}