* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

body.light {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0f172a;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

body.light .navbar {
  background: rgba(248, 250, 252, 0.85);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.theme-btn,
.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.theme-btn {
  background: #38bdf8;
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  padding: 80px 8%;
  min-height: 80vh;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 14px;
  animation: fadeUp 1s ease;
}

.typing-text {
  font-size: 1.2rem;
  color: #38bdf8;
  margin-bottom: 14px;
  min-height: 28px;
}

.hero-text p {
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.55), 0 0 40px rgba(34, 197, 94, 0.25);
}

.hero-card,
.info-box,
.contact-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 18px rgba(56, 189, 248, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover,
.info-box:hover,
.contact-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35), 0 0 34px rgba(34, 197, 94, 0.22);
}

body.light .hero-card,
body.light .info-box,
body.light .contact-box {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}

.profile-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.light .profile-photo {
  border-color: #0f172a;
}

.hero-card h2,
.section h2 {
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.hero-card ul {
  list-style: none;
  line-height: 1.9;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.65), 0 0 35px rgba(34, 197, 94, 0.35);
}

.section {
  padding: 60px 8%;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-box h3 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.contact-info {
  display: grid;
  gap: 10px;
}

.muted {
  color: #cbd5e1;
}

body.light .muted {
  color: #475569;
}

footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.light footer {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 12px;
  }
}