:root {
  --primary: #6C3AFF;
  --primary-light: #8B5CF6;
  --primary-dark: #4C1D95;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --accent2: #F59E0B;
  --dark: #070716;
  --dark2: #0B0B22;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6C3AFF 0%, #06B6D4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(108,58,255,0.4) 0%, rgba(6,182,212,0.4) 100%);
  --radius: 20px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TOP BAR ===== */
.topbar {
  background: rgba(7, 7, 22, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1001;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.topbar-item { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; transition: color 0.2s; }
.topbar-item i { color: var(--accent); }
.topbar-item:hover { color: var(--white); }
.topbar-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.1); }

/* ===== NAVBAR ===== */
nav#navbar {
  position: sticky; top: 0; z-index: 1000;
  padding: 0 24px;
  background: rgba(7, 7, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
nav#navbar.scrolled {
  background: rgba(7, 7, 22, 0.95);
  padding: 4px 24px;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 20px;
  box-shadow: 0 4px 15px rgba(108, 58, 255, 0.3);
}
.nav-logo-text { font-size: 24px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links li { position: relative; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 10px 18px;
  border-radius: 10px; transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255, 255, 255, 0.05); }

.nav-links .dropdown-menu {
  opacity: 0; visibility: hidden; position: absolute; top: 120%; left: 0;
  background: #0B0B22; border: 1px solid var(--card-border);
  border-radius: 18px; padding: 12px; min-width: 260px;
  transform: translateY(10px); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-lg);
}
.nav-links .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .dropdown-menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  color: var(--text-muted); font-size: 14px;
}
.nav-links .dropdown-menu a i { color: var(--accent); width: 20px; text-align: center; }
.nav-links .dropdown-menu a:hover { background: rgba(108, 58, 255, 0.1); color: var(--white); }

.nav-cta {
  background: var(--gradient); color: #fff !important;
  padding: 12px 28px !important; border-radius: 50px !important;
  font-weight: 700 !important; font-size: 15px !important;
  box-shadow: 0 8px 20px rgba(108, 58, 255, 0.3) !important;
  transition: all 0.3s ease !important;
}
.nav-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(108, 58, 255, 0.5) !important; filter: brightness(1.1); }

.hamburger {
  display: none; width: 44px; height: 44px; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  border-radius: 12px; cursor: pointer; justify-content: center; align-items: center;
  transition: all 0.3s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
  background: rgba(7, 7, 22, 0.98);
  backdrop-filter: blur(40px);
  z-index: 2000;
  padding: 100px 40px;
  transition: all 0.5s cubic-bezier(0.85, 0, 0.15, 1);
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-menu a {
  font-size: 32px; font-weight: 800; color: var(--white);
  text-decoration: none; transition: transform 0.3s;
}
.mobile-menu a:hover { transform: translateX(10px); color: var(--accent); }
.mobile-menu .sub-a { font-size: 18px; font-weight: 500; color: var(--text-muted); padding-left: 20px; }
.mobile-menu .sub-a:hover { color: var(--white); }
.mobile-sep { height: 1px; background: rgba(255,255,255,0.05); margin: 20px 0; }

/* ===== SECTION COMMONS ===== */
section { padding: 100px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; color: var(--accent); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: var(--white); line-height: 1.2; }
.section-title .gt { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { color: var(--text-muted); font-size: 17px; max-width: 600px; margin: 16px auto 0; line-height: 1.7; }

/* ===== SUB-PAGE HERO ===== */
.sub-hero {
  padding: 160px 24px 80px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108,58,255,0.2) 0%, transparent 60%), var(--dark2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.sub-hero p { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

/* ===== FOOTER ===== */
footer {
  background: rgba(0,0,0,0.5); border-top: 1px solid var(--card-border);
  padding: 60px 24px 30px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 16px;
  transition: all 0.3s;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--card-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-bottom a { color: var(--primary-light); text-decoration: none; }
.footer-domain { font-size: 13px; color: var(--text-muted); }
.footer-domain a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 30px rgba(108,58,255,0.4);
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(108,58,255,0.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white); text-decoration: none;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.3s; position: relative; overflow: hidden; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--gradient); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(108,58,255,0.4); box-shadow: 0 20px 60px rgba(108,58,255,0.2); }
.service-card:hover::before { opacity: 0.06; }
.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px; position: relative; z-index: 1;
}
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; position: relative; z-index: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tag { background: rgba(108,58,255,0.12); border: 1px solid rgba(108,58,255,0.2); color: var(--primary-light); border-radius: 50px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 18px; position: relative; z-index: 1; transition: gap 0.2s; }
.service-link:hover { gap: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  section { padding: 80px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .topbar { display: none; } /* Hide topbar on mobile for cleaner look */
}

/* ===== UTILS ===== */
.fade-up { opacity: 0; transform: translateY(30px); }
.glass-panel {
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(10px); border-radius: var(--radius);
}
