/* Axizar Inc - Professional Dark Theme - Clean Version with Mobile Alignment Fix */
:root {
  --bg-dark: #000000;
  --bg-panel: #0a0b10;
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  --accent-primary: #4facfe;
  --accent-secondary: #00f2fe;
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-border: rgba(255, 255, 255, 0.1);
  --card-bg: #111114;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* Mobile Nav */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 900px) {
  .logo {
    font-size: 2.5rem;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 20px 5%;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.25;
  }
}

/* Main Content */
main {
  flex: 1;
  padding-top: 90px;
}

/* Hero / Headers */
.hero {
  padding: 80px 5% 10px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

.hero-slogan {
  white-space: nowrap;
  transition: color 0.3s ease;
}

.hero-slogan:hover {
  color: var(--accent-primary);
}

/* Sections */
.section {
  padding: 70px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
}

/* Cards & Grids */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), 0 0 0 1px var(--accent-primary), 0 0 18px rgba(79, 172, 254, 0.25);
  border-color: var(--accent-primary);
}

.grid {
  display: grid;
  gap: 28px;
}

.stat {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), 0 0 0 1px var(--accent-primary), 0 0 18px rgba(79, 172, 254, 0.25);
  border-color: var(--accent-primary);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* What We Do cards */
.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), 0 0 0 1px var(--accent-primary), 0 0 18px rgba(79, 172, 254, 0.25);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

/* Founder Photo */
.founder-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  transition: filter 0.5s ease, transform 0.4s ease;
  display: block;
  margin: 0 auto;
}

.founder-photo:hover {
  filter: grayscale(100%);
  transform: scale(1.015);
}

/* Company Card - Desktop */
.company-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-card h2 {
  font-size: 1.85rem;
  margin-bottom: 12px;
  margin-top: 0;
  min-height: 2.8em; /* Ensures titles align perfectly across cards */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), 0 0 0 1px var(--accent-primary), 0 0 18px rgba(79, 172, 254, 0.25);
  border-color: var(--accent-primary);
}

.company-card img {
  max-width: 260px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 25px;
  filter: brightness(0.95);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.company-card .btn {
  margin-top: 15px;
}

/* Forms */
form {
  max-width: 620px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  padding: 15px 18px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.social-icons a {
  color: #000000 !important;
  font-size: 1.3rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  opacity: 1;
}

.social-icons a:hover {
  color: var(--accent-primary) !important;
  background: #000000;
  border-color: var(--accent-primary);
  transform: translateY(-4px) scale(1.08);
}

/* Footer */
footer {
  background: #050507;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 50px 5% 30px;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}

.footer-section h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-section p, .footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom a {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-secondary);
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }

/* Companies Grid */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  justify-content: center;
  align-items: start;
}

/* Twinkling Stars Background - Subtle & Clean */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #a0d4ff;
  border-radius: 50%;
  animation: twinkle 1.2s infinite alternate ease-in-out;
  box-shadow: 0 0 4px rgba(79, 172, 254, 0.6);
}

@keyframes twinkle {
  0% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
  transition: all 0.3s ease;
}

#scrollToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(79, 172, 254, 0.6);
}

/* ============================================
   MOBILE VERSION ONLY - Our Companies Alignment Fix
   All boxes (cards and expanding) even, aligned, same width/padding/centering
   ============================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-slogan {
    white-space: normal;
    font-size: 1.1rem;
  }
  .section {
    padding: 60px 5%;
  }

  /* Companies Grid - full width single column, centered - strong mobile fix for iPhone */
  .companies-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
    max-width: 100% !important;
    padding: 0 5% !important;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  /* All company cards and expanding box - EXACT same width, padding, centered, even alignment on iPhone and small screens */
  .card.company-card,
  .section:last-of-type .card.company-card,
  .companies-grid .company-card,
  .company-card,
  .companies-grid > div {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 25px !important;
    box-sizing: border-box;
    text-align: center;
  }

  /* Force full width centering on mobile for companies grid */
  .companies-grid {
    max-width: 100% !important;
    padding: 0 5% !important;
  }

  /* Service cards and other */
  .service-card {
    padding: 24px;
  }
  p, .service-card p, .company-card p {
    font-size: 1.05rem;
    line-height: 1.75;
  }
  h2, .section-title {
    font-size: 1.75rem;
  }

  /* Footer mobile */
  footer {
    padding: 40px 5% 25px;
  }
  .footer-content {
    gap: 30px;
  }
  .footer-section h4 {
    font-size: 0.9rem;
  }
  .social-icons {
    gap: 12px;
  }
  .social-icons a {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  .footer-bottom {
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .footer-bottom a {
    display: inline-block;
    margin: 2px 4px;
  }

  /* Contact form */
  .input-group input,
  .input-group textarea {
    color: #ffffff;
    font-size: 1rem;
    padding: 16px 18px;
  }
  .input-group input::placeholder,
  .input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
  }
  .input-group label {
    font-size: 0.95rem;
  }

  /* Touch targets */
  .btn {
    min-height: 48px;
    padding: 14px 24px;
  }
  .social-icons a {
    min-width: 44px;
    min-height: 44px;
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-bottom a {
    padding: 4px 8px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  /* Scroll to top mobile */
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}