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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #07111f;
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(45, 212, 191, 0.13), transparent 28%),
    radial-gradient(circle at 55% 80%, rgba(99, 102, 241, 0.12), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #090b1d 48%, #071722 100%);
  pointer-events: none;
  z-index: -4;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  pointer-events: none;
  z-index: -3;
}

.background-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(95px);
  opacity: 0.35;
  z-index: -2;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

.glow-one {
  background: #38bdf8;
  top: 10%;
  left: -120px;
}

.glow-two {
  background: #2dd4bf;
  right: -120px;
  bottom: 10%;
  animation-delay: 2s;
}

@keyframes floatGlow {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(45px) scale(1.1);
  }
}

.navbar {
  width: min(1120px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 15px 22px;
  position: sticky;
  top: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 17, 32, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: #67e8f9;
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 1.35rem;
  cursor: pointer;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 70px;
}

.eyebrow {
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 650px;
  color: #f8fafc;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-description {
  max-width: 640px;
  color: #b6c4d8;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #38bdf8, #5eead4);
  color: #03111f;
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.25);
}

.secondary-btn {
  color: #e5edf7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.profile-frame {
  width: min(360px, 80vw);
  aspect-ratio: 0.78;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(135deg, #38bdf8, #5eead4);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.38),
    0 0 80px rgba(56, 189, 248, 0.20);
  animation: profileFloat 5s ease-in-out infinite;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 27px;
}

@keyframes profileFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.quick-card {
  width: min(360px, 80vw);
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.26);
}

.quick-card p {
  color: #e2e8f0;
  font-weight: 900;
  margin-bottom: 14px;
}

.quick-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-card span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.section-header {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-header h2 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}

.about-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.22);
}

.about-card.large {
  grid-row: span 2;
  min-height: 340px;
}

.about-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.about-card p {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.skills-orbit {
  min-height: 360px;
  padding: 35px;
  border-radius: 34px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: visible;
}

.skill-chip {
  padding: 13px 18px;
  border-radius: 999px;
  color: #e2e8f0;
  font-weight: 900;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
  animation: wobble 4.5s ease-in-out infinite;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-chip:nth-child(2n) {
  animation-delay: 0.4s;
}

.skill-chip:nth-child(3n) {
  animation-delay: 0.9s;
}

.skill-chip.featured {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(94, 234, 212, 0.95));
  color: #03111f;
  border-color: transparent;
}

.skill-chip:hover {
  position: relative;
  z-index: 10;
  transform: scale(1.16) translateY(-8px);
  background: rgba(56, 189, 248, 0.20);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 28px 80px rgba(56, 189, 248, 0.25);
}

@keyframes wobble {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-card {
  min-height: 355px;
  padding: 30px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  position: relative;
  z-index: 20;
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.36);
}

.featured-project {
  min-height: 390px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(94, 234, 212, 0.05)),
    rgba(255, 255, 255, 0.075);
}

.project-type {
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 1.55rem;
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.project-card p {
  color: #c3d0e4;
  font-size: 1rem;
  line-height: 1.65;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.tech-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card a {
  margin-top: auto;
  color: #38bdf8;
  font-weight: 900;
  font-size: 0.98rem;
}

.experience-grid {
  display: grid;
  gap: 22px;
}

.experience-card {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 5px solid #5eead4;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.experience-card:hover {
  position: relative;
  z-index: 10;
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.34);
}

.experience-card h3 {
  font-size: 1.35rem;
  margin-bottom: 9px;
}

.timeline-meta {
  color: #5eead4;
  font-weight: 900;
  margin-bottom: 12px;
}

.experience-card p:last-child {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-section {
  padding-bottom: 60px;
}

.contact-card {
  padding: clamp(34px, 5vw, 58px);
  border-radius: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.contact-card h2 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.07em;
  margin-bottom: 16px;
}

.contact-card p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-links a {
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e5edf7;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-links a span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #03111f;
  font-size: 0.85rem;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #5eead4);
}

.contact-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(56, 189, 248, 0.12);
}

.phone-note {
  margin-top: 18px !important;
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #5eead4);
  color: #03111f;
  font-size: 1.3rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.25);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 42px;
  text-align: center;
  color: #8ea0b8;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 52px;
  }

  .hero-visual {
    align-items: flex-start;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-card.large {
    grid-row: auto;
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .featured-project {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .navbar {
    border-radius: 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    padding: 18px;
    border-radius: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: rgba(9, 17, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.13);
  }

  .nav-links.open {
    display: flex;
  }

  .section {
    padding: 76px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-buttons {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .skills-orbit {
    justify-content: flex-start;
    min-height: auto;
    padding: 24px;
  }
}
.hero {
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  padding-top: 130px;
}

.hero-grid {
  width: min(1200px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 70px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateY(-70px);
}

.hero-photo {
  margin-top: 0;
}

.focus-card,
.portfolio-focus {
  margin-top: 28px;
}

.hero h1 {
  font-size: clamp(3.8rem, 7vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 28px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #c8f3ff, #29d9ff, #6ef7d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  max-width: 700px;
  margin-bottom: 22px;
}

.hero-subtitle,
.hero-description {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-photo-card img {
  width: min(360px, 90%);
  border-radius: 34px;
  border: 8px solid rgba(64, 210, 235, 0.9);
  box-shadow: 0 0 40px rgba(64, 210, 235, 0.35);
}

.portfolio-focus {
  width: min(380px, 90%);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio-focus div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-focus span,
.skills-cloud span,
.project-card span {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.large-card {
  grid-row: span 2;
}

.about-card,
.experience-card,
.project-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.7;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1000px;
  padding: 38px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.skills-cloud span {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: softFloat 5s ease-in-out infinite;
}

.skills-cloud span:nth-child(2n) {
  animation-delay: 0.7s;
}

.skills-cloud span:nth-child(3n) {
  animation-delay: 1.2s;
}

.skills-cloud span:hover {
  transform: translateY(-10px) scale(1.12);
  background: rgba(48, 213, 245, 0.25);
  box-shadow: 0 0 28px rgba(48, 213, 245, 0.35);
  z-index: 5;
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.experience-list {
  display: grid;
  gap: 26px;
}

.experience-card p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.contact-links a {
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-links a:hover {
  transform: translateY(-6px);
  background: rgba(48, 213, 245, 0.25);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-photo-card {
    order: -1;
  }
}
.section-label {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #5ff5df;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  max-width: 900px;
  margin-bottom: 48px;
  color: #f5fbff;
}

#about .section-label,
#skills .section-label,
#projects .section-label,
#experience .section-label {
  font-size: 20px;
}

#about .section-title,
#skills .section-title,
#projects .section-title,
#experience .section-title {
  font-size: clamp(44px, 5.5vw, 72px);
}
.hero {
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 90px;
}

.hero-grid,
.hero-content {
  align-items: center;
}

.hero-photo,
.profile-card {
  margin-top: 0;
}
/* Fix skills hover behavior */
.skill-pill,
.skill-tag,
.tech-pill,
.skills-list span,
.skills-card span {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  background: rgba(255, 255, 255, 0.10);
  color: #eef7ff;
}

.skill-pill:hover,
.skill-tag:hover,
.tech-pill:hover,
.skills-list span:hover,
.skills-card span:hover {
  transform: translateY(-8px) scale(1.08);
  background: linear-gradient(135deg, #42dff5, #6fffd2);
  color: #06121f;
  box-shadow: 0 18px 45px rgba(66, 223, 245, 0.30);
  z-index: 5;
}