/* Fonts: Poppins/Inter */
:root {
  --blue: #0A4DFF;
  --red: #FF3B3B;
  --bg: #0b1020;
  --card: #0e1530;
  --text: #e6ebff;
  --muted: #a8b0d9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(10, 77, 255, 0.2);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0b1020 0%, #0c1226 100%);
}

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 860px; margin: 0 auto 48px; }
.section-head h2 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); margin: 0; }

/* Dotted Background */
.dotted-bg {
  position: relative;
  background-color: var(--bg);
  isolation: isolate;
  overflow: hidden;
}
.dotted-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(#9d4edd 1px, transparent 1px) 0 0/16px 16px,
    radial-gradient(#7b2cbf 1px, transparent 1px) 8px 8px/16px 16px;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: moveDots 20s linear infinite;
}

.dotted-bg-alt { 
  position: relative;
  background-color: var(--bg);
}

.dotted-bg-alt::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(#9d4edd 1px, transparent 1px) 0 0/18px 18px;
  opacity: 0.15; 
  z-index: -1;
  animation: moveDots 30s linear infinite reverse;
}

@keyframes moveDots {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

/* Loader */
#loader { position: fixed; inset: 0; background: #0b1020; display: grid; place-items: center; z-index: 9999; transition: opacity .4s ease, visibility .4s ease; }
#loader.hide { opacity: 0; visibility: hidden; }
#loader .spinner { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 0deg, var(--blue), var(--red)); animation: spin 1.2s linear infinite; padding: 3px; }
#loader .spinner img { width: 100%; height: 100%; background: #0b1020; border-radius: 50%; padding: 16px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes pulse { 0%,100%{ transform: scale(0.98) } 50%{ transform: scale(1.02) } }

/* Header */
.header { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  backdrop-filter: blur(10px); 
  background: rgba(11, 16, 32, 0.95); 
  border-bottom: 1px solid #1b2448; 
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { color: var(--muted); text-decoration: none; position: relative; padding: 6px 2px; }
.menu a::after { content:''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--red)); transition: width .3s ease; }
.menu a:hover { color: var(--text); }
.menu a:hover::after { width: 100%; }
.hamburger { display: none; background: transparent; color: var(--text); border: 1px solid #26305f; padding: 6px 10px; border-radius: 10px; }

/* Hero */
.hero { padding: 120px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero-text h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 12px; letter-spacing: -1px; }
.hero-text p { color: var(--muted); margin: 0 0 24px; font-size: 18px; }
.hero-ctas { display: flex; gap: 14px; }
.hero-media img { width: 100%; max-width: 560px; display: block; margin-inline: auto; filter: drop-shadow(0 24px 60px rgba(10,77,255,.15)); }

/* Buttons */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; color: var(--white); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.btn-gradient { background: linear-gradient(90deg, var(--blue), var(--red)); box-shadow: 0 10px 30px rgba(255,59,59,.2), 0 10px 30px rgba(10,77,255,.2); }
.btn-outline { color: var(--text); border-color: #2a356a; background: #0f1634; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn.full { width: 100%; margin-top: 8px; }

/* Cards */
.grid { display: grid; gap: 22px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--card); border: 1px solid #1a2350; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 0 #1a2350 inset, 0 0 0 0 rgba(10,77,255,0); transition: box-shadow .3s ease, transform .2s ease, border-color .3s ease; }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #0a1540; color: var(--blue); margin-bottom: 10px; }
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card-glow:hover { box-shadow: 0 0 0 1px rgba(10,77,255,.4), 0 15px 40px rgba(10,77,255,.15); border-color: rgba(10,77,255,.5); transform: translateY(-2px); }

/* Products */
.products { display: grid; gap: 26px; }
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; background: var(--card); border: 1px solid #1a2350; border-radius: var(--radius); padding: 28px; }
.product img { width: 100%; max-width: 520px; filter: drop-shadow(0 16px 48px rgba(10,77,255,.15)); }
.product-info h3 { margin: 0 0 6px; }
.product-info p { margin: 0 0 12px; color: var(--muted); }

/* Portfolio */
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.portfolio-item { background: #0f1738; border: 1px solid #1a2350; border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .3s ease; }
.portfolio-item img { width: 100%; display: block; }
.portfolio-item:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(10,77,255,.18); }

.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(4,6,16,.6); backdrop-filter: blur(4px); z-index: 200; padding: 20px; }
.modal.show { display: grid; }
.modal-dialog { width: min(860px, 96vw); background: #0e1433; border: 1px solid #1a2350; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); position: relative; }
.modal-close { position: absolute; top: 10px; right: 10px; border: 1px solid #253063; background: #101946; color: var(--text); border-radius: 10px; padding: 6px 8px; }
.modal-img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
.modal-title { margin: 8px 0 6px; }
.modal-desc { margin: 0; color: var(--muted); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.contact-form { background: var(--card); border: 1px solid #1a2350; border-radius: var(--radius); padding: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 12px; }
label { color: var(--muted); font-size: 14px; }
input, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: #0a1438; border: 1px solid #1a2350; color: var(--text); outline: none; }
input:focus, textarea:focus { border-color: #2c3a7a; box-shadow: 0 0 0 4px rgba(10,77,255,.14); }
.form-status { min-height: 24px; margin: 6px 0 0; font-size: 14px; }

.contact-info .map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid #1a2350; box-shadow: 0 10px 28px rgba(10,77,255,.12); }
.contact-info iframe { width: 100%; height: 320px; display: block; }
.info { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.info li { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.info li.socials a { color: var(--text); margin-right: 8px; }

/* Footer */
.footer { padding-top: 48px; margin-top: 48px; border-top: 1px solid #1a2350; position: relative; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; align-items: start; }
.f-brand img { width: 40px; height: 40px; }
.f-brand p { color: var(--muted); }
.f-links { display: grid; gap: 8px; }
.f-links a { color: var(--muted); text-decoration: none; }
.f-cta h4 { margin: 0 0 8px; }
.copy { text-align: center; border-top: 1px solid #1a2350; margin-top: 28px; padding: 16px; color: var(--muted); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* Back to top */
#backToTop { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #263266; background: #0f1738; color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease, transform .2s ease; z-index: 150; }
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-2px); }

/* Floating WhatsApp & Socials */
.whatsapp-float { position: fixed; right: 18px; bottom: 78px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #eafff2; background: #22c15e; box-shadow: 0 14px 30px rgba(34,193,94,.35); z-index: 160; border: 1px solid #1a8244; }
.whatsapp-float i { font-size: 26px; }
.whatsapp-float:hover { transform: translateY(-2px); }

.social-float { position: fixed; left: 14px; bottom: 18px; display: grid; gap: 10px; z-index: 140; }
.social-float a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--text); background: #0f1738; border: 1px solid #263266; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.social-float a:hover { transform: translateY(-2px); background: #121d44; }

/* Responsive */
@media (max-width: 1080px) {
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu { position: fixed; inset: 64px 12px auto; background: #0b1333; border: 1px solid #1a2350; border-radius: 14px; padding: 12px; display: grid; gap: 6px; transform-origin: top right; transform: scale(.98); opacity: 0; visibility: hidden; }
  .menu.show { opacity: 1; visibility: visible; transform: scale(1); }
  .hamburger { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 520px) {
  .cards-5 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
