:root {
  /* ✅ REFINED PREMIUM DARK THEME */
  --bg: #09090B;        /* Soft Dark Black */
  --surface: #18181B;   /* Dark Grey for Cards/Menus */
  --surface-hover: #27272A; 

  --text: #F4F4F5;      /* Crisp White-Grey */
  --muted: #A1A1AA;     /* Neutral Grey */
  --border: rgba(255, 255, 255, 0.08); /* Subtle border */
  
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

  /* Elegant Red Gradient */
  --brand: #E11D48;     /* Rose/Crimson Red */
  --brand2: #9F1239;    /* Deep Red */
  --glow: rgba(225, 29, 72, 0.25);

  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 18px; }

/* Subtle Background Pattern */
.gridbg {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -1;
}

.glow-bg {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(225, 29, 72, 0.08), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(80, 20, 40, 0.1), transparent 40%);
  pointer-events: none; z-index: -1;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: .25s ease;
  user-select: none; white-space: nowrap;
}
.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(225, 29, 72, 0.4);
}
.btn-outline {
  color: var(--text); background: var(--surface); border-color: var(--border);
}
.btn-outline:hover {
  transform: translateY(-2px); border-color: var(--brand); color: #fff;
}
.btn-soft {
  color: #FECDD3; background: rgba(225, 29, 72, 0.1); border: 1px solid rgba(225, 29, 72, 0.2);
}
.btn-soft:hover { transform: translateY(-2px); background: rgba(225, 29, 72, 0.15); }

/* --- HEADER & NAVIGATION --- */
header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.grad {
  background: linear-gradient(to right, #fff, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Hamburger */
.hamburger {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 18px;
}

/* ========================================= */
/* ✅ FINAL FIXED DESKTOP NAVIGATION */
/* ========================================= */

.desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 32px; /* Links ke beech gap */
  align-items: center;
  margin: 0;
  padding: 0;
}

.desktop-nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%; 
  padding: 0;
}

/* Main Links Styling */
.desktop-nav > ul > li > a {
  color: #A1A1AA; /* Muted Grey */
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

.desktop-nav > ul > li > a:hover,
.desktop-nav > ul > li:hover > a {
  color: #FFFFFF; /* White on Hover */
}

/* ⬇️ DROPDOWN MENU (Stable Fix) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; 
  
  /* Left Alignment with Offset (Prevents overlap with 'About') */
  left: -20px; 
  
  /* Premium Dark Card Style */
  background: #18181B; 
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  
  min-width: 260px; /* Width fixed */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  z-index: 1000;
  flex-direction: column;
  margin-top: 15px; /* Visual Gap */
  
  /* Animation */
  animation: fadeInMenu 0.2s ease-out;
}

/* Invisible Bridge (Keeps menu open when moving mouse) */
.dropdown-menu:before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Show on Hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li { display: block; width: 100%; }

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #A1A1AA;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border-bottom: none;
  white-space: nowrap;
  transition: all 0.2s;
  text-align: left;
}

/* Hover Effect Inside Menu */
.dropdown-menu a:hover {
  background: #27272A;
  color: #E11D48;
  padding-left: 20px; /* Slide effect */
}

/* Stable Animation */
@keyframes fadeInMenu {
  from { opacity: 0; margin-top: 25px; }
  to { opacity: 1; margin-top: 15px; }
}
/* ===== HARD DESKTOP DROPDOWN FIX ===== */
@media (min-width:992px){

.desktop-nav ul{
  position:relative;
}

.desktop-nav .dropdown{
  position:relative;
}

/* FORCE submenu to behave */
.desktop-nav .dropdown > .dropdown-menu{
  position:absolute !important;
  top:100% !important;
  left:0 !important;
  margin-top:10px !important;

  display:block;
  width:260px !important;
  max-height:420px;
  overflow-y:auto;

  background:var(--surface);
  border-radius:14px;
  padding:8px 0;

  box-shadow:0 25px 60px rgba(0,0,0,.7);

  opacity:0;
  visibility:hidden;
  pointer-events:none;

  height:auto !important;
}

/* show only on hover */
.desktop-nav .dropdown:hover > .dropdown-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* REMOVE flex inheritance */
.desktop-nav .dropdown-menu{
  display:block!important;
}

/* submenu items */
.desktop-nav .dropdown-menu li{
  list-style:none;
}

/* links */
.desktop-nav .dropdown-menu a{
  padding:10px 18px;
  display:block;
  font-size:14px;
}

.desktop-nav .dropdown-menu a:hover{
  background:var(--surface-hover);
}

}
@media (min-width:992px){

/* hover bridge */
.desktop-nav .dropdown:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:14px;
}

