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

:root {
  --color-primary: #3F51B5;
  --color-primary-dark: #1A237E;
  --color-bg: #F5F5F5;
  --color-bg-alt: #EAECF5;
  --color-surface: #FFFFFF;
  --color-accent: #FFC107;
  --color-text: #1A237E;
  --color-text-muted: #5C6BC0;
  --color-border: #E0E0E0;

  --fs-h1: 2.25rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 3.5rem;
  --space-8: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(26, 35, 126, 0.06), 0 1px 3px rgba(26, 35, 126, 0.08);
  --shadow-md: 0 4px 6px rgba(26, 35, 126, 0.07), 0 2px 4px rgba(26, 35, 126, 0.06);
  --shadow-lg: 0 10px 15px rgba(26, 35, 126, 0.08), 0 4px 6px rgba(26, 35, 126, 0.05);

  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-bg-alt: #1A1A2A;
    --color-surface: #1E1E2E;
    --color-text: #E8EAF6;
    --color-text-muted: #9FA8DA;
    --color-primary: #7986CB;
    --color-primary-dark: #C5CAE9;
    --color-accent: #FFD54F;
    --color-border: #2A2A3E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 960px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.0625rem;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 960px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background-color: var(--color-accent);
  color: #1A237E;
  border-color: var(--color-accent);
}

.btn--accent:hover {
  color: #1A237E;
  background-color: #FFD54F;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.tag {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: #fff;
  margin: 0.15em;
}

@media (prefers-color-scheme: dark) {
  .tag {
    background-color: rgba(121, 134, 203, 0.25);
    color: var(--color-primary-dark);
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(245, 245, 245, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s;
  will-change: background, box-shadow;
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(18, 18, 18, 0.8);
  }
}

.nav.scrolled {
  background: rgba(245, 245, 245, 0.95);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .nav.scrolled {
    background: rgba(18, 18, 18, 0.95);
  }
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

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

.nav__menu {
  display: none;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: var(--space-3);
}

.nav__link {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: var(--space-1) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-small);
  font-weight: 600;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25em 0.4em;
  border-radius: var(--radius-sm);
  transition: color 0.25s, background-color 0.25s;
}

.lang-btn:hover {
  color: var(--color-primary);
}

.lang-btn.active {
  color: var(--color-primary-dark);
  background-color: rgba(63, 81, 181, 0.1);
}

.lang-sep {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav__hamburger {
    display: none;
  }

  .nav__menu {
    display: block;
  }
}

.nav__menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: var(--space-3);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.nav__menu.open .nav__list {
  flex-direction: column;
  gap: var(--space-2);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3F51B5 0%, #7C4DFF 25%, #1A237E 50%, #00BCD4 75%, #3F51B5 100%);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  .hero__bg {
    background: linear-gradient(135deg, #1A237E 0%, #4A148C 25%, #0D1442 50%, #006064 75%, #1A237E 100%);
    background-size: 600% 600%;
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(80px);
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: #7C4DFF;
  top: -150px;
  right: -100px;
  animation: blobFloat1 10s ease-in-out infinite;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: #FFC107;
  bottom: -100px;
  left: -80px;
  animation: blobFloat2 12s ease-in-out infinite;
}

.hero__blob--3 {
  width: 350px;
  height: 350px;
  background: #00BCD4;
  top: 40%;
  left: 50%;
  animation: blobFloat3 9s ease-in-out infinite;
}

.hero__blob--4 {
  width: 300px;
  height: 300px;
  background: #FF4081;
  top: 10%;
  left: 20%;
  animation: blobFloat4 11s ease-in-out infinite;
}

.hero__blob--5 {
  width: 250px;
  height: 250px;
  background: #69F0AE;
  bottom: 10%;
  right: 15%;
  animation: blobFloat5 13s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -60px) scale(1.2); }
  66% { transform: translate(-40px, 40px) scale(0.9); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.15); }
  66% { transform: translate(50px, 30px) scale(0.85); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-70px, 50px) scale(1.25) rotate(45deg); }
}

@keyframes blobFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, 40px) scale(1.1); }
  50% { transform: translate(-30px, 80px) scale(0.9); }
  75% { transform: translate(-50px, -30px) scale(1.15); }
}

@keyframes blobFloat5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -70px) scale(1.2); }
  66% { transform: translate(-60px, -20px) scale(0.85); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF;
  padding: var(--space-4) 0;
}

