/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  color: #fff;

  /* Organic animated gradient */
  background: radial-gradient(at 20% 20%, #6a5acd, transparent 60%),
              radial-gradient(at 80% 30%, #8a6fb8, transparent 60%),
              radial-gradient(at 30% 70%, #d98e4e, transparent 60%),
              radial-gradient(at 70% 80%, #ffb347, transparent 60%);
  background-color: #2a2a2a;
  background-size: 200% 200%;
  background-attachment: fixed;
  animation: gradientFloat 25s ease-in-out infinite alternate;
  overflow-x: hidden;
}

@keyframes gradientFloat {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 50% 30%; }
  50%  { background-position: 100% 60%; }
  75%  { background-position: 40% 90%; }
  100% { background-position: 0% 50%; }
}

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-fill {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
}

/* HEADER */
#main-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent; transition: background 0.6s ease;
}
#main-header.scrolled {
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
}
#main-header .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
}
#header-name a { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }
#header-name a:hover { color: #FFD369; }
#header-name { opacity: 0; transition: opacity .3s; }
#header-nav { opacity: 0; transition: opacity .3s; }
#main-header nav ul { list-style: none; display: flex; gap: 22px; }
#main-header nav ul li a {
  color: #fff; text-decoration: none; font-size: .95rem; font-weight: bold;
}
#main-header nav ul li a:hover { color: #FFD369; }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; text-align: center; }
.hero-content { width: 100%; }
.hero-name { font-size: 5.5rem; font-weight: 800; transition: opacity .3s; }
.hero-nav { margin-top: 14px; transition: opacity .3s; }
.hero-nav ul { list-style: none; display: flex; gap: 26px; justify-content: center; }
.hero-nav a { color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: bold; }
.hero-nav a:hover { color: #FFD369; }
.hero-subtitle {
  margin-top: 14px; font-size: 1.2rem; color: #eaeaea;
  min-height: 28px; transition: opacity .3s;
}
.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  background: #ddd;
}

/* HEADINGS */
h2 { font-size: 2.5rem; margin-bottom: 26px; text-align: center; }

/* ABOUT */
#about { padding: 4rem 2rem; text-align: left; }
#about p {
  max-width: 900px;
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #f5f5f5;
}
.about-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.about-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  background: #ddd;
}

/* SKILLS */
#skills { padding: 4rem 2rem; text-align: center; }
.skills-category { margin-bottom: 3rem; }
.skills-category h3 {
  margin-bottom: 1.5rem; font-size: 1.5rem; color: #FFD369;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}
.skill-card {
  background: #fff;
  color: #333;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
  font-size: 0.9rem;
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.skill-card i, .skill-card img {
  font-size: 32px;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.skill-card img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.skill-card:hover img {
  filter: grayscale(0%);
}
.skill-card p { font-size: 0.9rem; margin: 0; }

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 24px;
}
.project-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  text-decoration: none;
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.project-card h3 {
  font-size: 1.3rem; margin-bottom: 10px; color: #000;
}
.project-card p {
  font-size: .96rem; line-height: 1.5; margin-bottom: 14px; color: #444;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span {
  background: #f0f0f0; color: #333;
  padding: 5px 10px; border-radius: 999px;
  font-size: .78rem; white-space: nowrap;
}

/* CONTACT */
.contact-icons {
  margin-top: 12px;
  display: flex; gap: 32px;
  justify-content: center; align-items: center;
}
.contact-icons a {
  font-size: 32px; color: #fff;
  transition: transform .2s, color .2s;
}
.contact-icons a:hover { transform: scale(1.18); }
.contact-icons .fa-envelope:hover { color: #e74c3c; }
.contact-icons .fa-linkedin:hover { color: #0a66c2; }
.contact-icons .fa-github:hover { color: #333; }

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.35);
}
