/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background-color: #1c1c1c;
  color: #e0e0e0;
  transition: background-color 0.5s ease;
}
header {
  height: 100vh;
  padding: 16px 20px;
  background-image: url(asset/PHOTO.png);
  background-position: right;
  background-size: contain;
  background-repeat: no-repeat;
  width: 100vw;
}

body.dark-mode {
  background-color: #000;
  color: #ffffff;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff9800;
}

/* Header and Navigation */
header {
  position: relative;
  width: 100%;
  background-color: #282828;
  color: white;
  transition: background-color 0.5s ease;
}

header.dark-mode {
  background-color: #1a1a1a;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
}

nav img {
  height: 50px;
  animation: logo-fade-in 2s ease-out forwards;
}
header nav img {
  object-fit: contain;
  filter: invert(70%) sepia(96%) saturate(558%) hue-rotate(359deg)
    brightness(103%) contrast(106%);
}
nav ul {
  list-style-type: none;
  animation: fade-in 2s ease-in forwards;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ff9800;
}

.search {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #fff;
  padding: 5px;
  transition: border-color 0.3s ease;
}

.search input {
  border: none;
  background: none;
  outline: none;
  color: white;
  padding: 5px;
}

.search i {
  color: white;
  margin-left: 5px;
}
/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background-color: #1c1c1c;
  color: #e0e0e0;
  transition: background-color 0.5s ease;
}

/* Header and Navigation */
nav {
  position: fixed;
  top: 0;
  width: 90%;
  z-index: 1000;
 /*  background-color: #1f1e1e; */
  /* padding: 20px 50px; */
  transition: background-color 0.5s ease;
}

/* Spacer to offset the navbar height */
.spacer {
  height: 90px; /* Adjust based on the height of your navbar */
}

.content {
  padding: 50px;
}


/* Landing Page */
/* .landing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 50px;
  background: url('asset/cyber1.png') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
} */

.landing:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.intro {
  position: relative;
  z-index: 2;
}

.intro h3 {
  font-size: 3rem;
  color: white;
  padding-left: 0%;
  padding-top: 10%;
  animation: fade-in 2s ease-in forwards;
}

.intro span {
  color: #ff9800;
}

.intro button {
  padding: 10px 20px;
  border: aqua;
  background-color: #ff9800;
  color: white;
  cursor: pointer;

  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: button-bounce 2s infinite;
}

.intro button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
}

.socials {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-top: 100px;
}

.socials .line {
  width: 50px;
  height: 2px;
  background-color: white;
  margin-right: 10px;
}

.socials a {
  color: white;
  font-size: 2rem;
  margin: 0 10px;
  transition: transform 0.3s, color 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
  color: #ff9800;
}

/* Section Styles */
section {
  padding: 50px;
  transition: background-color 0.5s ease, color 0.5s ease;
}

section h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  animation: fade-up 1s ease-in forwards;
}

section .description p {
  text-align: justify;
  line-height: 1.5;
  animation: fade-in 2s ease-in forwards;
}

.section-title {
  position: relative;
  animation: fade-in 2s ease-in forwards;
}

/* Skill Cards */
/* .skills .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.skill-card {
  width: 200px;
  height: 200px;
  background-color: #333;
  margin: 20px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background-color 0.5s ease;
  animation: fade-in 1.5s ease-in forwards;
}

.skill-card:hover {
  transform: scale(1.05);
  background-color: #444;
}

.skill-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s;
}

.skill-card:hover img {
  transform: scale(1.1);
}

.skill-card h2 {
  text-align: center;
  margin: 10px 0;
  color: white;
}
 */
 
.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 100px;
}

/* .skills h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fbfbfb;
  font-family: "Libre Baskerville", serif;
} */

.cards {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
  gap: 2.5vh;
}

.skill-card {
  height: 15vw;
  width: 15vw;
  background-color: #3d3e42;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 2.5vh;
  transition: all ease 0.5s;
}

.skill-card:hover {
  background-color: #fec86a;
}

.skill-card img {
  height: 7.5vw;
  width: 7.5vw;
  object-fit: contain;
}

.skill-card h2 {
  font-size: 24px;
  font-weight: 400;
  color: #fbfbfb;
  text-align: center;
}
/* Portfolio Cards */
.portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.portfolio-card {
  width: 300px;
  height: 200px;
  position: relative;
  overflow: hidden;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background-color 0.5s ease;
  animation: fade-in 1.5s ease-in forwards;
  background-color: transparent; /* Ensure the initial background is transparent */
}

.portfolio-card:hover {
  transform: scale(1.05);
  background-color: #444;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.3s;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s, background-color 0.5s ease;
}

.portfolio-card:hover .overlay {
  transform: translateY(0);
}

