/* 
   Solo Video Editing System - Neon Green Premium Theme 
   Palette: Arcane Black, Glass, Bright Neon Green Accents
*/

:root {
  --bg-body: #050505;
  --bg-card: rgba(20, 20, 20, 0.8);
  --bg-glass: rgba(10, 10, 10, 0.8);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;

  /* Bright Green Accents */
  --accent-primary: #39ff14;
  /* Neon Green */
  --accent-secondary: #008f11;
  /* Matrix Dark Green */
  --accent-gradient: linear-gradient(135deg, #39ff14 0%, #00cc66 100%);

  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Subtle Green Mesh Background */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(57, 255, 20, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(57, 255, 20, 0.03), transparent 25%);
  background-attachment: fixed;
}

/* Typography & Utilities */
h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: white;
  /* Fallback */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent-primary);
  color: #000;
  text-decoration: none;
  border-radius: 980px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.6);
  background: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section - Tighter & Instant Pop */
.hero {
  height: 90vh;
  /* Condensed */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Green glow center */
  background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.04) 0%, rgba(0, 0, 0, 0) 60%);
  padding-top: 120px;
  /* Clear fixed header */
}

.hero h1 {
  font-size: 5.5rem;
  /* POP */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero p {
  font-size: 1.6rem;
  color: #fff;
  /* Maximum Contrast */
  max-width: 750px;
  margin: 0 auto 36px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Readability Boost */
}

/* Autonomy Section (Revolutionary) */
.autonomy-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.autonomy-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

@media (max-width: 900px) {
  .autonomy-grid {
    flex-direction: column;
  }
}

.autonomy-content {
  flex: 1;
}

.autonomy-visual {
  flex: 1;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.05);
}

.autonomy-badge {
  display: inline-block;
  background: rgba(57, 255, 20, 0.1);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.autonomy-list {
  list-style: none;
  margin-top: 30px;
}

.autonomy-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #d4d4d8;
}

.autonomy-list i {
  color: var(--accent-primary);
  min-width: 24px;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Animation Classes for Hero (Instant) */
.animate-pop-in {
  opacity: 0;
  animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Emphasis Text Animation - Professional Reveal */
.emphasis-text {
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 1.2em;
  display: inline-block;
  opacity: 0;
  animation: proReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.0s;
  /* Slight delay */
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
  letter-spacing: 1px;
}

@keyframes proReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Services - Condensed Spacing */
.section {
  padding: 80px 0;
  /* Reduced from 140px */
}

.section-title {
  font-size: 3rem;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card,
.benefit-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.15);
}

.service-card h3,
.benefit-card h3 {
  font-size: 1.6rem;
  margin: 20px 0 10px;
  color: #fff;
}

.service-card p,
.benefit-card p {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-details li {
  margin-bottom: 6px;
  color: #d4d4d8;
  font-size: 0.9rem;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(57, 255, 20, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-item {
  aspect-ratio: 9/16;
  border-radius: 16px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.play-btn {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.portfolio-item:hover .play-btn {
  transform: scale(1.1);
  background: rgba(57, 255, 20, 0.9);
  color: #000;
}

/* Contact CTA */
.cta-box {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, #101010 0%, #000 100%);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-box h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #fff;
}

footer {
  padding: 40px 0;
  text-align: center;
  color: #444;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Navigation & "Apple-like" Optimization */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.close-mobile-nav {
  position: absolute;
  top: 30px;
  right: 24px;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 30px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-nav-links a {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

/* Service Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #111;
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(50px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  cursor: pointer;
}

.modal-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  font-family: var(--font-main);
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  padding: 20px;
  background: rgba(57, 255, 20, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #000;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
}

.message.bot {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.user {
  background: rgba(57, 255, 20, 0.2);
  color: #fff;
  border: 1px solid rgba(57, 255, 20, 0.3);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--accent-primary);
  outline: none;
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

.service-card {
  cursor: pointer;
}

/* Nudge Animation for Mobile Hint */
@keyframes nudgeHint {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-40px);
  }

  100% {
    transform: translateX(0);
  }
}

.peek-animation>* {
  animation: nudgeHint 1s cubic-bezier(0.25, 1, 0.5, 1);
}


/* Improved Mobile Media Queries */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 150px;
    height: auto;
    min-height: 80vh;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  /* Grid Stack -> Horizontal Scroll for Mobile (Carousel Effect) */
  .service-grid,
  .portfolio-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    /* Space for scroll / touch */
    margin: 0 -20px;
    /* Full bleed */
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    /* iOS Momentum */
  }

  .service-grid::-webkit-scrollbar,
  .portfolio-grid::-webkit-scrollbar {
    display: none;
    /* Clean look */
  }

  /* Items in Carousel */
  .service-card,
  .benefit-card,
  .portfolio-item {
    min-width: 85vw;
    /* Show most of the card, peek the next */
    scroll-snap-align: center;
  }

  /* Autonomy Grid Vertical Stack (No scroll needed here, it's different content) */
  .autonomy-grid {
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  /* Reduce Card Padding for Mobile */
  .service-card,
  .benefit-card {
    padding: 24px;
  }

  .cta-box h2 {
    font-size: 2.5rem;
  }

  /* Ensure modal fits on mobile */
  .modal-content {
    width: 95%;
    padding: 25px;
    margin: 0 10px;
  }

  .chat-window {
    width: calc(100vw - 40px) !important;
    bottom: 100px !important;
    right: 20px !important;
    left: auto !important;
    max-height: 60vh;
    /* Prevent overflow on small screens */
  }
}