/* =============================================
   3CS TECH HUB — SHARED STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #06060f;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOKENS ─── */
:root {
  --pink:    #f472b6;
  --purple:  #a855f7;
  --blue:    #3b82f6;
  --cyan:    #22d3ee;
  --green:   #10b981;
  --yellow:  #fbbf24;
  --g1: linear-gradient(135deg,#f472b6 0%,#a855f7 50%,#3b82f6 100%);
  --g2: linear-gradient(90deg,#a855f7,#3b82f6,#22d3ee);
  --g3: linear-gradient(135deg,#a855f7,#3b82f6);
  --glass:  rgba(255,255,255,0.04);
  --glass2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --border2:rgba(168,85,247,0.3);
  --muted:  rgba(255,255,255,0.45);
  --muted2: rgba(255,255,255,0.65);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #06060f; }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 999px; }

/* ─── SELECTION ─── */
::selection { background: rgba(168,85,247,0.35); color: #fff; }

/* ─── NOISE OVERLAY ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
}

/* ─── ORB BG ─── */
.orb-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.orb-1 { width: 700px; height: 700px; background: rgba(168,85,247,0.12); top:-200px; left:-200px; animation: drift1 12s ease-in-out infinite; }
.orb-2 { width: 600px; height: 600px; background: rgba(59,130,246,0.1); bottom:-150px; right:-150px; animation: drift2 15s ease-in-out infinite; }
.orb-3 { width: 400px; height: 400px; background: rgba(244,114,182,0.08); top:50%; left:50%; transform:translate(-50%,-50%); animation: drift3 10s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-40px)} }
@keyframes drift3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.2)} }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 40px);
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  height: 60px;
  background: rgba(6,6,15,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg,rgba(168,85,247,0.08),transparent 60%,rgba(59,130,246,0.06));
  pointer-events: none;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--g1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: var(--g1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--glass2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-phone:hover { color: #fff; }
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--g1);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(168,85,247,0.3);
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 0 36px rgba(168,85,247,0.5); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.2s; }

/* mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(6,6,15,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  padding: 8px 24px;
}
.mobile-drawer a:hover { color: #fff; }
.drawer-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--g1);
  color: #fff;
  box-shadow: 0 4px 32px rgba(168,85,247,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 48px rgba(168,85,247,0.5); opacity: 0.95; }
.btn-secondary {
  background: var(--glass2);
  color: #fff;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.875rem; border-radius: 10px; }

/* ─── LABEL ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}
.section-label::before { content:''; width:20px; height:1px; background:currentColor; }

/* ─── DISPLAY HEADINGS ─── */
.display {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}
.display-lg {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
}
.grad-text {
  background: var(--g1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.muted { color: var(--muted); }
.muted2 { color: var(--muted2); }
.lead { font-size: 1.0625rem; color: var(--muted); line-height: 1.75; }

/* ─── GLASS CARD ─── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(168,85,247,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.card-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g1);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover .card-glow::after { opacity: 0.04; }

/* Top gradient border on card */
.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--g1);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover .card-accent-top::before { opacity: 1; }

/* ─── LAYOUT ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; position: relative; z-index: 1; }
.section-sm { padding: 80px 0; position: relative; z-index: 1; }

/* ─── GRADIENT SEPARATOR ─── */
.grad-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168,85,247,0.3) 30%, rgba(59,130,246,0.3) 70%, transparent 100%);
  margin: 0;
}

/* ─── CHIP / TAG ─── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  color: #c084fc;
}

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted2);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(168,85,247,0.5);
  background: rgba(168,85,247,0.06);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-select option { background: #0d0d18; }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--g1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.footer-logo-sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer-contact-links { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact-link:hover { color: #fff; }
.footer-contact-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--glass2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.footer-legal { line-height: 1.6; }

/* ─── RESPONSIVE ─── */
@media(max-width:1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px) {
  .navbar { width: calc(100% - 24px); }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
