* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --bg: #06111f;
  --card: rgba(17, 28, 46, 0.92);
  --card2: rgba(22, 36, 58, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --secondary: #8b5cf6;
  --success: #22c55e;
  --border: rgba(10, 4, 4, 0.1);
  --shadow: rgba(0, 0, 0, 0.28);
}

body.light {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.95);
  --card2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0284c7;
  --secondary: #7c3aed;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.2), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
}

.header {
  position: sticky;
  top: 0;
  background: rgba(6, 17, 31, 0.85);
  backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

body.light .header {
  background: rgba(248, 250, 252, 0.85);
}

.navbar {
  max-width: 1180px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 25px;
  font-weight: 900;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a:hover {
  color: var(--primary);
}

.theme-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 13px;
  border-radius: 14px;
  cursor: pointer;
}

.section {
  max-width: 1180px;
  margin: auto;
  padding: 90px 20px;
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 55px;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--primary);
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: bold;
  margin-bottom: 22px;
  font-size: 14px;
}

.small-title {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-content h3 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 22px;
}

.description,
.about-text {
  color: var(--muted);
  line-height: 1.9;
  max-width: 720px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 14px 23px;
  border-radius: 16px;
  font-weight: bold;
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.22);
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.socials a {
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 14px;
}

.profile-card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 28px 70px var(--shadow);
  position: relative;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 230px;
  height: 230px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.profile-card img {
  position: relative;
  width: 245px;
  height: 245px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--primary);
  margin-bottom: 20px;
}

.profile-card h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 20px;
}

.stat-card,
.info-card,
.service-card,
.skills-grid div,
.timeline-card,
.project-card,
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px var(--shadow);
}

.stat-card {
  padding: 30px;
  text-align: center;
}

.stat-card h2 {
  color: var(--primary);
  font-size: 40px;
}

.stat-card p {
  color: var(--muted);
  margin-top: 8px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 40px;
}

.info-grid,
.service-grid,
.skills-grid,
.project-grid {
  display: grid;
  gap: 20px;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 32px;
}

.info-card {
  padding: 24px;
}

.info-card strong {
  color: var(--primary);
}

.info-card p {
  color: var(--muted);
  margin-top: 8px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  padding: 30px;
  transition: 0.3s ease;
}

.service-card:hover,
.project-card:hover,
.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
}

.icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.8;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.skills-grid div {
  padding: 18px;
  text-align: center;
  font-weight: bold;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-card {
  padding: 30px;
  border-left: 4px solid var(--primary);
}

.timeline-card h3 {
  margin-bottom: 8px;
}

.timeline-card span {
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.project-card {
  padding: 30px;
  transition: 0.3s ease;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.project-top h3 {
  font-size: 22px;
}

.project-top span {
  color: var(--primary);
  font-size: 13px;
  font-weight: bold;
  background: rgba(56, 189, 248, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.8;
}

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

.tags span {
  font-size: 13px;
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 9px;
  border-radius: 999px;
}

.project-btn {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 32px;
}

.contact-info h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--primary);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--border);
  outline: none;
  background: var(--bg);
  color: var(--text);
}

textarea {
  height: 125px;
  resize: none;
}

form button {
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: bold;
  cursor: pointer;
}

form small {
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 28px 20px;
  background: var(--card);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-weight: bold;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s ease;
}

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

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .description,
  .about-text {
    margin: auto;
  }

  .buttons,
  .socials {
    justify-content: center;
  }

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

  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content h3 {
    font-size: 24px;
  }

  .profile-card img {
    width: 210px;
    height: 210px;
  }
}
.hero-content {
  animation: slideLeft 1s ease forwards;
}

.hero-right {
  animation: slideRight 1s ease forwards;
}

.profile-card {
  animation: floatUpDown 4s ease-in-out infinite;
}

.btn {
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(56, 189, 248, 0.35);
}

.socials a,
.skills-grid div,
.stat-card,
.info-card,
.service-card,
.project-card {
  transition: 0.3s ease;
}

.socials a:hover,
.skills-grid div:hover,
.stat-card:hover,
.info-card:hover,
.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
}

.project-btn {
  transition: 0.3s ease;
}

.project-btn:hover {
  letter-spacing: 1px;
}

.glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.top-btn {
  transition: 0.3s ease;
}

.top-btn:hover {
  transform: scale(1.12);
}

.timeline-card {
  transition: 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(8px);
}

.profile-card img {
  transition: 0.4s ease;
}

.profile-card img:hover {
  transform: scale(1.05);
}

.typing {
  color: var(--primary);
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCursor 0.7s infinite;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  animation: moveParticle 18s linear infinite;
}

.particles::after {
  top: 50%;
  left: 60%;
  animation-duration: 24s;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.75;
  }

  100% {
    transform: scale(1);
    opacity: 0.45;
  }
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

@keyframes moveParticle {
  0% {
    transform: translateY(0px) translateX(0px);
  }

  50% {
    transform: translateY(-40px) translateX(30px);
  }

  100% {
    transform: translateY(0px) translateX(0px);
  }
}