/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Modern Scrollbar Styling ===== */
/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 8, 16, 0.9);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #1a221f;
  /* Dark gray with subtle green tint */
  border-radius: 10px;
  border: 2px solid rgba(5, 8, 16, 1);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Custom Scrollbar for Project Screenshots */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
  border: none;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
}

/* Custom Scrollbar for Project Modal */
#projectModal>div::-webkit-scrollbar {
  width: 6px;
}

#projectModal>div::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

#projectModal>div::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

#projectModal>div::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
}

#projectModal>div {
  overscroll-behavior: contain;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #1a221f rgba(5, 8, 16, 0.9);
}

/* Mobile responsive scrollbar width */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
}

:root {
  /* Core Brand Colors */
  --primary-color: #00ff88;
  --secondary-color: #00d9ff;

  /* Theme Semantic Colors */
  --bg-body: #050810;
  --bg-sidebar: #0b0f14;
  --bg-panel: #1a1f2e;
  --bg-card: rgba(26, 31, 46, 0.6);
  --bg-card-hover: rgba(17, 24, 39, 0.72);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: #334155;
  --border-light: rgba(148, 163, 184, 0.22);

  --shadow-color: rgba(0, 0, 0, 0.5);
  --glass-border: rgba(255, 255, 255, 0.05);
}


html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

section {
  background: transparent;
}


body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


#sidebar {
  /* Ensure sidebar handles its own scrolling without chaining */
  overscroll-behavior: contain;
}

/* Navbar styles commented out for Sidebar Layout
.navbar {
  display: none;
}
*/

/* .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg,
      rgba(15, 15, 25, 0.95) 0%,
      rgba(10, 10, 15, 0.98) 100%);
  backdrop-filter: blur(25px);
  padding: 10px 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
} */

/* ... (other navbar styles) ... */

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  /* Changed from 90vh */
  padding-top: 80px;
  /* Reduced from 120px */
  justify-content: flex-end;
  padding-bottom: 60px;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.greeting {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-color);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-description {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}

.btn {
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
  background: transparent;
  white-space: nowrap;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-body);
}

.social-links h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
    0 0 40px rgba(0, 255, 136, 0.2),
    inset 0 0 15px rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ff88, #00d9ff, #00ff88);
  border-radius: 50%;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icons a:hover::before {
  opacity: 0.8;
}

.social-icons a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6),
    0 0 60px rgba(0, 255, 136, 0.4),
    inset 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Individual icon colors - Email */
.social-icons a:nth-child(1) {
  box-shadow: 0 0 20px rgba(234, 67, 53, 0.4),
    0 0 40px rgba(234, 67, 53, 0.2),
    inset 0 0 15px rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.4);
}

.social-icons a:nth-child(1)::before {
  background: linear-gradient(45deg, #EA4335, #c5221f);
}

.social-icons a:nth-child(1):hover {
  background: #EA4335;
  box-shadow: 0 0 30px rgba(234, 67, 53, 0.6),
    0 0 60px rgba(234, 67, 53, 0.4);
}

/* Instagram */
.social-icons a:nth-child(2) {
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.4),
    0 0 40px rgba(225, 48, 108, 0.2),
    inset 0 0 15px rgba(225, 48, 108, 0.1);
  border: 1px solid rgba(225, 48, 108, 0.4);
}

.social-icons a:nth-child(2)::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons a:nth-child(2):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 0 30px rgba(225, 48, 108, 0.6),
    0 0 60px rgba(225, 48, 108, 0.4);
}

/* Twitter/X */
.social-icons a:nth-child(3) {
  box-shadow: 0 0 20px rgba(29, 155, 240, 0.4),
    0 0 40px rgba(29, 155, 240, 0.2),
    inset 0 0 15px rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.4);
}

.social-icons a:nth-child(3)::before {
  background: linear-gradient(45deg, #1DA1F2, #0e7ac4);
}

.social-icons a:nth-child(3):hover {
  background: #1DA1F2;
  box-shadow: 0 0 30px rgba(29, 155, 240, 0.6),
    0 0 60px rgba(29, 155, 240, 0.4);
}

/* GitHub */
.social-icons a:nth-child(4) {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2),
    inset 0 0 15px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.social-icons a:nth-child(4)::before {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.social-icons a:nth-child(4):hover {
  background: #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
    0 0 60px rgba(139, 92, 246, 0.4);
}

/* LinkedIn */
.social-icons a:nth-child(5) {
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.4),
    0 0 40px rgba(0, 119, 181, 0.2),
    inset 0 0 15px rgba(0, 119, 181, 0.1);
  border: 1px solid rgba(0, 119, 181, 0.4);
}

.social-icons a:nth-child(5)::before {
  background: linear-gradient(45deg, #0077B5, #005885);
}

.social-icons a:nth-child(5):hover {
  background: #0077B5;
  box-shadow: 0 0 30px rgba(0, 119, 181, 0.6),
    0 0 60px rgba(0, 119, 181, 0.4);
}

/* YouTube */
.social-icons a:nth-child(6) {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4),
    0 0 40px rgba(255, 0, 0, 0.2),
    inset 0 0 15px rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.4);
}

.social-icons a:nth-child(6)::before {
  background: linear-gradient(45deg, #FF0000, #cc0000);
}

.social-icons a:nth-child(6):hover {
  background: #FF0000;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6),
    0 0 60px rgba(255, 0, 0, 0.4);
}

/* ===== Hero Image ===== */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  /* tambahkan: */
  transform: translateY(-25px);
  /* nilai minus = naik ke atas */
}

.image-wrapper {
  position: relative;
  width: 400px;
  height: 500px;
  margin: 0 auto;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.image-decoration {
  position: absolute;
  top: -0px;
  right: -0px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 20px;
  z-index: 1;
}

.profile-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* penting: glow boleh keluar */
}

/* Glow besar di luar lingkaran */
.profile-outer-glow {
  position: absolute;
  display: none;
  width: 125%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 255, 136, 0.4) 0%,
      rgba(0, 217, 255, 0.15) 40%,
      transparent 70%);
  box-shadow:
    0 0 40px rgba(0, 255, 136, 0.8),
    0 0 90px rgba(0, 217, 255, 0.45);
  filter: blur(4px);
  z-index: 1;
}

/* Ring hijau tipis di tepi foto */
.profile-inner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 136, 0.7);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.7);
  z-index: 2;
}

/* Foto */
.profile-orbit img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