/* Experience and Education */
.education h1{
color: #1a1a1a;
}
.exp, .education {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #f9f9f9;
  transition: background-color 0.5s ease, box-shadow 0.3s ease;
  animation: fade-in 2s ease-in forwards;
}

.exp:hover, .education:hover {
  background-color: #eee;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.exp h2, .education h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #333;
}

.exp-desc, .education-desc {
  margin-top: 10px;
  color: #555;
}

/* Contact */
.contact {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px;
  transition: background-color 0.5s ease;
}

.contact-card {
  display: flex;
  align-items: center;
  margin: 10px;
}

.contact-card i {
  font-size: 2rem;
  margin-right: 10px;
  color: #ff9800;
  transition: color 0.3s ease;
}

.contact-card a {
  color: #333;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #ff9800;
}

.contact-card{
  height: 35px;
  width: 150px;
  margin-top: 2.5vh;
  margin-left: 0vw;
  background-color: transparent;
  border: 2px solid #fec86a;
  border-radius: 8px;
  text-shadow: #fec86a;
  color: #fec86a;
  font-size: 16px;
  transition: all ease 0.5s;
  animation: button-bounce 2s infinite
}
.contact-card a {
  color:#fec86a;
}

.contact-card:hover {
  background-color: #ec781ad3;
  
}
.contact-card a:hover {
 color: #000;
 padding: 10px 10px;
}


/* Animations */
@keyframes fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes logo-fade-in {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes button-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive Styles */

/* Mobile */
@media (max-width: 767px) {
  /* General Adjustments */
  body, html {
    overflow-x: hidden;
    font-size: 16px; /* Slightly smaller base font size */
    line-height: 1.5;
  }

  header {
    padding: 10px 20px; /* Reduced padding */
    background-size: cover; /* Ensure background covers the area */
  }

@media (max-width: 767px) {
  nav {
    position: fixed; /* Fixed position to stay at the top */
    top: 0;
    width: 90%;
    z-index: 1000;
    background-color: #282828; /* Background color for visibility */
    display: flex;
    justify-content: space-between; /* Distribute space evenly */
    align-items: center;
    padding: 0px 0px; /* Reduced padding */
    overflow: hidden; /* Prevent overflow */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  }

  nav img {
    height: 40px; /* Smaller logo size */
  }

  nav ul {
    display: flex;
    align-items: left;
    justify-content:left;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%; /* Full width for horizontal alignment */
    overflow-x: auto; /* Scrollable if needed */
  }

  nav ul li {
    margin: 0 0px; /* Space between items */
  }

  nav ul li a {
    text-size-adjust: 10px;
    color: white;
    padding: 10px 15px; /* Padding for touch-friendly */
    display: inline-block;
  }

  .spacer {
    height: 60px; /* Adjust based on the height of your navbar */
  }

  .content {
    padding: 70px 20px 20px 20px; /* Offset top padding to prevent overlap */
  }

  /* Other existing mobile styles... */

  /* Ensure content does not overlap with the navbar */
  body, html {
    padding-top: 22px; /* Equal to nav height */
  }
}


  .landing {
    padding: 20px;
    height: auto; /* Auto height for dynamic content */
    text-align: center;
    background-size: cover; /* Ensure background covers the area */
  }

  .intro h3 {
    font-size: 1.8rem;
    margin-top: 20px;
  }

  .intro button {
    font-size: 0.9rem;
    margin-top: 15px;
  }

  .skills .cards,
  .portfolio-cards {
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
   /*  margin-top: 20px; */
  }

  .skill-card,
  .portfolio-card {
    width: 100%;
    margin: 15px 0;
    height: auto; /* Auto height for dynamic content */
  }

  .skill-card img,
  .portfolio-card img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
  }

  .contact {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
  }

  .contact-card {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 10px 0;
  }

  .contact-card i {
    font-size: 1.5rem;
  }

  .contact-card a {
    font-size: 0.9rem;
  }

  .socials {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .socials .line {
    width: 30px;
    margin-bottom: 10px;
  }

  .socials a {
    margin: 5px 0;
    font-size: 1.5rem;
  }

  /* Footer and Other Sections */
  footer, section, .content, .exp, .education {
    padding: 20px 10px; /* Consistent padding for all sections */
    text-align: center; /* Center align text */
  }

  .exp h2, .education h2 {
    font-size: 1.5rem;
  }

  .exp-desc, .education-desc {
    margin-top: 10px;
    font-size: 0.9rem;
  }
}


/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  nav {
      padding: 20px 30px;
  }

 /*  .landing {
      padding: 50px 30px;
  } */

  .intro h3 {
      font-size: 2.5rem;
  }

  .skills .cards,
  .portfolio-cards {
      justify-content: space-between;
  }

  .skill-card,
  .portfolio-card {
      width: 45%;
  }

  .contact {
      justify-content: space-between;
  }

  .contact-card {
      width: 45%;
  }
}
