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

:root {
  --primary: #0080ff;
  --primary-dark: #005bb5;
  --primary-light: #e6f2ff;
  --text-main: #1a1f36;
  --text-muted: #4f566b;
  --bg-main: #ffffff;
  --bg-off: #f7f9fc;
  --border: #e3e8ee;
  --nav-height: 90px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0, 128, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 255, 0.4);
}

.btn-outline {
  border-color: white;
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: white;
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Navbar (Glassmorphism) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 232, 238, 0.5);
  transition: all 0.3s ease;
}

.navbar .logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
  overflow: hidden;
}

/* Adding a dynamic background shape */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(0, 128, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #1a1f36 0%, #0080ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeUp 1s ease-out 0.4s both;
}

.hero-image {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 45%;
  z-index: 1;
  animation: fadeIn 1.5s ease-out 0.5s both;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats {
  padding: 5rem 5%;
  background-color: var(--primary);
  color: var(--text-main);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0;
}

/* Capabilities Section */
.capabilities {
  padding: 8rem 5%;
  background-color: var(--bg-off);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  color: var(--text-main);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.cap-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cap-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.cap-card:hover::before {
  transform: scaleX(1);
}

.cap-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.cap-card:hover .cap-icon {
  background: var(--primary);
  color: var(--text-main);
}

.cap-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.cap-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Infrastructure */
.infrastructure {
  padding: 8rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.infra-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.infra-content ul {
  list-style: none;
  margin-top: 2rem;
}

.infra-content ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.infra-content ul li i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* Certifications Band */
.certifications {
  padding: 4rem 5%;
  background: #10162A;
  color: #ffffff;
  text-align: center;
}

.cert-logos {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
  opacity: 0.7;
}

.cert-logos h3 {
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #ffffff;
}

/* Footer */
.footer {
  background: #0A0F1D;
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 5% 2rem 5%;
}

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

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .trusted-title {
    text-align: center;
  }

  .infrastructure {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .infra-image {
    order: 2;
  }

  .infra-content {
    order: 1;
    text-align: center;
  }

  .infra-content ul li {
    justify-content: center;
  }

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

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

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

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

  .cert-logos {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Ultra-Premium Glassmorphism Floating Navbar */
.navbar-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  /* Let clicks pass through the wrapper */
}

.navbar-floating {
  pointer-events: auto;
  /* Re-enable clicks on the actual navbar */
  width: 90%;
  max-width: 1200px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar-floating:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.navbar-floating .logo img {
  height: 35px;
  transition: transform 0.3s ease;
}

.navbar-floating .logo img:hover {
  transform: scale(1.05);
}

/* Redefine button in navbar to fit floating style */
.navbar-floating .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  margin-left: 1rem;
}

/* Hide original navbar to replace with floating */
.navbar {
  display: none !important;
}

/* Bento Box Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
  margin: 4rem 0;
}

.bento-item {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  position: relative;
}

/* Subtle corner glow in bento boxes */
.bento-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 128, 255, 0.2);
}

.bento-item:hover::after {
  opacity: 1;
}

/* Spanning classes for Bento layouts */
.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-row-2 {
  grid-row: span 2;
}

/* Bento inner typography */
.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.bento-item p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.bento-item .bento-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--primary-light);
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 16px;
}

/* Overlapping Image Composition */
.overlap-composition {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.overlap-image-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: transform 0.5s ease;
}

.overlap-image-secondary {
  position: absolute;
  bottom: -10%;
  right: 0;
  width: 50%;
  border-radius: 24px;
  box-shadow: -10px -10px 40px rgba(0, 0, 0, 0.15);
  border: 10px solid white;
  z-index: 2;
  transition: transform 0.5s ease;
}

.overlap-composition:hover .overlap-image-main {
  transform: scale(1.02) translate(-10px, -10px);
}

.overlap-composition:hover .overlap-image-secondary {
  transform: scale(1.05) translate(10px, 10px);
}

/* Scroll Animation Utility Classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* Responsive adjustments for Bento */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-span-3,
  .bento-span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-2,
  .bento-span-3,
  .bento-span-4 {
    grid-column: span 1;
  }

  .bento-row-2 {
    grid-row: span 1;
  }

  .navbar-floating {
    width: 95%;
    padding: 0 1rem;
  }

  .navbar-floating .nav-links {
    display: none;
  }
}

/* Glass Info Card */
.glass-info-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 2;
  transition: transform 0.4s ease;
}

.glass-info-card .icon {
  font-size: 2.2rem;
  color: var(--primary);
  background: rgba(0, 128, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-info-card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
  min-width: 150px;
}

.glass-info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.overlap-composition {
  min-height: 400px;
  position: relative;
}

.overlap-composition .main-creative-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overlap-composition:hover .glass-info-card {
  transform: translateY(-10px) translateX(-5px);
  border-color: rgba(0, 128, 255, 0.3);
}

/* Ensure text on bento/cap cards looks good on dark */
.cap-card p {
  color: var(--text-muted);
}

/* Product Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.catalog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.catalog-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.catalog-img {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

/* Product Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.catalog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.catalog-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.catalog-img {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

/* Infinite Client Logo Slider */
.client-logos {
  overflow: hidden;
  padding: 2rem 0;
  background: white;
  white-space: nowrap;
  position: relative;
}

.client-logos::before,
.client-logos::after {
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  content: "";
  z-index: 2;
}

.client-logos::before {
  left: 0;
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
}

.client-logos::after {
  right: 0;
  background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
}

.client-logo-track {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.client-logo-track img {
  height: 50px;
  margin: 0 40px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.client-logo-track img:hover {
  opacity: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Company Journey Timeline */
.journey-section {
  padding: 6rem 5%;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.journey-header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--primary);
  opacity: 0.2;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background: white;
  border: 4px solid var(--primary);
  top: 25px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 2rem;
  background: white;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.08);
  transform: translateY(-2px);
}

.timeline-content h3 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Timeline Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
  }

  .timeline-item::after {
    left: 10px;
  }

  .right {
    left: 0%;
  }
}