:root {
  --bg: #0b0f14;
  --card: #131a22;
  --accent: #00f7ff;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

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

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 247, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 247, 255, 0.1), transparent 40%);
  animation: floatBg 12s infinite alternate;
}

@keyframes floatBg {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.profile {
  width: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  z-index: 1;
}

h1, 
p {
  z-index: 1;
}

/* ================= SECTIONS ================= */
.section {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px;
}

h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

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

.project-card {
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Stack on hover */
.stack {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .stack {
  opacity: 1;
  transform: translateY(0);
}

.stack i {
  font-size: 28px;
  color: var(--accent);
}

/* ================= ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-up {
  animation: slideUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

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

/* ================= TECH STACK ================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tech {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.tech i {
  font-size: 36px;
  color: var(--accent);
}

.tech span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ================= CONTACT ================= */
.contact-item {
  display: block;
  margin-bottom: 12px;
}

.contact-item a {
  display: inline-block;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-decoration: none;
}

.section a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.section a:hover {
  opacity: 0.8;
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.github-link i {
  font-size: 1.2rem;
  color: #ffffff;
}

.github-link a {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.github-link a:hover {
  text-decoration: underline;
}

/* ================= SOCIAL ICONS ================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}

.social-icons a,
.social-icons a:visited,
.social-icons a:active {
  text-decoration: none;
  color: inherit;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Glass effect */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-icons i {
  font-size: 1.4rem;
  color: #ffffff;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Brand hover colors */
.social-icons a:hover .devicon-github-original {
  color: #d1d1d1;
}

.social-icons a:hover .devicon-instagram-plain {
  color: #e1306c;
  }
