/*
 * ESBHI Technologies - Global CSS Design System
 * Aesthetic: Futuristic Glassmorphic Dark-Mode
 * Color Palette: Space Blue, Electric Cyan, Radiant Indigo, Silver Grey
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --bg-color: #08090C;
  --bg-grid-color: rgba(0, 242, 254, 0.02);
  --surface-color: rgba(18, 20, 28, 0.6);
  --surface-solid: #12141C;
  --primary-glow: #00F2FE;
  --secondary-glow: #4FACFE;
  --accent-glow: #8A2387;
  --text-primary: #F6F8FA;
  --text-secondary: #9FA2B4;
  --text-muted: #646675;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  /* Fonts */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(to right, var(--bg-grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Base Tech Blur Orbs */
.orb-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.orb-primary {
  background: var(--primary-glow);
  top: -100px;
  right: -50px;
}

.orb-secondary {
  background: var(--secondary-glow);
  bottom: 20%;
  left: -100px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  border-radius: 2px;
}

.center-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(90deg, var(--secondary-glow) 0%, var(--primary-glow) 100%);
  color: #08090C;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

/* Frosted Glass Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(8, 9, 12, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(8, 9, 12, 0.85);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.logo-icon::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #08090C;
  border-radius: 50%;
}

/* Nav Menu */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav li {
  position: relative;
}

nav a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

nav a:hover, nav li.active > a {
  color: var(--primary-glow);
}

/* Nav Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(18, 20, 28, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

nav li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary-glow);
  padding-left: 1.5rem;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Glass Cards */
.glass-card {
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.08);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 125%;
}

/* Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title-gradient {
  background: linear-gradient(90deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cyber-mesh-container {
  width: 100%;
  max-width: 480px;
  height: 480px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.cyber-mesh {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mesh-svg {
  width: 80%;
  height: 80%;
  stroke: var(--primary-glow);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.8;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Service Highlights Section */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-intro p {
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-glow);
  font-size: 1.5rem;
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary-glow);
  color: #08090C;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card h4 {
  margin-bottom: 0.8rem;
  font-weight: 500;
}

/* Testimonials / Client Perspectives */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
}

.quote-text::before {
  content: '“';
  font-size: 4rem;
  color: var(--border-glow);
  position: absolute;
  top: -30px;
  left: -20px;
  font-family: serif;
  opacity: 0.3;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08090C;
  font-weight: 700;
  font-size: 1.1rem;
}

.client-name h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.client-name p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Interactive Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-glow);
  font-size: 1.25rem;
}

.contact-item-text h4 {
  margin-bottom: 0.4rem;
}

.contact-item-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Forms */
.contact-form {
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(12px);
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(8, 9, 12, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer styling */
footer {
  background-color: #050608;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--primary-glow);
  padding-left: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-contact-item i {
  color: var(--primary-glow);
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-glow);
}

/* Page Intro/Breadcrumbs */
.page-header {
  padding: 8rem 0 3rem 0;
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-glow);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--primary-glow);
}

/* Specific Page Elements (Subpages) */
.page-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.sidebar-nav {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  padding: 2rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.sidebar-menu li.active a, .sidebar-menu a:hover {
  background: rgba(0, 242, 254, 0.05);
  color: var(--primary-glow);
  border-color: rgba(0, 242, 254, 0.1);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #08090C;
}

.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-glow);
  margin-bottom: 1rem;
}

.team-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Careers open positions */
.positions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.position-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.position-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.position-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { filter: drop-shadow(0 0 2px rgba(0, 242, 254, 0.4)); }
  50% { filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.8)); }
  100% { filter: drop-shadow(0 0 2px rgba(0, 242, 254, 0.4)); }
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .page-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sidebar-nav {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(8, 9, 12, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    padding: 3rem 2rem;
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  nav a {
    font-size: 1.25rem;
    display: block;
  }
  
  /* Mobile dropdown styles */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    display: none;
  }
  
  nav li.active .dropdown-menu, nav li:hover .dropdown-menu {
    display: block;
  }
  
  .header-actions .btn {
    display: none; /* Hide Quote button on mobile header */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
