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

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a2e);
  color: #ffffff;
  text-align: center;
  overflow-x: hidden;
}

/* SECTION SPACING */
section {
  padding: 80px 20px;
}

/* HEADINGS */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4da6ff, #00ffd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #eaeaea;
}

/* HERO */
.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #bbb;
}

.hero span {
  display: block;
  margin-top: 12px;
  color: #888;
  font-size: 0.95rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

/* CARDS (skills + projects) */
.grid div,
.grid a {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* GLOW EFFECT */
.grid div::before,
.grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(77,166,255,0.2), transparent);
  opacity: 0;
  transition: 0.4s;
}

/* HOVER EFFECT */
.grid div:hover,
.grid a:hover {
  transform: translateY(-8px) scale(1.02);
  border: 1px solid rgba(77,166,255,0.5);
  box-shadow: 0 10px 30px rgba(77,166,255,0.2);
}

.grid div:hover::before,
.grid a:hover::before {
  opacity: 1;
}

/* LINKS */
a {
  color: #4da6ff;
  text-decoration: none;
}

a:hover {
  color: #00ffd5;
}

/* CONTACT */
.contact p {
  margin: 10px 0;
  color: #ccc;
}

/* SCROLL ANIMATION ENHANCEMENT */
section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}