﻿/* --- 0. GLOBAL & BACKGROUND (Glassmorphism Core) --- */
:root {
  --glass-border: rgba(255, 255, 255, 0.3);
  --primary-accent: #3b82f6; /* A clean blue */
}

body {
  /* BACKGROUND: Allowing original background image to show through */
  background-color: #1a1a1a; /* Dark Fallback color */
  background-attachment: fixed;
  color: #e5e7eb; /* Default text color for dark background */
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* High-contrast links for dark background */
a {
  color: #7bd3ff;
  text-decoration-color: rgba(123, 211, 255, 0.6);
}
a:hover,
a:focus {
  color: #c4ecff;
  text-decoration-color: rgba(196, 236, 255, 0.85);
}

/* Set global section background to transparent to show body background */
.section, .companies-hierarchy {
  background: transparent !important;
}

/* Fix text colors inside the default container structure */
.section-head h2 { color: #fff; }
.section-head p { color: #cbd5e1; }


/* --- 1. FLOATING GLASS HEADER (Menu Redesign) --- */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1); /* Very subtle, transparent background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  margin: 0 auto;
  max-width: 90%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
}
.header-inner {
  padding: 0 1.5rem;
}
.brand-text { color: #fff !important; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--primary-accent);
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px; /* keeps hover alive as you move into the menu */
}
.nav-dropbtn {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.nav-dropbtn::after {
  content: "▾";
  font-size: 0.9rem;
  color: #8bd4ff;
}
.nav-dropbtn:hover {
  color: var(--primary-accent);
}
.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  display: none;
  padding: 0.4rem;
  background: linear-gradient(145deg, rgba(14, 27, 44, 0.92), rgba(18, 35, 58, 0.94));
  backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(123, 212, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
  display: block;
}
.nav-dropdown-content a {
  color: #e5e7eb;
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.nav-dropdown-content a:hover {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(56, 189, 248, 0.22));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.nav-dropdown-content a::before {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(139, 212, 255, 0.18), rgba(59, 130, 246, 0.35));
  transform: skewX(-12deg);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav-dropdown-content a:hover::before {
  transform: translateX(140%) skewX(-12deg);
  opacity: 1;
}
@media (max-width: 768px) {
  .nav {
    gap: 0.75rem;
  }
  .nav-dropbtn {
    font-size: 1.05rem;
  }
  .nav-dropdown {
    width: auto;
  }
  .nav-dropdown-content {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    width: min(320px, 90vw);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    z-index: 1100;
    display: none;
  }
  .nav-dropdown:focus-within .nav-dropdown-content,
  .nav-dropdown:hover .nav-dropdown-content {
    display: block;
  }
}

/* --- 2. HERO SECTION --- */
.hero-section {
  padding: 6rem 1rem 4rem;
  text-align: center;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #e5e7eb;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.hero-subtitle .text-link {
  color: #8bd4ff;
  text-decoration: underline;
  text-decoration-color: rgba(139, 212, 255, 0.6);
}
.hero-subtitle .text-link:hover {
  color: #c4ecff;
  text-decoration-color: rgba(196, 236, 255, 0.9);
}

/* --- 3. BUTTON & HOVER EFFECTS (Universal) --- */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.btn:active {
  transform: scale(0.97);
}

/* Base gradient behavior so each CTA can have its own blue energy */
.btn-primary,
.btn-secondary,
.btn-whitepaper,
.btn-agentic,
.btn-waitlist,
.btn-contact {
  color: #fff;
  border: none;
  background-size: 200% 200%;
  box-shadow: 0 10px 25px rgba(15, 118, 255, 0.25);
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-whitepaper:hover,
.btn-agentic:hover,
.btn-waitlist:hover,
.btn-contact:hover {
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}
.btn-primary { background: linear-gradient(120deg, #1d4ed8, #3b82f6); }
.btn-secondary { background: linear-gradient(120deg, #0ea5e9, #60a5fa); border: 1px solid rgba(255,255,255,0.2); }
/* Individual gradients per button on the page */
.btn-whitepaper { background: linear-gradient(120deg, #38bdf8, #2563eb); }
.btn-agentic   { background: linear-gradient(135deg, #1e3a8a, #1d4ed8, #38bdf8); }
.btn-waitlist  { background: linear-gradient(135deg, #0ea5e9, #2563eb, #1e40af); }
.btn-contact   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

/* --- 4. SIMPLY AI FEATURE SECTION (Dark, Transparent Glass) --- */
.feature-section {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}
.feature-card {
  /* Dark Glass to match page theme */
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  color: #fff; /* White text for dark card */
}

.feature-image-container {
  width: 100%;
}

.feature-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-content {
  text-align: center;
  max-width: 800px;
}
.feature-content h3 {
  color: #fff;
  font-size: 1.8rem;
}
.feature-content p {
    color: #e5e7eb;
}
.feature-content p a {
  color: #8b5cf6; /* A purple link color that stands out on dark */
}

/* --- 5. BENTO GRID SYSTEM (Transparent Cards & New Header Layout) --- */

/* Resetting the old hierarchy containers to display block */
.companies-hierarchy, .companies-grid {
    display: block !important;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Desktop 3-column layout */
@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
  }
  .span-2 { grid-column: span 2; }
}

.bento-card {
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Default glass base applied here */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 10;
}

/* New Header and Logo Styling */
.bento-card .card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between logo and text */
  margin-bottom: 1.5rem; /* Space before paragraph */
}
.company-logo.bento-logo {
  width: 70px; /* Bigger logo size */
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}
.bento-card .card-header h3 {
  margin: 0; /* Remove default margin */
  font-size: 1.5rem; /* Keep title large */
  line-height: 1.2;
}

.card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.1); /* Transparent badge */
  color: #e5e7eb;
  letter-spacing: 0.05em;
}

/* -- Custom TRANSPARENT Gradients per Card & Logo Fixes -- */

/* Arbiteria: Blue Glass */
.card-arbiteria {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

/* Appstorm: Dark Glass (Logo filter removed to show orange/white) */
.card-appstorm {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.6) 0%, rgba(49, 46, 129, 0.6) 100%);
  color: #fff;
}
.card-appstorm p, .card-appstorm h3 a { color: #e0e7ff; }
.card-appstorm .card-badge { background: rgba(255,255,255,0.2); color: #fff; }
.card-appstorm .bento-logo { 
    /* Logo filter removed */
}

/* Artificial Monkeys: Bio/Teal Glass (No change to color) */
.card-bio {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
}
.card-bio .card-badge { background: #059669; color: #fff; }

/* Zero2AI India: Subtle Light Glass */
.card-india {
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* Mosaic: Dark Rose/Pink Glass (Darkened for contrast with dark logo colors) */
.card-mosaic {
  background: linear-gradient(145deg, rgba(173, 21, 56, 0.4) 0%, rgba(51, 0, 25, 0.4) 100%);
}
/* Mosaic Logo Contrast Fix (Keep white background for dark logo) */
.card-mosaic .bento-logo {
    padding: 5px;
    background: #fff; /* White background for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* --- 6. APPSTORM VIDEO SECTION (Dark Glass Redesign with more transparency) --- */
.section-videos {
  padding: 4rem 1rem;
}
.video-container-glass {
  /* Increased transparency (0.85 -> 0.5) */
  background: rgba(20, 20, 20, 0.5); 
  backdrop-filter: blur(18px); /* Increased blur slightly for better contrast */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-bento-wrap { max-width: 1280px; }
.video-head { text-align: left; margin-bottom: 1.5rem; }
.video-head p { color: #cbd5e1; }

.video-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 960px) {
  .video-bento-grid { grid-template-columns: repeat(3, 1fr); }
  .video-bento-grid .span-2 { grid-column: span 2; }
  .video-bento-grid .full-span { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .video-container-glass {
    padding: 2rem 1.25rem;
    max-width: 100%;
    border-radius: 18px;
  }
  .video-bento-grid {
    grid-template-columns: 1fr;
  }
}

.video-bento-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.video-bento-card h3,
.video-bento-card h4 { margin: 0; color: #fff; }
.video-bento-card p { margin: 0; color: #cbd5e1; }
.video-bento-card ul { margin: 0; padding-left: 1.1rem; color: #cbd5e1; }
.video-bento-card li + li { margin-top: 0.4rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #9ca3af;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #e5e7eb;
  background: rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.player-card { padding: 1rem; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 100%;
}
.video-item {
  grid-column: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.video-item:hover { border-color: rgba(255,255,255,0.25); }

/* CTA spacing under the video grid */
.video-cta { text-align: center; margin-top: 3rem; }
.video-cta p { margin-bottom: 1rem; }
.video-cta .btn-waitlist { display: inline-block; margin-top: 0.5rem; }


/* --- 7. TESTIMONIALS (Transparent Glass Cards) --- */
.section-testimonials {
  padding: 4rem 1rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

/* Hides the old stacking layout */
.testimonial-stack {
    display: none;
}

/* Re-enables and styles the cards for the grid */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Transparent Glass Card */
  background: rgba(255, 255, 255, 0.08); 
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  color: #fff;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.testimonial-copy p {
  font-size: 1rem;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.person-meta {
  color: #fff;
}
.person-meta .role {
    color: #9ca3af;
}

/* --- 8. CTA SECTION (Glowing Gradient) --- */
.section-cta {
  padding: 4rem 1rem;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: left;
  color: #fff;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}

/* Shine effect on hover */
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.cta-inner:hover::before {
  left: 100%;
  transition: 0.7s;
}

.cta-copy h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-actions .btn {
  background: #fff;
  color: #6366f1;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

.cta-actions { width: 100%; }

@media (min-width: 900px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .cta-actions {
    width: auto;
    margin-left: auto;
  }
}

/* --- 9. FOOTER --- */
.site-footer {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  color: #9ca3af;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0;
}
.site-footer a { color: #e5e7eb; }
