/* CSS Variables */
:root {
  --bg: #0b0f14;
  --bg-soft: #0f141b;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --blue: #0ea5e9;
  --blue-strong: #1e3a8a;
  --line: #1f2937;
  --card: #0f1720;
  --shadow: rgba(14, 165, 233, 0.1);
  --shadow-strong: rgba(14, 165, 233, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 15, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  margin-top: 64px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-strong);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--card);
  border-color: var(--blue);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid #131a23;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

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

.page-header {
  padding: 4rem 0 2rem;
  margin-top: 64px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg) 0%, var(--blue-strong) 100%);
  z-index: -2;
}

.hero-variations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-variation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-variation.active {
  opacity: 1;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  animation: subtleFloat 20s ease-in-out infinite;
}

.hero-content-variations {
  position: relative;
}

.hero-content-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 100%;
  text-align: center;
}

.hero-content-item.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  position: relative;
}

.hero-content-item:first-child.active {
  position: relative;
}

.hero-content {
  z-index: 1;
  animation: fadeUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--card);
  border: 1px solid #131a23;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.article-category {
  background: var(--blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-title a {
  color: var(--text);
}

.article-title a:hover {
  color: var(--blue);
}

.article-excerpt {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card);
  border: 1px solid #131a23;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-content {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}

.price-original {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.product-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Blog Controls */
.blog-controls {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.controls-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.875rem;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.filter-controls select {
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.875rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover,
.pagination button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* About Page */
.about-banner {
  padding: 4rem 0;
  margin-top: 64px;
}

.banner-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
}

.banner-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--blue);
}

.about-name {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about-role {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.about-bio {
  color: var(--muted);
  font-size: 1.125rem;
}

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

.skill-item {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--line);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--blue);
  border-radius: 50%;
}

.timeline-year {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* Contact Page */
.social-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.social-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.social-icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.social-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.social-handle {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Forms */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Payment Page */
.payment-methods {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.payment-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.payment-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.payment-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.qris-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.qris-container img {
  max-width: 300px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.payment-info {
  text-align: left;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.payment-label {
  font-weight: 500;
  min-width: 120px;
}

.payment-number {
  font-family: "Courier New", monospace;
  font-weight: 600;
  color: var(--blue);
  flex: 1;
}

.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.note-card h3 {
  color: var(--blue);
  margin-bottom: 1rem;
}

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

.note-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.note-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* Newsletter */
.newsletter {
  background: var(--card);
  border-top: 1px solid var(--line);
}

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

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--blue);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--muted);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--blue);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--blue-strong);
  transform: translateY(-2px);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.toast {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px var(--shadow);
  animation: slideIn 0.3s ease-out;
  max-width: 300px;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid var(--blue);
}

/* Background Patterns */
.blog-page {
  background-image: radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
  background-size: 100px 100px;
  animation: patternMove 30s linear infinite;
}

.about-page {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.03'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: waveMove 20s ease-in-out infinite;
}

.contact-page {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230ea5e9' fill-opacity='0.02'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}

.store-page {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230ea5e9' fill-opacity='0.02'%3E%3Crect width='1' height='1'/%3E%3C/g%3E%3C/svg%3E");
}

.payment-page {
  background: linear-gradient(135deg, var(--bg) 0%, var(--blue-strong) 100%);
}

.feedback-page {
  background-image: radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.02) 0%, transparent 50%);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes patternMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

@keyframes waveMove {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: 30px 0;
  }
}

/* Focus States */
*:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .banner-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .controls-wrapper {
    flex-direction: column;
  }

  .search-box {
    min-width: auto;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: center;
  }

  .payment-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .payment-label {
    min-width: auto;
  }
}

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

  .articles-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .social-cards {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    max-width: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .toast-container {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero-bg,
  .hero-canvas,
  .hero-lines {
    display: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
