/*  GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #fff1e6, #ffe5d9);
}

/* PRELOADER FULL SCREEN */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff1e6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* SPINNER */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #ffd6cc;
  border-top: 5px solid #ff8fab;
  border-radius: 50%;
  background-color: #d27d5640;
  animation: spin 1s linear infinite;
}


#preloader p {
  margin-top: 10px;
  color: #ff8fab;
  font-weight: bold;
}


/*  HEADER / NAVBAR */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: linear-gradient(to right, #d76f3f, #bc4f6a,rgb(186, 102, 63));

}
.navbar a {
  margin-left: 25px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: 0.3s;
}
.navbar a:hover {
  color: rgba(106, 17, 8, 0.853);
}  


/* LOGO CONTAINER */
.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.logo {
  width: 50px;
  border-radius: 50%;
  margin-right: 10px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.1) rotate(5deg); 
  color: #e00d497f;
}
.logo-text {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;  
  color: white;
  cursor: pointer;
}
.logo-text:hover {
  color: rgba(106, 17, 8, 0.853);
}  


/* =========================================
   HOME SECTION
========================================= */
.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  min-height: 80vh;
}

.text-container {
  max-width: 500px;
}

.intro-text {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #d3475e;
  text-shadow: 2px 2px 8px #e8ab6d;
  margin-bottom: 15px;
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  color: #e66077;
  text-shadow: 3px 3px 10px #e0a57e;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #ffffffb3;
}

.typing {
  animation: typing 5s steps(20), blink 0.65s step-end infinite;
}

.role {
  font-size: 1.5rem;
  color: #FF69B4;
  text-shadow: 3px 3px 10px #e0a57e;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 6s forwards 3s;
}

.description {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.5;
}


/*  BUTTONS */
.btn-work {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FF1493;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 25px;
  transition: 0.3s;
}

.btn-work:hover {
  background-color: #FF69B4;
  box-shadow: 0 0 20px #FF1493;
}


/*  SOCIAL ICONS  */
.home-social-icons {
  display:flex;
}
.home-social-icons a {
 position:relative;
 display:inline-block;
}
.home-social-icons img { 
  width: 45px;
  height: 45px;
  filter: sepia(0.3) saturate(1.5) hue-rotate(330deg);
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  transition: all 0.3s ease;
   animation: rollIn 3s ease forwards;
}

.home-social-icons a:hover img {
  transform: scale(1.1);
  filter: sepia(0.9) saturate(1.9) hue-rotate(340deg);
  box-shadow: 0 0 15px #cf3a589d, 0 0 25px #c54d08e0;
}
.social-icons a:nth-child(1) img {
  animation-delay: 1s;
}
.social-icons a:nth-child(2) img {
  animation-delay: 2s;
}
.social-icons a:nth-child(3) img {
  animation-delay: 3s;
}
.social-icons a:nth-child(4) img {
  animation-delay:4s;
}

/* TOOLTIP STYLE */
.home-social-icons a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd6c9, #ffb38a); /* peach/orange */
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 170, 120, 0.5); /* ✨ kinang */
}

/* SHOW TOOLTIP */
.home-social-icons a:hover::after {
  opacity: 1;
  bottom: -45px;
}

/* =========================================
   PROFILE IMAGE (HOME)
========================================= */
.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px #f093934d,#e5415d,#f3a663;
  transition: 0.3s;
}
.profile-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-container::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border-radius: 50%;
  background: conic-gradient(#ff6b6b, #feca57, #48dbfb, #ff9ff3, #ee5253,#6d3c6d, #ea072caf);
  z-index: 0;
  animation: rotate 5s linear infinite;
}
.profile-container:hover .profile-img {
  transform: scale(1.05);
  border: 0 10px 25px #f093934d,#e5415d,#f3a663;

}
/* =========================================
   KEYFRAMES
========================================= */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  100% { border-color: transparent; }
}
@keyframes rollIn {
  0% {
    transform: translateX(-200px) rotate(-360deg);
    opacity: 0;
  }

  100% {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }
}


/* =========================================
  ABOUT SECTION
========================================= */
.about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  padding: 80px;
}

.about-title {
  font-size: 2.2rem;
  color: #ff8c7a;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ff8c7a;
}

/* ONLY animate when active */
.about-title.show {
  width: 50%;
  animation: typingAbout 3s steps(20, end) forwards,
             blinkCursor 0.7s infinite;
}


