:root {
  --bg: #eef4ff;
  --bg-elevated: #f7faff;
  --bg-mint: #eaf8f1;
  --bg-warm: #f8f6ee;
  --bg-white: #ffffff;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: #ffffff;
  --surface2: #f7faff;
  --surface-soft: #eef4ff;
  --border: rgba(120, 145, 180, 0.16);
  --border-strong: rgba(120, 145, 180, 0.24);
  --text: #7b8190;
  --text-strong: #0f172a;
  --muted: #7b8190;
  --text-light: #a9afbd;
  --accent: #4f8df7;
  --accent-strong: #3f7de9;
  --accent2: #35c98b;
  --accent3: #f2aa2e;
  --card-blue: #e8f0ff;
  --card-green: #e6f8f0;
  --card-orange: #fff4e3;
  --hero-start: rgba(79, 141, 247, 0.14);
  --hero-end: rgba(53, 201, 139, 0.1);
  --section-tint: rgba(255, 255, 255, 0.8);
  --shadow: 0 18px 45px rgba(79, 141, 247, 0.14);
  --shadow-soft: 0 12px 28px rgba(79, 141, 247, 0.09);
  --shadow-card: 0 18px 45px rgba(79, 141, 247, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --panel-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.76));
  --hero-panel-tint: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.58));
  --input-bg: rgba(255, 255, 255, 0.7);
  --icon-bg: rgba(255, 255, 255, 0.42);
  --icon-border: rgba(120, 145, 180, 0.16);
  --ticker-shadow: 0 10px 24px rgba(79, 141, 247, 0.08);
  --page-gradient: linear-gradient(135deg, #eef4ff 0%, #f7faff 35%, #eaf8f1 70%, #f8f6ee 100%);
}

body.light-mode {
  --bg: #eef4ff;
  --bg-elevated: #f7faff;
  --bg-mint: #eaf8f1;
  --bg-warm: #f8f6ee;
  --bg-white: #ffffff;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: #ffffff;
  --surface2: #f7faff;
  --surface-soft: #eef4ff;
  --border: rgba(120, 145, 180, 0.16);
  --border-strong: rgba(120, 145, 180, 0.24);
  --text: #7b8190;
  --text-strong: #0f172a;
  --muted: #60708b;
  --text-light: #a9afbd;
  --accent: #2563eb;
  --accent-strong: #4f8df7;
  --accent2: #35c98b;
  --accent3: #f2aa2e;
  --card-blue: #e8f0ff;
  --card-green: #e6f8f0;
  --card-orange: #fff4e3;
  --hero-start: rgba(79, 141, 247, 0.14);
  --hero-end: rgba(53, 201, 139, 0.1);
  --section-tint: rgba(255, 255, 255, 0.8);
  --shadow: 0 18px 45px rgba(79, 141, 247, 0.14);
  --shadow-soft: 0 12px 28px rgba(79, 141, 247, 0.09);
  --shadow-card: 0 18px 45px rgba(79, 141, 247, 0.14);
  --panel-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.76));
  --hero-panel-tint: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.58));
  --input-bg: #f4f7fc;
  --icon-bg: rgba(255, 255, 255, 0.42);
  --icon-border: rgba(120, 145, 180, 0.16);
  --ticker-shadow: 0 10px 24px rgba(79, 141, 247, 0.08);
  --page-gradient: linear-gradient(135deg, #eef4ff 0%, #f7faff 35%, #eaf8f1 70%, #f8f6ee 100%);
}

body:not(.light-mode) {
  --bg: #0b1020;
  --bg-elevated: #11162a;
  --bg-mint: #111c1a;
  --bg-warm: #17131f;
  --bg-white: #0f1426;
  --surface: rgba(18, 24, 42, 0.88);
  --surface-strong: #161d33;
  --surface2: #10182d;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(110, 168, 255, 0.2);
  --text: #94a3b8;
  --text-strong: #f3f7ff;
  --muted: #94a3b8;
  --text-light: #66748a;
  --accent: #7cb0ff;
  --accent-strong: #5f95ee;
  --accent2: #42c693;
  --accent3: #e7b75e;
  --card-blue: #16233f;
  --card-green: #132720;
  --card-orange: #322316;
  --hero-start: rgba(92, 129, 255, 0.16);
  --hero-end: rgba(66, 198, 147, 0.08);
  --section-tint: rgba(255, 255, 255, 0.02);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 18px 46px rgba(0, 0, 0, 0.44);
  --panel-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.045));
  --hero-panel-tint: linear-gradient(135deg, rgba(124, 176, 255, 0.06), rgba(255, 255, 255, 0.025));
  --input-bg: #121b31;
  --icon-bg: rgba(124, 176, 255, 0.08);
  --icon-border: rgba(124, 176, 255, 0.14);
  --ticker-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  --page-gradient: radial-gradient(circle at top left, rgba(92, 129, 255, 0.12), transparent 28%), radial-gradient(circle at bottom right, rgba(66, 198, 147, 0.08), transparent 24%), linear-gradient(145deg, #0b1020 0%, #10162a 48%, #0d1722 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, var(--hero-start) 0%, transparent 34%),
    radial-gradient(circle at bottom right, var(--hero-end) 0%, transparent 28%),
    var(--page-gradient);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 141, 247, 0.08), transparent 18%),
    radial-gradient(circle at 88% 24%, rgba(53, 201, 139, 0.08), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(242, 170, 46, 0.07), transparent 14%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 22px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(79, 141, 247, 0.08);
}

