/* GLOBAL + LOAD ANIMATION */
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0f14;
  color: #e6edf3;
  line-height: 1.7;

  opacity: 0;
  transform: translateY(10px);
  animation: pageLoad 0.8s ease-out forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1b2530;
  z-index: 10;
}

.nav-container {
  max-width: 920px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  color: #5aa9ff;
}

nav a {
  margin-left: 18px;
  color: #9fb3c8;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  color: #5aa9ff;
}

/* HEADER WITH BACKGROUND IMAGE */
header {
  text-align: center;
  padding: 110px 20px 70px;
  position: relative;
  overflow: hidden;

  background: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa")
    center/cover no-repeat;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.78);
  backdrop-filter: blur(2px);
}

header * {
  position: relative;
}

h1 {
  font-size: 3.2rem;
  margin: 0;
  font-weight: 700;
}

.subtitle {
  margin-top: 12px;
  color: #5aa9ff;
}

.tagline {
  margin-top: 10px;
  color: #9aaac0;
  font-size: 0.95rem;
}

.links {
  margin-top: 22px;
}

.links a {
  margin: 0 10px;
  color: #5aa9ff;
  text-decoration: none;
}

/* SECTIONS */
section {
  max-width: 920px;
  margin: 70px auto;
  padding: 0 24px;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  border-left: 3px solid #5aa9ff;
  padding-left: 10px;
}

/* CARDS */
.card {
  background: #0f1620;
  border: 1px solid #1b2530;
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.card h3 {
  margin: 0;
}

.card span {
  font-size: 0.85rem;
  color: #8aa0b5;
}

.card ul {
  margin-top: 10px;
  padding-left: 18px;
}

/* SKILLS */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-grid span {
  background: #111b27;
  border: 1px solid #1b2530;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #b8c7d9;
}

/* IMAGE ROW */
.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.image-row img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #1b2530;
  filter: brightness(0.85);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 35px;
  font-size: 0.8rem;
  color: #6f859e;
  border-top: 1px solid #1b2530;
}

/* LINKS */
a {
  color: #5aa9ff;
}

/* ===== TYPOGRAPHY ANIMATION ===== */

/* typing effect */
.typing {
  width: fit-content;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #5aa9ff;
  animation:
    typing 2.2s steps(18, end),
    blink 0.7s step-end infinite;
}

/* typing keyframes */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

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

/* subtle glow pulse (very light) */
.typing {
  text-shadow: 0 0 18px rgba(90, 169, 255, 0.15);
  animation:
    typing 2.2s steps(18, end),
    blink 0.7s step-end infinite,
    glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(90,169,255,0.10); }
  50% { text-shadow: 0 0 22px rgba(90,169,255,0.25); }
}

/* ===== FADE IN SYSTEM ===== */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* stagger delays */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }