@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

:root {
  /* Main Colors */
  --yellow: #f6c962;
  --blue: #9cc5cc;
  --cream: #fdf2c5;
  --light-blue: #dfe8f3;
  --purple-light: #bbc5fa;
  --purple-dark: #644995;
  --background: #fffcf2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--background);
}

nav {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  margin: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo img {
  width: 50px;
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #999;
  transition: color 0.3s ease;
  font-size: 16px;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-links a.active {
  color: #9cc5cc;
  font-weight: bold;
}

.container {
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.greeting {
  background: linear-gradient(to right, var(--yellow), var(--blue));
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}

.greeting h3 {
  color: #644995;
  font-size: 18px;
  font-weight: 500;
}

.main-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #000;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.main-content p {
  font-size: 18px;
  color: #333;
  line-height: 1.5;
  font-weight: 300;
}

/* Update profile image styles */
.profile-image {
  width: 500px;
  height: 400px;
  overflow: 400px;
  position: relative;
  border-radius: 50%;
}

.profile-image img {
  width: 120%;
  height: 140%;
  object-fit: contain;
  position: relative;
}

/* Update about image styles */
.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  /* Removing border-radius and background */
}

.wave {
  display: inline-block;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

.animate-word {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.animate-word:nth-child(1) {
  animation-delay: 0.2s;
}
.animate-word:nth-child(2) {
  animation-delay: 0.4s;
}
.animate-word:nth-child(3) {
  animation-delay: 0.6s;
}

.star-emoji {
  position: absolute;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}

.star-emoji:nth-child(1) {
  bottom: 40px;
  left: 20px;
  animation-delay: 0.5s;
}

.star-emoji:nth-child(2) {
  bottom: 80px;
  right: 10px;
  animation-delay: 1s;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Add after your existing styles */

.portfolio-container {
  padding: 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-container h1 {
  font-size: 48px;
  margin-bottom: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 20px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
}

.flip-card-front {
  background: transparent;
}

.flip-card-back {
  background: white;
  transform: rotateY(180deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flip-card-front h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.flip-card-front p {
  color: #666;
  font-size: 16px;
}

.flip-card-back h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.flip-card-back p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.view-more {
  background: linear-gradient(to right, var(--blue), var(--yellow));
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  color: #644995;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Gradients remain the same */
.yellow-gradient {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--cream) 100%);
}

.blue-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
}

.purple-gradient {
  background: linear-gradient(
    135deg,
    var(--purple-light) 0%,
    var(--purple-dark) 100%
  );
}

.portfolio-content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 50px auto;
  justify-content: center;
}

/* Hapus semua style portfolio-content yang duplikat dan gunakan ini */
.portfolio-item {
  aspect-ratio: 1;
  border-radius: 20px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  height: 400px;
  margin: 0 auto;
}

.portfolio-content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
}

.portfolio-front,
.portfolio-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
}

.portfolio-front {
  background: var(--background);
  z-index: 1;
}

.portfolio-back {
  background: white !important;
  transform: rotateY(180deg);
  z-index: 0;
}

.portfolio-item:hover .portfolio-content {
  transform: rotateY(180deg);
}

/* Hapus semua style portfolio-front dan portfolio-back yang duplikat */
.portfolio-front {
  background: inherit;
}

.portfolio-back {
  background: white;
  transform: rotateY(180deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover .portfolio-content {
  transform: rotateY(180deg);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  transition: transform 0.5s ease;
}

.portfolio-front,
.portfolio-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
}

.portfolio-front {
  background: inherit;
}

.portfolio-back {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.portfolio-back h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.portfolio-back p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.portfolio-item h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

.view-more {
  background: linear-gradient(to right, var(--blue), var(--yellow));
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  color: #644995;
  font-weight: 500;
  transition: background 0.3s ease;
}

.view-more:hover {
  background: white;
}

.yellow-gradient {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--cream) 100%);
  background-size: 200% 200%;
  animation: gradientBG 5s ease infinite;
}

.blue-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
  background-size: 200% 200%;
  animation: gradientBG 5s ease infinite;
}

.purple-gradient {
  background: linear-gradient(
    135deg,
    var(--purple-light) 0%,
    var(--purple-dark) 100%
  );
  background-size: 200% 200%;
  animation: gradientBG 5s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Add pattern overlay for portfolio items */
.portfolio-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/pattern.png");
  opacity: 0.1;
  pointer-events: none;
}
.about-container {
  padding: 50px;
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  position: relative;
  margin-top: -100px;
}

.about-image img {
  width: 100%;
  border-radius: 30px;
  background: none;
}

.skill-tags {
  position: absolute;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-tag {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skill-tag.event {
  background: var(--yellow);
}

.skill-tag.data {
  background: var(--cream);
}

.skill-tag.social {
  background: var(--purple-light);
}

.about-content {
  flex: 1;
}

.about-content h1 {
  font-size: 42px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -100px;
}

.chick {
  font-size: 32px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.intro {
  font-size: 18px;
  color: #333;
}

.description {
  font-size: 16px;
  color: #666;
}

.resume-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--blue), var(--yellow));
  border-radius: 25px;
  color: #644995;
  text-decoration: none;
  font-weight: 500;
  margin-top: 20px;
  transition: transform 0.3s ease;
}

.resume-btn:hover {
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: auto;
  animation: modalopen 0.5s;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  bottom: 0;
}

.gallery-overlay h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.gallery-overlay p {
  font-size: 14px;
  opacity: 0.8;
}

/* Warna Modal */
.yellow-modal .modal-content {
  background: linear-gradient(135deg, #f6c962 0%, #ffd977 100%);
}

.blue-modal .modal-content {
  background: linear-gradient(135deg, #9cc5cc 0%, #b4d7de 100%);
}

.purple-modal .modal-content {
  background: linear-gradient(135deg, #644995 0%, #7a5ab3 100%);
  color: white;
}

.close {
  position: absolute;
  right: 25px;
  top: 5px;
  font-size: 35px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 30px 0;
}

.modal-body img {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 25px;
}

.modal-body p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.image-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 10px;
}

.slide {
  flex: 0 0 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  aspect-ratio: 16/9;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.slider-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 992px) {
  .slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

/* Add these new styles for the contact page */
.contact-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.wave-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(223, 232, 243, 0.2) 0px,
    rgba(223, 232, 243, 0.2) 2px,
    transparent 2px,
    transparent 8px
  );
  z-index: -1;
}

.quote-section {
  text-align: center;
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.quote-section h2 {
  font-family: "Space Mono", monospace;
  font-size: 42px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 40px;
}

.connect-btn-wrapper {
  margin-top: 50px;
}

.connect-btn {
  display: inline-block;
  padding: 12px 35px;
  background: linear-gradient(to right, var(--blue), var(--yellow));
  border-radius: 25px;
  color: #644995;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.connect-btn:hover {
  transform: translateY(-3px);
}

footer {
  background: #f5f5f5;
  padding: 30px 0;
  margin-top: auto;
}

.social-section {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.blog-logo img {
  height: 60px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  gap: 25px;
  align-items: center;
}

.social-icons a {
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.social-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Update contact form overlay styles */
.contact-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Will be changed to flex by JavaScript */
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.contact-form-container {
  width: 90%;
  max-width: 1200px;
  background: #fff;
  border-radius: 30px;
  display: flex;
  position: relative;
  z-index: 10001;
}

.contact-left {
  flex: 1;
  padding: 40px;
  background: var(--background);
}

.back-arrow {
  display: inline-block;
  font-size: 32px;
  color: var(--purple-dark);
  text-decoration: none;
  margin-bottom: 30px;
}

.contact-left h2 {
  font-size: 36px;
  margin-bottom: 40px;
  font-family: "Montserrat", sans-serif;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
}

.social-item img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.social-item span {
  font-size: 16px;
  color: #333;
}

.contact-right {
  flex: 1;
  padding: 40px;
  background: var(--light-blue);
}

.contact-right h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.form-field {
  margin-bottom: 20px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.form-field textarea {
  height: 150px;
  resize: none;
}

.submit-btn {
  background: linear-gradient(to right, var(--yellow), var(--blue));
  color: #644995;
  border: none;
  padding: 12px 40px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* Add these new styles */
html {
  scroll-behavior: smooth;
}

/* Update section styles */
.section {
  min-height: 100vh;
  margin-bottom: 20px;
  padding: 0px 0 0px; /* Increased top padding to account for fixed nav */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Update container styles */
.container {
  padding: 0 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 200px); /* Account for padding */
}

/* Update specific section containers */
.about-container,
.portfolio-container,
.contact-container {
  min-height: calc(100vh - 200px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

/* Fix portfolio grid height */
.portfolio-grid {
  min-height: 500px; /* Ensure minimum height for content */
  margin: 50px 0;
}

/* Fix contact section spacing */
.quote-section {
  padding: 60px 20px;
  margin: 40px auto;
}

/* Adjust footer position */
footer {
  width: 100%;
  position: relative;
  bottom: 0;
}

/* Update nav styles */
nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 25px;
  background: #ffffff;
  border-radius: 30px;
  display: flex;
  gap: 35px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  padding: 5px 10px;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 500;
}

/* Add testimonials styles */
.testimonials-container {
  padding: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-container h1 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  padding: 40px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author span {
  font-weight: 500;
  color: #333;
}