/* Base Variables & Setup */
:root {
  --bg-color: #060608;
  --bg-surface: #0f0f13;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --primary-color: #6366f1;
  /* Indigo */
  --secondary-color: #ec4899;
  /* Pink */

  --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #8b5cf6, #6366f1);
  --gradient-bg-size: 300% 300%;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.15), 0 20px 80px -20px rgba(0, 0, 0, 0.6);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-1);
  background-size: var(--gradient-bg-size);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientPan 8s ease infinite;
}

@keyframes gradientPan {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Background Glowing Blobs */
.blob {
  position: absolute;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  bottom: 20%;
  right: -150px;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-1);
  background-size: var(--gradient-bg-size);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  animation: gradientPan 8s ease infinite;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.7);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.8rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  /* Top lighting effect */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

/* Hero Graphic / Dashboard Mockup */
.main-card {
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.main-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ef4444;
}

.yellow {
  background: #eab308;
}

.green {
  background: #22c55e;
}

.metric-value {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 4px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  display: block;
}

.graph {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100px;
}

.bar {
  flex: 1;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px 4px 0 0;
  animation: growUp 1.5s ease-out forwards;
  transform-origin: bottom;
}

.bar-1 {
  height: 40%;
  animation-delay: 0.5s;
}

.bar-2 {
  height: 70%;
  animation-delay: 0.7s;
}

.bar-3 {
  height: 50%;
  animation-delay: 0.9s;
}

.bar-4 {
  height: 100%;
  background: var(--gradient-1);
  animation-delay: 1.1s;
}

@keyframes growUp {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* Services */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 50px -10px rgba(99, 102, 241, 0.25);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.link-arrow {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.service-card:hover .link-arrow {
  padding-left: 8px;
}

/* Stats Section */
.stats {
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.stat-item p {
  color: var(--text-muted);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

/* --- New Sections CSS --- */
.partners-logo-track {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.partners-logo-track h4 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
  cursor: default;
}

.partners-logo-track h4:hover {
  opacity: 1;
  filter: grayscale(0%);
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

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

.portfolio-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 50px -10px rgba(99, 102, 241, 0.25);
}

.portfolio-img {
  height: 200px;
  width: 100%;
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--glass-border);
}

.portfolio-content {
  padding: 32px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.portfolio-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 15px 40px -10px rgba(236, 72, 153, 0.15);
}

.quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
  position: relative;
}

.quote::before {
  content: '"';
  font-size: 3rem;
  color: rgba(99, 102, 241, 0.2);
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: var(--font-heading);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
}

.author-info .title {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay {
  transition-delay: 0.2s;
}

.reveal-delay-2 {
  transition-delay: 0.4s;
}

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

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

@media screen and (max-width: 768px) {
 

  /* --- Mobile Menu Overlay --- */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999; /* Just below button and navbar content */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .nav-links.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.35rem;
    color: #fff;
    opacity: 1;
  }

  .mobile-menu-btn {
    display: flex;
    position: relative;
    z-index: 1001; /* Above everything */
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* --- Overflow Guard --- */
  html, body {
    overflow-x: hidden;
  }

  .blob {
    max-width: 60vw;
    max-height: 60vw;
  }

  /* --- Typography --- */
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* --- Grids become single column --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* --- Footer --- */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* --- Logo --- */
  .logo img {
    max-height: 50px !important;
  }

  /* --- Stats --- */
  .stat-item h3 {
    font-size: 2.5rem;
  }

  /* --- Misc inline grid overrides --- */
  /* "Why Choose Us" two-column grid */
  .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

.logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

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