@import url('https://fonts.googleapis.com/css2?family=Italianno&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Judson:wght@400;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Judson', serif;
  background-color: #E8DCC8;
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  background-color: #8B0000;
  padding: 20px 60px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.navbar li {
  display: inline-block;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: opacity 0.3s ease;
  padding: 10px 20px;
  border-radius: 5px;
}

.navbar a:hover {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 60px;
  min-height: 100vh;
}

.title-my {
  font-family: 'Italianno', cursive;
  font-size: 120px;
  color: #8B0000;
  margin: 0;
  line-height: 1;
}

.title-portfolio {
  font-family: 'Judson', serif;
      font-size: 200px;
      margin: -90px 30px 0px;
      color: rgb(157, 12, 12);
}

/* Profile Section */
.profile-container {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  padding: 20px 0;
}

.profile-info {
  flex-shrink: 0;
}

.profile-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.row {
  flex: 1;
}

.row .col h1 {
  font-size: 75px;
  font-family: 'Italianno', cursive;
  color: #8B0000;
  margin-bottom: 20px;
}

.row .col p {
  font-family: 'Judson', serif;
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.teks-align {
  text-align: justify;
}

/* Skills Section */
.skills-horizontall-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  margin-bottom: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skills-horizontall-list::-webkit-scrollbar {
  display: none;
}

.skill-card {
  background-color: #F5E6D3;
  min-width: 400px;
  height: 200px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid #8B0000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.skill-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.skill-card:hover .skill-content {
  transform: translateY(-100%);
  opacity: 0;
}

.skill-title {
  font-size: 32px;
  color: #8B0000;
  font-weight: bold;
  text-align: center;
}

.skill-description-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #F5E6D3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.skill-card:hover .skill-description-overlay {
  transform: translateY(0);
  opacity: 1;
}

.skill-description-overlay p {
  font-size: 18px;
  text-align: center;
  color: #333;
  line-height: 1.6;
}

/* Designs Section */
.designs-section {
  padding: 40px 60px;
  background-color: #E8DCC8;
}

.designs-main-title {
  font-size: 72px;
  color: #8B0000;
  margin-bottom: 40px;
  font-weight: bold;
  font-family: 'Judson', serif;
}

.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.design-card {
  background-color: #8B0000;
  border-radius: 30px;
  padding: 30px;
  height: 400px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.design-card:hover .card-content {
  transform: translateY(-100%);
  opacity: 0;
}

.card-title {
  color: white;
  font-size: 42px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: normal;
}

.card-image {
  background-color: #2C2C2C;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}

.card-image img {
  width: 100%;
  height: 100%;
 object-fit: contain;
}

.card-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #8B0000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.design-card:hover .card-description {
  transform: translateY(0);
  opacity: 1;
}

.description-title {
  color: white;
  font-size: 32px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

.description-text {
  color: white;
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
}

/* Scroll Button */
.scroll-button {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 35px solid white;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-button:hover {
  opacity: 0.8;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .navbar {
    padding: 20px 40px;
  }

  .navbar ul {
    gap: 20px;
  }

  .hero {
    padding: 40px;
  }

  .title-my,
  .title-portfolio {
    font-size: 80px;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .row .col h1 {
    font-size: 60px;
  }

  .row .col p {
    font-size: 18px;
  }

  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .designs-section {
    padding: 40px 40px;
  }

  .designs-main-title {
    font-size: 60px;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .navbar ul {
    gap: 10px;
    flex-wrap: wrap;
  }

  .navbar a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .hero {
    padding: 20px;
    margin-top: 100px;
  }

  .title-my,
  .title-portfolio {
    font-size: 50px;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .row .col h1 {
    font-size: 40px;
  }

  .row .col p {
    font-size: 16px;
  }

  .skill-card {
    min-width: 300px;
    height: 180px;
    padding: 20px;
  }

  .skill-title {
    font-size: 24px;
  }

  .skill-description-overlay p {
    font-size: 14px;
  }

  .designs-grid {
    grid-template-columns: 1fr;
  }

  .designs-section {
    padding: 20px;
  }

  .designs-main-title {
    font-size: 40px;
  }

  .card-title {
    font-size: 32px;
  }

  .description-title {
    font-size: 24px;
  }

  .description-text {
    font-size: 14px;
  }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

 .contact-section {
        padding: 10px 20px;
      }

      .contact-container {
        flex-direction: column;
        gap: 40px;
      }

      .contact-right {
        text-align: left;
      }

      .contact-info {
        flex-direction: column;
        gap: 20px;
      }


    html {
      scroll-behavior: smooth;
    }

    .contact-section {
      padding: 80px 60px;
      background-color: #E8DCC8;
    }

    .contact-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
    }

    .contact-left {
      flex: 1;
    }

    .contact-title {
      font-family: 'Italianno', cursive;
      font-size: 80px;
      color: #8B0000;
      margin: 0;
      line-height: 1;
    }

    .contact-subtitle {
      font-family: 'Judson', serif;
      font-size: 48px;
      color: rgb(157, 12, 12);
      margin: -20px 0 30px 0;
      font-weight: bold;
    }

    .contact-info {
      display: flex;
      gap: 30px;
    }

    .contact-item {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .contact-label {
      font-size: 24px;
      color: rgb(157, 12, 12);
      font-weight: bold;
      margin: 5px 0;
    }

    .contact-value {
      font-size: 20px;
      color:rgb(157, 12, 12);
      margin-top: -30px,5px;
    }

    .contact-right {
      flex: 1; 
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .social-title {
      font-family: 'Judson', serif;
      font-size: 48px;
      color:rgb(157, 12, 12);
      margin: 0  0;
      font-weight: bold;
    }

    .social-info {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .social-label {
      font-size: 24px;
      color: rgb(157, 12, 12);
      font-weight: bold;
      margin: 0;
    }

    .social-value {
      font-size: 20px;
      color: rgb(157, 12, 12);
      margin: 0;
    }

.designs-section {
  animation: fadeIn 0.8s ease-in-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}