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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #1a1a2e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
}

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

.nav-links a {
  color: #fff;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #e94560;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}


/* ---------- Hero Section ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 4rem;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.badge {
  display: inline-block;
  background: rgba(233, 69, 96, 0.15);
  color: #e94560;
  padding: 6.4px 16px;
  border-radius: 20px;
  font-size: 13.6px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 4.8px;
}

.hero h2 {
  font-size: 22.4px;
  font-weight: 400;
  color: #e94560;
  margin-bottom: 24px;
}

.hero p {
  max-width: 550px;
  margin-bottom: 32px;
  color: #ccc;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary {
  background-color: #e94560;
  color: #fff;
}

.btn-primary:hover {
  background-color: #c9354e;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #1a1a2e;
  transform: translateY(-2px);
}

/* ---------- Hero Visual ---------- */
.hero-visual {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}

.blob {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #e94560, #533483);
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  animation: morph 4s ease-in-out infinite, floatY 3s ease-in-out infinite;
}

.code-badge {
  position: absolute;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  50% { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
}

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


footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #1a1a2e;
  color: #aaa;
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-content p {
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a2e;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-links li {
    padding: 1rem 0;
  }
}


.page-content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.page-intro {
  color: #555;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.project-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.25s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }
.project-card:nth-child(4) { animation-delay: 0.55s; }

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  margin-top: 0.6rem;
}

.contact-info {
  font-size: 1.2rem;
}

.contact-info a {
  color: #e94560;
  font-weight: bold;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.social-links a {
  color: #aaa;
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
  color: #e94560;
  transform: translateY(-3px);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .badge,
.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-content .hero-buttons {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.hero-content .badge { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.2s; }
.hero-content h2 { animation-delay: 0.3s; }
.hero-content p { animation-delay: 0.4s; }
.hero-content .hero-buttons { animation-delay: 0.5s; }