/* Reza Saneiyan Portfolio — .NET / C# Theme */

:root {
  --dotnet-purple: #512bd4;
  --dotnet-purple-light: #7c4dff;
  --csharp-purple: #68217a;
  --ms-blue: #0078d4;
  --accent-cyan: #00d4ff;
  --bg-primary: #0a0a12;
  --bg-secondary: #12121f;
  --bg-card: rgba(18, 18, 31, 0.75);
  --bg-card-hover: rgba(24, 24, 42, 0.9);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border: rgba(81, 43, 212, 0.25);
  --border-hover: rgba(124, 77, 255, 0.5);
  --gradient-main: linear-gradient(135deg, var(--dotnet-purple) 0%, var(--csharp-purple) 50%, var(--ms-blue) 100%);
  --gradient-text: linear-gradient(135deg, #9d7cff 0%, #512bd4 40%, #0078d4 100%);
  --shadow-glow: 0 0 40px rgba(81, 43, 212, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 72px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(81, 43, 212, 0.4);
  color: #fff;
}

a {
  color: var(--dotnet-purple-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

ul {
  list-style: none;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(81, 43, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 43, 212, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: var(--dotnet-purple);
  top: -200px;
  right: -100px;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: var(--ms-blue);
  bottom: -150px;
  left: -100px;
  animation-delay: -6s;
}

.bg-glow--3 {
  width: 400px;
  height: 400px;
  background: var(--csharp-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  text-align: center;
}

.preloader__logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: rgba(81, 43, 212, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-main);
  border-radius: 3px;
  animation: loadBar 1.8s ease forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--dotnet-purple);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

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

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: rgba(81, 43, 212, 0.15);
}

.nav__cta {
  margin-left: 0.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

.hero__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(81, 43, 212, 0.15);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dotnet-purple-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero__title .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero__summary {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn--primary {
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 4px 20px rgba(81, 43, 212, 0.4);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

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

.btn--outline:hover {
  border-color: var(--border-hover);
  background: rgba(81, 43, 212, 0.1);
  color: var(--text-primary);
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}

.hero__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--dotnet-purple-light);
}

.hero__visual {
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease 0.3s forwards;
  opacity: 0;
}

.hero__photo-wrap {
  position: relative;
}

.hero__photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--gradient-main);
  animation: spin 8s linear infinite;
  opacity: 0.6;
}

.hero__photo-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-primary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__photo {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(81, 43, 212, 0.3);
  z-index: 1;
}

.hero__stats {
  position: absolute;
  bottom: 20px;
  left: -30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero__tech-float {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--dotnet-purple-light);
  z-index: 2;
  animation: float 5s ease-in-out infinite reverse;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 3rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dotnet-purple-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section__desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 0.75rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
}

.stat-item__value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Experience timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--dotnet-purple), var(--ms-blue), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.timeline__item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 2rem;
  width: 12px;
  height: 12px;
  background: var(--dotnet-purple);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  transform: translateX(-5px);
  box-shadow: 0 0 12px rgba(81, 43, 212, 0.6);
}

.timeline__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline__role {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline__company {
  color: var(--dotnet-purple-light);
  font-weight: 500;
}

.timeline__period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  background: rgba(81, 43, 212, 0.1);
  border-radius: 999px;
  white-space: nowrap;
}

.timeline__location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.timeline__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--dotnet-purple-light);
  font-size: 0.75rem;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(81, 43, 212, 0.12);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--dotnet-purple-light);
}

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

.skill-card {
  padding: 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.skill-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(81, 43, 212, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  background: rgba(0, 120, 212, 0.1);
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.skill-card:hover .skill-tag {
  border-color: rgba(124, 77, 255, 0.3);
}

/* Education */
.edu-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.edu-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.edu-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
}

.edu-card__degree {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.edu-card__school {
  color: var(--dotnet-purple-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Open Source */
.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.os-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.os-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.os-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.os-card__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}

.os-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1;
}

.os-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Chat widget */
.chat-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-widget:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.chat-widget iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  background: var(--bg-secondary);
}

@media (max-width: 768px) {
  .chat-widget iframe {
    height: 520px;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(81, 43, 212, 0.15);
  border-radius: var(--radius-sm);
  color: var(--dotnet-purple-light);
}

.contact-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card__value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  color: #fff;
  background: var(--dotnet-purple);
  border-color: var(--dotnet-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__text span {
  color: var(--dotnet-purple-light);
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-glow);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions,
  .hero__contact {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__photo {
    width: 260px;
    height: 260px;
  }

  .hero__stats {
    left: 0;
    bottom: 0;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav__cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav__toggle {
    display: flex;
  }

  .timeline__header {
    flex-direction: column;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
  }

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

@media (max-width: 480px) {
  .hero__photo {
    width: 220px;
    height: 220px;
  }

  .hero__tech-float,
  .hero__stats {
    display: none;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-behavior: auto;
  }

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