/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050a14;
  --bg2:       #080f1e;
  --bg3:       #0c1628;
  --surface:   #0f1e35;
  --surface2:  #162440;
  --border:    rgba(0,170,255,0.12);
  --accent:    #00aaff;
  --accent2:   #0066cc;
  --accent3:   #00e5ff;
  --text:      #e8f0ff;
  --text-dim:  #8899bb;
  --text-muted:#4d6080;
  --success:   #00d68f;
  --font:      'Inter', sans-serif;
  --font-hero: 'Rajdhani', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5,10,20,0.85);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo { font-family: var(--font-hero); font-size: 1.8rem; font-weight: 700; letter-spacing: 2px; }
.logo-rf { color: var(--accent); }
.logo-max { color: var(--text); }

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
  transition: color var(--transition); letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 0.5rem 1.25rem !important; border-radius: 6px !important;
  background: var(--accent) !important; color: #000 !important;
  font-weight: 600 !important; transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--accent3) !important; color: #000 !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}

.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  z-index: 999; padding: 1rem 2rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu a { font-size: 1rem; color: var(--text-dim); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,80,160,0.25) 0%, transparent 70%);
}

#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 0 1.5rem;
  max-width: 800px;
  animation: fadeUp 1s ease both;
}

.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem;
  border: 1px solid rgba(0,170,255,0.4);
  border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1.5rem; background: rgba(0,170,255,0.06);
  animation: fadeUp 1s 0.1s ease both;
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-title .line1 { display: block; color: var(--text); }
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-dim);
  margin-bottom: 2.5rem; line-height: 1.8;
  animation: fadeUp 1s 0.3s ease both;
}
.hero-desc strong { color: var(--accent); }

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeUp 1s 0.4s ease both;
}

.btn-primary {
  padding: 0.85rem 2rem; background: var(--accent);
  color: #000; font-weight: 700; font-size: 0.95rem;
  border-radius: 8px; border: none; cursor: pointer;
  transition: all var(--transition); letter-spacing: 0.5px;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,170,255,0.4); }
.btn-primary.full { width: 100%; text-align: center; }

.btn-ghost {
  padding: 0.85rem 2rem;
  border: 1px solid rgba(0,170,255,0.4);
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
  border-radius: 8px; cursor: pointer;
  transition: all var(--transition); display: inline-block;
}
.btn-ghost:hover { background: rgba(0,170,255,0.1); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 2rem; justify-content: center; align-items: center;
  animation: fadeUp 1s 0.5s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-hero); font-size: 2rem;
  font-weight: 700; color: var(--accent); line-height: 1;
}
.plus { font-size: 1.4rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 1; color: var(--text-muted); font-size: 0.65rem; letter-spacing: 3px;
  animation: fadeIn 2s 1s ease both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 1rem;
}
.section-label.light { color: rgba(0,170,255,0.7); }

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
}
.section-title.center { text-align: center; }
.section-title.light { color: var(--text); }
.accent { color: var(--accent); }

.section-sub {
  color: var(--text-dim); font-size: 1.05rem; max-width: 640px;
  margin-bottom: 4rem; line-height: 1.8;
}
.section-sub.center { text-align: center; margin: 0 auto 4rem; }

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.about-lead {
  font-size: 1.15rem; font-weight: 500; color: var(--text);
  margin-bottom: 1.5rem; line-height: 1.8;
}
.about-body { color: var(--text-dim); margin-bottom: 2.5rem; line-height: 1.9; }

.about-features { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.feature-item:hover { border-color: rgba(0,170,255,0.3); }
.feature-icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.feature-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

/* Circuit card visual */
.about-visual { display: flex; justify-content: center; align-items: center; }
.circuit-card {
  position: relative; width: 320px; height: 320px;
  border-radius: 50%; border: 2px solid rgba(0,170,255,0.2);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--surface2) 0%, var(--bg2) 70%);
}
.chip-center {
  position: relative; z-index: 3;
  width: 120px; height: 120px; border-radius: 16px;
  background: var(--surface); border: 2px solid rgba(0,170,255,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-hero); font-weight: 700;
  box-shadow: 0 0 30px rgba(0,170,255,0.15);
}
.chip-center span { font-size: 1.4rem; color: var(--accent); }
.chip-center small { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; }
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(0,170,255,0.2);
}
.orbit-1 { width: 200px; height: 200px; animation: spin 20s linear infinite; }
.orbit-2 { width: 290px; height: 290px; animation: spin 35s linear infinite reverse; }
.dot {
  position: absolute; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.d1 { top: 30px; right: 80px; animation: pulse 2s ease-in-out infinite; }
.d2 { bottom: 50px; left: 40px; animation: pulse 2.5s 0.5s ease-in-out infinite; }
.d3 { top: 110px; left: 15px; animation: pulse 3s 1s ease-in-out infinite; }
.d4 { bottom: 80px; right: 20px; animation: pulse 2s 1.5s ease-in-out infinite; }

/* ===== VENDORS ===== */
.vendors { background: var(--bg); }
.vendors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vendor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.vendor-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  transform: scaleX(0); transition: transform var(--transition);
}
.vendor-card:hover { border-color: rgba(0,170,255,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.vendor-card:hover::before { transform: scaleX(1); }

.vendor-logo-wrap {
  height: 70px; display: flex; align-items: center;
  border-radius: 10px; overflow: hidden;
}
.vendor-logo-wrap img { max-height: 50px; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }
.vendor-logo-text {
  font-family: var(--font-hero); font-size: 2rem; font-weight: 700;
  color: var(--accent); display: none;
}
.vendor-logo-wrap.placeholder {
  background: var(--surface2); border: 2px dashed rgba(0,170,255,0.2);
  justify-content: center;
}
.plus-icon { font-size: 2.5rem; color: var(--text-muted); }

.vendor-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.vendor-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; }
.vendor-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.vendor-tags span {
  padding: 0.25rem 0.7rem; border-radius: 100px;
  background: rgba(0,170,255,0.1); border: 1px solid rgba(0,170,255,0.2);
  font-size: 0.75rem; color: var(--accent);
}

.vendor-link {
  margin-top: auto; padding: 0.7rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--accent);
  display: flex; justify-content: space-between; align-items: center;
  transition: all var(--transition);
}
.vendor-link:hover { background: rgba(0,170,255,0.1); border-color: rgba(0,170,255,0.4); }
.arrow { transition: transform var(--transition); }
.vendor-link:hover .arrow { transform: translateX(4px); }