/* Glow lingkaran belakang */
.profile-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #00ff88 0%, #00d9ff 40%, #000 75%);
  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.6),
    0 0 60px rgba(0, 217, 255, 0.4);


  z-index: 1;
}

/* Foto di depan glow */
.profile-orbit img {
  position: relative;
  z-index: 2;
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 50%;
  /* Optional border for definition in light mode */
}

/* Opsional efek hover ringan */
.profile-orbit:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}


/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {

  0%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
}


/* ===== Modern Skills Section & Marquee ===== */
.skills-section {
  position: relative;
  background: var(--bg-body) !important;
}

/* Subtitle style */
.skills-section p {
  color: var(--text-secondary);
}

/* ===== TRUE INFINITE MARQUEE ===== 
.skills-marquee {
  position: relative;
  overflow: hidden;

  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
} 
*/

/*
.skills-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.5rem;
  will-change: transform;
  animation: marquee-left 25s linear infinite;
}
 */

.skills-track.skills-track--reverse {
  animation: marquee-right 28s linear infinite;
}

.skills-set {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* Duplicated items must not wrap */
.skills-set article {
  flex-shrink: 0;
}

/* Pause on Hover (Desktop) 
@media (hover: hover) {
  .skills-marquee:hover .skills-track {
    animation-play-state: paused;
  }
} 
*/

/* Animation Keyframes 
@keyframes marquee-left {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-right {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}
*/


/* Card Design (Existing Modern UI) */
.skill-card {
  width: 200px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  /* Using padding shortcut from tailwind-like naming if preferred, but explicit is better */
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 136, 0.3);
}

.skill-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  display: block;
}

.skill-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Hide Scrollbars 
.skills-marquee::-webkit-scrollbar {
  display: none;
}

.skills-marquee {
  -ms-overflow-style: none;
  scrollbar-width: none;
} 
*/

/* Reduced Motion Fallback (Static Grid) 
@media (prefers-reduced-motion: reduce) {
  .skills-track {
    animation: none !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    width: 100%;
    gap: 1.5rem;
  }

  .skills-set:nth-child(2) {
    display: none;
  }
}
*/

/* Section Title Fix */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #00ff88;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}


/* ===== About Section ===== */
/* ===== About Section ===== */
.about {
  padding: 80px 0;
  background: transparent;
}


.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}


/* ========== Projects / Portfolio (Cards v2) ========== */
.portfolio-grid--cards {
  --gap: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .portfolio-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-grid--cards {
    grid-template-columns: 1fr;
  }
}

/* Card */
.project-card--v2 {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card--v2::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 136, 0.14), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(0, 217, 255, 0.10), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-card--v2:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(45, 212, 191, 0.55);
}


/* ===== Architecture View Styles ===== */

/* Tab Navigation */
.tab-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  /* Align with border-bottom of container */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 0 -2px 5px rgba(0, 255, 136, 0.5);
}

/* Architecture Layout */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .arch-grid {
    grid-template-columns: 1.2fr 0.8fr;
    /* Diagram fills slightly more space */
  }
}

/* Diagram Container */
.arch-diagram-container {
  background: rgba(11, 15, 20, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 300px;
  position: relative;
}

/* Diagram Nodes */
.arch-node {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 200px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.arch-node:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.arch-node-icon {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  display: block;
}

.arch-node-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.arch-node-tech {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.25rem;
}

/* Arrows (Simple CSS Arrows) */
.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: -0.5rem 0;
  z-index: 1;
}

.arch-arrow i {
  animation: floatArrow 2s infinite ease-in-out;
}

@keyframes floatArrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* Details Section */
.arch-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-section-title i {
  color: var(--primary-color);
}

.arch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arch-list-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-list-item::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Key Decisions Cards */
.decision-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.75rem;
}

.decision-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.decision-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Trade-off (Warning style) */
.decision-card.tradeoff {
  border-left-color: #f59e0b;
  /* Amber/Orange */
}


/* ===== Project Health Badges ===== */

.health-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.health-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Status Variations */
.health-badge-active {
  background-color: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.3);
}

