@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #38bdf8;
  --secondary: #22d3ee;
  --bg-dark: #020617;
  --bg-light: #f8fafc;
  --card-dark: rgba(15, 23, 42, 0.95);
  --card-light: #ffffff;
  --text-dark: #e5e7eb;
  --text-light: #020617;
  --muted: #94a3b8;
  --glow: rgba(56, 189, 248, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #020617, #000);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== LIGHT MODE ===== */
body.light {
  background: var(--bg-light);
  color: var(--text-light);
}

body.light .card {
  background: var(--card-light);
}

body.light nav {
  background: rgba(255, 255, 255, 0.9);
}

body.light footer {
  background: #e5e7eb;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 70px;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

nav h1 {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 1px;
}

nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 20px var(--glow);
}

#themeToggle {
  margin-left: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ===== SECTIONS ===== */
section {
  padding: 160px 14%;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: 1.2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(2,6,23,0.92), rgba(2,6,23,0.98)),
    url("https://images.unsplash.com/photo-1554224154-22dec7ec8818") center/cover;
}

.hero h2 {
  font-size: 4.2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 900px;
  margin-top: 30px;
  font-size: 1.15rem;
  line-height: 2;
}

/* ===== BUTTON ===== */
.btn {
  margin-top: 30px;
  padding: 14px 32px;
  border-radius: 30px;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  color: #020617;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px var(--glow);
}

/* ===== CARD ===== */
.card {
  background: var(--card-dark);
  padding: 60px;
  border-radius: 28px;
  margin-bottom: 120px;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.6s ease;
}

.card:hover {
  transform: perspective(1200px) rotateX(4deg) rotateY(-4deg);
}

/* ===== ABOUT ===== */
.about {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about img {
  width: 260px;
  height: 320px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(56,189,248,0.35);
}

/* ===== SKILLS ===== */
.skill {
  margin-bottom: 25px;
}

.bar {
  height: 8px;
  background: #020617;
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  box-shadow: 0 0 25px var(--glow);
  transition: width 1.5s ease;
}

/* ===== QUOTES ===== */
blockquote {
  font-size: 1.4rem;
  padding-left: 30px;
  border-left: 6px solid var(--primary);
  font-style: italic;
  color: #c7d2fe;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: var(--card-dark);
  padding: 50px;
  border-radius: 24px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
}

/* ===== CURSOR ===== */
.cursor {
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: 0.08s;
  z-index: 3000;
}

/* ===== FOOTER ===== */
footer {
  padding: 60px;
  text-align: center;
  background: #020617;
  color: var(--muted);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  nav {
    padding: 15px 20px;
    flex-direction: column;
  }
  section {
    padding: 120px 8%;
  }
  .hero h2 {
    font-size: 2.6rem;
  }
  .about {
    flex-direction: column;
  }
}
