/*
Theme Name: Byte Labs
Theme URI: https://byte-labs.ir
Author: Byte Labs
Author URI: https://byte-labs.ir
Description: Byte Labs landing theme — clarity, consistency & unity. One-page style with hero, services, founders, and contact.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: byte-labs
*/

/* ============================================
   Byte Labs — WordPress theme styles
   ============================================ */

:root {
  /* Backgrounds */
  --bg-dark: #0d0d12;
  --bg-dark-alt: #1a1a24;
  --bg-card: rgba(26, 26, 36, 0.8);
  --bg-header: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0d0d12 0%, #1a1520 40%, #2a1825 100%);
  --gradient-glow: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
  --gradient-button: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --gradient-quote: linear-gradient(135deg, #4c1d95 0%, #1e3a8a 100%);
  --gradient-life: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Accent */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --glow-purple: rgba(139, 92, 246, 0.5);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-4: 0.25rem;
  --space-6: 0.375rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-96: 6rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Header */
  --header-height: 4.5rem;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   Site header
   ============================================ */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('images/background/33.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0d0d12;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-16) var(--space-24);
  flex-shrink: 0;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-12) var(--space-24);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-text {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-8);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.menu-toggle-bar {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav .nav-list,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: var(--space-8) var(--space-24);
  background: var(--gradient-button);
  color: var(--text-primary) !important;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
  opacity: 0.95;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-48) var(--space-24) var(--space-96);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-16);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-32);
  color: var(--text-primary);
}

.hero-anchor {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.2s;
}

.hero-anchor::after {
  content: '↓';
  font-size: var(--text-lg);
}

.hero-anchor:hover {
  color: var(--text-primary);
}

/* ============================================
   Sections common
   ============================================ */
.section {
  padding: var(--space-80) var(--space-24);
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--space-48);
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: calc(-1 * var(--space-32)) 0 var(--space-48);
}

.section-desc {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* ============================================
   Section: Services (One service)
   ============================================ */
.section-services {
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.service-card {
  position: relative;
  padding: var(--space-32);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.service-card-title {
  position: relative;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-16);
  color: var(--text-primary);
}

.service-card-desc {
  position: relative;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Section: Founders
   ============================================ */
.section-founders {
  background: linear-gradient(180deg, #1a1720 0%, #0d0d12 100%);
}

.section-founders .section-title {
  margin-bottom: var(--space-16);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}

.founder-card {
  background: var(--text-primary);
  color: #18181b;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.founder-image-wrap {
  aspect-ratio: 320 / 360;
  overflow: hidden;
  background: var(--bg-dark-alt);
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: var(--space-24) var(--space-24) var(--space-4);
  color: #18181b;
}

.founder-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 var(--space-24) var(--space-24);
}

.founder-quote {
  margin: 0;
  padding: var(--space-24);
  background: var(--gradient-quote);
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.6;
  font-style: normal;
}

.founder-quote p {
  margin: 0 0 var(--space-8);
  color: rgba(255, 255, 255, 0.95);
}

.founder-quote cite {
  display: block;
  text-align: right;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

/* ============================================
   Section: We are all One (LIFE)
   ============================================ */
.section-life {
  background: var(--bg-dark);
}

.life-boxes {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.life-box {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gradient-life);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.life-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.3);
}

/* ============================================
   Section: Our people / JOIN OUR TEAM
   ============================================ */
.section-people {
  background: var(--bg-dark-alt);
  text-align: center;
}

.people-cta-link {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  margin-bottom: var(--space-24);
  transition: color 0.2s;
}

.people-cta-link:hover {
  color: var(--accent-blue);
}

.section-title-large {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-24);
}

.section-people .section-desc {
  margin: 0 auto;
}

/* ============================================
   Section: Our Mission in Action
   ============================================ */
.section-mission {
  position: relative;
  background: var(--bg-dark);
  padding-bottom: var(--space-96);
}

.section-mission .section-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

.mission-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--gradient-button);
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

.section-mission .section-desc {
  margin: 0 auto var(--space-32);
}

.mission-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: var(--text-2xl);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: background 0.2s, border-color 0.2s;
}

.mission-link:hover {
  background: var(--bg-header);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: var(--space-48) var(--space-24);
  background: var(--bg-dark-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.footer-logo .logo-text {
  color: var(--text-primary);
}

.footer-nav-list {
  display: flex;
  gap: var(--space-24);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-nav-list a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid,
  .founders-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    padding: var(--space-96) var(--space-24) var(--space-24);
    background: var(--bg-dark-alt);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav .nav-list,
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-16);
  }

  .nav-link {
    display: block;
    padding: var(--space-12) 0;
  }

  .hero {
    min-height: 80vh;
    padding: var(--space-64) var(--space-24);
  }

  .section {
    padding: var(--space-48) var(--space-24);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav-list {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .life-box {
    width: 4rem;
    height: 4rem;
    font-size: var(--text-2xl);
  }
}