.about-desc {
  opacity: 0;
  transform: translateY(20px);
}

/* only when visible */
.about-desc.show {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* FLOATING IMAGE CARD */
.about-image-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 320px;
  align-self: flex-start;
  padding: 25px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 25 60px rgba(255, 182, 173, 0.25),
    0 20 40px rgba(255, 200, 190, 0.18);
  overflow:hidden;
  transition: all 0.4s ease;
  animation: floatSoft 6s  ease-in-out infinite;
}

.about-image-card::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius: 28px;
  background: linear-gradient(120deg,transparent 30%, rgba(255,255,255,0.4),transparent 70%);
  opacity:0;
  transition: opacity 0.5s ease;
}
.about-image-card:hover::before {
  opacity: 1;
}

/* FLOAT EFFECT */
.about-image-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 18px 40px rgb(233, 85, 85),
    0 30px 70px rgb(253, 140, 129),
    0 0 60px rgb(230, 112, 91);
}

/* IMAGE */
.about-image-card img {
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow:
    0 8 20px rgba(250, 63, 63, 0.979),
    0 0 20px rgba(228, 104, 88, 0.952);
}

/* hidden state */
.hidden-about {
 
  opacity: 0;
  transform: translateY(20px);
   transition: all 0.8s ease;
}

/* TEXT SIDE */
.about-text {
  max-width: 500px;
}
.about-text h2 {
  font-size: 2.2rem;
  color: #ff8c7a;
  margin-bottom: 10px;
}
.about-text p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}


/* =========================================
   ABOUT BUTTON 
========================================= */
.about-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff8fa3, #ffc2d1);
  color: white;
  font-weight: bold;
  opacity: 0; /* hidden by default for scroll effect */
  transform: scale(0.8) translateY(50px); /* starting state */
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* When the button is active on scroll */
.about-btn.show {
  opacity: 1;
  transform: scale(1) translateY(0);

/* Strong GlowPulse */
  animation: glowPulseStrong 1.5s infinite alternate;
}

/* Hover effect on top of glow */
.about-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgb(248, 125, 17), 0 0 60px rgb(255, 142, 44), 0 0 80px #f00f5a;
}

/* Strong glow keyframes */
@keyframes glowPulseStrong {
  0% {
    box-shadow: 0 0 20px #ff4da6, 0 0 30px #ff99cc, 0 0 40px #ff66cc;
  }
  50% {
    box-shadow: 0 0 35px #ff4da6, 0 0 50px #ff99cc, 0 0 70px #ff66cc;
  }
  100% {
    box-shadow: 0 0 20px #fa7b0c, 0 0 30px #eb117e, 0 0 40px #ff66cc;
  }
}



/* KEYFRAMES ANIMATION */
@keyframes typingAbout {
  from { width: 0; }
  to { width: 50%; }
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }
}


/* =========================================
   PROJECTS SECTION
========================================= */
.projects {
  padding: 100px 10%;
  text-align: center;
}

.projects-title {
  font-size: 2rem;             
  font-weight: bold;
  text-align: center;     
  font-size: 2.2rem;
  color: #ff8c7a;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ff8c7a;  
  margin: 40px 0 20px 0;
  position: relative;
  letter-spacing: 1px;
}

/* CAROUSEL */
.carousel {
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

/* TRACK */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}


.slide {
  min-width: 100%; /* VERY IMPORTANT */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(-100px) rotate(-5deg) scale(0.9);
  transition: 0.8s ease;
}

.slide.active {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

.card.active .overlay {
  transform: translateY(0);
}

/*CARD*/
.card {
  width: 80%;
  max-width: 600px;
  height: 390px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  box-shadow:
    0 20px 50px rgba(210, 125, 86, 0.25),
    0 0 25px rgba(255, 182, 193, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.3s ease; 
  animation: float 6s ease-in-out infinite;
  border: 2px solid rgba(255, 182, 193, 0.3);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(255, 182, 193, 0.6),
    0 0 40px rgba(255, 182, 193, 0.5);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

/* HOVER EFFECT */
.card:hover img {
  transform: scale(1.08);
  filter: brightness(0.75) contrast(1.1);
}

/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  backdrop-filter: blur(5px);
  text-align: center;

  background: linear-gradient(
    to top,
    rgba(255, 182, 193, 0.9),
    rgba(255, 182, 193, 0.2),
    transparent
  );

  color: white;
  transform: translateY(100%) translateZ(40px);
  transition: 0.5s ease;
}


/* TEXT */
.overlay h3 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* GLOW EFFECT */
.slide.active .card {
  box-shadow: 0 30px 80px rgba(255, 182, 193, 0.6);
  animation: glowPulse 3s infinite;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.5);
  border: none;
  font-size: 2rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  z-index: 2;
}

.arrow:hover {
  background: #ffb6c1;
  color: white;
  transform: translateY(-50%) scale(1.2);
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

/* =========================================
   KEYFRAMES OF PROJECTS
========================================= */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(255,182,193,0.3); }
  50% { box-shadow: 0 0 35px rgba(255,182,193,0.6); }
  100% { box-shadow: 0 0 15px rgba(255,182,193,0.3); }
}


