* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}


/* SEARCH CONTAINER */
.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.search-container input {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-container button {
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: #0097a7;
}

/* SECTIONS */
section {
  padding: 50px 20px;
  text-align: center;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background-color: #2c5364;
  color: white;
  font-size: 14px;
}

/* ANIMATIONS */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .navbar {
    padding: 10px 20px;
  }

  .search-container {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

  /* css for mobile device */
/* HAMBURGER MENU BUTTON */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* WHEN SCREEN IS SMALL */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: #203a43;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: left;
    padding-left: 20px;
  }
}


/* for showing skills dynamically*/

#home {
    color: white;
    position: relative;
    height: 400px;
    width: 100%;
    background-color: #007BFF;
  }

  .dynamic-text {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
  }
  .dynamic-text {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    color: yellow;
  }


  /* css for home section */
  /* Styling for #home section */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  width: 100%;
  background: linear-gradient(to right, #3b064e, #75070e35);
  padding: 0px;
  color: white;
  margin-top: 50px;
}

.home-content {
  flex: 1;
  text-align: left;
  padding: 20px;
  max-width: 600px;
}

.home-content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.home-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.dynamic-text {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
}

p {
  font-size: 18px;
  text-align: justify;
}

@media (max-width: 768px) {
  #home {
      flex-direction: column;
      text-align: center;
      height: auto;
  }

  .home-content {
      width: 100%;
      padding: 2px;
  }
}

/* About section */
#about {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;
  background: linear-gradient(to right, #f62ea9, #8c222835);
  padding: 0px;
  color: black;
}

.about-content {
  flex: 1;
  text-align: left;
  padding: 20px;
  max-width: 600px;
}

.about-content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.about-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  #about {
    flex-direction: column;
    height: auto;
    padding: 20px 15px;
    text-align: center;
  }

  .about-content {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    text-align: center;
  }

  .about-content h1 {
    font-size: 26px;
  }

  .about-content p {
    font-size: 16px;
    text-align: center;
  }
}



/* css for my work section */

#project {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(to right, #12e6db, #5f07d3);
}

.work-content {
  max-width: 900px;
  margin: auto;
}

.work-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.work-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 400px;
  text-align: left;
  transition: transform 0.3s ease-in-out;
}

.work-item:hover {
  transform: translateY(-5px);
}

.work-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-text {
  padding: 15px;
}

.work-text h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.work-text p {
  font-size: 16px;
  line-height: 1.5;
}

.resume-container {
  margin-top: 20px;
}

.resume-btn {
  padding: 12px 20px;
  font-size: 18px;
  border: none;
  background-color: #75070e;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.resume-btn:hover {
  background-color: #5c050b;
}

.resume-btn a {
  color: white;
  text-decoration: none;
}

/* Education Section */
#education {
  background: linear-gradient(to right, #743239, #4005f135);
  color: #ffffff;
  padding: 60px 20px;
  font-family: 'Work Sans', sans-serif;
}

.education-wrapper {
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

.education-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #030606;
}

.education-item {
  background-color: #d98c63;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.education-item:hover {
  transform: translateY(-4px);
}

.education-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #070f10;
}

.education-item p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .education-title {
    font-size: 26px;
  }

  .education-item {
    padding: 25px;
  }

  .education-item h3 {
    font-size: 18px;
  }

  .education-item p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  #education {
    padding: 40px 16px;
  }

  .education-wrapper {
    padding: 0 10px;
  }

  .education-title {
    font-size: 24px;
  }

  .education-item {
    padding: 16px;
  }

  .education-item h3 {
    font-size: 17px;
  }

  .education-item p {
    font-size: 14px;
  }
}


/* Skills Section Styles */
#skills {
  padding: 50px 20px;
  background: linear-gradient(to right, #5cf03f, #5f07d3);
  text-align: center;
}

.skills-content {
  max-width: 1100px;
  margin: auto;
}

.skills-content h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill-category {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  width: 100%;
  text-align: left;
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #333;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category ul li {
  font-size: 16px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.skill-category ul li::before {
  content: '\2022';
  color: #007BFF;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .skills-content h1 {
    font-size: 28px;
  }

  .skill-category {
    max-width: 100%;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  #skills {
    padding: 40px 10px;
  }

  .skills-content h1 {
    font-size: 24px;
  }

  .skill-category h2 {
    font-size: 18px;
  }

  .skill-category ul li {
    font-size: 14px;
  }
}


