:root {
  --bg-main: #070a12;
  --bg-card: rgba(15, 23, 42, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --accent: #06b6d4;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --glow: rgba(6, 182, 212, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-main); color: var(--text); line-height: 1.6; overflow-x: hidden; perspective: 1000px; max-width: 100vw; }
img, svg, video { max-width: 100%; height: auto; }

/* Scroll Animation Utility Classes */
.animate-on-scroll { opacity: 0; transform: translateY(40px) scale(0.96); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 768px) {
  .animate-on-scroll { transform: translateY(24px); }
  .animate-on-scroll.visible { transform: translateY(0); }
}

/* Sticky Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 6%;
  background: rgba(7, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo-container { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
.logo-text { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1101;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { display: flex; align-items: center; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.nav-links li { position: relative; margin-left: 1.4rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 8px; min-width: 240px; padding: 0.5rem 0; z-index: 1100; list-style: none; }
.dropdown-menu a { display: block; padding: 0.6rem 1.2rem; color: var(--text-muted); font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.03); white-space: normal; }
.dropdown-menu a:hover { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.nav-links li:hover .dropdown-menu { display: block; }

.btn-nav { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff !important; padding: 0.6rem 1.4rem; border-radius: 6px; font-weight: 600; font-size: 0.9rem; display: inline-block; }

/* 3D Hero Layout */
.page-hero { padding: 6rem 6% 4rem; text-align: center; background: radial-gradient(circle at 50% 30%, var(--glow), transparent 70%); position: relative; }
.badge { background: rgba(6, 182, 212, 0.1); color: var(--accent); border: 1px solid rgba(6, 182, 212, 0.3); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; background: linear-gradient(180deg, #fff 0%, var(--text-muted) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { color: var(--text-muted); max-width: 750px; margin: 0 auto 2rem; font-size: clamp(1rem, 2.5vw, 1.15rem); }

.hero-visual-3d { margin: 3rem auto 0; max-width: 950px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--glow); transform-style: preserve-3d; transition: transform 0.5s ease; }
.hero-visual-3d img { width: 100%; height: auto; display: block; object-fit: cover; }

.card-3d { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; transform-style: preserve-3d; backdrop-filter: blur(12px); position: relative; }
.card-3d:hover { transform: translateY(-8px) rotateX(4deg) rotateY(-2deg); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--glow); border-color: rgba(6, 182, 212, 0.4); }

.card-img-preview { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin: 1.2rem 0; border: 1px solid var(--border); }

/* Layout Grid */
.section { padding: 5rem 6%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 0.8rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

/* Floating WhatsApp Icon */
.whatsapp-float { position: fixed; width: 55px; height: 55px; bottom: 24px; right: 20px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 28px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.15) rotate(5deg); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 6%; text-align: center; color: var(--text-muted); font-size: 0.9rem; background: #04060c; margin-top: 5rem; word-break: break-word; }

/* ========== Tablet ========== */
@media (max-width: 992px) {
  nav { padding: 0.9rem 4%; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 10, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 4% 1.25rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  }
  .nav-links.open { display: flex; }
  .nav-links li { margin: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links a { display: block; padding: 0.95rem 0.25rem; white-space: normal; font-size: 1rem; }
  .nav-links .btn-nav { display: block; text-align: center; margin: 0.75rem 0 0.25rem; }
  .nav-links li:hover .dropdown-menu { display: none; }
  .nav-links li.open .dropdown-menu { display: block; position: static; border: none; background: transparent; min-width: 0; padding: 0 0 0.5rem 0.75rem; }
  .dropdown-menu a { padding: 0.55rem 0.25rem; }

  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 4%; }
  .page-hero { padding: 4rem 4% 3rem; }
  .site-logo { height: 32px; }
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .card-3d { padding: 1.4rem; }
  .card-3d:hover { transform: none; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 14px; }
  footer { padding: 2.25rem 4%; font-size: 0.85rem; margin-top: 3rem; }
}

@media (max-width: 480px) {
  nav { padding: 0.75rem 4%; }
  .page-hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .btn-primary { width: 100%; text-align: center; }
}