.hero__photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.hero__photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo-placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.hero__name {
  font-size: var(--fs-h1);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero__role {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.hero__tagline {
  font-size: var(--fs-body);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto var(--space-4);
  opacity: 0.85;
  line-height: 1.6;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.hero__content .btn--accent {
  color: #1A237E;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  animation: bounceDown 2s ease-in-out infinite;
}

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

.section {
  padding: var(--space-8) 0;
  position: relative;
  background-color: var(--color-bg);
}

.section:nth-of-type(even) {
  background-color: var(--color-bg-alt);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  z-index: 1;
}

.section::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 24px;
  pointer-events: none;
}

.section:nth-of-type(odd)::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C360,24 1080,24 1440,0 L1440,24 L0,24 Z' fill='%23F5F5F5'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}

.section:nth-of-type(even)::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C360,24 1080,24 1440,0 L1440,24 L0,24 Z' fill='%23EAECF5'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}

@media (prefers-color-scheme: dark) {
  .section:nth-of-type(odd)::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C360,24 1080,24 1440,0 L1440,24 L0,24 Z' fill='%23121212'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
  }

  .section:nth-of-type(even)::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C360,24 1080,24 1440,0 L1440,24 L0,24 Z' fill='%231A1A2A'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
  }
}

.section + .section {
  margin-top: 0;
  padding-top: calc(var(--space-8) + 24px);
}

.hero + .section {
  padding-top: calc(var(--space-8) + 24px);
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--space-2) auto 0;
  border-radius: 2px;
}

.about__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.about__text p {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.about__text strong {
  color: var(--color-primary-dark);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.stat-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card__number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-card__label {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

@media (min-width: 960px) {
  .timeline {
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-2);
}

@media (min-width: 960px) {
  .timeline__item {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding-right: var(--space-5);
  }

  .timeline__item:nth-child(odd):not(:first-child) {
    margin-top: -100px;
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    margin-top: -100px;
    padding-right: 0;
    padding-left: var(--space-5);
    justify-content: flex-start;
  }
}

.timeline__dot {
  position: absolute;
  left: -26px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

@media (min-width: 960px) {
  .timeline__dot {
    left: auto;
    right: -7px;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    right: auto;
    left: -7px;
  }
}

.timeline__content {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-sm);
}

.timeline__date {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.timeline__role {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.timeline__company {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.timeline__desc {
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.education__subtitle {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.education__subtitle--hidden:not(.is-expanded) {
  display: none;
}

.education__grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .education__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.education__list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .education__list {
    grid-template-columns: 1fr 1fr;
  }
}

.education__card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.education__card--compact {
  padding: var(--space-2) var(--space-3);
}

.education__card--hidden:not(.is-expanded) {
  display: none;
}

.education__institution {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  order: 2;
}

.education__degree {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
  order: 1;
}

.education__date {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  order: 3;
}

.education__toggle {
  display: block;
  margin: var(--space-4) auto 0;
}

.skills__category {
  margin-bottom: var(--space-6);
}

.skills__subtitle {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.skills__grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .skills__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .skills__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.skill-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-sm);
}

.skill-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
  font-weight: 500;
  color: var(--color-text);
}

.skill-item__header i {
  font-size: 1.4rem;
  color: var(--color-primary);
}

.skill-badge {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .skill-badge {
    background-color: rgba(121, 134, 203, 0.3);
    color: var(--color-primary-dark);
  }
}

.skill-bar {
  height: 8px;
  background-color: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1A237E, #42A5F5);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.projects__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .projects__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.project-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card--hidden:not(.is-expanded) {
  display: none;
}

.project-card__img {
  height: 180px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.project-card__body {
  padding: var(--space-3);
}

.project-card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
}

.project-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: var(--space-2);
}

.project-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  background-color: rgba(63, 81, 181, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.projects__toggle {
  display: block;
  margin: var(--space-4) auto 0;
}

.contact__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color 0.25s, color 0.25s;
}

.contact__link:hover {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--color-accent);
}

.contact__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.contact__form {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-2);
  font-family: 'Raleway', sans-serif;
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.contact__form .btn {
  width: 100%;
}

.contact__form-note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-align: center;
}

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

.footer p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.footer__socials a {
  color: var(--color-text-muted);
  transition: color 0.25s;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  html {
    scroll-behavior: auto;
  }
}