.health-badge-maintained {
  background-color: rgba(56, 189, 248, 0.15);
  /* Sky Blue */
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.health-badge-experimental {
  background-color: rgba(245, 158, 11, 0.15);
  /* Amber */
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.health-badge-archived {
  background-color: rgba(148, 163, 184, 0.15);
  /* Slate / Grey */
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

/* Modal Variant (Static Position) */
.health-badge-modal {
  position: static;
  /* Override absolute */
  display: inline-block;
  margin-left: 0.75rem;
  vertical-align: middle;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  transform: translateY(-2px);
  /* Visual alignment with title */
}

/* End of file */

/* ===== Live Demo Modal ===== */
.live-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.live-demo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-container {
  width: 95%;
  max-width: 1000px;
  height: 90vh;
  background: #1a1f2e;
  border: 1px solid #334155;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-demo-modal.open .demo-modal-container {
  transform: translateY(0);
}

/* Header */
.demo-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f14;
}

.demo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-title i {
  color: #00ff88;
}

.demo-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.demo-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Body & Phones */
.demo-body {
  flex: 1;
  background: #0f131a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

.phone-frame {
  width: 300px;
  height: 600px;
  background: #fff;
  border-radius: 36px;
  box-shadow:
    0 0 0 8px #1a1f2e,
    0 20px 50px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1a1f2e;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* Phone Internal UI */
.phone-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
  /* Light theme inside phone */
  color: #1e293b;
  overflow: hidden;
  padding-top: 24px;
  /* Notch space */
}

/* UI Components */
.app-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo {
  width: 32px;
  height: 32px;
  background: #ef4444;
  /* Red brand */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.app-search {
  margin: 0 1rem 1rem;
  position: relative;
}

.app-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: #f1f5f9;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  outline: none;
}

.app-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.app-section-title {
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

/* Grid View (Left Phone) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem 1rem;
  overflow-y: auto;
}

.app-card {
  background: white;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: #e2e8f0;
  border-radius: 12px;
  object-fit: cover;
}

.app-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.app-card-price {
  font-size: 0.75rem;
  color: #64748b;
}

/* List View (Right Phone) */
.app-list {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  overflow-y: auto;
  gap: 0.75rem;
}

.app-list-item {
  background: white;
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.app-list-img {
  width: 48px;
  height: 48px;
  background: #e2e8f0;
  border-radius: 8px;
  object-fit: cover;
}

.app-list-info {
  flex: 1;
}

.app-list-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-edit {
  background: #f1f5f9;
  color: #64748b;
}

.btn-delete {
  background: #fee2e2;
  color: #ef4444;
}

/* Floating Action Button */
.app-fab {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e0e7ff;
  /* Soft indigo */
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-fab:active {
  transform: scale(0.95);
}

/* Bottom Nav */
.app-nav {
  height: 60px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 8px;
  /* Safe area */
}

.nav-icon {
  color: #94a3b8;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-icon.active {
  color: #1e293b;
}

/* Responsive / Mobile Controls */
.mobile-controls {
  display: none;
  position: absolute;
  bottom: 20px;
  background: #1a1f2e;
  padding: 8px;
  border-radius: full;
  border: 1px solid #334155;
  gap: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .demo-modal-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .demo-body {
    padding: 1rem;
    align-items: flex-start;
  }

  .phone-frame {
    transform: scale(0.9);
    margin-top: -20px;
  }

  /* Show only active phone */
  .phone-frame {
    display: none;
  }

  .phone-frame.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .mobile-controls {
    display: flex;
    position: fixed;
    bottom: 30px;
    z-index: 50;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 6px;
  }

  .control-tab {
    padding: 8px 20px;
    border-radius: 20px;
    color: #94a3b8;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .control-tab.active {
    background: #00ff88;
    color: #0b0f14;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(0.9) translateY(0);
  }
}

/* === Thumbnail framed (lebih kecil/inset) === */
.project-thumb--v2 {
  height: 240px;
  /* sebelumnya 230px (atau 220px) */
  padding: 16px;
  /* sebelumnya 14px -> gambar jadi lebih kecil */
  background: rgba(2, 6, 23, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  overflow: visible;
  position: relative;
}

.project-thumb--v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);

  transform: scale(1);
  transform-origin: center;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(1.05) contrast(1.05);
}

/* Overlay harus mengikuti padding */
.project-thumb--v2::after {
  content: "";
  position: absolute;
  inset: 16px;
  /* WAJIB sama dengan padding di atas */
  border-radius: 16px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0));
  opacity: 0.85;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-card--v2:hover .project-thumb--v2 img {
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.10);
}

.project-card--v2:hover .project-thumb--v2::after {
  opacity: 0.65;
}

/* Body */
.project-meta--v2 {
  padding: 16px 18px 18px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-badge {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.30);
}

.project-title--v2 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 750;
  color: var(--text-primary);
}

.project-desc--v2 {
  margin: 0 0 14px;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.92rem;
  line-height: 1.65;

  /* max 2 lines */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Small button helper (pakai sistem .btn kamu) */
.btn-sm {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Reduce motion 
@media (prefers-reduced-motion: reduce) {

  .project-card--v2,
  .project-thumb--v2 img,
  .project-card--v2::before,
  .project-thumb--v2::after {
    transition: none !important;
  }
}
*/

.portfolio {
  padding: 80px 0;
  background: transparent;
}

/* card horizontal: gambar kiri, teks kanan */
.portfolio-card.horizontal {
  display: flex;
  align-items: stretch;
  width: 520px;
  /* atur sesuai selera */
}

.portfolio-card.horizontal .portfolio-image {
  width: 45%;
  height: auto;
}

.portfolio-card.horizontal .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card.horizontal .portfolio-info {
  width: 55%;
  padding: 18px 18px 18px 20px;
}


/* judul + subjudul optional */
.portfolio .section-title {
  text-align: left;
  margin-bottom: 10px;
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.portfolio-header .view-all {
  padding: 8px 18px;
  background: #e11d48;
  color: #f9fafb;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
}


/* Container grid seperti contoh */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  /* 2 kolom responsif */
  gap: 32px 34px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Thumbnail (gambar) */
.project-thumb {
  height: 220px;
  /* tinggi card gambar */
  overflow: hidden;
  /* buang bagian yang keluar */
}

.project-thumb img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  /* atau 'cover' kalau mau memenuhi */
}


/* Bagian bawah: judul + tombol */
.project-meta {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.project-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-more {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}


/* info di bawah gambar */
.portfolio-info {
  flex: 1;
  padding: 18px 20px;
}

.portfolio-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.portfolio-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ===== Certificate Section ===== */

/* === FIX: tombol tidak menimpa sertifikat (layout pakai grid) === */
.cert-slider-wrapper {
  display: grid;
  /* ganti flex -> grid */
  grid-template-columns: 56px 1fr 56px;
  /* kolom kiri tombol, tengah viewport, kanan tombol */
  align-items: center;
  gap: 14px;
  width: min(1100px, 92vw);
  /* lebar wrapper responsif */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Base tombol */
.cert-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transform: translateZ(0);
  will-change: transform;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
}

.cert-nav-btn i {
  font-size: 1.05rem;
}

.cert-nav-btn:hover {
  transform: translateZ(0) scale(1.06);
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .70), 0 0 22px rgba(34, 197, 94, .18);
}

.cert-nav-btn:active {
  transform: translateZ(0) scale(1.02);
}

.cert-nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Optional: tombol nempel kiri/kanan viewport (lebih “premium”) */
.cert-prev,
.cert-next {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  z-index: 20;
}

.cert-prev {
  left: 18px;
}

.cert-next {
  right: 18px;
}

.cert-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.cert-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  /* di atas background */
}

.cert-nav-btn {
  position: relative;
  z-index: 3;
  /* pastikan di atas kartu sertifikat */
}

.cert-viewport {
  width: 900px;
  /* area tampilan */
  max-width: 80vw;
  overflow: hidden;
  /* balik ke model awal */
}

.cert-track {
  display: flex;
  transition: transform 0.4s ease;
}

.cert-card.active {
  transform: scale(1);
  /* sedikit lebih besar */
  opacity: 1;
  box-shadow: none !important;
}


.cert-card.active {
  transform: translate(-50%, -55%) scale(1);
  /* -55% sedikit naik */
}


/* opsional, kartu di kanan dikasih sedikit geser */
.cert-card.next {
  transform: translateX(-10%) scale(0.95);
  opacity: 0.8;
}

/* opsional, kartu di kiri juga */
.cert-card.prev {
  transform: translateX(10%) scale(0.95);
  opacity: 0.8;
}

/* Desktop & tablet: tombol tetap muncul (tidak diubah) */

/* Mobile: sembunyikan tombol panah */
@media (max-width: 768px) {

  .cert-nav-btn,
  .cert-prev,
  .cert-next {
    display: none !important;
  }

  /* Biar user tetap bisa geser sertifikat dengan swipe */
  .cert-viewport {
    width: 100%;
    max-width: 100%;
    /* ===== Mini Data Pipeline Simulation ===== */

    /* Section Background */
    #pipeline-demo {
      background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 20%);
    }

    /* Pipeline Node States */
    .pipeline-node {
      transition: all 0.3s ease;
    }

    .pipeline-node.active .w-16 {
      border-color: #38bdf8;
      box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
      animation: pulseNode 1.5s infinite;
    }

    .pipeline-node.active i {
      color: #38bdf8;
    }

    .pipeline-node.success .w-16 {
      border-color: #00ff88;
      background: rgba(0, 255, 136, 0.05);
      box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    }

    .pipeline-node.success i {
      color: #00ff88;
    }

    .pipeline-node.failed .w-16 {
      border-color: #ef4444;
      background: rgba(239, 68, 68, 0.05);
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    }

    .pipeline-node.failed i {
      color: #ef4444;
    }

    @keyframes pulseNode {
      0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
      }

      70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
      }

      100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
      }
    }

    /* Connectors */
    .connector-active {
      background-color: #38bdf8 !important;
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
      transition: background-color 0.5s ease;
    }

    /* Logs Scrollbar */
    #pipeline-logs::-webkit-scrollbar {
      width: 6px;
    }

    #pipeline-logs::-webkit-scrollbar-track {
      background: #0b0f14;
    }

    #pipeline-logs::-webkit-scrollbar-thumb {
      background: #334155;
      border-radius: 3px;
    }

    #pipeline-logs::-webkit-scrollbar-thumb:hover {
      background: #475569;
    }

    /* Log Entries */
    .log-entry {
      font-family: 'Fira Code', monospace;
      animation: fadeInLog 0.2s ease-out;
    }

    .log-entry.log-info {
      color: #94a3b8;
    }

    .log-entry.log-success {
      color: #00ff88;
    }

    .log-entry.log-error {
      color: #ef4444;
    }

    .log-entry.log-warn {
      color: #f59e0b;
    }

    @keyframes fadeInLog {
      from {
        opacity: 0;
        transform: translateY(5px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    overflow: hidden;
  }

  .cert-track {
    scroll-snap-type: x mandatory;
  }

  .cert-card {
    scroll-snap-align: center;
  }
}


/* 1. Style umum tombol – DI LUAR media query */
.cert-nav-btn {
  border: none;
  border: none;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}


.cert-nav-btn:hover {
  background: rgba(16, 185, 129, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.cert-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.cert-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

/* 2. Baru di dalam media query, HANYA pengaturan ukuran jarak di mobile */
@media (max-width: 768px) {
  .cert-slider-wrapper {
    gap: 6px;
  }

  .cert-viewport {
    max-width: 80vw;
    /* lebar maksimum kartu di mobile */
  }

  .cert-nav-btn {
    min-width: 32px;
    height: 32px;
  }
}


.cert-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  /* naikkan kalau masih kurang besar */
  object-fit: contain;
  border-radius: 12px;
}

.cert-subtitle {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Filter pills */
.cert-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  margin: 0 auto 30px;
}

.cert-filter-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cert-filter-btn:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
}

.cert-filter-btn.active {
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  color: #020617;
}

/* Grid */
/* Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.cert-card {
  display: block;
  /* Reset from flex */
  width: 100%;
  height: 100%;
  /* Remove flex basis, margin, transform, opacity that were breaking it */
}

