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

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0f19;
  color: white;
  position: relative;
  overflow-x: hidden;
}

/* =========================
   NAVBAR OFFSET FIX
========================= */
section {
  scroll-margin-top: 140px;
}

/* =========================
   BACKGROUND GLOW
========================= */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  filter: blur(140px);
  z-index: -1;
}

body::before {
  top: -200px;
  left: -200px;
  background: rgba(0, 245, 212, 0.18);
}

body::after {
  bottom: -200px;
  right: -200px;
  background: rgba(0, 187, 249, 0.18);
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 24px;
  font-weight: 700;
}

.logo span {
  color: #00f5d4;
}
.logo a {
  text-decoration: none;
  color: white;
}

/* Navbar links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  opacity: 0.8;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 1;
  color: #00f5d4;
}

/* =========================
   BURGER MENU
========================= */
.menu-container {
  position: relative;
}

.burger {
  font-size: 28px;
  cursor: pointer;
  color: #00f5d4;
  padding: 6px 12px;
  border-radius: 12px;
  transition: 0.3s;
}

.burger:hover {
  background: rgba(0, 245, 212, 0.15);
}

.dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  width: 200px;
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
  display: none;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.dropdown a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: 0.3s;
}

.dropdown a:hover {
  color: #00f5d4;
  opacity: 1;
}

.dropdown.show {
  display: flex;
}

/* =========================
   BUTTONS
========================= */
.btn {
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
  color: black;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 245, 212, 0.35);
}

.btn-outline {
  border: 2px solid #00f5d4;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #00f5d4;
  color: black;
}

/* CV Button */
.btn-cv {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.btn-cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 110px 10% 80px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  color: #00f5d4;
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.4);

  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   HERO SECTION
========================= */
.profile-section {
  padding: 160px 10% 100px;
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  padding: 50px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0, 245, 212, 0.14);
  overflow: hidden;
}

.profile-image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 300px;
}

.profile-image img {
  width: 100%;
  object-fit: contain;
}

.profile-content {
  margin-left: 280px;
  margin-right: 60px;
}

.profile-content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #00f5d4;
}

.profile-content h4 {
  margin-top: 10px;
  font-size: 18px;
  opacity: 0.85;
}

.profile-content p {
  margin-top: 18px;
  line-height: 1.8;
  opacity: 0.75;
  font-size: 15px;
  max-width: 560px;
}

.profile-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  gap: 34px;
  margin-top: 28px;
}


/* =========================
   ABOUT
========================= */
.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: nowrap;
}

.about p {
  flex: 1;
  max-width: 600px;
  line-height: 1.8;
  opacity: 0.8;
  font-size: 16px;
}

.about-box {
  flex: 1;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.35s;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 245, 212, 0.25);
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.35s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(0, 245, 212, 0.25);
}

/* Tags */
.tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 50px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: #00f5d4;
  transition: 0.3s;
}

.tags span:hover {
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
  color: black;
}

/* Project Buttons */
.project-links {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.project-btn.github {
  border: 1px solid #00f5d4;
  color: #00f5d4;
}

.project-btn.github:hover {
  background: #00f5d4;
  color: black;
}

.project-btn.demo {
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
  color: black;
}

.project-btn.demo:hover {
  transform: translateY(-3px);
}

/* =========================
   EXPERIENCE
========================= */
.experience-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  transition: 0.3s;
}

.experience-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 245, 212, 0.25);
}

.experience-box h3 {
  color: #00f5d4;
  margin-bottom: 10px;
}

/* =========================
   EDUCATION
========================= */
.education-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.education-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 187, 249, 0.25);
}

.education-box h3 {
  color: #00f5d4;
  margin-bottom: 8px;
}

/* =========================
   CERTIFICATES
========================= */
.certificates {
  text-align: left;
}

.cert-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  transition: 0.3s;
}

.cert-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(118, 75, 162, 0.35);
}

.cert-box h3 {
  color: #00f5d4;
  margin-bottom: 6px;
}

/* =========================
   CONTACT
========================= */
.contact-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-icons {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-icons a {
  font-size: 40px;
  color: #00f5d4;
  transition: 0.3s ease;
  text-decoration: none;
}

.contact-icons a:hover {
  transform: scale(1.15);
  color: #00bbf9;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 25px;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   REVEAL ANIMATION
========================= */
.skill-card,
.project-card,
.about-box,
.experience-box,
.education-box,
.cert-box {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.skill-card.active,
.project-card.active,
.about-box.active,
.experience-box.active,
.education-box.active,
.cert-box.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 25px;
  }

  .profile-image {
    position: relative;
    width: 220px;
    margin-bottom: 20px;
  }

  .profile-content {
    margin-left: 0;
    margin-right: 0;
  }

  .profile-buttons,
  .stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about {
    flex-direction: column;
  }

  .about-box {
    max-width: 100%;
  }
}