* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050816;
  color: #e5e7eb;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #a855f7;
}

/* Menu toggle for mobile */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  font-size: 18px;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 13px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  min-height: 75vh;
  padding: 140px 10% 60px;
  display: flex;
  align-items: center;
}

.gradient-bg {
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.hero-text {
  max-width: 700px;
}

.tagline {
  font-size: 14px;
  color: #a5b4fc;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero h1 span {
  color: #38bdf8;
}

/* Typing line */
.typing-line {
  font-size: 16px;
  color: #f9fafb;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cursor {
  animation: blink 0.9s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hero-subtitle {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.hero-highlights {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 33, 115, 0.7);
  border: 1px solid rgba(129, 140, 248, 0.7);
}

/* Hero photo */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.55);
}

.btn.secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sections */
.section {
  padding: 70px 10%;
}

.section-title {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 25px;
}

/* Alt background */
.alt-bg {
  background: #020617;
}

/* Cards (Projects, Achievements) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: 16px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(178, 187, 199, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(184, 246, 59, 0.5);
  border-color: #38bdf8;
}

.project-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(241, 236, 237, 0.4);
}

.project-img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.card-tag {
  font-size: 12px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.card-text {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 6px;
}

.card-link {
  display: inline-block;
  font-size: 12px;
  margin-top: 4px;
  color: #38bdf8;
}

.center-link {
  margin-top: 16px;
  text-align: center;
}

.text-link {
  color: #38bdf8;
  font-size: 13px;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(176, 46, 81, 0.9);
  border: 1px solid rgba(228, 240, 240, 0.7);
}

/* Resume */
.resume-section {
  text-align: center;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: flex-start;
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-info a {
  color: #d4ef07;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  background: #020617;
  border: 1px solid #4b5563;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: #e5e7eb;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* About Page & Project Detail */
.about-page {
  padding-top: 100px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.bio {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-side-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 14px;
}

.about-side-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #e2bc12;
}

.about-side-card p {
  margin-bottom: 12px;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
  margin-top: 20px;
}

.project-detail-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.project-actions {
  margin-top: 14px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid #111827;
  background: #020617;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 120px 7% 50px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 14px;
    top: 56px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .contact-wrapper,
  .about-layout,
  .project-detail {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 60px 7%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}
