body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}
body {
  --card-bg: #ffffff;
}

body.dark-mode {
  --card-bg: #2a2a2a;
}


header {
  position: relative;
  overflow: visible;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/background1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2.5px); /* 👈 adjust blur intensity here */
  z-index: 0;
  transform: scale(1.1); /* prevents edges from being visible due to blur */
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  align-content: space-around;
}

.profile-img {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.header-text {
  max-width: 600px;
  text-align: left;
}

nav {
  margin-top: 10px;
}

nav a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .header-text {
    text-align: center;
  }
}


section {
  padding: 20px;
}
.overlay {
  position: relative;
  z-index: 1;
  
  background-color: rgba(0, 0, 0, 0.4); /* optional: helps text contrast */
  padding: 20px;
  border-radius: 10px;
}




.nav-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

#main-menu {
  display: flex;
  gap: 15px;
}

#main-menu a {
  text-decoration: none;
  color: #44dc12;
  font-weight: bold;
}

@media (max-width: 768px) {
  #main-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 40px;
    right: 0;
    padding: 10px;
    border-radius: 6px;
  }

  #main-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-text {
    width: 100%;
    text-align: center;
  }

  .nav-wrapper {
    justify-content: center;
    margin-top: 10px;
  }
}




.right-button {
  margin-left: 15px;
}

.right-button .btn {
  background-color: #ffffff;
  color: #222;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}

.right-button .btn:hover {
  background-color: #ddd;
}




.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.project-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
}








.footer {
  background-color: #222;
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  text-align: left;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h3 {
  margin-bottom: 10px;
  color: #44dc12;
}

.footer-section p {
  margin: 5px 0;
}

.footer a {
  color: #44dc12;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer i {
  margin-right: 8px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
}

.back-to-top {
  display: inline-block;
  margin-bottom: 10px;
  color: #44dc12;
  font-weight: bold;
}

.btn {
  display: inline-block;
  background-color: #13141361;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #36b80e;
}









/* 🔘 Dark Mode Toggle Switch */
.dark-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.dark-switch input {
  display: none;
}

.dark-switch .slider {
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 34px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.dark-switch .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.dark-switch input:checked + .slider {
  background-color: #44dc12;
}

.dark-switch input:checked + .slider::before {
  transform: translateX(26px);
}

body.dark-mode {
  background-color: #1c1c1c;
  color:#5d953b;
}

body.dark-mode .blog-card {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

body.dark-mode .blog-card p {
  color: #ccc;
}

body.dark-mode .btn {
  background-color: #44dc12;
  color: white;
}

body.dark-mode .header-text h1,
body.dark-mode .header-text p {
  color: white;
}

body.dark-mode .footer {
  background-color: #111;
}
/* Global link styles for dark mode */
body.dark-mode a {
  color: #44dc12; /* or any bright color that fits your theme */
}

body.dark-mode a:hover {
  text-decoration: underline;
  color: #6df944; /* a lighter green for hover */
}


.section-heading {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 1.8em;
  color: #44dc12;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-heading i {
  font-size: 1.4em;
  color: #44dc12;
}


.section-divider {
  height: 2px;
  background: #44dc12;
  margin: 40px auto;
  width: 80%;
  border-radius: 4px;
}



.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.cert-card {
  background:#dcecd9;
  border-radius: 8px;
  padding: 15px;
  width: 230px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card img,
.cert-icon {
  height: 70px;
  margin-bottom: 10px;
}

.cert-icon {
  font-size: 60px;
  color: #44dc12;
}

.cert-card p {
  font-weight: bold;
  color: #333;
  margin: 0;
}


.education-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.edu-icon {
  font-size: 60px;
  color:#58775759;
}

.edu-info h3 {
  margin: 0;
  color: #5e6c00e0;
  font-size: 1.3em;
}

.edu-info p {
  margin: 5px 0;
  color: #333;
}

.skills-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  background: #0000009e;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.tab:hover {
  background: #36b80e;
}

.skills-dropdown {
  display: none;
  background: #fff;
  border-left: 4px solid #44dc12;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.skills-dropdown ul {
  padding-left: 20px;
  list-style: none;
}

.skills-dropdown ul li {
  padding: 6px 0;
  font-size: 0.95em;
  color: #333;
}


#projects-strip {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

#projects-strip h2 {
  font-size: 26px;
  color: #222;
  margin-bottom: 20px;
  text-align: left;
}

.project-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.project-box {
  background: #fff;
  border-left: 4px solid #44dc12;
  border-radius: 8px;
  padding: 15px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.project-box:hover {
  transform: translateY(-4px);
}

.project-box h3 {
  margin: 0 0 6px;
  color: #44dc12;
  font-size: 18px;
}

.project-box p {
  font-size: 14px;
  color: #555;
  margin: 0 0 8px;
}

.project-link {
  font-size: 14px;
  color: #44dc12;
  text-decoration: none;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
}

.experience-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background-color: #72717bc9;
  color: #ffffff;
  padding: 20px;
  border-radius: 14px;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* TEXT */
.exp-info {
  flex: 1;
}

.exp-icon {
  font-size: 2rem;
  color: #44dc12;
  margin-bottom: 8px;
}

.exp-info h3 {
  color: #44dc12;
}

/* SMALL IMAGE RIGHT */
.exp-image {
  display: flex;
  align-items: center;
}

.exp-image img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #44dc12;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .experience-card {
    flex-direction: column;
    text-align: center;
  }

  .exp-image {
    justify-content: center;
    margin-top: 15px;
  }
}
