* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(135deg, #0f0817, #1a0033, #0d1b2a, #0f0817);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: #e5e7eb;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
} 

/* Theme variables */
:root {
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: rgba(15,8,23,0.9);
  color: white;
  border-radius: 6px;
  z-index: 10000;
  box-shadow: 0 6px 18px rgba(236,72,153,0.25);
}

/* Cursor */
.cursor {
  position: fixed;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 30% 30%, rgba(236,72,153,0.95), rgba(139,92,246,0.95));
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 120ms ease, opacity 120ms ease;
  filter: blur(12px);
  box-shadow: 0 0 30px rgba(236,72,153,0.35), 0 0 60px rgba(139,92,246,0.25);
  mix-blend-mode: screen;
  z-index: 9999;
}

/* Code window in hero */
.code-window {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(10,6,20,0.35), rgba(20,6,35,0.25));
  border: 1px solid rgba(139,92,246,0.12);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(139,92,246,0.08), 0 0 30px rgba(236,72,153,0.04) inset;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
  color: #e6e1ff;
  max-width: 540px;
  text-align: left;
}
.code-window pre { margin: 0; font-size: 13px; line-height: 1.45; }

/* Tech badges */
.tech-badges { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 18px; }
.tech { background: linear-gradient(90deg, rgba(236,72,153,0.12), rgba(139,92,246,0.08));
  padding:6px 10px; border-radius:8px; font-weight:600; font-size:13px; color: #fff; border:1px solid rgba(236,72,153,0.14);
  box-shadow: 0 6px 18px rgba(139,92,246,0.05);
}

/* animated background */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* colorful moving blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -20%;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.7;
  transform-origin: center;
}

body::before {
  background: radial-gradient(circle at 20% 30%, rgba(236,72,153,0.25), transparent 15%),
              radial-gradient(circle at 80% 70%, rgba(168,85,247,0.2), transparent 20%);
  animation: blobMove 12s ease-in-out infinite;
}

body::after {
  background: radial-gradient(circle at 50% 60%, rgba(236,72,153,0.15), transparent 12%),
              radial-gradient(circle at 70% 20%, rgba(139,92,246,0.12), transparent 18%);
  animation: blobMove 16s ease-in-out infinite reverse;
  opacity: 0.7;
}

@keyframes blobMove {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* subtle stars overlay */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0.6px, transparent 0.6px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.04) 0.6px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Hero entrance */
.hero h1, .hero p, .hero button {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease forwards;
}
.hero h1 { animation-delay: 0.35s; }
.hero p { animation-delay: 0.65s; }
.hero button { animation-delay: 0.95s; }

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

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .cursor { display: none; }
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 28px;
  position: fixed;
  width: 100%;
  background: rgba(15,8,23,0.7);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(236,72,153,0.12);
  box-shadow: 0 6px 22px rgba(236,72,153,0.08);
}

nav ul {
  list-style: none;
  display: none; /* hide top tabs while keeping the nav structure */
  gap: 20px;
}

/* Hamburger menu */
.hamburger {
  display: inline-grid;
  gap: 4px;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}
.hamburger span { display:block; width:18px; height:2px; background: linear-gradient(90deg,var(--accent-pink),var(--accent-purple)); border-radius:2px; }
.hamburger:hover { box-shadow: 0 6px 20px rgba(236,72,153,0.14); transform: translateY(-2px); }

/* Nav menu — hidden by default, reveal on hover or when .open */
.nav-menu {
  position: absolute;
  right: 18px;
  top: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, rgba(20,6,35,0.9), rgba(10,6,20,0.85));
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(139,92,246,0.12), 0 0 30px rgba(236,72,153,0.06) inset;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 160ms ease;
  border: 1px solid rgba(236,72,153,0.08);
  z-index: 600;
}

/* Center top social icons inside the navbar */
nav > .social {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 650;
}

/* Right-aligned controls container */
.nav-controls {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 700;
}
.nav-resume { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; }

/* Show menu when hovering hamburger or when nav-menu has .open */
.hamburger:hover + .nav-menu,
.nav-menu:hover,
.nav-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-menu a {
  color: #f1eefe;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
  font-weight: 600;
}
.nav-menu a:hover,
.nav-menu a:focus { background: rgba(236,72,153,0.08); color: var(--accent-pink); outline: none; }

/* Make sure nav is positioned relative so absolute menu aligns */
nav { position: fixed; }

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 200ms ease;
}
nav a:hover {
  color: var(--accent-pink);
}

/* social icons */
.social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(229,231,235,0.9);
  border-radius: 8px;
  transition: background 150ms ease, transform 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

/* Focus-visible for keyboard users */
:focus-visible { outline: 3px solid rgba(139,92,246,0.25); outline-offset: 3px; }

