@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@400;600&display=swap");

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

body {
  font-family: "Inter", sans-serif;
  background: #0b1220; /* deep blue-black */
  color: #e6ebf2;
  overflow-x: hidden;
}

/* ================= ATMOSPHERIC LIGHT MOTION ================= */
/* soft moving light beams (torch effect) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(120,180,255,0.15), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(180,200,255,0.12), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,0.08), transparent 55%);
  animation: lightDrift 90s linear infinite;
  z-index: 0;
}

body::after {
  animation-duration: 140s;
  opacity: 0.7;
}

@keyframes lightDrift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-6%, -4%); }
  100% { transform: translate(0, 0); }
}

/* ================= CONTENT LAYER ================= */
.hero,
.who,
.skills-section,
.experience,
footer {
  position: relative;
  z-index: 1;
}

/* ================= HERO ================= */
.hero {
  padding: 90px 70px 70px;
  background:
    linear-gradient(180deg, rgba(11,18,32,0.9), rgba(11,18,32,0.7)),
    url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa")
      center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-content {
  max-width: 760px;
  animation: fadeUp 1.4s ease forwards;
}

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

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 60px;
  letter-spacing: 0.3px;
}

.hero h2 {
  margin-top: 6px;
  font-size: 22px;
  font-style: italic;
  color: #8fb7ff;
}

.hero p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #d2dae6;
}

/* ================= WHO I AM ================= */
.who {
  padding: 120px 70px;
  background:
    linear-gradient(120deg, rgba(15,24,45,0.85), rgba(15,24,45,0.95)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee")
      center / cover no-repeat;
}

.who-content {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

.who-text {
  padding: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  position: relative;
  animation: fadeUp 1.6s ease forwards;
}

/* subtle scanning light */
.who-text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(180,200,255,0.15),
    transparent 70%
  );
  animation: scan 7s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.who-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 24px;
}

.who-text p {
  font-size: 18px;
  line-height: 1.9;
  color: #e0e6ef;
  position: relative;
  z-index: 1;
}

.who-text .sub {
  margin-top: 18px;
  font-style: italic;
  color: #b7c4d6;
}

/* CONTACT */
.contact-links {
  margin-top: 32px;
  display: flex;
  gap: 36px;
}

.contact-links a {
  color: #8fb7ff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #8fb7ff;
  transition: width 0.3s ease;
}

.contact-links a:hover::after {
  width: 100%;
}

/* ================= SKILLS ================= */
.skills-section {
  padding: 120px 70px;
  text-align: center;
  background: linear-gradient(180deg, #0b1220, #0f182d);
}

.skills-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  margin-bottom: 60px;
}

.skills-grid span {
  display: inline-block;
  margin: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6ebf2;
  animation: floatChip 6s ease-in-out infinite;
}

.skills-grid span:nth-child(even) {
  animation-delay: 2s;
}

@keyframes floatChip {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ================= EXPERIENCE ================= */
.experience {
  padding: 140px 70px;
  background:
    linear-gradient(180deg, rgba(15,24,45,0.95), rgba(11,18,32,0.95)),
    url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564")
      center / cover no-repeat;
}

.experience h3 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  text-align: center;
  margin-bottom: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 46px;
}

.glass-card {
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  animation: slowFloat 9s ease-in-out infinite;
}

.glass-card:nth-child(2) { animation-delay: 2s; }
.glass-card:nth-child(3) { animation-delay: 4s; }

@keyframes slowFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

.glass-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #ffffff;
}

.glass-card span {
  font-size: 14px;
  color: #b7c4d6;
}

.glass-card p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #d2dae6;
}

/* ================= FOOTER ================= */
footer {
  padding: 60px;
  text-align: center;
  font-size: 14px;
  color: #b7c4d6;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero,
  .who,
  .skills-section,
  .experience {
    padding: 70px 32px;
  }

  .who-content {
    grid-template-columns: 1fr;
  }
}
