:root {
  --primary-color: #d70040;
  --primary-dark: #9e0030;
  --secondary-color: #ffc107;
  --dark-color: #1a1a1a;
  --light-bg: #fff0f3;
  --white: #ffffff;
  --text-color: #333333;
  --gray: #64748b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

header {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
}
.logo .dot { color: var(--primary-color); }

.nav-links a {
  color: #cbd5e1;
  margin-left: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--primary-color);
}

.nav-btn {
  padding: 8px 24px !important;
  margin-left: 30px;
}

#hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
  max-width: 500px;
}

.gradient-text {
  background: linear-gradient(to right, #ff8fa3, #fff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: #ffca2c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.hero-buttons { margin-top: 20px; }

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.code-card-float {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: monospace;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: float 6s ease-in-out infinite;
}

.code-header-dots span {
  display: inline-block; width: 10px; height: 10px; 
  border-radius: 50%; margin-right: 5px;
}
.code-header-dots span:nth-child(1) { background: #ff5f56; }
.code-header-dots span:nth-child(2) { background: #ffbd2e; }
.code-header-dots span:nth-child(3) { background: #27c93f; }

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

#bg-website {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.bg-story-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.story-content { flex: 1; }
.story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}
.story-content p {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1.1rem;
}

.story-image {
  flex: 1;
  text-align: center;
}

.story-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(215, 0, 64, 0.3);
  transform: rotate(-3deg);
  transition: 0.3s;
}
.story-card:hover { transform: rotate(0deg) scale(1.02); }
.story-card i { font-size: 4rem; margin-bottom: 20px; color: var(--secondary-color); }

#about { background-color: var(--white); }

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

.badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.badge-yellow { background: #fffbeb; color: #b45309; }

.intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s;
  border: 1px solid transparent;
}

.feature-box:hover {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateX(10px);
}

.f-icon {
  width: 50px; height: 50px;
  background: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bg-gray { background-color: #f8fafc; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}
.section-title::after {
  content: ''; display: block;
  width: 60px; height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--dark-color); }
.section-header p { color: var(--gray); margin-top: 10px; }

.materi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.materi-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border-bottom: 4px solid transparent;
}

.materi-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.icon-bg {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(215, 0, 64, 0.1) !important;
  color: var(--primary-color) !important;
}

.code-window {
  background: #1e293b;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.window-header {
  background: #334155;
  padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #22c55e; }
.window-body { padding: 25px; color: #e2e8f0; font-family: monospace; }
.copy-btn { background: none; border: none; color: #94a3b8; cursor: pointer; }

.bg-dark-colab { background-color: #111; }

.colab-container {
  max-width: 800px; margin: 0 auto;
  background: #1e1e1e;
  border-radius: 8px; overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.colab-cell { padding: 20px; display: flex; gap: 15px; }
.code-cell { background-color: #262626; border-left: 5px solid var(--primary-color); }

.run-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #444; background: #333;
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.run-btn:hover { background: var(--primary-color); border-color: var(--primary-color); }

.editor-area pre {
  margin: 0; font-family: 'Consolas', monospace; color: #abb2bf;
}
.kwd { color: #c678dd; } .func { color: #61afef; } .str { color: #98c379; } .var { color: #e06c75; }

.output-cell {
  background-color: #1e1e1e; color: #ddd;
  font-family: monospace; flex-direction: column; gap: 10px;
  border-top: 1px solid #333;
}

.colab-input {
  background: #333; border: 1px solid #555;
  color: white; padding: 5px 10px; border-radius: 4px; outline: none;
}
.result-text { color: #98c379; font-weight: bold; }

#latihan .section-header h2 {
  color: var(--primary-color) !important;
  text-shadow: 0 0 20px rgba(215, 0, 64, 0.4);
}

#latihan .section-header p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.bg-light { background-color: var(--light-bg); }

.team-wrapper {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
}

.card {
  background: var(--white);
  width: 320px; 
  padding: 30px 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(215, 0, 64, 0.15);
  border-color: rgba(215, 0, 64, 0.1);
}

.card img {
  width: 100px; height: 100px;
  border-radius: 50%; object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
  padding: 3px; background-color: white;
}

.card h4 {
  margin: 10px 0 5px; 
  font-size: 1.1rem;
  color: var(--dark-color); 
  font-weight: 700;
  transition: color 0.3s;
  line-height: 1.5; 
}
.card:hover h4 { color: var(--primary-color); }

.card p { font-size: 0.9rem; color: var(--primary-color); font-weight: 600; }

.modal {
  display: none; position: fixed; z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center; align-items: center;
}

.modal-content {
  background-color: white; padding: 40px; border-radius: 20px;
  text-align: center; width: 90%; max-width: 400px;
  position: relative; animation: slideDown 0.3s ease-out;
}

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

.modal-content img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--primary-color); margin-bottom: 20px;
}
.modal-content h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 5px; }
.modal-content p {
  font-size: 1.1rem; font-weight: bold; color: #555;
  background: #eee; padding: 5px 15px; border-radius: 50px; display: inline-block;
}

.close-btn {
  position: absolute; top: 15px; right: 20px;
  color: #ccc; font-size: 30px; font-weight: bold; cursor: pointer;
}
.close-btn:hover { color: var(--primary-color); }

.social-links { margin-top: 25px; display: flex; justify-content: center; gap: 15px; }
.btn-sosmed {
  text-decoration: none; padding: 10px 20px; border-radius: 8px;
  font-weight: bold; color: white; font-size: 0.9rem;
  transition: 0.2s;
}
.btn-sosmed:hover { transform: translateY(-3px); opacity: 0.9; }
.btn-sosmed.ig {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3);
}
.btn-sosmed.wa {
  background-color: #25D366;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

footer {
  background: #111; color: #94a3b8; padding: 60px 0; font-size: 0.95rem;
}

.footer-container {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px;
}

.footer-logo { color: white; font-size: 2rem; margin-bottom: 20px; font-weight: 800; }
.footer-logo .dot { color: var(--primary-color); }

.address-link {
  display: flex; align-items: start; gap: 15px;
  color: #fff !important; margin-bottom: 30px;
}
.address-link:hover { color: var(--primary-color) !important; }
.address-link i { color: var(--primary-color) !important; font-size: 1.5rem; }

.github-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background-color: #222; color: white; padding: 12px 24px;
  border-radius: 8px; font-weight: 600; transition: 0.3s;
}
.github-btn:hover { background-color: var(--primary-color); }

@media (max-width: 960px) {

  .container {
    width: 90%; 
  }
  
  .section-padding {
    padding: 60px 0; 
  }

  .nav-links { 
    display: none; 
  }

  .nav-container {
    padding: 0 15px;
    justify-content: space-between; 
  }
  
  .nav-btn {
    margin-left: 0;
    font-size: 0.8rem;      
    padding: 8px 16px !important; 
    width: auto !important; 
  }

  #hero {
    padding-top: 40px; 
    min-height: auto; 
    padding-bottom: 60px;
  }
  
  .hero-wrapper { 
    flex-direction: column-reverse;
    text-align: center; 
    gap: 30px;
  }
  
  .hero-content h1 { 
    font-size: 2.2rem; 
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .hero-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
  }
  
  .hero-buttons .btn { 
    width: 100%; 
    margin: 0; 
  }

  .hero-image {
    width: 100%;
    margin-bottom: 10px;
    zoom: 0.8; 
  }
  
  .bg-story-wrapper { 
    flex-direction: column; 
    gap: 40px;
  }
  
  .story-content h2 {
    font-size: 1.8rem;
  }
  
  .story-card { 
    transform: rotate(0); 
    width: 100%;
    margin-top: 20px;
  }

  .intro-grid {
    grid-template-columns: 1fr; 
    gap: 40px;
  }

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

  .code-window {
    width: 100%;
    font-size: 0.8rem; 
  }
  
  .colab-cell {
    flex-direction: column; 
    padding: 15px;
  }
  
  .colab-input {
    width: 100%; 
  }
  
  .team-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;        
    max-width: 350px;   
  }

  .footer-container { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center;
  }

  .address-link {
    justify-content: center; 
    text-align: left; 
    display: inline-flex;
  }

  .modal-content {
    width: 90%;
    padding: 30px 20px;
    margin: 0 20px;
  }
}