:root {
  --bg: #0b0d1a;
  --panel: rgba(19, 25, 48, 0.7);
  --panel-border: rgba(120, 191, 255, 0.26);
  --text: #f5f8ff;
  --muted: #c7d4ee;
  --accent: #5ed3ff;
  --accent-2: #ffd166;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 8%, #1f2b5d 0%, transparent 35%),
              radial-gradient(circle at 92% 12%, #0f6a95 0%, transparent 30%),
              linear-gradient(180deg, #060912 0%, #0b0d1a 60%, #090b17 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
  z-index: -2;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: -3;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: rgba(94, 211, 255, 0.18);
  top: 9%;
  left: -70px;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-b {
  width: 320px;
  height: 320px;
  background: rgba(255, 209, 102, 0.2);
  right: -90px;
  bottom: 10%;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  background: rgba(6, 9, 18, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  text-decoration: none;
  font-family: "Sora", sans-serif;
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 84vh;
  padding: 4rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero h1 span {
  color: var(--accent-2);
}

.hero-subtitle {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  text-decoration: none;
  border-radius: 0.8rem;
  padding: 0.78rem 1.15rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #52d7ff, #65ffce);
  color: #0a1022;
  box-shadow: 0 8px 24px rgba(82, 215, 255, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.section {
  padding: 3.6rem 0;
}

.section h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

.section p {
  color: var(--muted);
  line-height: 1.75;
}

.resume {
  background: rgba(8, 13, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2rem 1.25rem;
}

.resume p {
  margin-bottom: 1rem;
  max-width: 60ch;
}

.skills-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.projects-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tilt-card,
.skill-card,
.project-card,
.hero-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.12s linear, border-color 0.2s ease;
}

.hero-card {
  padding: 1.5rem;
}

.hero-card ul {
  margin-top: 0.9rem;
  padding-left: 1rem;
  color: var(--muted);
}

.card-title {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

.skill-card,
.project-card {
  padding: 1.2rem;
}

.skill-card h3,
.project-card h3 {
  font-family: "Sora", sans-serif;
  margin-bottom: 0.45rem;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.tilt-card:hover,
.skill-card:hover,
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-grid {
  display: grid;
  gap: 0.45rem;
}

footer {
  text-align: center;
  color: #a8b0c9;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.6rem 0 2.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@keyframes drift {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(30px) translateX(20px); }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 2.8rem;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .navbar {
    padding: 0.9rem 0.8rem;
  }

  .nav-links a {
    font-size: 0.84rem;
  }
}

