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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", Helvetica, Arial, sans-serif;
  background: #0a1833;
  color: #e8edf4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, #0f2847 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, #0d1f3c 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, #091430 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  z-index: 0;
  pointer-events: none;
}

/* --- PAGE LAYOUT --- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 48px 24px 24px;
}

/* --- NAV --- */
.site-nav {
  width: 100%;
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #8899b0;
  position: relative;
  z-index: 2;
}

.site-nav a {
  color: #8899b0;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: #e8edf4;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* --- HERO --- */
.hero {
  text-align: center;
  margin-bottom: 52px;
}

.hero-name {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-role {
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 400;
  color: #b0bfd0;
  margin-bottom: 8px;
}

.role-at {
  white-space: nowrap;
}

.zepto-logo {
  height: 1.1em;
  vertical-align: -0.18em;
  margin-left: 0.25em;
}

.hero-desc {
  font-size: clamp(16px, 1.6vw, 20px);
  color: #8899b0;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #3b82f6;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
  background: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.cta:active {
  transform: translateY(0);
}

/* --- PROJECTS GRID --- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 980px;
  margin-bottom: 0;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.5s ease forwards;
}

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

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:active {
  transform: translateY(-1px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 16px;
  color: #8899b0;
  line-height: 1.4;
}

/* --- FOOTER --- */
.footer {
  margin-top: clamp(40px, 5vh, 84px);
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #8899b0;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #8899b0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e8edf4;
}

.footer-copy {
  color: rgba(136, 153, 176, 0.5);
}

/* --- ANIMATION --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .page {
    padding-top: 32px;
  }

  .hero {
    margin-bottom: 36px;
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    gap: 16px;
  }

  .card {
    min-height: 150px;
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 16px 16px;
  }
  .hero {
    margin-bottom: 32px;
  }
  .hero-name {
    font-size: 32px;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 20px;
  }
}

@media (min-width: 1400px) and (min-height: 900px) {
  .page {
    padding-top: 30px;
  }

  .hero {
    margin-bottom: 44px;
  }

  .hero-name {
    font-size: clamp(52px, 4.8vw, 82px);
  }

  .hero-role {
    font-size: clamp(20px, 1.8vw, 28px);
  }

  .hero-desc {
    font-size: clamp(18px, 1.3vw, 22px);
    margin-bottom: 36px;
  }

  .cta {
    font-size: 18px;
    padding: 14px 38px;
  }

  .projects {
    max-width: 1240px;
    gap: 22px;
  }

  .card {
    min-height: 200px;
    padding: 30px;
  }

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

  .card-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .card-desc {
    font-size: 17px;
    line-height: 1.5;
  }

  .footer {
    margin-top: clamp(20px, 2.4vh, 36px);
    font-size: 16px;
  }
}

@media (min-width: 1100px) and (max-width: 1399px) and (min-height: 760px) {
  .projects {
    max-width: 1080px;
  }

  .card {
    min-height: 180px;
  }
}