/* allow hover on submenu itself */
.desktop-nav .dropdown-menu{
  pointer-events:auto!important;
}

/* keep open while hovering submenu */
.desktop-nav .dropdown:hover .dropdown-menu,
.desktop-nav .dropdown-menu:hover{
  opacity:1!important;
  visibility:visible!important;
}

}

/* --- MOBILE SIDEBAR (Dark Theme) --- */
.mobile-sidebar {
  position: fixed; top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--bg); /* Dark Background */
  border-left: 1px solid var(--border);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.mobile-sidebar.active { right: 0; }

.sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; 
  border-bottom: 1px solid var(--border); 
  background: var(--surface);
}
.sidebar-title { font-weight: 700; font-size: 18px; color: var(--text); }

.close-btn { 
  background: none; border: none; font-size: 30px; cursor: pointer; color: var(--muted); transition: 0.2s;
}
.close-btn:hover { color: var(--brand); transform: rotate(90deg); }

.sidebar-content { padding: 20px; overflow-y: auto; }

/* Mobile Links */
.mob-link {
  display: block; padding: 15px 0; font-size: 16px; font-weight: 500;
  color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mob-link:hover { color: var(--brand); padding-left: 5px; }

/* Accordion Button */
.mob-drop-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 15px 0; font-size: 16px; font-weight: 600; 
  color: var(--text);
  display: flex; justify-content: space-between; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color 0.2s;
}
.mob-drop-btn:hover { color: var(--brand); }

/* Mobile Submenu (Dark) */
.mob-submenu { 
  display: none; 
  background: rgba(255, 255, 255, 0.03);
  padding-left: 0; margin-bottom: 10px;
  border-left: 2px solid var(--brand);
}
.mob-submenu.open { display: block; animation: fadeIn 0.3s; }

