// Bootstrap 5.3 - OneDesign - Modern Grid Based
@import "bootstrap/scss/bootstrap";
@import "bootstrap-icons/font/bootstrap-icons.css";

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --light-bg: #f8fafc;
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background: #fff;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(255,255,255,.08), transparent);
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: 2.8rem;
}
.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroFloat 10s ease-in-out infinite;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-8px); }
}
@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}
.layanan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.layanan-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,0.16) !important;
}
@media (max-width: 768px) {
  .hero-fullscreen { min-height: 90vh; }
  .hero-fullscreen h1 { font-size: 2rem; }
  .hero-bg { animation-duration: 12s; }
}

.hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.card-product {
  transition: transform .2s, box-shadow .2s;
  border: 0;
  overflow: hidden;
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,.12) !important;
}
.card-product img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.badge-category {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.portfolio-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .3s;
}
.portfolio-item:hover img { transform: scale(1.05); }

.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  animation: testimonialFade 0.7s ease forwards;
  opacity: 0;
  transform: translateY(14px);
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.13);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
}
.testimonial-card .bi-star-fill {
  display: inline-block;
  transition: transform 0.2s ease;
}
.testimonial-card:hover .bi-star-fill {
  transform: scale(1.18);
}
.testimonial-card:hover .bi-star-fill:nth-child(1) { transition-delay: 0.02s; }
.testimonial-card:hover .bi-star-fill:nth-child(2) { transition-delay: 0.06s; }
.testimonial-card:hover .bi-star-fill:nth-child(3) { transition-delay: 0.1s; }
.testimonial-card:hover .bi-star-fill:nth-child(4) { transition-delay: 0.14s; }
.testimonial-card:hover .bi-star-fill:nth-child(5) { transition-delay: 0.18s; }
@keyframes testimonialFade {
  to { opacity: 1; transform: translateY(0); }
}
#testimoni .col-md-4:nth-child(1) .testimonial-card { animation-delay: 0.08s; }
#testimoni .col-md-4:nth-child(2) .testimonial-card { animation-delay: 0.22s; }
#testimoni .col-md-4:nth-child(3) .testimonial-card { animation-delay: 0.36s; }

.blog-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: blogFade 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(15,23,42,0.13) !important;
}
.blog-card img {
  transition: transform 0.4s ease;
}
.blog-card:hover img {
  transform: scale(1.06);
}
.blog-card .card-body a {
  transition: color 0.2s ease;
}
.blog-card:hover .card-body a {
  color: var(--primary) !important;
}
@keyframes blogFade {
  to { opacity: 1; transform: translateY(0); }
}

.about-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  animation: testimonialFade 0.7s ease forwards;
  opacity: 0;
  transform: translateY(14px);
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.13);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
}
#about-cards .col-md-4:nth-child(1) .about-card { animation-delay: 0.08s; }
#about-cards .col-md-4:nth-child(2) .about-card { animation-delay: 0.22s; }
#about-cards .col-md-4:nth-child(3) .about-card { animation-delay: 0.36s; }

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
  border: none;
  text-decoration: none;
}
.share-btn:hover {
  transform: translateY(-3px) scale(1.08) rotate(3deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: #fff;
  filter: brightness(1.05);
}
.share-btn:active { transform: translateY(0) scale(1) rotate(0); }
.share-fb { background: linear-gradient(135deg, #1877F2, #0d5cb6); }
.share-x { background: #000; }
.share-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.share-linkedin { background: linear-gradient(135deg, #0A66C2, #084d96); }
.share-pinterest { background: linear-gradient(135deg, #E60023, #a3081a); }
.share-telegram { background: linear-gradient(135deg, #26A5E4, #1a7bb8); }
.share-copy { background: #fff; color: #334155 !important; border: 1px solid #e2e8f0 !important; }
.share-copy:hover { background: #f8fafc; color: var(--primary) !important; border-color: var(--primary) !important; transform: translateY(-2px) scale(1.05); }
.share-copy.copied { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }

.product-detail-wrap { border-radius: 1rem; overflow: hidden; transition: box-shadow 0.4s ease; }
.product-detail-wrap:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.16) !important; }
.product-detail-img { transition: transform 0.6s ease, filter 0.4s ease; animation: productFadeIn 0.8s ease forwards; will-change: transform; display: block; }
.product-detail-img:hover { transform: scale(1.04) rotate(0.4deg); filter: brightness(1.03); }
@keyframes productFadeIn { from { opacity: 0; transform: scale(0.98) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.share-btn { border: 2px solid #fff !important; outline: 1px solid rgba(0,0,0,0.06); }
.share-btn i { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15)); }

.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-content h1, .article-content h2, .article-content h3 { margin-top: 1.5rem; font-weight: 700; }
.article-content blockquote { border-left: 4px solid var(--primary); padding-left: 1rem; color: #64748b; font-style: italic; margin: 1rem 0; }
.article-content ul, .article-content ol { margin-left: 1.2rem; }
.article-content a { color: var(--primary); text-decoration: underline; }

.section-title {
  font-weight: 800;
  letter-spacing: -.02em;
}

.footer {
  background: #0f172a;
  color: #94a3b8;
}
.footer a { color: #cbd5e1; text-decoration: none; }

// Frontend Link Hover Animations
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}
main a:not(.btn):not(.nav-link):not(.badge):not(.page-link) {
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}
main a:not(.btn):not(.nav-link):not(.badge):not(.page-link)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}
main a:not(.btn):not(.nav-link):not(.badge):not(.page-link):hover::after {
  width: 100%;
}
main a:not(.btn):not(.nav-link):not(.badge):not(.page-link):hover {
  color: var(--primary);
}
.footer a {
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer a:hover {
  color: #fff !important;
  transform: translateX(4px);
}
.footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}
.footer a:hover::after {
  width: 100%;
}
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.admin-sidebar {
  min-height: 100vh;
  background: #0f172a;
  font-size: 0.8125rem;
}
.admin-sidebar .nav-link {
  color: #94a3b8;
  border-radius: .5rem;
  margin-bottom: .25rem;
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-body { font-size: 0.875rem; }
.admin-main { font-size: 0.875rem; }
.admin-main h4 { font-size: 1.2rem; }
.admin-main h5 { font-size: 1.05rem; }
.admin-main h6 { font-size: 0.9rem; }
.admin-main .fs-4 { font-size: 1.15rem !important; }
.admin-main .fs-5 { font-size: 1rem !important; }
.admin-main .table,
.admin-main .form-control,
.admin-main .form-select,
.admin-main .btn,
.admin-main .alert,
.admin-main .badge { font-size: 0.8125rem; }
