/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #fff;
  background: #0d1117;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13,17,23,0.9);
  z-index: 100;
}

.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
}

.nav ul li {
  margin: 0 15px;
}

.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #6c63ff;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  min-height: 100vh;
  background: linear-gradient(270deg, #6c63ff, #ff6584, #6c63ff);
  background-size: 600% 600%;
  animation: gradientBG 20s ease infinite;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientBG {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

.hero .logo {
  width: 120px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  color: #6c63ff;
}

/* Projects */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background: #161b22;
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(108,99,255,0.5);
}

/* Contact */
.contact a {
  color: #ff6584;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #0b0f14;
}

footer .social a {
  color: #6c63ff;
  margin: 0 8px;
  text-decoration: none;
}

footer .social a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .project-list {
    flex-direction: column;
    align-items: center;
  }
}
