/* ===================== General ===================== */
body {
  background: #0f172a;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #020617;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  margin: 10px;
  text-decoration: none;
  font-weight: bold;
}

.navbar a.active {
  color: #38bdf8;
}

/* ===================== Mobile Header ===================== */
.mobile-header {
  display: none; /* Hidden on desktop */
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
}

.menu-icon {
  font-size: 28px;
  cursor: pointer;
  color: #38bdf8;
}

.mobile-name {
  font-weight: bold;
  font-size: 18px;
  color: #38bdf8;
}

/* ===================== Hero ===================== */

.hero {
  text-align: center;
  padding: 150px 20px 80px 20px;
}

.hero-profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  object-fit: cover;
  margin-bottom: 20px;
}

.hero-desc {
  max-width: 600px;
  margin: auto;
  margin-top: 15px;
}

/* ===================== Buttons ===================== */

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.buttons a {
  background: #38bdf8;
  padding: 12px 20px;
  color: black;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.buttons a[href="#contact"] {
  background: #10b981;
  color: white;
}

.buttons a:hover {
  transform: scale(1.1);
}

.buttons a[href="#contact"]:hover {
  background: #059669;
}

/* ===================== Stats ===================== */

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat h3 {
  font-size: 35px;
  color: #38bdf8;
}

/* ===================== Sections ===================== */

section {
  padding: 80px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Skills ===================== */

.skill {
  width: 60%;
  margin: auto;
  margin-bottom: 20px;
}

.skill p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.percent {
  color: #38bdf8;
  font-weight: bold;
}

.bar {
  background: #1e293b;
  height: 10px;
  border-radius: 10px;
}

.progress {
  height: 10px;
  background: #38bdf8;
  transition: 1s;
}

.html {width: 90%;}
.js {width: 85%;}
.php {width: 75%;}
.python {width: 80%;}
.sql {width: 85%;}
.powerbi {width: 95%;}

/* ===================== Projects ===================== */

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-buttons button {
  background: #38bdf8;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-buttons button:hover {
  transform: scale(1.05);
}

.projects-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  width: 260px;
  transition: 0.3s;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 25px #38bdf8;
}

.project-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.project-buttons a {
  background: #38bdf8;
  color: black;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
}

/* ===================== Experience ===================== */

#experience {
  background: #111827;
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(16,185,129,0.3);
}

.exp-item {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.exp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(56,189,248,0.5);
}

/* ===================== Education ===================== */

#education {
  background: #111827;
  border-radius: 12px;
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
  box-shadow: 0 0 25px rgba(56,189,248,0.3);
}

/* ===================== Certifications ===================== */

#certifications {
  background: #1e293b;
  border-radius: 12px;
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

.cert-item {
  background: #111827;
  padding: 20px;
  border-radius: 12px;
}

/* ===================== Activities ===================== */

#activities {
  background: #0f172a;
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  border-radius: 12px;
}

.activity-item {
  background: #111827;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* ===================== Contact ===================== */

#contact {
  background: #111827;
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(16,185,129,0.3);
}

.contact-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea{
  padding: 12px;
  border-radius: 8px;
  background:#0f172a;
  color:white;
  border:1px solid #38bdf8;
}

.contact-form button{
  padding: 12px;
  border: none;
  border-radius: 8px;
  background:#10b981;
  color:white;
  cursor:pointer;
  transition:0.3s;
}

.contact-form button:hover{
  background:#059669;
  transform:scale(1.05);
}

.contact-info{
  background:#0f172a;
  padding:20px;
  border-radius:12px;
}

.contact-info a{
  color:#38bdf8;
  text-decoration:none;
}

.contact-info a:hover{
  color:#10b981;
}

/* ===================== Responsive ===================== */

@media (max-width:768px){

  /* Show mobile header on small screens */
  .mobile-header {
    display: flex;
  }
  .mobile-name{
    padding-right: 50px;
  }

  /* Hide regular links by default */
  .navbar a {
    display: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #1e293b;
  }

  /* Show links when menu is active */
  .navbar.active a {
    display: block;
  }

  /* Navbar flex direction for small screens */
  .navbar{
    flex-direction: column;
  }

  /* Contact form full width */
  .contact-container{
    grid-template-columns:1fr;
  }

}

/* Ensure mobile header disappears on larger screens */
@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }
}