.mob-submenu a {
  display: block; padding: 12px 20px; font-size: 14px; 
  color: var(--muted);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mob-submenu a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
  z-index: 1999; display: none; opacity: 0; transition: opacity 0.3s;
}
.menu-overlay.active { display: block; opacity: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- HERO SECTION --- */
.hero { padding: 60px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: stretch; }
.hero-left { padding: 20px 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px; color: #fff; }
h1 span { color: var(--brand); }
.subtext { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 55ch; font-weight: 400; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-mini { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card {
  padding: 16px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); transition: .2s;
}
.mini-card:hover { border-color: rgba(255,255,255,0.2); }
.mini-card b { display: block; font-size: 14px; color: #fff; }
.mini-card p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ic {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 10px;
  color: var(--brand);
}

/* --- FORM CARD --- */
.card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.card-header {
  padding: 24px 24px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.card-header h3 { font-size: 18px; color: #fff; }
.card-header p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tagline { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(225, 29, 72, 0.2);
  background: rgba(225, 29, 72, 0.1); font-weight: 600; font-size: 11px; color: #FECDD3;
}
.form { padding: 20px 24px 24px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #09090B;
  color: var(--text); font-weight: 500; font-size: 16px; outline: none; transition: .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}
.mini { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 6px; text-align: center; }
.mini b { color: var(--text); }

/* --- SECTIONS GENERAL --- */
section { padding: 60px 0; }
.sec-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 24px; }
.sec-title { font-size: 32px; letter-spacing: -.5px; color: #fff; }
.sec-sub { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 70ch; }

/* --- CATEGORIES --- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.cat {
  border-radius: 18px; padding: 20px; background: var(--surface);
  border: 1px solid var(--border); transition: .2s; position: relative; overflow: hidden; cursor: pointer;
}
.cat .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 20px; color: var(--brand);
}
.cat .go {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.05);
  display: grid; place-items: center; color: var(--muted); transition: .2s;
}
.cat:hover { transform: translateY(-3px); border-color: var(--brand); }
.cat:hover .go { background: var(--brand); color: #fff; }
.cat h4 { margin-top: 14px; font-size: 15px; color: #fff; }
.cat p { margin-top: 6px; color: var(--muted); line-height: 1.6; font-size: 13px; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.about-right { display: grid; gap: 16px; }

/* --- SERVICES --- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.box {
  border-radius: 20px; padding: 22px; background: var(--surface);
  border: 1px solid var(--border); transition: .2s; position: relative;
}
.box:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; background: rgba(225, 29, 72, 0.1);
  color: #FB7185; font-weight: 700; font-size: 11px; width: fit-content;
}
.box h4 { margin-top: 12px; font-size: 16px; color: #fff; }
.box ul { margin-top: 12px; display: grid; gap: 10px; }
.box li {
  list-style: none; color: var(--muted); font-size: 13px; line-height: 1.5;
  position: relative; padding-left: 20px;
}
.box li:before {
  content: "•"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-size: 18px; line-height: 14px;
}

/* --- PROCESS --- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.step {
  border-radius: 20px; padding: 20px; border: 1px solid var(--border); background: var(--surface);
}
.num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-hover); color: var(--brand); font-weight: 800;
  margin-bottom: 12px; border: 1px solid var(--border);
}
.step b { display: block; font-size: 15px; color: #fff; }
.step p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* --- REVIEWS --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; transition: .25s;
}
.review-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.review-top { display: flex; gap: 12px; align-items: center; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #3f3f46, #27272a);
  color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: bold;
}
.review-name { font-weight: 700; font-size: 14px; color: #fff; }
.review-role { font-size: 12px; color: var(--muted); }
.stars { margin-top: 12px; color: #FBBF24; font-size: 14px; letter-spacing: 2px; }
.review-text { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* --- FAQ --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
details {
  border-radius: 16px; padding: 16px; border: 1px solid var(--border); background: var(--surface);
}
summary {
  cursor: pointer; font-weight: 700; list-style: none; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
details p { margin-top: 12px; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border); padding: 40px 0 80px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; }
.footer-grid a { color: var(--muted); font-size: 14px; display: block; margin-bottom: 8px; transition: .2s; }
.footer-grid a:hover { color: var(--brand); }
.copyright { margin-top: 30px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* --- FLOATING ELEMENTS --- */
.floatbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 130; background: #18181B; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px; display: flex; gap: 8px; align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); width: max-content; max-width: 96vw;
}
.floatbar .hint { font-weight: 700; font-size: 12px; color: var(--muted); padding: 0 10px; display: none; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
  display: none; gap: 12px; align-items: center; z-index: 999; max-width: 92vw; width: max-content;
}
.toast.show { display: flex; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.toast .ticon { width: 10px; height: 10px; border-radius: 50%; background: #2EE59D; box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.1); }
.toast .ttext { font-weight: 700; font-size: 14px; color: #fff; }
.toast .tmuted { color: var(--muted); font-size: 13px; }

/* --- MODAL --- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px); display: none;
  align-items: center; justify-content: center; z-index: 9999; padding: 18px;
}
.modal.show { display: flex; }
.modal-card {
  width: min(500px, 100%); border-radius: 24px; border: 1px solid var(--border);
  background: var(--bg); box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.modal-head {
  padding: 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.modal-head b { font-size: 16px; color: #fff; }
.close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px;
}
.modal-body { padding: 20px; display: grid; gap: 14px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .grid4, .portfolio, .cats, .process { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .desktop-nav, .desktop-only { display: none; }
}
@media (min-width: 993px) {
  .hamburger, .mobile-sidebar, .menu-overlay { display: none; }
}

@media (max-width: 980px) {
  .hamburger { display: inline-grid; place-items: center; }
  .nav-actions .btn { display: none !important; } 

  .hero { padding: 40px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .hero-left { order: 1; padding: 0; } 
  .card { order: 2; }

  h1 { font-size: 36px; }
  .subtext { font-size: 15px; }

  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .hero-mini { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row, .faq-grid, .footer-grid, .modal-row { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }

  .floatbar {
    left: 12px; right: 12px; transform: none; justify-content: space-between;
    border-radius: 16px; width: auto; padding: 10px 14px;
  }
  .floatbar .hint { display: block; }
  .floatbar .btn { flex: 1; padding: 12px 10px; font-size: 13px; }
}

@media (max-width: 600px) {
  .grid4, .portfolio, .reviews-grid, .cats, .process { grid-template-columns: 1fr; }
  .floatbar .hint { display: none; }
}