/* Remove the specific hover effects that might conflict with Tailwind classes if necessary, 
   but keeping the previous .cert-card::before removal is good. */
.cert-card::before {
  content: none !important;
}

.cert-card:hover {
  /* Only keep essential hover states if not covered by Tailwind */
  transform: translateY(-5px);
}


.cert-card:hover::before {
  opacity: 1;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.cert-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
}

.cert-title {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.cert-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* View button */
.cert-view-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  color: #020617;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    filter 0.18s ease, background 0.18s ease;
}

.cert-view-btn::after {
  content: '↗';
  font-size: 0.76rem;
}

.cert-view-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(34, 197, 94, 0.45),
    0 0 20px rgba(6, 182, 212, 0.45);
  filter: saturate(1.2);
}

/* Fade-in on scroll */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.cert-modal.open {
  display: flex;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-body);
  /* Fallback */
  background: rgba(15, 23, 42, 0.82);
  /* Keep dark for modal backdrop? Probably yes */
  backdrop-filter: blur(10px);
}

.cert-modal-dialog {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  background: radial-gradient(circle at top left,
      rgba(34, 197, 94, 0.18),
      #020617 55%);
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow:
    0 28px 80px var(--shadow-color),
    0 0 0 1px var(--border-color);
  overflow: hidden;
  z-index: 61;
  display: flex;
  flex-direction: column;
}

.cert-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  background: var(--bg-panel);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-modal-title {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cert-modal-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #020617;
}

/* Mobile */
@media (max-width: 768px) {
  .cert-viewport {
    width: 100% !important;
    overflow-x: hidden;
  }

  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* One column on mobile usually */
    justify-content: center;
  }

  .cert-card {
    margin: 0 auto;
    /* Center cards */
  }
}



/* link kecil 'Lihat Detail' mirip 'SHOW MORE' */
.btn-link {
  font-size: 0.75rem;
  color: #f97373;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-link:hover {
  color: #fb7185;
}



/* ===== Project CTA Section ===== */
.project-cta {
  padding: 60px 0;
  background: transparent;
}


.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark-bg);
  padding: 40px 50px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text h2 {
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.cta-text p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Contact Section ===== */
.contact {
  padding: 80px 0;
  background: transparent;
}


.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

/* ===== TAMBAHAN: Modern Message Box Styles ===== */
.message-box {
  display: none;
  margin-top: 30px;
  padding: 35px 40px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-box {
  background: linear-gradient(135deg,
      rgba(0, 255, 136, 0.1) 0%,
      rgba(0, 217, 255, 0.1) 100%);
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3),
    0 0 60px rgba(0, 255, 136, 0.2),
    inset 0 0 30px rgba(0, 255, 136, 0.05);
}

.success-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 255, 136, 0.3),
      transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.error-box {
  background: linear-gradient(135deg,
      rgba(255, 68, 68, 0.1) 0%,
      rgba(255, 100, 100, 0.1) 100%);
  border: 2px solid #ff4444;
  box-shadow: 0 10px 40px rgba(255, 68, 68, 0.3),
    0 0 60px rgba(255, 68, 68, 0.2),
    inset 0 0 30px rgba(255, 68, 68, 0.05);
}