/* =========================================
   SKILLS SECTION
========================================= */
/* HIDDEN STATE*/
.hidden {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  filter: blur(8px);
  transition: all 0.8s ease;
}

/* SHOW ANIMATION */
.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: all 0.6s ease;
}

/* SKILLS SECTION */
.skills-section {
  padding: 80px 10%;
  text-align: center;
}

.skills-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ff8c7a;
  margin-bottom: 40px;
}

/* CIRCLE CONTAINER */
.circle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

/* CIRCLE CARD */
.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#ff4da6 0deg, #ddd 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: sans-serif;
  cursor: default;
  transition: transform 0.4s;
}

.circle:hover {
  transform: scale(1.08);
}

/*  NUMBER */
.circle .number {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: #ff4da6;
}

/* LABEL */
.circle p {
  position: absolute;
  bottom: -25px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #cc6699;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-section {
  position: relative;
  padding: 100px 10%;
  overflow: hidden;
}

/* TITLE */
.contact-title {
  font-size: 2rem;             
  font-weight: bold;
  text-align: center;     
  font-size: 2.2rem;
  color: #ff8c7a;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ff8c7a;  
  margin: 40px 0 20px 0;
  position: relative;
  letter-spacing: 1px;
}


/* WRAPPER */
.contact-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARD */
.contact-card {
  flex: 1;
  min-width: 300px;
  padding: 35px;
  border-radius: 20px;
  background: rgba(255,255,255,0.75); /* more readable */
  backdrop-filter: blur(12px);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.08); /* more formal */

  transition: 0.4s ease;
  opacity: 0;
  transform: scale(0.9) translateY(40px);
}

/* SHOW ANIMATION */
.contact-card.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: 0.6s ease;
}

/* HOVER */
.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/*  TEXT STYLING */

/* LET'S CONNECT TITLE */
.contact-card.info-card {
  font-size: 28px;
  font-weight: 700;
  color: pink;
  margin-bottom: 6px;
}

/* SUBTEXT (smaller) */
.contact-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* INFO ITEMS (ICON + TEXT)*/
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6f8;
  transition: 0.3s ease;
}

/* ICON */
.info-item span {
  font-size: 18px;
}

/* TEXT */
.info-item p {
  margin: 0;
  font-size: 14px;
  color: #2c3e50;
}

/* HOVER EFFECT */
.info-item:hover {
  background: #e9eef3;
  transform: translateX(4px);
}

/* FORM INPUTS */
.form-card input,
.form-card textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  font-size: 14px;
  outline: none;
  transition: 0.3s ease;
}

/* FOCUS EFFECT */
.form-card input:focus,
.form-card textarea:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
}

/* TEXTAREA */
.form-card textarea {
  height: 120px;
  resize: none;
}

/* MAGNETIC BUTTON */
.magnetic-btn {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8fa3, #ffc2d1);
  color: white;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
  transition: transform 0.2 ease;
}

/* BLOBS */
.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ffc2d1, transparent);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatBlob 10s infinite ease-in-out;
}

.blob1 { top: -50px; left: -50px; }
.blob2 { bottom: -50px; right: -50px; animation-delay: 3s; }

/* CURSOR */
.cursor-glow {
  position: fixed;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,143,163,0.25), transparent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
}
/* FOOTER */
.footer {
  text-align: center;
  padding: 25px;
  color: white;
   background-color: #f698a8;
}

.footer-content p {
  margin: 5px 0;
}
/* ANIMATIONS */
@keyframes floatBlob {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px,-40px); }
}

/* SCROLL ANIMATION */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.show {
  opacity: 1;
  transform: translateY(0);
}







