
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}
.navbar {
 height: 80px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 10px 20px;
 position: relative;
 flex-wrap: wrap;
 z-index: 2;
 background: linear-gradient(120deg,#000,#000);
}
.logo {
margin-top: 0;
 margin-left: 10px;
 color: #fff;
 font-size: 26px;
 font-weight: bold;
 z-index: 100;
}
.logo img {
  height: 70px;
  background: transparent;
}
#menu-toggle {
 display: none;
}
.menu-icon {
 display: none;
 font-size: 30px;
 color: #fff;
 cursor: pointer;
}
.nav-links {
 display: flex;
 list-style: none;
}
.nav-links li {
 margin: 0px 15px;
}
.nav-links a {
 color: #fff;
 text-decoration: none;
 font-size: 18px;
 position: relative;
 transition: 0.4s;
 font-weight: bold;
}
.nav-links a::after {
 content: '';
 position: absolute;
 width: 0%;
 height: 2px;
 background: #ff7e5f;
 left: 0;
 bottom: -5px;
 transition: width 0.3s;
}
.nav-links a:hover::after {
 width: 100%;
}
.nav-links a:hover {
 color: #ff7e5f;
 text-shadow: 0px 0px 2px #ff7e5f;
}
.container {
  width: 80%;
  margin: 0 auto;
}
.home-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e2e2e2;
  text-align: center;
}
.hero-title {
  font-size: 50px;
  margin-bottom: 20px;
  animation: up 3s ease infinite;
}
.hero-title span {
  color: #ff7e5f;
}
.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
}
#btn {
  background-color: #ff7e5f;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  border-radius: 5px;
}
.btn:hover {
  background-color: #e14b4b;
}
.about {
      background-color: #f5f5f5;
      padding: 80px 20px;
      display: flex;
      justify-content: center;
      animation: fadeIn 1.2s ease-in-out both;
    }
.about-wrapper {
      max-width: 1000px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 40px;
    }
.about-image img {
      width: 280px;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      animation: popIn 1s ease-out;
    }
.about-content {
      flex: 1 1 400px;
      animation: slideFade 1.2s ease-in-out;
      height: 330px;
    }
.about-content h2 {
      font-size: 36px;
      color: #222;
      margin-bottom: 20px;
    }
.about-content p {
      font-size: 17px;
      color: #444;
      line-height: 1.7;
      margin-bottom: 15px;
    }
.skills-section {
  background-color: #fff;
  padding: 50px 0;
}
.skills-section h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 50px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}
.skill {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}
.skill-bar {
  background-color: #ddd;
  height: 10px;
  border-radius: 5px;
}
.progress {
  background-color: #ff7e5f;
  height: 100%;
  border-radius: 5px;
  transition: stroke-dashoffset 2s ease-in-out;
}
.skill:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.skill p {
  font-size: 18px;
  margin-bottom: 10px;
}
#experience {
  padding: 60px 20px;
  transition: background-color 0.5s, color 0.5s;
}
.experience-container {
  max-width: 850px;
  margin: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  height: 520px;
}
.experience-title {
  font-size: 2.5rem;
  text-align: center;
  color: #000;
  margin-bottom: 30px;
}
.experience-container p {
  line-height: 1.7;
  margin-bottom: 20px;
}
.Explore-btn {
  display: inline-block;
  margin-top: 30px;
  margin-left: 380px;
  padding: 12px 20px;
  background-color: #007bff;;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}
.projects-section {
  padding: 50px 20px;
  text-align: center;
  background: #EDECEA;
}
.projects-title {
      font-size: 32px;
      margin-bottom: 60px;
      color: #222;
    }
.project-filter {
  margin-bottom: 30px;
}
.projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 30px;
      max-width: 1200px;
      margin: auto;
    }
.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 370px;
}
.project-card img {
      width: 100%;
      height: 170px;
      border-radius: 10px;
      margin-bottom: 15px;
      transition: transform 0.4s ease;
    }
.project-card img:hover {
      transform: scale(1.03);
    }
.project-card h3 {
      font-size: 20px;
      color: #007bff;
      margin-bottom: 10px;
    }
.project-card p {
      font-size: 16px;
      color: #444;
    }
.card-buttons {
      margin-top: 15px;
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }
.card-buttons a {
      text-decoration: none;
      background: #007bff;
      color: white;
      padding: 10px 16px;
      border-radius: 6px;
      font-size: 14px;
      transition: background 0.3s;
    }
.card-buttons a:hover {
      background: #0056c6;
    }
