* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: #e2e8f0;
}

/* 🔝 NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

html {
  scroll-padding-top: 80px;
}

.logo {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links i {
  margin-right: 8px;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  transition: 0.3s;
  display: inline-block;
  padding: 5px;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* 🏠 HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
}

.hero h2 {
  color: #38bdf8;
  margin: 10px 0;
}

.hero p {
  margin-bottom: 20px;
}

.hero-content {
  pointer-events: auto;
}

/* 🔘 BUTTON */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #0ea5e9;
}

/* 📦 SECTIONS */
section {
  padding: 80px 10%;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 👨‍💻 ABOUT */
.about p {
  max-width: 600px;
  margin: auto;
}

/* ⚙️ SKILLS */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.skill {
  background: #1e293b;
  margin: 10px;
  padding: 15px 25px;
  border-radius: 20px;
  transition: 0.3s;
}

.skill:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* 💼 PROJECTS */
.projects {
  background: #020617;
}

.project-card {
  background: #1e293b;
  margin: 40px auto;
  padding: 20px;
  border-radius: 15px;
  max-width: 600px;
  transition: 0.5s;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img{
  max-height: 500px;
  max-width: 600px;
  object-fit: contain;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slide {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  display: none;
}

.slide.active {
  display: block;
}

.project-card h3 {
  color: #38bdf8;
  margin: 10px 0;
}

/* 📞 CONTACT */
.contact {
  background: #0f172a;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #e2e8f0;
  font-size: 22px;
  margin: 0 10px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: translateY(-5px);
}

/* 🔻 FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #020617;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {

  .nav-links {
    flex-direction: column;
    background: #020617;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

.profile-img {
  width: 250px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.profile-img:hover {
  transform: scale(1.2);
}

.hero-buttons {
  margin-top: 20px;
}

.btn-outline {
  border: 2px solid #38bdf8;
  padding: 10px 20px;
  margin-left: 10px;
  color: #38bdf8;
  text-decoration: none;
  border-radius: 25px;
}

.project-card img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.project-buttons {
  margin-top: 10px;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
}

form input, form textarea {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  border: none;
}

/* Light Mode */
.light-mode {
  background: #ffffff;
  color: #111;
}

.light-mode .navbar {
  background: #f1f5f9;
}

.light-mode .project-card {
  background: #e2e8f0;
}

#theme-toggle {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 18px;
  cursor: pointer;
  margin-left: 15px;
  transition: 0.3s;
}

#theme-toggle:hover {
  transform: scale(1.5);
}