.message-box .message-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: scaleUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6),
    0 0 60px rgba(0, 255, 136, 0.4);
}

@keyframes scaleUp {
  from {
    transform: scale(0) rotate(0deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}

.icon-circle i {
  font-size: 2.5rem;
  color: #000;
  animation: iconPop 0.3s ease 0.8s both;
}

@keyframes iconPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.error-circle {
  background: #ff4444;
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.6),
    0 0 60px rgba(255, 68, 68, 0.4);
}

/* ===== Animated Checkmark - DIPERBAIKI ===== */
.success-checkmark {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 0;
  /* Hapus border biar tidak double */
  background: transparent;
}

.icon-line {
  height: 5px;
  background-color: #000;
  /* Warna hitam agar kontras dengan background hijau */
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: checkTip 0.75s ease 0.5s both;
}

@keyframes checkTip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: checkLong 0.75s ease 0.5s both;
}

@keyframes checkLong {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

.icon-circle-check {
  display: none;
  /* Sembunyikan circle check yang bikin berantakan */
}

.icon-fix {
  display: none;
  /* Sembunyikan icon fix yang tidak perlu */
}

.message-content {
  text-align: center;
}

.message-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.5s ease 0.4s both;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  animation: fadeInUp 0.5s ease 0.6s both;
}

