/* ===== TECH-HUB.CC — Global Styles ===== */
:root {
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-alt: #0d1220;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #60a5fa; }
img { max-width: 100%; height: auto; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.logo-img {
  width: 38px; height: 38px; border-radius: 8px; object-fit: contain;
}
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-secondary); font-size: .925rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 24px;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: all .2s; border: none;
}
.nav-cta:hover { background: #2563eb; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); margin: 5px 0; transition: .3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none; animation: floatGlow 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -25%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 65%);
  pointer-events: none; animation: floatGlow 10s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 18px; border-radius: 50px; font-size: .8rem; color: var(--accent);
  font-weight: 600; margin-bottom: 28px; text-transform: uppercase; letter-spacing: .5px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.hero h1 {
  font-size: 3.6rem; font-weight: 800; line-height: 1.08;
  margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero h1 .gradient-text,
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 50%, var(--accent-green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 560px;
  margin-bottom: 40px; line-height: 1.75;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: .95rem;
  transition: all .25s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.2);
}
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.04); color: var(--text-primary); padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border); transition: all .25s; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-card); color: #fff; }

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 16px;
  letter-spacing: -0.5px; line-height: 1.15;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 580px;
  line-height: 1.75;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; }

/* ===== CARDS ===== */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: all .3s; position: relative; overflow: hidden;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.card-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.card-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.card-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: .92rem; line-height: 1.7; }
.card ul { padding-left: 18px; color: var(--text-secondary); font-size: .9rem; line-height: 2; margin-top: 16px; }

.highlight-card { border-color: rgba(59,130,246,0.15); }
.highlight-card:hover { border-color: rgba(59,130,246,0.4); }

/* ===== PROCESS GRID (How We Work) ===== */
.process-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.process-step {
  flex: 1; min-width: 240px; max-width: 320px;
  text-align: center; padding: 40px 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .3s;
}
.process-step:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
}
.process-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(59,130,246,0.25);
}
.process-step h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.process-step p {
  color: var(--text-secondary); font-size: .9rem; line-height: 1.7;
}
.process-connector {
  width: 48px; height: 2px; background: var(--border);
  align-self: center; flex-shrink: 0;
}

/* ===== NUMBERS STRIP ===== */
.numbers-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 48px 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.number-item { text-align: center; }
.number-value {
  display: block; font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.number-label {
  display: block; font-size: .85rem; color: var(--text-muted);
  font-weight: 500;
}

/* ===== SERVICE BLOCKS (Services page) ===== */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-intro .section-title { font-size: 2rem; }

.service-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.mini-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
  transition: all .3s;
}
.mini-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}
.mini-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.mini-card p { color: var(--text-secondary); font-size: .84rem; line-height: 1.6; }

/* Service highlights (payment section) */
.service-highlights {
  display: flex; flex-direction: column; gap: 20px;
}
.highlight-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: all .3s;
}
.highlight-row:hover { border-color: rgba(16, 185, 129, 0.25); }
.highlight-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.highlight-icon.green { background: rgba(16, 185, 129, 0.1); }
.highlight-row h4 { font-size: .98rem; font-weight: 700; margin-bottom: 4px; }
.highlight-row p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; }

/* ===== TERMINAL ===== */
.terminal {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .85rem;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; background: #161b22; border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--text-muted); font-size: .75rem; }
.terminal-body { padding: 22px; line-height: 1.9; }
.terminal-body .prompt { color: var(--accent-green); }
.terminal-body .cmd { color: var(--text-primary); }
.terminal-body .comment { color: var(--text-muted); }
.terminal-body .output { color: var(--text-secondary); }

/* ===== INFRA GRID ===== */
.infra-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.infra-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
  transition: all .3s;
}
.infra-item:hover { border-color: rgba(59, 130, 246, 0.25); transform: translateY(-2px); }
.infra-item .infra-icon { font-size: 2rem; margin-bottom: 14px; }
.infra-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.infra-item p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; }

/* ===== ABOUT / FOUNDER ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.founder-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px; text-align: center;
}
.founder-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: #fff;
  margin: 0 auto 20px; box-shadow: 0 8px 32px rgba(59,130,246,0.2);
}
.founder-card h3 { font-size: 1.4rem; font-weight: 700; }
.founder-card .founder-role { color: var(--accent); font-size: .9rem; font-weight: 600; margin-top: 4px; }
.founder-card .founder-bio { color: var(--text-secondary); margin-top: 16px; font-size: .92rem; line-height: 1.75; }
.about-content .about-text { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; margin-bottom: 20px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.25rem; font-weight: 700; }

/* Contact form */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; background: var(--bg-dark);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-primary); font-size: .9rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-dark); color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 15px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.2);
}
.form-submit:hover { background: #2563eb; box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-1px); }

.form-status {
  margin-top: 16px; padding: 14px 18px; border-radius: 10px;
  font-size: .9rem; line-height: 1.5;
}
.form-status.success {
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
}
.form-status.error {
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.portfolio-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all .3s; position: relative;
}
.portfolio-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.portfolio-card.featured { border-color: rgba(16, 185, 129, 0.15); }
.portfolio-card.featured:hover { border-color: rgba(16, 185, 129, 0.35); }
.portfolio-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 16px;
}
.portfolio-tag.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.portfolio-tag.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.portfolio-tag.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.portfolio-tag.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }
.portfolio-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.portfolio-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.7; }
.portfolio-tech {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.portfolio-tech span {
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}

/* Contact items */
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59,130,246,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: 3px; }
.contact-link { color: var(--accent); font-size: .95rem; font-weight: 500; }
.contact-link:hover { color: #60a5fa; }

/* Mini FAQ */
.mini-faq {
  margin-bottom: 20px;
}
.mini-faq h4 {
  font-size: .92rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary);
}
.mini-faq p {
  font-size: .85rem; color: var(--text-secondary); line-height: 1.6;
}

/* ===== FAQ GRID ===== */
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.faq-grid .card h4 { font-size: 1.02rem; font-weight: 700; }

/* ===== HELP LIST ===== */
.help-list { display: flex; flex-direction: column; gap: 20px; }
.help-item { display: flex; gap: 14px; align-items: flex-start; }
.help-bullet {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex-shrink: 0;
}
.help-bullet.blue { background: var(--accent); }
.help-bullet.green { background: var(--accent-green); }
.help-bullet.purple { background: var(--accent-purple); }
.help-bullet.orange { background: var(--accent-orange); }
.help-item h4 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.help-item p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border); padding: 48px 0 32px;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px; margin-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { color: var(--text-muted); font-size: .85rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
}
.footer-text { color: var(--text-muted); font-size: .82rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,14,23,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px; gap: 20px;
  }
  .hero h1 { font-size: 2.3rem; letter-spacing: -1px; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.9rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr 1fr; }
  .footer-content { flex-direction: column; text-align: center; align-items: center; }

  /* Process grid mobile */
  .process-grid { flex-direction: column; align-items: center; gap: 0; }
  .process-connector { width: 2px; height: 32px; }
  .process-step { max-width: 100%; width: 100%; }

  /* Numbers strip mobile */
  .numbers-strip { grid-template-columns: 1fr 1fr; padding: 32px 24px; }

  /* Service blocks mobile */
  .service-block, .service-block.reverse { grid-template-columns: 1fr; gap: 32px; }
  .service-details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .infra-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  section { padding: 64px 0; }
  .numbers-strip { grid-template-columns: 1fr 1fr; }
  .number-value { font-size: 1.8rem; }
}