.link {
  height: 50px;
}
.more {
  text-decoration: none;
  background: transparent;
  color: #000;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 20px;
  position: relative;
  top: 40px;
  border: 2px solid #000;
  font-weight: bold;
}
#button {
  background: transparent;
  margin: 5px 20px;
  padding: 10px 20px;
  position: relative;
  color: #ff7e5f;
  font-size: 18px;
  cursor: pointer;
  border: none;
  font-weight: bold;
}
#button::before,
#button::after,
#button span::before,
#button span::after {
  content: "";
  position: absolute;
  background: #ff7e5f;
  transition: all 0.4s ease;
}
#button::before {
 height: 2px;
 width: 0%;
 top: 0;
 left: 0;
}
#button::after {
 height: 0%;
 width: 2px;
 top: 0;
 right: 0;
}
#button span::before {
 height: 2px;
 width: 0%;
 bottom: 0;
 right: 0;
}
#button span::after {
 height: 0%;
 width: 2px;
 bottom: 0;
 left: 0;
}
#button:hover::before {
 width: 100%;
 box-shadow: 0 0 10px #ff7e5f;
}
#button:hover::after {
 height: 100%;
 box-shadow: 0 0 10px #ff7e5f;
}
#button:hover span::before {
 width: 100%;
 box-shadow: 0 0 10px #ff7e5f;
}
#button:hover span::after {
 height: 100%;
 box-shadow: 0 0 10px #ff7e5f;
}
#contact {
  height: 450px;
  background: #eef;
  align-items: center;
  justify-content: center;
}
.contact-form {
  background-color: #fff;
  padding: 25px;
  max-width: 700px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 50px;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
}
input, textarea {
  width: 100%;
  padding: 12px;
  margin: 3px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.contact_btn {
  background-color: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.contact_btn:hover {
  background-color: #1ebe5d;
}
.alert {
  display: none;
  margin-top: 15px;
  padding: 10px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 6px;
  text-align: center;
}
footer {
  text-align: center;
  background: #222;
  color: #fff;
  padding: 20px 0;
  margin-top: 30px;
}
.social-links a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
}
.social-links a:hover {
  color: #fff;
}

  /* Responsive Section */
@media (max-width: 768px) {
.contact-container {
  padding: 20px 20px;
  border-radius: 15px;
}
.section-title {
  font-size: 26px;
}
.contact-form input,
.contact-form textarea {
  font-size: 15px;
  padding: 12px;
}
.contact-btn {
  font-size: 15px;
  padding: 12px 18px;
}
.section-title {
  font-size: 22px;
}
.contact-form input,
.contact-form textarea {
  font-size: 14px;
}
.contact-btn {
  font-size: 14px;
  padding: 10px 16px;
}
.projects-title {
  font-size: 26px; 
}
.project-card {
  height: 420px;
}
.project-card img{
  height: 230px;
}

.project-filter {
  padding: 8px 14px;
  font-size: 13px; 
}
.menu-icon {
 z-index: 200;
 margin-left: 200px;
 display: block;
}
.nav-links {
 position: absolute;
 top: 80px;
 left: 0;
 right: 0;
 background:  linear-gradient(120deg,#000,#000);
 flex-direction: column;
 overflow: hidden;
 max-height: 0;
 transition: max-height 0.6s ease-in-out;
}
.nav-links li {
  margin: 20px 30px;
  opacity: 0;
  transform: translateY(-20px);
  animation: none;
}
#menu-toggle:checked ~ .nav-links {
  max-height: 400px;
  padding-bottom: 10px;
}
#menu-toggle:checked ~ .nav-links li {
  animation: slideIn 0.6s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

.about-wrapper {
  flex-direction: column;
  text-align: center;
}
.about-content h2 {
  font-size: 28px;
}
.about-image img {
  width: 380px;
}
.experience-title {
  font-size: 2rem;
}
.experience-container {
  padding: 15px;
  height: 1000px;
}
.Explore {
  width: 0;
  height: 30px;
}
.Explore-btn {
  width: 170px;
  position: relative;
  left: -280px;
}
.more {
  text-decoration: none;
  background: transparent;
  color: #000;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 20px;
  position: relative;
  top: 40px;
  border: 2px solid #000;
  font-weight: bold;
}
}

    /* toggle button */
.box {
  height: 0;
  width: 150px;
}
#mode-toggle {
  margin: 10px;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  position: relative;
  top: 100px;
  left: 0;
}

    /* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .home-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  text-align: center;
}
body.dark-mode .about {
  background: #0B0B0B;
  color: #fff;
}
body.dark-mode .about-image img:hover{
  box-shadow: 0 5px 30px #0FF;
  animation: popIn 1s ease-in;
  transition: all 0.5s ease;
}
body.dark-mode .about-content h2{
  color: #FFF;
}
body.dark-mode .about-content p {
  color: #FFF;
  text-shadow: 0 0 2px #0FF;
}
body.dark-mode .skills-section {
  background-color: #000;
}
body.dark-mode .skill p {
 color: #fff;
}
body.dark-mode .skill-bar {
  background-color: #333333;
}
body.dark-mode .skill-bar {
  background-color: #333333;
}
body.dark-mode #a:hover {
  box-shadow: 0 2px 50px #FF0093;
  border: 2px solid #FF0093;
}
body.dark-mode #b:hover {
  box-shadow: 0 2px 30px #00FF99;
  border: 2px solid #00FF99;
}
body.dark-mode #c:hover {
  box-shadow: 0 2px 30px #00F9FF;
  border: 2px solid #00F9FF;
}
body.dark-mode #d:hover {
  box-shadow: 0 2px 30px #FF0000;
  border: 2px solid #FF0000;
}
body.dark-mode #e:hover {
  box-shadow: 0 2px 30px #14FF00;
  border: 2px solid #00FF36;
}
body.dark-mode #f:hover {
  box-shadow: 0 2px 30px #FFEF00;
  border: 2px solid #FFEF00;
}
body.dark-mode #g:hover {
  box-shadow: 0 2px 30px #7C00FF;
  border: 2px solid #7C00FF;
}
body.dark-mode #h:hover {
  box-shadow: 0 2px 50px #003AFF;
  border: 2px solid #003AFF;
}
body.dark-mode #a p:hover {
  font-weight: bold;
}
body.dark-mode #b p:hover {
  font-weight: bold;
}
body.dark-mode #c p:hover {
  font-weight: bold;
}
body.dark-mode #d p:hover {
  font-weight: bold;
}
body.dark-mode #e p:hover {
  font-weight: bold;
}
body.dark-mode #f p:hover {
  font-weight: bold;
}
body.dark-mode #g p:hover {
  font-weight: bold;
}
body.dark-mode #h p:hover {
  font-weight: bold;
}
body.dark-mode .skill {
  background-color: #000;
}
body.dark-mode .projects-section {
  background: #111;
}
body.dark-mode .project-card {
  background: #222;
}
body.dark-mode .project-card p {
  color: #fff;
  text-shadow: 0 0 3px #fff;
}
body.dark-mode .projects-title {
  color: #fff;
}
body.dark-mode .project-card h3 {
  color: #007bff;
  text-shadow: 0 0 5px #007bff;
 }
body.dark-mode .contact-section {
  background: #000;
}
body.dark-mode .section-title{
  color: #fff;
}
body.dark-mode .experience-container {
  background: #000;
}
body.dark-mode .experience-container:hover{
  box-shadow: 0 4px 30px #FF00A2;
}
body.dark-mode .experience-title {
  color: #fff;
}
body.dark-mode .experience-container p {
  color: #fff;
}
body.dark-mode #contact {
  background: #222;
}
body.dark-mode .contact-form {
  background: #333;
}
body.dark-mode .contact-form:hover {
  box-shadow: 0 4px 30px #0FF;
  border: 2px solid ;
}
body.dark-mode .contact-form input:focus {
  box-shadow: 0 5px 20px #00FFFF;
  border: 2px solid #00FFFF;
  background: #fff;
}
body.dark-mode .contact-form textarea:focus {
  box-shadow: 0 5px 30px #00FFFF;
  border: 2px solid #00FFFF;
  background: #ffffff;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #222;
}
body.dark-mode .more {
  color: #0ff;
  border: 2px solid #0ff;
}
body.dark-mode .more:hover {
  color: #000;
  border: 1px solid #0ff;
  background: #0ff;
  box-shadow: 0 2px 30px #0ff;
  font-weight: bold;
}
body.dark-mode #mode-toggle {
  color: #000;
  background: #fff;
}

/* Animations */
@keyframes up {
  0%, 100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-20px);
  }
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
@keyframes zoomFade {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes fadeUp {
      0% { opacity: 0; transform: translateY(30px); }
      100% { opacity: 1; transform: translateY(0); }
    }
@keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
@keyframes popIn {
      0% { transform: scale(0.8); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }
@keyframes slideFade {
      0% { transform: translateY(20px); opacity: 0; }
      100% { transform: translateY(0); opacity: 1; }
    }
@keyframes pulse {
      0% { box-shadow: 0 0 0px rgba(102, 126, 234, 0.4); }
      50% { box-shadow: 0 0 12px rgba(102, 126, 234, 0.6); }
      100% { box-shadow: 0 0 0px rgba(102, 126, 234, 0.4); }
    }
@keyframes border-glow {
      0% { box-shadow: 0 0 0px rgba(118, 75, 162, 0.4); }
      50% { box-shadow: 0 0 10px rgba(118, 75, 162, 0.6); }
      100% { box-shadow: 0 0 0px rgba(118, 75, 162, 0.4); }
}
@keyframes border-glow-dark {
      0% { box-shadow: 0 0 0px rgba(238, 26, 123, 0.5); }
      50% { box-shadow: 0 2px 15px rgba(238, 26, 123, 1); }
      100% { box-shadow: 0 0 0px rgba(238, 26, 123, 0.5) }
    }
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  }