.error-box .message-title {
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease 0.8s both;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.retry-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.retry-btn i {
  font-size: 1.2rem;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.icon-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  animation: pulse-ring 1.5s ease-out infinite;
}

.error-circle::before {
  border-color: #ff4444;
}

/* ===== AKHIR TAMBAHAN Message Box ===== */

/* ===== Happy Clients Section ===== */
.happy-clients {
  padding: 80px 0;
  background: var(--card-bg);
  text-align: center;
}

.clients-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.clients-subtitle {
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1rem;
  line-height: 1.6;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo i {
  font-size: 3rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.client-logo span {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.client-logo:hover i,
.client-logo:hover span {
  color: var(--primary-color);
  transform: translateY(-5px);
}


/* ===== New Footer ===== */
.footer-new {
  background: var(--dark-bg);
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-brand h3 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-social-new {
  display: flex;
  gap: 20px;
}

.footer-social-new a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-new a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
}

/* ===== Old Footer Hidden ===== */
/* ===== Footer ===== */
.footer {
  background: transparent;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer p {
  color: var(--text-secondary);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3),
    0 0 40px rgba(0, 255, 136, 0.2),
    inset 0 0 15px rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ff88, #00d9ff, #00ff88);
  border-radius: 50%;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-social a:hover::before {
  opacity: 0.8;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6),
    0 0 60px rgba(0, 255, 136, 0.4),
    inset 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Instagram */
.footer-social a:nth-child(1) {
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.4),
    0 0 40px rgba(225, 48, 108, 0.2),
    inset 0 0 15px rgba(225, 48, 108, 0.1);
  border: 1px solid rgba(225, 48, 108, 0.4);
}

.footer-social a:nth-child(1)::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:nth-child(1):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 0 30px rgba(225, 48, 108, 0.6),
    0 0 60px rgba(225, 48, 108, 0.4);
}

/* GitHub */
.footer-social a:nth-child(2) {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2),
    inset 0 0 15px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.footer-social a:nth-child(2)::before {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.footer-social a:nth-child(2):hover {
  background: #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
    0 0 60px rgba(139, 92, 246, 0.4);
}

/* LinkedIn */
.footer-social a:nth-child(3) {
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.4),
    0 0 40px rgba(0, 119, 181, 0.2),
    inset 0 0 15px rgba(0, 119, 181, 0.1);
  border: 1px solid rgba(0, 119, 181, 0.4);
}

.footer-social a:nth-child(3)::before {
  background: linear-gradient(45deg, #0077B5, #005885);
}

.footer-social a:nth-child(3):hover {
  background: #0077B5;
  box-shadow: 0 0 30px rgba(0, 119, 181, 0.6),
    0 0 60px rgba(0, 119, 181, 0.4);
}

/* YouTube */
.footer-social a:nth-child(4) {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4),
    0 0 40px rgba(255, 0, 0, 0.2),
    inset 0 0 15px rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.4);
}

.footer-social a:nth-child(4)::before {
  background: linear-gradient(45deg, #FF0000, #cc0000);
}

.footer-social a:nth-child(4):hover {
  background: #FF0000;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6),
    0 0 60px rgba(255, 0, 0, 0.4);
}

/* Email */
.footer-social a:nth-child(5) {
  box-shadow: 0 0 20px rgba(234, 67, 53, 0.4),
    0 0 40px rgba(234, 67, 53, 0.2),
    inset 0 0 15px rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.4);
}

.footer-social a:nth-child(5)::before {
  background: linear-gradient(45deg, #EA4335, #c5221f);
}

.footer-social a:nth-child(5):hover {
  background: #EA4335;
  box-shadow: 0 0 30px rgba(234, 67, 53, 0.6),
    0 0 60px rgba(234, 67, 53, 0.4);
}

/* ===== Button CV Styles ===== */
.btn-cv {
  background: transparent;
  white-space: nowrap;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-cv:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

/* CV Dropdown Menu Visibility */
#cv-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.cv-item-hover:hover {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
}

.dashboard-link {
  color: #94a3b8 !important;
  border: 2px solid #4b5563 !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
  width: auto;
}

.dashboard-link:hover {
  border-color: #00ff88 !important;
  color: #00ff88 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

/* AI Advisor Button - Premium Effect */
.btn-ai-advisor {
  position: relative !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #00ff88 !important;
  border: 1px solid rgba(0, 255, 136, 0.4) !important;
  overflow: visible !important;
  /* Allow badge to overflow */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 12px 25px !important;
  font-weight: 700 !important;
  z-index: 10;
}

.btn-ai-advisor:hover {
  transform: translateY(-4px) scale(1.03) !important;
  border-color: #00ff88 !important;
  color: #fff !important;
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3),
    0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-ai-advisor i {
  color: #00ff88 !important;
  font-size: 0.9rem;
  margin-right: 8px;
  filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
}

.btn-ai-advisor:hover i {
  animation: sparkle-rotate 0.6s ease-in-out;
}

@keyframes sparkle-rotate {
  0% {
    transform: scale(1) rotate(0);
  }

  50% {
    transform: scale(1.4) rotate(180deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

.ai-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  background: #00ff88;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  z-index: 20;
}

@keyframes pulse-badge-glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
  }

  100% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
  }
}

.ai-badge {
  animation: pulse-badge-glow 2s infinite ease-in-out;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    transform: translateX(0px);
    top: 80px;
    flex-direction: column;
    background: var(--bg-sidebar);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 30px 0;
    gap: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .image-wrapper {
    width: 300px;
    height: 400px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-icons {
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 30px 25px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn,
  .cta-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .image-wrapper {
    width: 250px;
    height: 350px;
  }

  .clients-logos {
    grid-template-columns: 1fr;
  }

  .clients-title {
    font-size: 2rem;
  }
}

.project-detail-body {
  background: var(--bg-body);
  color: var(--text-primary);
}

.project-detail-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #00ff88;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.project-detail-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-detail-subtitle {
  color: #9ca3af;
  max-width: 700px;
}

.project-detail-main {
  padding: 40px 0 60px;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 32px;
}

.project-detail-content h2 {
  margin: 24px 0 10px;
  font-size: 1.3rem;
}

.project-detail-content p,
.project-detail-content li {
  color: var(--text-secondary);
}

.project-detail-card {
  background: var(--bg-panel);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.project-detail-card h3 {
  margin-bottom: 10px;
}

.project-detail-card ul {
  list-style: none;
  padding: 0;
}

.project-detail-card li {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .skill-card {
    width: 150px;
    height: 150px;
  }

  .skill-icon img {
    width: 52px;
    height: 52px;
  }
}

/* Pusatkan Featured Projects */
.portfolio h2.section-title,
.portfolio-header h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 600px;
}

/* Opsional: Tambah underline glow seperti section lain */
.portfolio h2.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Pusatkan Sertifikat di Mobile */
@media (max-width: 768px) {
  .cert-header {
    text-align: center !important;
    padding: 0 16px;
  }

  .cert-header h2.section-title {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 90vw;
  }

  /* Pastikan container slider juga center */
  .cert-section .container {
    align-items: center;
    text-align: center;
  }
}

.skills-track .skill-card {
  border: 1px solid rgba(31, 41, 55, 0.8) !important;
  /* Abu gelap semua */
  box-shadow: none !important;
  /* Shadow hitam uniform */
  background: #111827 !important;
  /* Bg gelap sama */
}

.skills-track .skill-card:nth-child(n) {
  /* Reset semua nth-child */
  border-color: rgba(31, 41, 55, 0.8) !important;
  box-shadow: none !important;
}



/* Hover - efek tambahan saja */
.skill-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: none !important;
}

/* NO SHADOW Skills - Clean Flat */
.skills-section .skill-card,
.skill-card {
  box-shadow: none !important;
  filter: none !important;
  -webkit-box-shadow: none !important;
  -webkit-filter: none !important;
}

/* Hover minimal - hanya border glow */
.skill-card:hover {
  box-shadow: none !important;
  transform: translateY(-4px);
  border-width: 3px !important;
}

/* Pastikan marquee clean */
.skill-track {
  filter: drop-shadow(0 0 0 transparent) !important;
}

@media (max-width: 768px) {
  .skill-card {
    width: 140px !important;
    height: 140px !important;
    padding: 15px !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .skill-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 8px !important;
    justify-content: center !important;
  }

  .skill-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .skill-label {
    margin-bottom: 4px !important;
    text-align: center !important;
    width: 100%;
  }

  .skill-name {
    font-size: 0.75rem !important;
    /* Masih readable */
    letter-spacing: 0 !important;
    margin: 0 !important;
    padding: 0 5px !important;
    white-space: normal !important;
    /* Wrap jika perlu */
  }

  .skills-track,
  .skills-set {
    gap: 12px !important;
    /* Gap antar card kecil */
  }
}

@media (max-width: 480px) {
  .skill-card {
    width: 120px !important;
    height: 120px !important;
  }

  .skill-name {
    font-size: 0.7rem !important;
  }
}

/* Force no shadow semua skill card */
.skills-section article.skill-card,
.skills-track article {
  filter: none !important;
  -webkit-filter: none !important;
}

/* ===== Tambahan Navbar  ===== */
.nav-link.active {
  color: #000 !important;
  background: var(--primary-color) !important;
}

html {
  scroll-behavior: smooth;
}

/* Mobile menu spacing */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px !important;
    /* Spasi lebih untuk 6 item */
  }
}

/* ===== Education Section ===== */
.education-section {
  padding: 80px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* List item pendidikan: sekolah | tahun */
.edu-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* Nama sekolah fleksibel, tahun tetap rapih */
.edu-school {
  flex: 1;
  min-width: 0;
}

/* Tahun tidak pecah baris */
.edu-year {
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Separator | otomatis sebelum tahun */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}


/* Legacy Education Styles Removed - Replaced by SaaS Redesign at the end of file */

/* 1. Bungkus tiap card */
.project-electric {
  border-radius: 24px;
  overflow: hidden;
}

/* Card utama */
.project-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 18px 45px var(--shadow-color);
}

/* 3. Hilangkan gap visual di grid */
.portfolio-grid {
  align-items: stretch;
  /* semua card sama tinggi */
}


.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.9);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.95),
    0 0 30px rgba(45, 212, 191, 0.28);
}

/* ====== FIX: Thumbnail inset agar gambar tidak memenuhi border ====== */
.project-thumb--v2 {
  height: 230px;
  /* tinggi area frame */
  padding: 26px;
  /* INI yang bikin gambar terlihat lebih kecil */
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border-light);
  overflow: visible;
  position: relative;
  display: block;
}

.project-thumb--v2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* penting: biar screenshot HP tidak kepotong */
  background: #000000;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: none;
}

/* overlay mengikuti padding */
.project-thumb--v2::after {
  content: "";
  position: absolute;
  inset: 26px;
  /* harus sama dengan padding */
  border-radius: 16px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0));
  opacity: 0.65;
  pointer-events: none;
}

/* ===== Navbar: perkecil ukuran (desktop) ===== */
.navbar {
  padding: 6px 0 !important;
}

.navbar .container {
  min-height: 48px;
  /* tinggi navbar lebih kecil */
}

/* pill menu lebih tipis */
.nav-menu {
  gap: 8px !important;
  padding: 4px 6px !important;
}

