@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors - Modern Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-accent: #eef2ff;
  
  --primary: #3b82f6; /* Modern Blue */
  --primary-dark: #2563eb;
  --secondary: #8b5cf6; /* Modern Purple */
  --secondary-dark: #7c3aed;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Spacing */
  --container-max: 1200px;
  --container-narrow: 800px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows - Premium Soft Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--bg-accent);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-premium);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
}

/* Ad Slots */
.ad-slot {
  margin: 3rem 0;
  padding: 1rem;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 0;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more i {
  transition: var(--transition);
}

.article-card:hover .read-more i {
  transform: translateX(4px);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Article Detail Page */
.article-header {
  padding: 4rem 0 3rem;
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.article-meta-top {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-premium);
}

.article-body {
  max-width: var(--container-narrow);
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.75rem;
}

.article-body h3 {
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body blockquote {
  padding: 2rem;
  background: var(--bg-accent);
  border-left: 4px solid var(--primary);
  font-style: italic;
  font-size: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.75rem;
}

/* About & Contact Pages */
.page-header {
  padding: 4rem 0;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   NEXTSTEP ADDITIONS
   ===================================================== */

.nav-star {
  color: var(--primary) !important;
  font-weight: 700 !important;
  background: rgba(59,130,246,0.09);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.87rem;
}
.nav-star:hover { background: rgba(59,130,246,0.18) !important; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-dropdown-toggle .arrow { font-size: 0.65rem; transition: transform 0.3s ease; display: inline-block; }
.nav-dropdown:hover .nav-dropdown-toggle .arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); min-width: 168px; padding: 0.5rem;
  display: none; flex-direction: column; z-index: 1200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px; /* Bridge the gap */
  z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.active .nav-dropdown-menu { display: flex; }
.nav-dropdown.active .nav-dropdown-toggle .arrow { transform: rotate(180deg); }
.nav-dropdown-menu a { display: block; padding: 0.55rem 1rem; border-radius: 8px; color: var(--text-main); font-size: 0.88rem; font-weight: 500; }
.nav-dropdown-menu a:hover { background: var(--bg-accent); color: var(--primary); }

.position-picker { padding: 3rem 0 1rem; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.position-picker h2 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.position-picker .picker-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.picker-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.picker-btn {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1.4rem;
  border: 2px solid var(--border); border-radius: 20px; background: var(--bg-secondary);
  font-family: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  text-decoration: none; color: var(--text-main); transition: all 0.3s; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.picker-btn:hover, .picker-btn.active-filter { border-color: var(--primary); color: var(--primary); background: var(--bg-accent); transform: translateY(-3px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.tag-cuan      { background: rgba(16,185,129,0.09)!important; color: #059669!important; }
.tag-motivasi  { background: rgba(245,158,11,0.09)!important;  color: #d97706!important; }
.tag-skill     { background: rgba(139,92,246,0.09)!important;  color: #7c3aed!important; }
.tag-teknologi { background: rgba(59,130,246,0.09)!important;  color: #2563eb!important; }

.start-grid { grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.start-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: all 0.3s; }
.start-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); border-color: var(--primary); }
.start-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.start-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.start-card > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.start-card ul { padding-left: 0; list-style: none; }
.start-card ul li { margin-bottom: 0.55rem; }
.start-card ul li a { color: var(--primary); font-size: 0.87rem; font-weight: 600; }
.start-card ul li a:hover { text-decoration: underline; }

.section-header { margin-bottom: 0.5rem; }
.section-header h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.section-header p { color: var(--text-muted); }

@media (max-width: 768px) {
  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding-left: 1rem; }
  .picker-btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
  .start-grid { grid-template-columns: 1fr; }
}

/* Contact Page Improvements */
.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: transparent;
}

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

.contact-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  transition: var(--transition);
}

.contact-card:hover .contact-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.icon-email { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.icon-whatsapp { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.icon-instagram { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.icon-location { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-btn {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
  border: 1px solid var(--border);
  text-align: center;
}

.contact-card:hover .contact-btn {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  }
}

/* Article Back Button */
.back-nav {
  margin-bottom: 2.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-5px);
  background: var(--bg-accent);
}

.back-btn svg {
  transition: transform 0.3s ease;
}