/* CONTACT SECTION */
#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #c2897f, #ff7bf4);
  color: white;
  min-height: 100vh;
  box-sizing: border-box;
}

/* CONTACT CARD */
.contact-content {
  background: #ffffff;
  color: #333;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

.contact-content:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* FORM ELEMENTS */
#contact-form .form-group {
  margin-bottom: 20px;
}

#contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  box-sizing: border-box;
}

#contact-form input:focus,
#contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.3);
  border-color: #00bcd4;
}

#contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.4);
  width: 100%;
}

.submit-btn:hover {
  background-color: #0097a7;
  box-shadow: 0 8px 16px rgba(0, 188, 212, 0.5);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: scale(0.98);
}

/* 🌐 RESPONSIVE */
@media (max-width: 768px) {
  .contact-content {
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: none;
  }

  .contact-content:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  #contact {
    padding: 60px 15px;
  }

  .submit-btn {
    font-size: 15px;
  }

  #contact-form input,
  #contact-form textarea {
    font-size: 15px;
    padding: 10px 12px;
  }

  #contact h1 {
    font-size: 22px;
    text-align: center;
  }
}



/* css for search result */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: white;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links a {
  display:inline-block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
  background-color: #555;
  transform: translateY(3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.nav-links a:active {
  background-color: #09daf1;
  transform: translateY(3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-container input {
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-container button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.search-container button:hover {
  background-color: #0056b3;
}



/* for profile picture */
/* HOME SECTION */
#home {
  padding: 20px 20px;
  background: linear-gradient(135deg, #510d57 0%, #92e59b 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 60vh;
}

/* WRAPPER */
.home-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

/* IMAGE CONTAINER WITH PERSPECTIVE */
.home-image {
  perspective: 5000px;
  flex-shrink: 0;
}

/* 3D IMAGE STYLING */
.home-image img {
  width: 300px;
  height: auto;
  border-radius: 20px;
  border: 4px solid cyan;
  background-color: #fff;
  object-fit: cover;
  box-shadow:
    0 10px 20px rgba(0, 255, 255, 0.3),
    0 15px 45px rgba(0, 255, 255, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.home-image img:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 255, 255, 0.5),
    0 30px 70px rgba(0, 255, 255, 0.3),
    0 40px 90px rgba(0, 0, 0, 0.4);
}

/* TEXT CONTENT */
.home-content {
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
}

.home-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.home-content p {
  font-size: 18px;
  color: #f4f4f4;
  line-height: 1.6;
}

.dynamic-text span {
  font-weight: bold;
  color: rgb(176, 246, 26);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .home-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .home-image img {
    width: 80%;
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
  }

  .home-image img:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
  }

  .home-content h1 {
    font-size: 28px;
  }

  .home-content p {
    font-size: 16px;
  }
}




/* Navbar Styles */

nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #123138;
  color: #fff;
  padding: 10px 15px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-title {
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.clicked {
  color: #00ffff;
  animation: pulse 0.3s;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-container input {
  padding: 5px;
}

.dark-mode-toggle {
  margin-left: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

/* Side Menu for Mobile */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 30%;
  height: 100%;
  background: #222;
  padding: 30px;
  transition: right 0.4s ease;
  z-index: 999;
}

.side-menu.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.mobile-nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(44, 45, 120, 0.5);
  display: none;
  z-index: 998;
}

.overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .nav-links,
  .search-container,
  .dark-mode-toggle {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}


.icon-list {
  display: flex;
  justify-content: center; /* Changed from space-evenly to center */
  align-items: center;
  list-style: none;
  gap: 10px; /* Add small spacing between icons */
  width: auto; /* Let it fit the content naturally */
  margin-top: 10px;
  padding: 0;
}

.icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px; /* Adjusted size to make spacing tighter */
  width: 50px;
  padding: 2px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  transition: 0.3s ease;
}

.icon-link:hover {
  font-size: 40px;
  color: #01FFF4;
  box-shadow: 0 0 20px #01FFF4;
}