.section-title {
  margin-bottom: 0.85rem;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-sub {
  max-width: 700px;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: left;
}

.btn-primary,
.btn-ghost,
.btn-nav,
.btn-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.btn-primary {
  min-height: 46px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, #6ca4fb 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 141, 247, 0.24);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-primary.full {
  width: 100%;
}

.btn-ghost {
  min-height: 46px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-strong);
}

.btn-ghost:hover,
.btn-project:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-nav {
  min-height: 40px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.14);
}

body:not(.light-mode) .btn-primary {
  background: linear-gradient(180deg, #7cb0ff 0%, #5f95ee 100%);
  border-color: rgba(124, 176, 255, 0.32);
  box-shadow: 0 12px 28px rgba(44, 75, 140, 0.34);
}

body:not(.light-mode) .btn-primary:hover {
  background: linear-gradient(180deg, #89b7ff 0%, #679cf3 100%);
}

body:not(.light-mode) .btn-ghost,
body:not(.light-mode) .hero-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

body:not(.light-mode) .btn-ghost:hover,
body:not(.light-mode) .hero-link:hover {
  background: rgba(124, 176, 255, 0.08);
  border-color: rgba(124, 176, 255, 0.18);
}

body:not(.light-mode) .btn-nav,
body:not(.light-mode) .theme-toggle,
body:not(.light-mode) .hamburger {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

body:not(.light-mode) .btn-nav:hover,
body:not(.light-mode) .theme-toggle:hover,
body:not(.light-mode) .hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(168, 189, 222, 0.36);
  background: rgba(247, 251, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 22px rgba(110, 146, 201, 0.08);
}

#navbar.scrolled {
  box-shadow: 0 10px 24px rgba(110, 146, 201, 0.1);
}

body:not(.light-mode) #navbar {
  background: rgba(10, 15, 28, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

body:not(.light-mode) #navbar.scrolled {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

body:not(.light-mode) .nav-logo {
  color: var(--text-strong);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
}

.nav-logo {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.7);
}

body:not(.light-mode) .nav-links a {
  color: rgba(230, 236, 255, 0.72);
}

body:not(.light-mode) .nav-links a:hover,
body:not(.light-mode) .nav-links a.active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-strong);
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.82);
}

.theme-toggle-track {
  position: relative;
  width: 26px;
  height: 14px;
  border-radius: 999px;
  background: rgba(79, 141, 247, 0.16);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}

body.light-mode .theme-toggle-thumb {
  transform: translateX(-12px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px 16px;
  background: rgba(247, 251, 255, 0.92);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
}

.mobile-link:hover {
  color: var(--text-strong);
}

body:not(.light-mode) .mobile-menu {
  background: rgba(10, 15, 28, 0.94);
}

body:not(.light-mode) .mobile-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

#hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
  min-height: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 24px 18px;
}

.hero-bg-grid,
.hero-glow {
  display: none;
}

