/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: #e0e0e0;
  min-height: 100vh;
  padding-top: 60px;
  line-height: 1.6;
}
html {
  scroll-behavior: smooth;
}

/* ---------------- NAVIGATION ----------------- */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 2rem;
  height: 60px;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.my-portfolio {
  flex: 1;
  order: 2;
  text-align: left;
}
.my-portfolio a {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-content {
  display: flex;
  gap: 2rem;
  order: 3;
}

.ul-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: 10rem;
}

.ul-content li {
  list-style: none;
}

.option,
.resume {
  display: flex;
  gap: 2rem;
}

.option a,
.resume a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.option a:hover {
  color: #00aaff;
}

.resume {
  background-color: #7134f6;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.resume:hover {
  transform: scale(1.05);
  background-color: #5729b5;
}

/* ---------------- HERO SECTION ----------------- */
.hero {
  padding: 3rem 2rem;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 2rem;

  /* Make text on left, image on right regardless of HTML order */
  flex-direction: row-reverse;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #d1d1d1;
}

.my-image {
  flex: 1;
  height: 350px;
  max-width: 350px;
  min-height: 250px;
  background-image: url("myimage.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 4px solid #f57d0d;
  box-shadow: 0 0 15px #f57d0d;
}
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffffff80, transparent);
  margin: 2rem 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
}
.get-in-touch,.browse-project{
  background-color: #00aaff;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  margin-right: 1rem;
  transition: background-color 0.3s ease;
}
/* ---------------- PROJECT SECTION ----------------- */
h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 3rem;
  color: #ffffff;
}

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

.project-grid {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  width: 30%;
  border-radius: 10px;
  min-height: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

.project-level-name {
  font-weight: bold;
  color: #f2f2f2;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-view {
  margin-top: 1.5rem;
}

.project-view a {
  text-decoration: none;
  color: white;
  background-color: #00aaff;
  padding: 0.5rem 1rem;
  margin-right: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.project-view a:hover {
  background-color: #0077cc;
}

/* ---------------- FOOTER ----------------- */
footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer p {
  font-size: 1rem;
  margin: 0.5rem;
  color: #ccc;
}

footer a {
  color: #00aaff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ---------------- RESPONSIVE ----------------- */
@media (max-width: 1024px) {
  .hero-text {
    margin-right: 1rem;
  }
  .my-image {
    height: 300px;
    max-width: 300px;
    
  }
  .project-grid {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .my-portfolio {
    flex: none;
    order: 2;
    flex-grow: 1;
    text-align: center;
    margin-left: 0;
  }

  .nav-content {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    z-index: 999;
    order: 3;
  }

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

  .ul-content {
    flex-direction: column;
    gap: 1rem;
    margin-left: 0;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* For mobile: stack hero with image below text */
  .hero-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .my-image {
    margin-top: 0.8rem;
    width: 250px;
    height: 250px;
    
  }

  .project-grid {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* about me section */
.about-section {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 2px solid #f57d0d;
  border-bottom: 2px solid #f57d0d;
  margin: 2rem auto;
  width: 90%;
  max-width: 1000px;
  border-radius: 10px;
}

.about-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d1d1;
  text-align: justify;
}
.download-cv{
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.download-cv a{
  text-decoration: none;
  color: white;
  background-color: #00aaff;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* skill section */
.skills-section {
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 2rem;
  border-top: 2px solid #f57d0d;
  border-bottom: 2px solid #f57d0d;
  border-radius: 10px;
}

.skills-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-box {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: default;
}

.skill-box:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
/* Tooltip */
.skill-box::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.skill-box:hover::after {
  opacity: 1;
}
.skill-box i,
.skill-box img {
  margin-right: 8px;
  font-size: 1.3rem;
  vertical-align: middle;
}

.skill-box img {
  height: 1.3rem;
}

/* contact me section */
.contact-section {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e); /* Match body */
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-intro {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #ccc;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  background-color: #fff;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  resize: none;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 8px #f57d0d;
}

.contact-form button {
  padding: 1rem;
  background-color: #f57d0d;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #d65100;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #ccc;
}

.contact-info a {
  color: #00aaff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    text-align: center;
  }
}
