:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-alt: rgba(255, 255, 255, 0.04);
  --surface: rgba(15, 23, 42, 0.94);
  --surface-soft: rgba(17, 24, 39, 0.88);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #ef4444;
  --primary-soft: #fb923c;
  --accent: #fbbf24;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.2);
  --radius: 1.75rem;
  --radius-sm: 1rem;
  --transition: 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.14), transparent 16%),
    radial-gradient(circle at bottom right, rgba(251, 190, 36, 0.08), transparent 16%),
    linear-gradient(180deg, #07101d 0%, #04070f 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.08), transparent 16%),
    radial-gradient(circle at 90% 8%, rgba(249, 115, 22, 0.06), transparent 14%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, transparent 24%, transparent 48%, rgba(255,255,255,0.02) 52%, transparent 76%, rgba(255,255,255,0.02) 100%);
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 35%),
    repeating-linear-gradient(135deg, transparent 0, transparent 10px, rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 11px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

body, button, input, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 999;
  transition: transform 0.3s ease, left 0.3s ease;
}

.skip-link:focus {
  left: 1rem;
  transform: translateY(1rem);
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.hero-title,
.about-content h2,
.contact-details h2 {
  margin: 0;
  line-height: 1.1;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 4rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.18), transparent 16%),
    radial-gradient(circle at 85% 5%, rgba(6, 182, 212, 0.14), transparent 14%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.82));
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 14%;
  top: 18%;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  filter: blur(34px);
  pointer-events: none;
}

.hero-copy {
  max-width: 44rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--text);
  text-shadow: 0 26px 60px rgba(37, 99, 235, 0.07);
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.hero-text,
.section-text,
.contact-details p,
.footer p,
.about-content p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1.3rem;
  padding: 1.1rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #ffffff;
  box-shadow: 0 24px 80px rgba(37, 99, 235, 0.18);
}

.button.secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241, 245, 255, 0.98));
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 28px 80px rgba(37, 99, 235, 0.16);
}

.button.primary:hover {
  background: linear-gradient(135deg, #1f57f0, #2d7cff);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}

.hero-card {
  position: relative;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 2rem;
  padding: 2.25rem;
  box-shadow: 0 30px 90px rgba(37, 99, 235, 0.12);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  filter: blur(22px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid rgba(59, 130, 246, 0.16);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 65%);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.09);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.8;
  animation: float 8s ease-in-out infinite;
}

.hero-decor-1 {
  width: 10rem;
  height: 10rem;
  background: rgba(37, 99, 235, 0.18);
  top: -2rem;
  right: -3rem;
}

.hero-decor-2 {
  width: 8rem;
  height: 8rem;
  background: rgba(6, 182, 212, 0.2);
  bottom: -2rem;
  left: -2rem;
  animation-duration: 9.5s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  position: absolute;
}

.nav-toggle .hamburger::before {
  transform: translateY(-6px);
}

.nav-toggle .hamburger::after {
  transform: translateY(6px);
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
}


.hero-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid rgba(59, 130, 246, 0.16);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 65%);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.8;
}

.hero-decor-1 {
  width: 10rem;
  height: 10rem;
  background: rgba(37, 99, 235, 0.14);
  top: -2rem;
  right: -3rem;
}

.hero-decor-2 {
  width: 8rem;
  height: 8rem;
  background: rgba(6, 182, 212, 0.16);
  bottom: -2rem;
  left: -2rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-photo,
.hero-frame {
  overflow: hidden;
  border-radius: 1.75rem;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-content h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 1.5rem;
}

.about-grid-cards,
.contact-cards,
.skills-grid,
.achievements-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.stat-card,
.skill-card,
.achievement-card,
.info-card,
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.stat-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 38%);
  pointer-events: none;
}

.stat-icon,
.skill-icon,
.card-icon,
.info-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  margin-bottom: 1rem;
}

.stat-card h3,
.skill-card h3,
.achievement-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.stat-card p,
.skill-card p,
.achievement-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.skill-card {
  display: grid;
  gap: 1rem;
  position: relative;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.03), transparent 70%);
  pointer-events: none;
}

.achievement-card {
  padding: 2rem;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  pointer-events: none;
}

.achievement-card:hover,
.skill-card:hover,
.stat-card:hover,
.info-card:hover,
.contact-form-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

.achievement-card {
  position: relative;
}

.meta {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid {
  align-items: stretch;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-details h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-cards {
  grid-template-columns: 1fr;
}

.info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.info-card h3 {
  margin: 0 0 0.35rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.6rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:invalid,
textarea:invalid {
  border-color: #dc2626;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.input-error {
  color: #dc2626;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-message {
  margin-top: 0.5rem;
  min-height: 1.3rem;
  font-weight: 600;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

.footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 3rem 0 2rem;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  padding-top: 1.5rem;
  color: var(--muted);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a,
.footer-bottom a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--muted);
}

.back-link {
  font-weight: 600;
}

.back-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