/* Slightly stronger skill-level gradient to match theme */
.skill-level { background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple)); }
.social a svg { width: 18px; height: 18px; }
.social a:hover { transform: translateY(-3px); }
.social a.github:hover { background: rgba(236,72,153,0.15); color: var(--accent-pink); box-shadow: 0 0 15px rgba(236,72,153,0.4); }
.social a.linkedin:hover { background: rgba(59,130,246,0.12); color: #0ea5e9; box-shadow: 0 0 15px rgba(59,130,246,0.3); }
.social a.email:hover { background: rgba(236,72,153,0.15); color: var(--accent-pink); box-shadow: 0 0 15px rgba(236,72,153,0.4); }
.social a:focus { outline: 2px solid rgba(139,92,246,0.22); outline-offset: 2px; }

.footer-social { margin-top: 10px; }

.resume {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(90deg,var(--accent-pink),var(--accent-purple));
  color: white;
  border-radius:10px;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(236,72,153,0.3);
}
.resume svg { width:16px; height:16px; flex-shrink: 0; }
.resume-label { letter-spacing: 0.3px; }
.resume:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 26px rgba(236,72,153,0.5), 0 0 20px rgba(139,92,246,0.3); }
.resume:focus { outline: 2px solid rgba(236,72,153,0.18); outline-offset: 2px; }

.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }


/* Hero */
.hero {
  min-height: 80vh;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.05; }
.hero p { color: rgba(229,231,235,0.85); margin-top: 6px; }

.hero span {
  color: var(--accent-purple);
  background: -webkit-linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero button {
  margin-top: 25px;
  padding: 12px 30px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  color: white;
  box-shadow: 0 8px 28px rgba(139,92,246,0.14);
  transform: translateY(0);
}
.hero button:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(139,92,246,0.18); }

/* Sections */
.section {
  padding: 100px 40px;
  max-width: 1000px;
  margin: auto;
  position: relative;
}

.section.dark {
  background: linear-gradient(135deg, rgba(15,8,23,0.6), rgba(26,0,51,0.4));
  position: relative;
}
.section.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(236,72,153,0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.section.dark > * {
  position: relative;
  z-index: 2;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.card {
  background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(139,92,246,0.1));
  border: 1.5px solid rgba(236,72,153,0.4);
  backdrop-filter: blur(15px);
  padding: 32px;
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 8px 32px rgba(236,72,153,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card h3 {
  font-size: 20px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.card p {
  color: rgba(229,231,235,0.8);
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

.card:hover {
  transform: translateY(-16px);
  box-shadow: 0 20px 60px rgba(236,72,153,0.35), 0 0 80px rgba(139,92,246,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(236,72,153,0.6);
  background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(139,92,246,0.15));
}

.card a {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.card a:hover {
  transform: translateX(4px);
  text-shadow: 0 0 15px rgba(236,72,153,0.4);
}

.card a svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.card a:hover svg {
  transform: scale(1.1);
} 

/* Contact */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}

input, textarea {
  padding: 12px;
  background: rgba(15,8,23,0.5);
  border: 1px solid rgba(236,72,153,0.25);
  color: white;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-shadow: inset 0 0 15px rgba(139,92,246,0.05);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(236,72,153,0.6);
  box-shadow: inset 0 0 15px rgba(139,92,246,0.1), 0 0 20px rgba(236,72,153,0.2);
}

button {
  background: var(--accent-gradient);
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  box-shadow: 0 6px 18px rgba(236,72,153,0.25), inset 0 0 20px rgba(255,255,255,0.1);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
button:hover {
  box-shadow: 0 10px 30px rgba(236,72,153,0.4), inset 0 0 20px rgba(255,255,255,0.15);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(15,8,23,0.9), rgba(26,0,51,0.7));
  border-top: 1px solid rgba(236,72,153,0.12);
  box-shadow: 0 -6px 20px rgba(236,72,153,0.06);
}

footer p {
  margin-bottom: 0;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.8);
}

.footer-social {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 700px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.skill {
  background: linear-gradient(135deg, rgba(236,72,153,0.06), rgba(139,92,246,0.05));
  border: 1px solid rgba(236,72,153,0.25);
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(236,72,153,0.08), inset 0 0 15px rgba(139,92,246,0.04);
}
.skill-name {
  font-weight: 600;
  margin-bottom: 10px;
}
.skill-bar {
  background: rgba(236,72,153,0.15);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(236,72,153,0.2);
}
.skill-level {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  transition: width 1.2s ease;
  box-shadow: 0 0 10px rgba(236,72,153,0.6), inset 0 0 5px rgba(255,255,255,0.3);
}

/* small polish */
.section h2 { margin-bottom: 12px; }
