@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --primary-color: #1a237e;
  --secondary-color: #4a148c;
  --accent-color: #ffd54f;
  --text-color: #212121;
  --bg-color: #fafafa;
  --light-gray: #e0e0e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Styles */
header {
  background-color: transparent;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  transition: background-color 0.8s;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container h3 {
  display: none;
}

.nav-list {
  display: flex;
  list-style-type: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  padding: 0.7rem;
  background-color: transparent;

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 5s ease;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: transparent;

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Typography Styles */
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.5px;
}

header .navbar h3 {
  color: var(--text-color);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1rem;
  text-align: center;
  position: relative;
}

.location::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 20px auto;
  transition: transform 0.3s ease;
}

.location:hover::after {
  transform: translateY(-5px);
}
.location {
  text-align: center;
}

h2 {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

#projects h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 50px;
  background: var(--accent-color);
  margin: 5px auto;
  border-radius: 50px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #424242;
}

#home {
  margin-top: 9rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}
#projects h2 {
  text-align: center;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

/* Skills Section Styles */
.skills {
  margin-top: 60px;
}

.skills h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.skills h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 50px;
  background: var(--accent-color);
  margin: 5px auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background-color: white;

  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  transform: translateY(2.8em);
  align-items: center;
  margin: -30px auto 20px;
  position: relative;
  z-index: 1;
}

.skill-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-color);
}

.skill-content {
  padding: 20px;
  text-align: center;
}

.skill-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

.skill-description {
  font-size: 0.9rem;
  color: var(--text-color);
}

.skill-level {
  height: 2px;
  background-color: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
}

/* Footer Styles */
.footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin-right: 2rem;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style-type: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight {
  background: linear-gradient(
    120deg,
    rgba(255, 213, 79, 0.4) 0%,
    rgba(255, 213, 79, 0.4) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 90%;
  transition: background-size 0.3s ease;
  padding: 0 4px;
}

.highlight:hover {
  background-size: 100% 100%;
}

.decorative-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--light-gray),
    transparent
  );
  margin: 40px 0;
}

.iconSosmed {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.iconSosmed i {
  margin-top: 1rem;
  font-size: 2rem;
  color: #000;
  transition: all 0.3s;
}

.iconSosmed i:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.iconSosmed a {
  text-decoration: none;
}

#contact h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 50px;
  background: var(--accent-color);
  border-radius: 50px;
}
#contact button {
  background: var(--primary-color);
  border: none;
  padding: 1rem 2rem;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
}
form input,
form textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: "Roboto", sans-serif;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--secondary-color);
}
form textarea {
  min-height: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
    height: 20px;
  }

  header {
    background-color: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.6s, box-shadow 0.5s;
  }

  header.scrolled {
    background-color: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-container h3 {
    color: var(--bg-color);
    margin: 0 5px;
    font-size: 1.8rem;
    display: block;
  }
  header.scrolled .nav-container h3 {
    margin: 0 5px;
    display: block;
  }
  header.show-background .nav-container h3,
  header.show-background .menu-toggle {
    color: var(--bg-color);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.29em;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #1a237e, #3949ab, #5c6bc0);
    border-radius: 0;
    padding: 1rem;
    transition: top 0.6s ease;
  }

  .nav-list.show {
    display: flex;
  }
  header.show-background {
    background: linear-gradient(45deg, #1a237e, #3949ab, #5c6bc0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-link {
    color: var(--bg-color);
    font-size: 0.9rem;
  }
  .nav-link.active {
    color: var(--bg-color);
    background-color: rgba(255, 255, 255, 0.2);
  }

  .nav-item {
    margin: 0.5rem -0.5rem;
  }

  h2 {
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2,
  .projects h2,
  .skills h2 {
    font-size: 1.6rem;
  }

  #contact p,
  #contact h2 {
    text-align: left;
  }

  .skill-title {
    font-size: 1rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }
  #home {
    margin-top: 3rem;
  }
  .iconSosmed i {
    font-size: 1.5rem;
  }

  .footer-section {
    flex-basis: 100%;
    margin-right: 0;
    margin-bottom: 2rem;
  }
  img {
    filter: invert(81%) sepia(42%) saturate(707%) hue-rotate(341deg)
      brightness(105%) contrast(103%);
  }
}

.section {
  display: none;
}

.section.active {
  display: block;
}
