:root {
    --primary: hsl(225, 63%, 54%);
    --secondary: #3a0ca3;
    --accent: #f72585;
    --dark: #1a1a2e;
    --light: #ffffff;
    --light-gray: #ffffff;
    --success: #4cc9f0;
    --gradient: rgb(255, 255, 255) linear-gradient(45deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #184974;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: var(--dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--light);
  position: relative;
  z-index: 1100;
  padding: 8px; 
  transition: color 0.2s ease;
}

.hamburger.active i {
  color: var(--primary);
}

/* ===== Respons Navigation ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 75px;
    flex-direction: column;
    background-color: #184974;
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  nav {
    padding: 15px 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .headline {
    font-size: 2rem;
  }
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #3485d6 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.hero-text {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.headline {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub-headline {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:first-child {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.cta-button.secondary:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.hero-image {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s ease;
}

.image-frame {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(20%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    animation: float 3s infinite ease-in-out;
}

.floating-element.el1 {
    width: 60px;
    height: 60px;
    top: -20px;
    right: 50px;
    animation-delay: 0s;
}

.floating-element.el2 {
    width: 40px;
    height: 40px;
    bottom: 30px;
    left: -20px;
    animation-delay: 1s;
}

.floating-element.el3 {
    width: 30px;
    height: 30px;
    top: 100px;
    right: -15px;
    animation-delay: 2s;
}

/* ===== about ===== */
.about {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.photo-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.frame-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.personal-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label i {
    color: var(--primary);
    width: 20px;
}

.info-value {
    color: var(--dark);
    font-weight: 500;
}

.bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 100px 0;
    background-color: #9cbee0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: rgb(107, 144, 213);
    padding: 30px;
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.skill-header i {
    font-size: 2rem;
    color: rgb(35, 80, 212);
}

.skill-header h3 {
    margin: 0;
    color: rgb(226, 231, 237);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
}

.skill-percent {
    font-weight: 600;
    color: white;
}

.skill-bar {
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    border-radius: 4px;
    background: rgb(16, 60, 169);
    width: 0;
    transition: width 1.5s ease;
}

.skill-level.ps { width: 75%; }
.skill-level.ai { width: 60%; }
.skill-level.figma { width: 20%; }


/* ===== PENDIDIKAN ===== */
.education {
  background-color:  #ffffff;
}

.education-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.timeline {
  position: relative;
  padding: 0 20px;
  width: 100%;
  max-width: 700px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgb(16, 60, 169);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: calc(50% + 30px);
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  text-align: left;
  padding-left: calc(50% + 30px);
  padding-right: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgb(3, 27, 73);
  border: 4px solid rgb(234, 236, 239);
  box-shadow: 0 0 0 4px var(--primary);
}

.timeline-item:nth-child(odd)::before {
  right: calc(50% - 38px);
  top: 5px;
}

.timeline-item:nth-child(even)::before {
  left: calc(50% - 38px);
  top: 5px;
}

.timeline-date {
  background-color: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.timeline-content {
  background-color: rgb(107, 144, 213);
  color: var(--dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--light);
  font-size: 1.3rem;
}

.timeline-content p {
  color: var(--light);
  margin-bottom: 5px;
}


@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
    transform: none;
  }

  .timeline-item {
    padding-left: 70px !important;
    padding-right: 20px !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 22px !important;
    right: auto !important;
  }

  .timeline-date {
    margin-bottom: 15px;
  }
}


/* ===== penghargaan ===== */
.awards-section {
  background-color:#9cbee0;
  color: var;
  padding: 20px;
}

.awards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.award-card {
  background-color: var(--light);
  color: var(--light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  height: 350px;
  cursor: pointer;
}

.award-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.award-image {
  height: 200px;
  overflow: hidden;
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.award-card:hover .award-image img {
  transform: scale(1.05);
}

.award-content {
  padding: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--light);
  color: var(--dark);
}

.award-icon {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.award-card:hover .award-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.award-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.award-content p {
  color: var(--gray);
  font-size: 1rem;
}

.award-card.award-innovation .award-content {
  background-color: #f3f4f6; 
  color: blue; 
}

.award-card.award-innovation .award-content h3 {
  color: var(--dark);
}

.award-hover-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-gray);
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  z-index: 2;
}

.award-card:hover .award-hover-content {
  opacity: 1;
  transform: translateY(0);
}

.award-hover-content .hover-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}

