/* Techno Innovations - Mirafra-style Professional Website */
:root {
  --bg-dark: #0f1419;
  --bg-card: #161d26;
  --bg-light: #f8f9fb;
  --text-primary: #1a1d21;
  --text-secondary: #4a5568;
  --text-muted: #6b7280;
  --text-light: #e6edf3;
  --accent: #246BBD;
  --accent-hover: #1a5a9e;
  --accent-light: #3BB6E8;
  --accent-green: #6EC044;
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: #fff;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 56px;
  margin-bottom: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* Hero - balanced depth */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(59, 182, 232, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(36, 107, 189, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero scrolling banner - big images */
.hero-banner-scroll {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 75%;
  max-width: 900px;
  height: 400px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 92%, transparent);
}

.hero-banner-track {
  display: flex;
  gap: 2rem;
  height: 100%;
  animation: heroBannerScroll 40s linear infinite;
  width: max-content;
}

.hero-banner-track:hover {
  animation-play-state: paused;
}

@keyframes heroBannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-banner-item {
  flex-shrink: 0;
  width: 380px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.hero-banner-track:hover .hero-banner-item {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-banner-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-banner-track:hover .hero-banner-item img {
  transform: scale(1.05);
}

.hero-banner-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 100px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15));
  text-align: center;
  letter-spacing: 0.02em;
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin-left: 0;
  margin-right: auto;
}

.hero-content {
  max-width: 520px;
  text-align: left;
}


.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Hero animations */
.animate-on-load .hero-title,
.animate-on-load .hero-description,
.animate-on-load .hero-cta {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeSlideUp 0.8s var(--transition-smooth) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.5s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(36, 107, 189, 0.06);
  color: var(--accent);
  border: 1px solid rgba(36, 107, 189, 0.3);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Section label */
.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Who we are - Pioneers. Innovators. Game-changers. */
.who-we-are {
  padding: 5rem 0;
  background: var(--bg-light);
}

.who-we-are-inner {
  max-width: 800px;
}

.who-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.who-content {
  margin-bottom: 2rem;
}

.who-content p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Services - dark section */
.services {
  padding: 5rem 0;
  background: linear-gradient(180deg, #1e293b 0%, #334155 50%, #1e293b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services .section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.services .section-header .section-title {
  margin-bottom: 1.5rem;
}

.services .btn-explore {
  margin-top: 0.5rem;
}

.services .section-label {
  color: var(--accent-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.services .section-title {
  color: #fff;
}

.services-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-category {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.service-category:hover {
  border-color: rgba(59, 182, 232, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.service-category-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--accent-light);
}

.service-category-icon svg {
  width: 100%;
  height: 100%;
}

.service-category h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-bullets li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  padding-left: 1.25rem;
  position: relative;
}

.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--accent-light);
  border-radius: 50%;
}

.services-cta {
  text-align: center;
}

/* Capabilities - light section */
.capabilities {
  padding: 5rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.capabilities .section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.capabilities .section-label {
  color: var(--accent);
}

.capabilities .section-title {
  color: var(--text-primary);
}

.capabilities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.capability-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  background: #fff;
  border: 1px solid rgba(36, 107, 189, 0.25);
  border-radius: 2rem;
  transition: all var(--transition);
}

.capability-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Stats - dark band */
.stats {
  padding: 4rem 0;
  background: linear-gradient(180deg, #334155 0%, #1e293b 50%, #334155 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.stats-cta {
  text-align: center;
}

.stats-cta .btn-primary {
  background: var(--accent);
  color: #fff;
}

.stats-cta .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--bg-light);
}

.testimonials .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0;
}

.testimonial p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial footer {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Careers & Contact - side by side */
.careers-contact {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(36, 107, 189, 0.06) 0%, rgba(36, 107, 189, 0.1) 100%);
  border-top: 1px solid rgba(36, 107, 189, 0.15);
  border-bottom: 1px solid rgba(36, 107, 189, 0.15);
}

.careers-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.careers-contact-card {
  padding: 2.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}

.careers-contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 107, 189, 0.3);
  box-shadow: 0 16px 40px rgba(36, 107, 189, 0.12);
}

.careers-contact-card .btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.careers-contact-card:hover .btn-primary {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 107, 189, 0.3);
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.work-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-cta-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.careers-contact-card .section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.careers-contact .btn-primary {
  background: var(--accent);
  color: #fff;
}

.careers-contact .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Footer - dark */
.footer {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
  align-items: start;
  text-align: center;
}

.footer-brand {
  text-align: center;
}

.footer-links-col {
  text-align: center;
}

.footer-brand .logo-link {
  display: inline-block;
}

.footer-address-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.footer-phone {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.footer-phone a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-phone a:hover {
  color: var(--accent-light);
}

.logo-link-footer {
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  display: inline-block;
}

.footer-links-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.footer-links-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="0"] { transition-delay: 0s; }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="150"] { transition-delay: 0.15s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }

/* Responsive */
@media (min-width: 1100px) {
  .services-categories {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 968px) {
  .services-categories {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-banner-scroll {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .careers-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links-col {
    text-align: center;
  }
}

/* Mobile nav */
.nav-links.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: #fff;
  z-index: 99;
}

.nav-links.open a {
  font-size: 1.25rem;
  color: var(--text-primary);
}