.vendor-upcoming { opacity: 0.7; }
.upcoming-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  background: rgba(0,230,143,0.1); border: 1px solid rgba(0,230,143,0.3);
  font-size: 0.72rem; font-weight: 600; color: var(--success);
  letter-spacing: 0.5px;
}

/* ===== PRODUCTS ===== */
.products { background: var(--bg2); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition);
}
.product-card:hover { border-color: rgba(0,170,255,0.3); transform: translateY(-3px); }

.product-icon {
  width: 48px; height: 48px; color: var(--accent); margin-bottom: 1rem;
}
.product-icon svg { width: 100%; height: 100%; }
.product-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.87rem; color: var(--text-dim); line-height: 1.7; }

/* ===== CLIENTS / INDUSTRY ===== */
.clients { background: var(--bg); }
.industry-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.industry-card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); position: relative;
}
.industry-card:hover { border-color: rgba(0,170,255,0.3); transform: translateY(-3px); }
.industry-number {
  font-family: var(--font-hero); font-size: 3rem; font-weight: 700;
  color: rgba(0,170,255,0.1); line-height: 1; margin-bottom: 0.5rem;
}
.industry-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.industry-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; }

/* ===== WHY RFMAX ===== */
.why {
  background: linear-gradient(135deg, var(--bg3) 0%, #0a1428 50%, var(--bg3) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.why-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.check {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,214,143,0.15); border: 1px solid rgba(0,214,143,0.3);
  color: var(--success); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0; margin-top: 2px;
}
.why-list strong { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.why-list p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

/* Globe visual */
.why-visual { display: flex; justify-content: center; }
.globe-wrap { position: relative; width: 300px; height: 300px; }
.globe {
  position: relative; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--surface2), var(--bg));
  border: 2px solid rgba(0,170,255,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(0,100,200,0.15);
}
.globe-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,170,255,0.2);
}
.r1 { width: 100%; height: 100%; border-style: dashed; animation: spin 25s linear infinite; }
.r2 { width: 72%; height: 72%; animation: spin 18s linear infinite reverse; }
.r3 { width: 44%; height: 44%; animation: spin 12s linear infinite; }
.globe-core {
  font-family: var(--font-hero); font-size: 1.3rem; font-weight: 700;
  color: var(--accent); text-align: center; z-index: 2; line-height: 1.2;
}
.globe-dot {
  position: absolute; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}
.gd1 { top: 30px; right: 60px; animation: pulse 2s infinite; }
.gd2 { bottom: 50px; left: 30px; animation: pulse 2.7s 0.4s infinite; }
.gd3 { top: 140px; right: 10px; animation: pulse 3.2s 0.8s infinite; }

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-item h4 { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.35rem; }
.contact-item p { color: var(--text); font-size: 0.95rem; }
.contact-item a { color: var(--accent); transition: color var(--transition); }
.contact-item a:hover { color: var(--accent3); }
.contact-item small { color: var(--text-muted); font-size: 0.82rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--font); font-size: 0.92rem;
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(0,170,255,0.5); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: var(--surface2); }
.form-group textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-logo { font-size: 1.5rem; margin-bottom: 0.75rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.footer h5 { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer li a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer li a:hover { color: var(--accent); }
.footer-contact p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-contact a { color: var(--text-dim); transition: color var(--transition); }
.footer-contact a:hover { color: var(--accent); }
.addr { line-height: 1.6; margin-top: 0.5rem; }
.coming { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-tagline { color: var(--accent); font-weight: 500; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .circuit-card { width: 260px; height: 260px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; }
}
