/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

section {
  padding: 100px 40px;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1f1f1f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00feba, #5b86e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  height: 2px;
  width: 0%;
  position: absolute;
  left: 0;
  bottom: -5px;
  background: #00feba;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.home-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #00feba, #5b86e5, #1d2b64, #f8ffae);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  text-align: center;
  color: white;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.home-section img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid white;
  margin-top: 20px;
  transition: transform 0.5s ease;
}

.home-section img:hover {
  transform: scale(1.1);
}

h1, h2, h3 {
  margin-bottom: 20px;
}

/* About Section */
.about-section {
  background: #1c1c1e;
}

/* Skills Section */
.skills-section {
  background: #232323;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 20px;
}

.skills-list li {
  list-style: none;
  background: #5b86e5;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(91, 134, 229, 0.4);
  transition: transform 0.3s ease;
}

.skills-list li:hover {
  transform: scale(1.1);
}

/* Projects Section */
.projects-section {
  background: #1e1e2f;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 30px;
  justify-content: center;
}

.project {
  background: #2c2c3e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.project:hover {
  transform: scale(1.05) rotateX(5deg) rotateY(5deg);
}

.project img {
  width: 100%;
  display: block;
}

.project h3 {
  padding: 15px;
  text-align: center;
  background: #393e46;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: #101820;
  display: flex;
  flex-direction: column;
  align-items: center;
}

form {
  max-width: 500px;
  width: 100%;
  background: #1f1f2e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

form input, form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #5b86e5;
  padding: 10px;
  margin: 10px 0;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

form input:focus, form textarea:focus {
  border-bottom: 2px solid #00feba;
  outline: none;
}

button {
  background: linear-gradient(45deg, #00feba, #5b86e5);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
  transition: transform 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #ccc;
}
