/* ===================================================
   Binary Cube IT – Main Stylesheet
   =================================================== */

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

:root {
  --bg:      #0a0e1a;
  --bg2:     #0f1525;
  --card:    #141b2d;
  --border:  rgba(99,179,237,0.15);
  --cyan:    #38bdf8;
  --cyan2:   #0ea5e9;
  --blue:    #3b82f6;
  --purple:  #8b5cf6;
  --pink:    #ec4899;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --heading: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--heading);
  line-height: 1.2;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── UTILITIES ── */
.container { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.2);
  border-radius: 99px; padding: 4px 14px; margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 56px; }
.tag {
  font-size: .72rem; font-weight: 500;
  background: rgba(56,189,248,.1); color: var(--cyan);
  border: 1px solid rgba(56,189,248,.2); border-radius: 99px;
  padding: 3px 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan2), var(--blue));
  color: #fff; border: none; border-radius: 10px;
  padding: 14px 32px; font-size: 1rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(56,189,248,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(56,189,248,.35); text-decoration: none; }

.btn-outline {
  display: inline-block;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 10px;
  padding: 14px 32px; font-size: 1rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--heading);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo .cube {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cyan2), var(--blue));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 800;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  background: linear-gradient(135deg, var(--cyan2), var(--blue));
  color: #fff; border: none; border-radius: 8px;
  padding: 10px 22px; font-size: .9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; text-decoration: none; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139,92,246,.08) 0%, transparent 60%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(99,179,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.25);
  border-radius: 99px; padding: 6px 16px; font-size: .8rem;
  color: var(--cyan); margin-bottom: 28px; font-weight: 500;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--cyan); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

#hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: 22px; }
.grad {
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 72px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: var(--cyan); font-family: 'Space Grotesk', sans-serif; }
.stat-item .label { font-size: .85rem; color: var(--muted); }

/* ═══════════════════════════════════════
   SECTIONS – shared padding
═══════════════════════════════════════ */
section { padding: 96px 24px; }

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
#about {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.about-blob {
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(56,189,248,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(139,92,246,.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}
#about .container { position: relative; z-index: 1; }

.about-header { max-width: 760px; margin: 0 auto 56px; }
.about-header .section-title { margin-bottom: 20px; }
.about-lead { color: var(--muted); font-size: 1.02rem; }

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.stat-pill {
  background: linear-gradient(180deg, rgba(56,189,248,.06), rgba(20,27,45,.6));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.stat-pill:hover { border-color: rgba(56,189,248,.4); transform: translateY(-3px); }
.stat-pill .n {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1; margin-bottom: 8px;
}
.stat-pill .l { font-size: .82rem; color: var(--muted); font-weight: 500; }

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.highlight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.highlight-card:hover { border-color: rgba(56,189,248,.4); transform: translateY(-3px); }
.hc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(59,130,246,.15));
  border: 1px solid rgba(56,189,248,.25);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.hc-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.highlight-card h4 { font-size: .98rem; margin-bottom: 6px; }
.highlight-card p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.5; }

.about-expertise {
  padding: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.expertise-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-expertise .tags { justify-content: center; }

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
#services { background: var(--bg); text-align: center; }
#services .section-sub { margin-left: auto; margin-right: auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
  text-align: center;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px; transition: border-color .25s, transform .25s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(56,189,248,.04), transparent);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { border-color: rgba(56,189,248,.4); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(59,130,246,.15));
  border: 1px solid rgba(56,189,248,.25);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.service-card .tags { justify-content: center; }

/* ═══════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════ */
#portfolio { background: var(--bg2); }

