/* === FONTS & VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Space+Mono&display=swap');

:root {
  --bg:     #08080f;
  --bg2:    #10101e;
  --cyan:   #00f0ff;
  --dim:    #00b8c2;
  --glow:   rgba(0, 240, 255, 0.15);
  --text:   #ddddf0;
  --muted:  #7777aa;
  --border: rgba(255,255,255,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--dim); }

h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 20px var(--glow);
}

/* === NAVBAR === */
nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--glow);
}

.links { display: flex; gap: 6px; }

.links a {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}

.links a:hover {
  color: var(--cyan);
  background: var(--glow);
}

/* === SECTIONS === */
section {
  max-width: 1050px;
  margin: 70px auto;
  padding: 55px 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  animation: fadeUp 0.7s ease both;
}

/* Stagger each section's fade-in */
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

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

/* === HOME === */
#home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 80vh;
}

.intro {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--cyan);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.tagline {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  background: var(--cyan);
  color: #08080f;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow);
  color: #08080f;
}

.btn.outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn.outline:hover {
  background: var(--glow);
  color: var(--cyan);
}

/* === PROFILE PHOTO === */
.profile {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 30px var(--glow);
  flex-shrink: 0;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px var(--glow); }
  50%       { box-shadow: 0 0 40px rgba(0,240,255,0.35); }
}

/* === PROJECTS === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,240,255,0.3);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.card:hover img { transform: scale(1.05); }

.coming {
  min-height: 170px;
  background: linear-gradient(135deg, #0e0e20, #181830);
  display: flex;
  align-items: stretch;
}

.card-body { padding: 20px; }

.tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 3px 10px;
  background: var(--glow);
  color: var(--cyan);
  border-radius: 99px;
  border: 1px solid rgba(0,240,255,0.2);
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* === SKILLS === */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }

.skill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.skill-top span:first-child { color: #fff; font-weight: 700; }
.skill-top span:last-child  { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--cyan); }

.bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--dim), var(--cyan));
  border-radius: 99px;
  box-shadow: 0 0 8px var(--glow);
  animation: grow 1.4s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes grow {
  from { width: 0 !important; }
}

/* === ABOUT === */
#about p { color: var(--muted); font-size: 15px; max-width: 700px; margin: 0 auto; text-align: center; }

/* === CONTACT === */
.sub { text-align: center; color: var(--muted); font-size: 14px; margin-top: -28px; margin-bottom: 30px; }

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

form input, form select, form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

form input:focus, form select:focus, form textarea:focus {
  border-color: var(--dim);
}

form select option { background: var(--bg2); }

form button {
  padding: 13px;
  background: var(--cyan);
  color: #08080f;
  border: none;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow);
}

/* === FOOTER === */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 20px;
}

footer p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

footer div { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

footer a {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

footer a:hover { color: var(--cyan); }

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .links { gap: 2px; }
  .links a { font-size: 12px; padding: 5px 10px; }

  #home { flex-direction: column; text-align: center; min-height: auto; }
  .buttons { justify-content: center; }
  .profile { width: 150px; height: 150px; }

  section { margin: 40px 16px; padding: 36px 20px; }
}

@media (max-width: 480px) {
  .links a { display: none; }
  .links a:nth-child(-n+3) { display: block; }
  h1 { font-size: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
}
