body{background-color: black;
     color: #00a4a4;
     margin: 0;
     cursor: url('images/cursor.png') 4 4, auto;
}
a{text-decoration: none;}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(152, 246, 246, 0.2),
    transparent 60%
  );
  z-index: 0;
  transition: background 0.1s ease-out;
}


/* NAVBAR */
/* ...existing code... */
.navbar {
  background-color: #161b22;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  align-items: center;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Add this */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0 auto;      /* Center horizontally */
  padding: 0;
  align-items: center;
  justify-content: center; /* Ensure centering */
}
/* ...existing code... */
.nav-link {
  color: teal;
  text-decoration: none;
  
  font-weight: bold;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

/* Navbar underline slide effect */
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  align-items: center;
  width: 0;
  height: 3px;
  background: teal;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link.active,
.nav-link:hover {
  background-color: teal;
  color: black;
  font-weight: bold;
  box-shadow: 0 0 15px teal;
  transform: scale(1.05);
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  user-select: none;
  transition: color 0.3s ease;
}

.hamburger:hover {
  animation: bounce 0.6s ease infinite;
  color: teal;
}

/* MAIN CONTENT FOR PORTFOLIO */
.portfolio-content {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s forwards ease-out;
  animation-delay: 0.2s;
}

.portfolio-content .left img {
  width: 300px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 15px teal;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.portfolio-content .left img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 4px teal;
}

.portfolio-content .right {
  max-width: 500px;
  flex: 1 1 300px;
}

/* MAIN CONTENT FOR ABOUT */

.about-content {
  margin-top: 100px;
  padding: 2rem 4rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s forwards ease-out;
  animation-delay: 0.2s;
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}


.about-content section {
  margin-bottom: 2rem;
  background-color: #161b22;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px teal;
}

.about-content h1,
.about-content h2 {
  color: teal;
}

.about-content a {
  color: #58a6ff;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  width: 94%;
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #0d1117;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 255, 255, 0.1);
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideInFooter 1s forwards ease-out;
  animation-delay: 0.5s;
}

.footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  word-wrap: break-word;
}

.footer a {
  color: teal;
  text-decoration: none;
  margin: 0 0.3rem;
  transition: color 0.3s ease;
}

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

/* CONTACT PAGE */
.contact-content {
  margin-top: 100px;
  padding: 2rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s forwards ease-out;
  animation-delay: 0.2s;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.contact-content section {
  background-color: #161b22;
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 0 10px teal;
  max-width: 600px;
  width: 100%;
  color: white;
  line-height: 1.6;
  box-sizing: border-box;
}


.contact-content section {
  background-color: #161b22;
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 0 10px teal;
  max-width: 600px;
  width: 100%;
  color: white;
  line-height: 1.6;
}

/* FEEDBACK PAGE */
.feedback-content {
  margin-top: 100px;
  padding: 2rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s forwards ease-out;
  animation-delay: 0.2s;
}

.feedback-content section {
  background-color: #161b22;
  padding: 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 0 10px teal;
  max-width: 600px;
  width: 100%;
  color: white;
}

.feedback-content h1 {
  color: teal;
  margin-bottom: 1rem;
  text-align: center;
}

.feedback-content form {
  display: flex;
  flex-direction: column;
}

.feedback-content input,
.feedback-content textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 5px;
  border: none;
  background-color: #0d1117;
  color: white;
  box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.1);
  resize: vertical;
  min-height: 40px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feedback-content input:focus,
.feedback-content textarea:focus {
  box-shadow: 0 0 8px teal;
  border-color: teal;
  outline: none;
}

.feedback-content textarea {
  min-height: 100px;
}

.feedback-content button {
  padding: 0.75rem;
  background-color: teal;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.feedback-content button:hover {
  background-color: #00a4a4;
  box-shadow: 0 0 15px teal;
  transform: scale(1.05);
}

/* RESPONSIVE STYLES */
@media (max-width: 900px) {
  .portfolio-content {
    flex-direction: column;
    align-items: center;
    
  }

  .portfolio-content .right {
    max-width: 100%;
  }

  .about-content {
    padding: 2rem 2rem;
  }

  .contact-content,
  .feedback-content {
    padding: 2rem 2rem;
  }

  .footer {
    width: 95%;
    padding: 1rem 1rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 1rem 1rem;
    align-items: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .portfolio-content .left img {
    width: 90vw;
    max-width: 300px;
    
  }

  .portfolio-content .right {
    padding: 0 1rem;
  }

  .about-content {
    padding: 1rem 1rem;
  }

  .contact-content,
  .feedback-content {
    padding: 1rem 1rem;
  }

  .footer {
    font-size: 0.85rem;
    padding: 1rem 1rem;
  }

  .footer p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* ANIMATIONS */

/* Page content fade-in and slide-up */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer fade-in and slide-up */
@keyframes fadeSlideInFooter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger icon subtle bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.portfolio-content .left {
  position: relative;
  overflow: hidden;
}

.lefts{height: 200px;
       width: 200px;
       border-radius: 10px;
       }
.about-photo{height: 150px;
             width: 200px;
             border-radius: 10px;}

#mappic{height: 150px;
        width: 150px;
      border-radius: 10px;}
#mappic:hover{transform: scale(1.1);}

/* EXTRA RESPONSIVE TWEAKS (do not affect design) */
* {
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

input, textarea, button {
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
}

.portfolio-content .right,
.about-content section,
.contact-content section,
.feedback-content section {
  word-break: break-word;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .footer p {
    font-size: 0.75rem;
  }
}
@media (max-width: 600px) {
  .about-content {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .about-content section {
    padding: 1rem;
  }
}

.certificates-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.certificate-card {
  background-color: #111;
  border: 1px solid teal;
  padding: 1rem;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 0 10px teal;
  text-align: center;
  transition: transform 0.3s ease;
}
.certificate-card:hover {
  transform: scale(1.05);
}
.certificate-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.page-title {
  text-align: center;
  color: teal;
  margin-top: 2rem;
  font-size: 2.5rem;
}

.feedbacks-display {
  padding: 2rem;
}

.feedbacks-entry {
  background-color: #1a1a1a;
  border-left: 5px solid teal;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  color: white;
}

.feedbacks-form {
  background-color: #111;
  padding: 2rem;
  border-top: 2px solid teal;
  margin-top: 2rem;
}

.feedbacks-form input,
.feedbacks-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: #222;
  border: 1px solid teal;
  color: white;
  border-radius: 5px;
  font-size: 1rem;
}

.feedbacks-form button {
  background-color: teal;
  border: none;
  padding: 0.8rem 1.5rem;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.feedbacks-form button:hover {
  background-color: #0bb;
}
