/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f172a;
  color: #e2e8f0;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Navbar ===== */
.nav-wrap {
  background: #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: #38bdf8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 280px;
}

.hero-left h1 {
  font-size: 2.4rem;
  margin: 10px 0;
  color: #38bdf8;
}

.hero-sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 25px;
  max-width: 500px;
}

.hero-cta .btn {
  background: #38bdf8;
  color: #0f172a;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin-right: 10px;
}

.hero-cta .btn.outline {
  border: 2px solid #38bdf8;
  background: none;
  color: #38bdf8;
}

.hero-cta .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.hero-right img {
  width: 330px;
  border-radius: 15px;
  background: #1e293b;
  padding: 8px;
}

/* ===== Skills Section ===== */
#skills {
  text-align: center;
  padding: 60px 20px;
}

.section-title {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 30px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ===== Skills Section ===== */
#skills {
  text-align: center;
  padding: 60px 20px;
  background-color: #0f172a;
}

.section-title {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 30px;
}

/* Skills Container */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Each Skill Card */
.skill {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 130px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  cursor: default;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(40px);
}

/* Hover effect */
.skill:hover {
  background: #334155;
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Animation visible state */
.skill.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .skill {
    min-width: 100px;
    font-size: 0.9rem;
    padding: 12px 18px;
  }
  .section-title {
    font-size: 1.6rem;
  }
}


/* ===== About Section ===== */
.about-section {
  margin-top: 60px;
}

.about-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #1e293b;
  border-radius: 15px;
  padding: 20px;
  gap: 20px;
}

.about-img {
  width: 260px;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  color: #cbd5e1;
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-thumb img {
  width: 100%;
  border-radius: 10px 10px 0 0;
  display: block;
}

.project-body {
  padding: 15px;
}

.project-body h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.badge {
  background: #334155;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-right: 5px;
}

/* ===== Contact Section ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.form-row {
  display: flex;
  gap: 10px;
}

.contact-form input,
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
}

.btn {
  cursor: pointer;
}

.form-msg {
  text-align: center;
  color: #38bdf8;
}

/* ===== Footer ===== */
.footer {
  margin-top: 70px;
  background: #1e293b;
  padding: 40px 0;
  text-align: center;
}

.footer-socials a {
  color: #38bdf8;
  font-size: 1.3rem;
  margin: 0 8px;
  transition: 0.3s;
}

.footer-socials a:hover {
  color: #7dd3fc;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-right img {
    width: 280px;
    margin-top: 20px;
  }

  .nav-links {
    display: none;
  }
}
/* Skills hidden before scroll */
.skill {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease-in-out;
}

/* When visible */
.skill.visible {
  opacity: 1;
  transform: translateY(0);
}