.portfolio-tabs { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.portfolio-tab {
  padding: 10px 24px; border-radius: 99px; font-weight: 600;
  font-size: .9rem; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.portfolio-tab.active {
  border: 1px solid var(--cyan);
  background: rgba(56,189,248,.12); color: var(--cyan);
}
.portfolio-tab.inactive {
  border: 1px solid var(--border);
  background: transparent; color: var(--muted);
}
.portfolio-tab:hover { border-color: var(--cyan); color: var(--cyan); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.portfolio-pane { display: none; }
.portfolio-pane.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* App card – special layout */
.app-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s, transform .25s;
}
.app-card:hover { border-color: rgba(56,189,248,.4); transform: translateY(-4px); }
.app-card-header { display: flex; align-items: center; gap: 16px; }
.app-icon {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover;
  flex-shrink: 0; background: var(--bg2);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.app-icon-placeholder {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: var(--bg2);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.app-meta h3 { font-size: 1.1rem; margin-bottom: 4px; }
.app-meta .platform { font-size: .75rem; color: var(--cyan); font-weight: 500; }
.app-card p { font-size: .86rem; color: var(--muted); flex: 1; }
.app-card-links { display: flex; gap: 10px; flex-wrap: wrap; }
.app-card-links a {
  font-size: .8rem; color: var(--cyan); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
}
.app-card-links a:hover { text-decoration: underline; }

/* Web portfolio card */
.portfolio-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.35); }
.portfolio-card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.portfolio-card-img img {
  max-width: 70%; max-height: 90px; object-fit: contain;
}
.portfolio-card-body { padding: 24px; }
.portfolio-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.portfolio-card-body p { font-size: .83rem; color: var(--muted); margin-bottom: 14px; }
.portfolio-card-body a { font-size: .82rem; font-weight: 500; }

/* ═══════════════════════════════════════
   TEAM  –  3-column full-width
═══════════════════════════════════════ */
#team { background: var(--bg); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 32px 40px; text-align: center;
  transition: border-color .25s, transform .25s;
  position: relative; overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cyan2), var(--blue), var(--purple));
  opacity: 0; transition: opacity .3s;
}
.team-card:hover { border-color: rgba(56,189,248,.4); transform: translateY(-6px); }
.team-card:hover::before { opacity: 1; }

.team-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 700; color: #fff;
  margin: 0 auto 24px;
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden;
  border: 3px solid rgba(56,189,248,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.team-card .role {
  font-size: .9rem; color: var(--cyan); font-weight: 600; margin-bottom: 16px;
}
.team-card .bio {
  font-size: .85rem; color: var(--muted); line-height: 1.6;
}

/* ═══════════════════════════════════════
   WHY US
═══════════════════════════════════════ */
#why { background: var(--bg2); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.why-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
}
.why-card .num {
  font-size: 2.5rem; font-weight: 800;
  color: rgba(56,189,248,.2); font-family: 'Space Grotesk', sans-serif;
  line-height: 1; margin-bottom: 12px;
}
.why-card h3 { font-size: .98rem; margin-bottom: 8px; }
.why-card p { font-size: .84rem; color: var(--muted); }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
#contact { background: var(--bg); text-align: center; }
.contact-center { max-width: 760px; margin: 0 auto; }
.contact-center h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-center > p { color: var(--muted); margin-bottom: 40px; }
.contact-items {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; text-align: left;
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.ci-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(56,189,248,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.ci-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ci-val { font-size: .88rem; font-weight: 500; color: var(--heading); }

/* ═══════════════════════════════════════
   LEGAL PAGES (Privacy / Terms)
═══════════════════════════════════════ */
.legal-section {
  background: var(--bg);
  padding: 140px 0 96px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.legal-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 420px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(56,189,248,.08) 0%, transparent 70%);
  pointer-events: none;
}
.legal-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.legal-container .section-tag { margin-bottom: 20px; }

.legal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.legal-updated {
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-container h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 48px 0 18px;
  color: var(--heading);
  letter-spacing: -.005em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1.3;
}
.legal-container h2::before {
  content: '';
  flex-shrink: 0;
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 2px;
  transform: translateY(2px);
}

.legal-container p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.8;
}
.legal-container ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.legal-container ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.75;
}
.legal-container ul li::before {
  content: '';
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: .7;
}
.legal-container strong { color: var(--heading); font-weight: 600; }
.legal-container a { color: var(--cyan); }
.legal-container a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   FOOTER  – slim
═══════════════════════════════════════ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 18px 24px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--heading); text-decoration: none;
}
.footer-logo .cube {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--cyan2), var(--blue));
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 800;
}
.footer-copy { color: var(--muted); font-size: .8rem; margin: 0; }
.footer-links { display: flex; gap: 18px; font-size: .8rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .team-card { padding: 36px 24px; }
  .team-avatar { width: 100px; height: 100px; }
}
