@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow-x: hidden;
  background-color: #0e0e1a;
  color: #e0e0e0;
}

/* BANNER & HEADER */
.banner {
  position: relative;
  min-height: 100vh;
  padding: 100px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  transition: 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #00ffff;
  z-index: 1000;
}

header .logo {
  font-size: 2em;
  font-weight: 700;
  color: #00e5ff;
  text-decoration: none;
}

header .logo span {
  color: #39ff14;
}

header ul {
  display: flex;
  gap: 40px;
}

header ul li {
  list-style: none;
}

header ul li a {
  font-size: 1.2em;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  transition: 0.5s;
}

header ul li a:hover,
header ul li a.active {
  border-bottom: 5px solid #39ff14;
  border-radius: 2px;
}

/* CONTENT SECTION */
.content {
  max-width: 900px;
  margin-top: 120px;
}

.content h2 {
  font-size: 5.5em;
  color: #00e5ff;
}

.content h2 span {
  color: #39ff14;
}

.content p {
  font-size: 1.2em;
  color: #ccc;
  margin: 10px 0;
}

.content button {
  background: #00e5ff;
  color: #fff;
  padding: 15px 35px;
  font-size: 1.25em;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 20px;
  transition: 0.3s;
}

.content button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 229, 255, 0.4);
}

.content button.chat {
  background: transparent;
  color: #00e5ff;
}

/* DARK MODE TOGGLE */
.dayNight {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: #1f1f2e;
  border-radius: 50%;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: 0.5s;
  color: #00e5ff;
}

.dayNight ion-icon:nth-child(2),
.banner.night .dayNight ion-icon:nth-child(1) {
  display: none;
}

.banner.night .dayNight ion-icon:nth-child(2) {
  display: block;
}

.banner.night {
  background: #121212;
}

.banner.night .content h2,
.banner.night .content p,
.banner.night .content button.chat,
.banner.night header .logo,
.banner.night header ul li a {
  color: #ffffff;
}

/* SOCIAL BUTTONS */
.social-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.5em;
  background: #00e5ff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  text-decoration: none;
}

.social:hover {
  transform: scale(1.1);
  background: #39ff14;
}

/* ABOUT SECTION */
.content.about h2 {
  font-size: 4em;
  margin-bottom: 20px;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-top: 30px;
}

.about-img img {
  width: 250px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.about-text {
  max-width: 600px;
}

.about-text p {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 15px;
}

.banner.night .about-text p {
  color: #bbb;
}

.about-text button {
  background: #00e5ff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.about-text button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

/* SKILL BARS */
.skills {
  margin-top: 40px;
}

.skills h3 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #39ff14;
}

.skill-bar {
  margin-bottom: 15px;
}

.skill-bar p {
  margin-bottom: 5px;
  font-weight: 500;
  color: #00e5ff;
}

.bar {
  height: 20px;
  width: 100%;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
}

.bar .progress {
  height: 100%;
  width: 0;
  background: #39ff14;
  border-radius: 10px;
  animation: fill 2s forwards;
}

@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* WORK SECTION */
.work-content {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1300px;
  margin: auto;
  color: #00e5ff;
}

.work-content h2 {
  font-size: 3rem;
  color: #39ff14;
  margin-bottom: 2.5rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.project-card {
  position: relative;
  perspective: 1000px;
  min-height: 400px;
  transition: transform 0.3s ease;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.25);
}

.card-front {
  background: #1c1c2b;
  color: #fff;
  text-align: center;
}

.card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card-front h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.card-back {
  background: #0d0d18;
  color: #39ff14;
  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 1.5rem;
  text-align: center;
}

/* MORE PROJECTS SECTION */
.more-projects {
  padding-top: 4rem;
}

.more-projects h3 {
  font-size: 1.6rem;
  color: #00e5ff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .banner {
    padding: 100px 30px;
  }

  header {
    flex-direction: column;
    padding: 20px 30px;
  }

  header ul {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
  }

  .content h2 {
    font-size: 3em;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    width: 200px;
  }

  .about-text {
    padding: 0 20px;
  }
}

/* CONTACT SECTION */
.contact-content {
  text-align: left;
  color: #ffffff;
  padding: 120px 50px 50px;
}

.contact-content h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: #00e5ff;
  position: relative;
  display: inline-block;
}

.contact-content h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 60px;
  background: #39ff14;
  margin-top: 10px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 3rem;
}

.map-container {
  flex: 1 1 45%;
  min-width: 300px;
  height: 400px;
}

.contact-right {
  flex: 1 1 45%;
  min-width: 300px;
}

.contact-info {
  font-size: 1.1em;
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  transition: 0.3s ease;
}

.contact-info p:hover {
  transform: translateX(5px);
  color: #39ff14;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #555;
  border-radius: 10px;
  font-size: 1em;
  background-color: #222;
  color: #fff;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.contact-form button {
  background: #00e5ff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1.1em;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}



@media screen and (max-width: 1024px) {
    .work-content {
        padding: 2rem 1.5rem;
    }

    .projects {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 0 20px;
        gap: 20px;
    }

    .project-card {
        min-height: 350px;
    }

    .card-front img {
        height: 160px;
    }

    .card-front h3 {
        font-size: 1.1rem;
    }

    .card-back {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 10px;
    }

    .banner {
        padding: 100px 20px;
    }

    header ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .content h2 {
        font-size: 2.5em;
    }

    .projects {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .project-card {
        min-height: 320px;
    }

    .card-front img {
        height: 150px;
    }

    .card-front h3 {
        font-size: 1rem;
    }

    .card-back {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .projects {
        gap: 15px;
    }

    .card-front img {
        height: 130px;
    }

    .card-front h3 {
        font-size: 0.95rem;
    }

    .card-back {
        font-size: 0.8rem;
    }
}