/* item link lebih kecil */
.nav-link {
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  /* kecilkan area klik */
  border-radius: 999px !important;
}

/* logo + jam juga ikut diperkecil biar proporsional */
.logo {
  font-size: 1rem !important;
}

#live-clock {
  font-size: 0.8rem !important;
  padding: 3px 10px !important;
}

.navbar .container {
  max-width: 100% !important;
  padding-right: 12px !important;
  padding-left: 12px !important;
}

/* === FIX HOVER CERT NAV (NO FLICKER) === */
.cert-slider-wrapper {
  position: relative;
  overflow: visible;
}

.cert-prev,
.cert-next {
  position: static;
  /* penting: hilangkan absolute */
  transform: none;
  /* hilangkan translateY */
  z-index: 3;
}

.cert-prev {
  left: 18px;
}

.cert-next {
  right: 18px;
}

.cert-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .55);

  /* stabil di layer transform */
  transform: translateZ(0);
  will-change: transform;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* ganti translateY jadi scale */
.cert-nav-btn:hover {
  transform: translateZ(0) scale(1.06);
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .70), 0 0 22px rgba(34, 197, 94, .18);
}

.cert-nav-btn:active {
  transform: translateZ(0) scale(1.02);
}

/* === FIX spacing marquee skills ===
.skills-marquee {
  padding-inline: 28px;
  
}

.skills-track {
  gap: 28px !important;
  /* jarak antar card (override rule lama) 
}
*/

.skill-card {
  margin: 0 !important;
  /* pastikan tidak ada margin aneh */
}

/* versi mobile biar tetap ada jarak */
@media (max-width: 768px) {
  .skills-marquee {
    padding-inline: 16px;
  }

  /*
  .skills-track {
    gap: 16px !important;
  }
*/
}

/* === Fix icon center in skill card === */
.skill-card {
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  /* ganti gap besar 45px */
  padding: 22px 18px !important;
  /* biar ada ruang */
}

.skill-icon {
  width: 72px !important;
  height: 72px !important;
  display: grid !important;
  place-items: center !important;
  /* ini yang bikin ikon dead-center */
}

.skill-icon img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  display: block !important;
}

.skill-name {
  margin: 0 !important;
  /* hilangkan margin-top yang ganggu */
  line-height: 1.2;
}

/* Mobile */
@media (max-width: 768px) {
  .skill-icon {
    width: 64px !important;
    height: 64px !important;
  }

  .skill-icon img {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Default kalau ada card belum dikasih warna */
.skill-card {
  --c1: #22c55e;
  --c2: #06b6d4;
}

/* Background card saat hover: ikut warna */
.skill-card:hover {
  background: radial-gradient(circle at 30% 20%,
      color-mix(in srgb, var(--c1) 45%, transparent),
      #111827 70%) !important;
  border-color: color-mix(in srgb, var(--c1) 55%, rgba(31, 41, 55, .85)) !important;
}

/* Snake border ikut warna */
.skill-card::after {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(0, 0, 0, 0) 40deg,
      var(--c1) 55deg,
      var(--c2) 62deg,
      color-mix(in srgb, var(--c1) 20%, transparent) 75deg,
      transparent 95deg,
      transparent 360deg);

  box-shadow:
    0 0 14px color-mix(in srgb, var(--c1) 70%, transparent),
    0 0 26px color-mix(in srgb, var(--c2) 50%, transparent);
}

/* FIX marquee: card tidak putus 
.skills-track {
  display: flex !important;
  width: max-content !important;
  gap: 28px !important;
  /* pastikan gap konsisten 
}
  */

/* Card jangan shrink (biar hitungan 50% pas) */
.skills-track>.skill-card {
  flex: 0 0 auto !important;
}

/* Snake border jangan melebar keluar (ini yang bikin sambungan kelihatan putus) */
.skill-card::after {
  inset: 0 !important;
  /* kalau sebelumnya -2px, ganti jadi 0 */
}

/* MOBILE: kunci gap & jangan berubah-ubah */
@media (max-width: 768px) {
  .skills-track {
    gap: 16px !important;
    /* samakan & kunci */
  }

  .skills-track>.skill-card {
    flex: 0 0 auto !important;
    /* jangan shrink */
  }

  /* snake jangan menambah lebar visual */
  .skill-card::after {
    inset: 0 !important;
    /* override yang -2px di bawah */
  }
}

/* Mobile tidak ada hover, jadi aktifkan efek saat tap/focus */
.skill-card:active,
.skill-card:focus-visible,
.skill-card:focus-within {
  transform: translateY(-3px) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
}

.skill-card:active::after,
.skill-card:focus-visible::after,
.skill-card:focus-within::after {
  opacity: 0.9;
  /* kalau efek ular kamu pakai opacity */
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.75), 0 0 30px rgba(6, 182, 212, 0.45) !important;
}

/* Legacy dashboard-link styles removed */

/* Modern Certificates Section Utilities */
@keyframes pulse-subtle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.98);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/*
@media (prefers-reduced-motion: reduce) {
  .animate-pulse-subtle {
    animation: none;
  }
}
*/

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== AI Advisor Nav Button (scoped) ===== */
.nav-link.ai-advisor-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff !important;
  font-weight: 600;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-link.ai-advisor-btn:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(168, 85, 247, 0.22));
  color: #00f0ff !important;
}

.nav-link.ai-advisor-btn.active {
  background: linear-gradient(135deg, #00f0ff, #a855f7) !important;
  color: #000 !important;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* ===== SKILLS: TRUE INFINITE MARQUEE (LOCKED) ===== */
.skills-marquee {
  position: relative;
  overflow: hidden;
  /* penting: hide area luar */
  width: 100%;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* track harus memanjang sesuai konten + tidak wrap */
.skills-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: 28px !important;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: skills-marquee-left 26s linear infinite !important;
}

/* dua set wajib tidak wrap & tidak shrink */
.skills-set {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  flex-shrink: 0;
}

.skills-set>.skill-card {
  flex: 0 0 auto;
}

/* pause saat hover di desktop */
@media (hover: hover) {
  .skills-marquee:hover .skills-track {
    animation-play-state: paused;
  }
}

/* keyframes: geser setengah lebar track (karena isinya 2 set identik) */
@keyframes skills-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* mobile spacing */
@media (max-width: 768px) {
  .skills-marquee {
    padding: 14px 0;
  }

  .skills-track {
    gap: 16px !important;
    animation-duration: 22s !important;
  }

  .skills-set {
    gap: 16px;
  }
}

/* ===== Education Section Redesign ===== */
/* ===== Education Section Redesign (Premium SaaS Style) ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.edu-card {
  position: relative;
  background: rgba(13, 17, 23, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.edu-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(13, 17, 23, 0.6);
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(0, 255, 136, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.edu-card>* {
  position: relative;
  z-index: 1;
}

/* Timeline Components */
.edu-timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-left: 0.5rem;
}

.edu-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom,
      rgba(0, 255, 136, 0.5) 0%,
      rgba(0, 255, 136, 0.1) 50%,
      transparent 100%);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.edu-timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.edu-timeline-item:last-child {
  margin-bottom: 0;
}