.award-hover-content .hover-text {
  position: relative;
  z-index: 1;
}

.award-hover-content .hover-text h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: rgb(0, 0, 0);
}

.award-hover-content .hover-text p {
  color:  rgba(11, 4, 62, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.certificate-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.certificate-modal.active {
  display: flex;
}

.certificate-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 149, 204, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: 0.25s ease, backdrop-filter 0.25s ease;
  cursor: pointer;
}

.certificate-modal__content {
  position: relative;
  max-width: 800px;
  width: calc(100% - 48px);
  max-height: 80vh;
  padding: calc(var(--modal-close-offset) + 36px + var(--modal-close-gap)) 12px
    12px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  z-index: 1;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.certificate-modal__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  
  max-height: calc(
    100% - (var(--modal-close-offset) + 36px + var(--modal-close-gap))
  );
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.certificate-modal__close {
  position: absolute;
  top: var(--modal-close-offset);
  right: var(--modal-close-right);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}


.award-image img {
  cursor: zoom-in;
}

@media (max-width: 1200px) {
  .awards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .awards-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== Hobbies ===== */
.hobby-grid {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.hobby-card {
    background: #71abdd;
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(73, 50, 50, 0.1);
    transition: 0.3s transform ease;
}


.hobby-img {
    width: 150px; 
    height: 150px;
    object-fit: cover;
    border-radius: 15px; 
    margin-bottom: 20px;
}


.read-more-state {
    display: none;
}


.read-more-target {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease; 
    opacity: 0;
}

.read-more-state:checked ~ .read-more-target {
    max-height: 200px; 
    opacity: 1;
    margin-top: 15px;
}

.btn-read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #7e9acd; 
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-read-more::before {
    content: "Baca Selengkapnya";
}


.btn-read-more:hover {
    background-color: #5d7eb5;
    transform: scale(1.05);
}
/* === kontak === */

.contact-desc {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.contact-container {
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-container {
  padding: 100px 0;
  background-color: #d2deea;
}
.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: #4081c2;
  color: var(--dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.text{
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray  );
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn{
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

/* ===== Contact Items ===== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.contact-item {
  background-color: #71abdd !important;
  padding: 25px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.contact-item:hover {
  background-color: #5d9dce !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.contact-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #4081c2 !important;
  border-radius: 50% !important;
  color: white !important;
  font-size: 1.8rem !important;
  flex-shrink: 0 !important;
}

.contact-text h4 {
  margin: 0 !important;
  color: #1a1a2e !important;
  font-size: 1.1rem !important;
  margin-bottom: 5px !important;
}

.contact-text p {
  margin: 0 !important;
  color: #0c0332 !important;
  font-size: 0.95rem !important;
}

/*footer*/
.social-hero {
    padding: 20px 8%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

.card {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.card i {
    margin-right: 15px;
    font-size: 20px;
}

/* Footer Content */

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 50px 8%;
    margin-top: 10px;
    background-color: #d2deea;
}

.info-text {
    flex: 2;
    padding-right: 50px;
}

.info-text h3, .quick-links h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.info-text {
    color: #0c0332;
    font-size: 14px;
    margin-bottom: 20px;
}

.social-icons-small a {
    color: #fff;
    background-color: #3a4750;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
}

.quick-links {
    flex: 1;
}

.quick-links ul {
    list-style: none;
}

.quick-links ul li {
    margin-bottom: 8px;
}

.quick-links ul li a {
    color: #190642;
    text-decoration: none;
    font-size: 14px;
}

/* Bottom Copyright */
footer {
    text-align: center;
    padding: 20px;
    background-color: #184974;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #d4d4e7;
}