.hero-content,
.hero-visual {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.hero-content {
  padding: 28px 24px 24px;
  background: var(--hero-panel-tint), var(--surface);
  text-align: center;
}

.hero-visual {
  display: none;
}

.hero-content::before {
  display: none;
}

.hero-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.step-pill {
  min-width: 72px;
  padding: 0.78rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.step-arrow {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  max-width: none;
  margin-bottom: 0.95rem;
  color: var(--text-strong);
  font-size: clamp(2.6rem, 12vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.highlight {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}

.hero-sub {
  max-width: 34ch;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

body:not(.light-mode) .hero-content,
body:not(.light-mode) .contact-wrapper,
body:not(.light-mode) #about .container::before,
body:not(.light-mode) #skills .container::before,
body:not(.light-mode) #services .container::before,
body:not(.light-mode) #projects .container::before,
body:not(.light-mode) #contact .container::before,
body:not(.light-mode) .footer-inner {
  backdrop-filter: blur(18px);
}

#about,
#skills,
#services,
#projects,
#contact {
  border: 0;
  background: transparent;
}

#about .container,
#skills .container,
#services .container,
#projects .container,
#contact .container {
  position: relative;
  padding: 28px 44px;
}

#about .container::before,
#skills .container::before,
#services .container::before,
#projects .container::before,
#contact .container::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel-tint), var(--surface);
  box-shadow: var(--shadow-card);
  z-index: -1;
}

.about-grid,
.skills-grid,
.services-grid,
.projects-grid,
.contact-wrapper {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 24px;
  padding: 8px 0 0;
}

.about-body {
  max-width: 62ch;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 0.48rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card,
.skill-item,
.service-card,
.project-card,
.contact-wrapper {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.info-card:hover,
.skill-item:hover,
.service-card:hover,
.project-card:hover,
.social-link:hover {
  transform: translateY(-2px);
}

.info-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--icon-border);
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--accent);
  font-size: 1.25rem;
}

.info-title {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-desc {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 6px 0 0;
}

.skill-item {
  padding: 18px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.skill-item::before {
  display: none;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--text-strong);
  font-size: 0.96rem;
  font-weight: 700;
}

.skill-pct {
  display: none;
}

.skill-bar {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.skill-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #7da8ff 100%);
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 6px 0 0;
}

.service-card {
  padding: 22px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card::before {
  display: none;
}

.service-card h3 {
  margin-bottom: 0.65rem;
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 6px 0 0;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card.hidden {
  display: none;
}

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface2);
}

.project-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  padding: 1.3rem;
}

.project-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.35)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
}

.project-placeholder span,
.project-placeholder p {
  position: relative;
  z-index: 1;
}

.project-placeholder span {
  font-size: 2rem;
}

.project-placeholder p {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.project-placeholder.landing {
  background: linear-gradient(135deg, #2959c7 0%, #6aa5ff 100%);
}

.project-placeholder.course {
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.45));
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-project {
  min-height: 42px;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  transform: translateY(8px);
}

.project-card:hover .btn-project {
  transform: translateY(0);
}

.project-info {
  padding: 18px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-info h4 {
  margin: 0.8rem 0 0.35rem;
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-info p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-wrapper {
  max-width: none;
  margin: 0;
  padding: 24px;
  background: var(--panel-tint), var(--surface);
}

body:not(.light-mode) .step-pill,
body:not(.light-mode) .tag,
body:not(.light-mode) .project-tag,
body:not(.light-mode) .social-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-email {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  transition: transform var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.info-card:hover,
.skill-item:hover,
.service-card:hover,
.project-card:hover,
.social-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link[aria-label="LinkedIn"] svg,
.social-link[aria-label="GitHub"] svg,
.social-link[aria-label="Facebook"] svg,
.social-link[aria-label="X"] svg {
  fill: currentColor;
  stroke: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.form-group label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--text-strong);
  font-size: 0.95rem;
  resize: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

body:not(.light-mode) .form-group input,
body:not(.light-mode) .form-group textarea {
  background: #121b31;
  border-color: rgba(255, 255, 255, 0.08);
}

body:not(.light-mode) .form-group input::placeholder,
body:not(.light-mode) .form-group textarea::placeholder {
  color: #6f7d92;
}

body:not(.light-mode) .form-group input:focus,
body:not(.light-mode) .form-group textarea:focus {
  border-color: rgba(124, 176, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(124, 176, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #93a0b6;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--accent3);
  box-shadow: 0 0 0 4px rgba(208, 93, 67, 0.08);
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--accent2);
}

.form-status.error {
  color: var(--accent3);
}

footer {
  padding: 28px 24px 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel-tint), var(--surface);
  box-shadow: var(--shadow-soft);
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  #hero {
    max-width: 760px;
  }

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

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

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

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

  .hero-title,
  .hero-sub {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.open {
    display: flex;
  }

  .form-row,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .contact-top,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content,
  .contact-wrapper {
    padding: 20px;
  }

  #about .container,
  #skills .container,
  #services .container,
  #projects .container,
  #contact .container {
    padding: 24px 22px;
  }

  .section-title.centered,
  .section-sub {
    text-align: left;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 14px;
  }

  .container,
  .nav-inner,
  #hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  #about .container::before,
  #skills .container::before,
  #services .container::before,
  #projects .container::before,
  #contact .container::before {
    inset: 0;
  }

  #about .container,
  #skills .container,
  #services .container,
  #projects .container,
  #contact .container {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }

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

  .hero-link {
    width: 100%;
  }

  .social-links {
    width: 100%;
  }

  .footer-links {
    gap: 0.75rem;
  }

}
