/* 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);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --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.2;
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 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);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 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;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  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(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
}

/* 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);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.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;
}

.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; filter: grayscale(100%); opacity: 0.6; }
.partners-logo-track h4 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }

.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); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15); }
.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.2); color: var(--primary-color); border-radius: 100px; font-size: 0.75rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;}
.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; }
.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) {
  .nav-links {
    display: none; /* simple hidden for mobile, no complex sidemenu yet */
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
