/* ========== GENERAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f172a;
  color: #f1f5f9;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ====== NAVBAR ====== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Logo ===== */
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #38bdf8;
  cursor: pointer;
  user-select: none;
}

.logo span {
  color: #facc15;
}

/* ===== Links ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #f1f5f9;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1101;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #38bdf8;
  border-radius: 3px;
  transition: 0.4s;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(35deg) translateY(11px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-35deg) translateY(-11px);
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: #1e293b;
    text-align: center;
    padding: 1rem 0;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.8rem;
    width: 100%;
    display: block;
    font-size: 1.1rem;
  }

  .nav-links a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #facc15;
  }

  .navbar {
    justify-content: space-between;
  }
}


/* ========== HERO SECTION ========== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  text-align: center;
  padding: 100px 1rem;
}

/* ===== Profile Image ===== */
.hero img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 5px solid #38bdf8;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5),
    0 0 80px rgba(56, 189, 248, 0.2);
  margin-bottom: 1.5rem;
  transition: 0.5s ease;
}

.hero img:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 60px rgba(250, 204, 21, 0.5);
}

/* ===== Hero Text ===== */
.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}

.hero h2 span {
  color: #38bdf8;
}

.hero p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 600px;
}

/* ========== IMPROVED BUTTON ========== */
.btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  padding: 0.9rem 2.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.4s ease;
  font-size: 1.05rem;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  letter-spacing: 0.5px;
}

.btn:hover {
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #0f172a;
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.5);
  transform: translateY(-3px) scale(1.05);
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 1rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #facc15;
}


/* ========== PROJECTS ========== */
.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  text-align: center;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card h3 {
  color: #38bdf8;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-card a {
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.project-card a:hover {
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #0f172a;
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.2);
}

/* ========== EXPERIENCE ========== */
.experience .exp-card {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 14px;
  padding: 2rem;
  line-height: 1.7;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.exp-card h3 {
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.exp-date {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.exp-card ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #cbd5e1;
}

/* ========== EDUCATION ========== */
.education .edu-card {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  text-align: center;
}

.edu-card h3 {
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.edu-card .degree {
  color: #cbd5e1;
}

.edu-card .edu-date {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ========== ACHIEVEMENTS ========== */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.ach-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: 0.3s;
}

.ach-card i {
  font-size: 2rem;
  color: #facc15;
  margin-bottom: 0.8rem;
}

.ach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 25px rgba(250, 204, 21, 0.2);
}

/* ========== FADE-IN ANIMATION ========== */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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


/* ========== CONTACT ========== */
.contact {
  text-align: center;
  margin-bottom: 3rem;
}

.contact p {
  color: #cbd5e1;
}

.contact .social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 1.8rem;
  transition: 0.3s;
}

.contact a:hover {
  color: #facc15;
  transform: translateY(-5px);
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 1rem;
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.9rem;
}