.edu-dot {
  position: absolute;
  left: -2.95rem;
  top: 0.6rem;
  width: 12px;
  height: 12px;
  background-color: #0d1117;
  border: 2px solid rgba(0, 255, 136, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.edu-timeline-item:hover .edu-dot {
  background-color: #00ff88;
  border-color: #00ff88;
  transform: scale(1.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Header & List Adjustments */
.edu-card header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-bottom: 2.5rem !important;
  padding-bottom: 2rem !important;
}

.edu-card h3 {
  letter-spacing: -0.02em;
}

.edu-card ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-card ul li i {
  filter: drop-shadow(0 0 5px currentColor);
  opacity: 0.8;
}

/* ===== Modern Contact Messages ===== */
.message-box {
  display: none;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success State */
.success-box {
  border-left: 4px solid #00ff88;
  background: linear-gradient(to right, rgba(0, 255, 136, 0.05), rgba(15, 23, 42, 0.8));
}

.success-box .message-title {
  color: #00ff88;
}

/* Error State */
.error-box {
  border-left: 4px solid #ef4444;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.05), rgba(15, 23, 42, 0.8));
}

.error-box .message-title {
  color: #ef4444;
}

/* Content Typography */
.message-content {
  flex: 1;
}

.message-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.message-text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Icons & Animation Wrappers */
.message-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.success-box .icon-circle {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.error-box .icon-circle {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Retry Button */
.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

/* Animated Checkmark CSS */
.success-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  display: block;
}

.check-icon {
  width: 56px;
  height: 56px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 3px solid rgba(0, 255, 136, 0.5);
}

.check-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: -2px;
  width: 30px;
  height: 56px;
  /* Added height */
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 60px;
  height: 56px;
  /* Added height */
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.icon-line {
  height: 4px;
  background-color: #00ff88;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 30px;
  left: 10px;
  width: 18px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 24px;
  right: 6px;
  width: 32px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle-check {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(0, 255, 136, 0.5);
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: transparent;
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 30px;
    left: -6px;
    top: 30px;
  }

  84% {
    width: 14px;
    left: 15px;
    top: 35px;
  }

  100% {
    width: 18px;
    left: 10px;
    top: 30px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 36px;
    right: 0px;
    top: 25px;
  }

  100% {
    width: 32px;
    right: 6px;
    top: 24px;
  }
}

/* Hide the simple check icon if using the animated one */
.success-box .icon-circle i {
  display: none;
}

/* Clear icon circle background for success since using animated one */
.success-box .icon-circle {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* =========================================
   MOBILE RESPONSIVENESS POLISH
   ========================================= */
@media (max-width: 768px) {

  /* --- Global Container --- */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- Hero Section --- */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
    justify-content: flex-start;
    /* Align closer to top on mobile */
    min-height: auto;
    /* Allow content to dictate height if needed */
  }

  .hero-container {
    grid-template-columns: 1fr;
    /* Stack vertically */
    gap: 40px;
  }

  .hero-content {
    order: 2;
    /* Text below image */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    order: 1;
    /* Image on top */
    justify-content: center;
    margin-bottom: 0;
  }

  /* Scale down Hero Typography */
  .hero-title {
    font-size: 2.25rem;
    /* 36px */
    line-height: 1.3;
  }

  .greeting {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    max-width: 100%;
  }

  /* Hero Buttons Stack/Wrap */
  .hero-buttons {
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-buttons .btn {
    width: 100%;
    /* Full width buttons on mobile usually look better or auto */
    justify-content: center;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .social-icons {
    justify-content: center;
    gap: 1rem;
  }

  /* --- Profile Orbit (Image) --- */
  .profile-orbit {
    width: 260px;
    height: 260px;
  }

  /* --- Section Titles --- */
  .section-title {
    font-size: 2rem !important;
    /* Force smaller size */
  }

  /* --- Sidebar Overlay --- */
  #mobile-overlay {
    background: rgba(0, 0, 0, 0.7);
    /* Darker overlay */
  }

  /* --- Sidebar --- */
  #sidebar {
    width: 280px;
    /* Wider drawer */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  /* Fix Clock Position in Drawer */
  #live-clock-container {
    top: 1.25rem;
    left: 1.25rem;
  }

  /* --- Certificate Grid --- */
  .cert-grid {
    grid-template-columns: 1fr;
    /* Force 1 column on mobile */
    gap: 1.5rem;
    padding: 0;
  }

  /* --- Contact Section --- */
  .contact-section {
    padding: 60px 0;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .message-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
  }
}

/* ===== Language Switcher ===== */
#langSelect option {
  background-color: #0b0f14;
  color: white;
  padding: 5px;
}

/* ===== Project Cards Alignment Fix ===== */
.project-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.project-card .flex-1 {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.project-card .mt-auto {
  margin-top: auto !important;
}

.project-card .project-actions {
  margin-top: auto !important;
  display: flex !important;
}

/* Force hide filtered projects even with !important on .project-card */
.project-hidden {
  display: none !important;
}

/* ===== Target Companies Section (Modern Redesign) - HIDDEN =====
.target-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .target-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.target-card {
  background: rgba(26, 31, 46, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.target-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.08), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.target-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(26, 31, 46, 0.6);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 136, 0.1);
}

.target-card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), transparent 50%);
  pointer-events: none;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.company-logo {
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(11, 15, 20, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.target-card:hover .company-logo {
  border-color: var(--primary-color);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.25);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-name {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.target-role-container {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.target-role {
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.target-card:hover .target-role {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(5px);
}

.target-reason {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.target-card:hover .target-reason {
  opacity: 1;
  color: #f8fafc;
}

.card-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  transition: all 0.5s ease;
}

.target-card:hover .card-decoration {
  transform: scale(1.5);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
} */