/* Dark Mode Liquid Glass Theme - iOS 26 Inspired */
:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --accent-blue: #0197da;
  --accent-blue-hover: #017fb9;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
}

* {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
}

/* Liquid Glass Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(1, 151, 218, 0.3);
}

/* Brand Colors */
.text-blue-600 {
  color: var(--accent-blue) !important;
}
.hover\:text-blue-600:hover {
  color: var(--accent-blue-hover) !important;
}
.bg-blue-600 {
  background: var(--accent-blue) !important;
}
.hover\:bg-blue-600:hover {
  background: var(--accent-blue-hover) !important;
}
.border-blue-600 {
  border-color: var(--accent-blue) !important;
}

/* Header Glass Effect - match global glass look (no extra dark layer) */
.header-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-hover));
  transition: width 0.3s ease;
}

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

/* Dropdown Glass */
.dropdown-glass {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero-gradient {
  /* Removed separate background - uses body gradient */
}

/* Button Styles */
.btn-glass {
  background: var(--accent-blue);
  color: white;
  border: 1px solid var(--accent-blue);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-2px);
}

/* Form Elements */
.form-glass {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.form-glass:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  outline: none;
}

.form-glass::placeholder {
  color: var(--text-secondary);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  /* Removed float animation for fixed positioning */
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.7);
}

/* Content Sections */
.content-section {
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Image Styling */
.glass-image {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Colors */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

/* Hero Section Spacing Adjustments */
.hero-section {
  padding-top: 4rem; /* Increased from py-8 (2rem) to 4rem */
  padding-bottom: 1.5rem; /* Decreased from py-8 (2rem) to 1.5rem */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Hero Section Animations */
.hero-section {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: opacity, transform;
}

.hero-section h1 {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: heroTitleFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  will-change: opacity, transform;
}

.hero-section p {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: heroSubtitleFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  will-change: opacity, transform;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroTitleFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroSubtitleFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Animation cleanup after completion */
.hero-section.animation-complete {
  will-change: auto;
}

.hero-section.animation-complete h1,
.hero-section.animation-complete p {
  will-change: auto;
}

/* Reduce top padding of sections following hero */
.section-after-hero {
  padding-top: 2rem; /* Reduced from py-16 (4rem) or py-20 (5rem) */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .glass-card {
    margin: 0 1rem;
  }
  
  .hero-gradient {
    padding: 2rem 1rem;
  }
  
  .hero-section {
    padding-top: 3rem; /* Slightly less on mobile */
    padding-bottom: 1rem;
  }
}

/* Phone Frame (iPhone-style) */
.phone-frame {
  position: relative;
  width: 320px;
  max-width: 90vw;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 12px; /* bezel */
}

/* Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 20px;
  background: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Home indicator */
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1.4rem;
}

@media (max-width: 640px) {
  .phone-frame {
    width: 260px;
    border-radius: 1.6rem;
    padding: 10px;
  }
  .phone-screen {
    border-radius: 1.2rem;
  }
}

/* Computer Frame (Desktop Monitor) */
.computer-frame {
  perspective: 1000px;
}

.monitor {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.screen {
  position: relative;
  width: 100%;
  background: #1a1a1a;
  border: 8px solid #2d2d2d;
  border-radius: 12px;
  box-shadow: 
    0 0 0 2px #1a1a1a,
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: inline-block;
  padding: 30px;
}

.screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  z-index: 1;
}

.screen::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
  z-index: 2;
}

.screen-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.stand {
  position: relative;
  width: 120px;
  height: 20px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.base {
  position: relative;
  width: 200px;
  height: 8px;
  background: #1a1a1a;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for computer frame */
@media (max-width: 768px) {
  .monitor {
    max-width: 600px;
  }
  
  .screen {
    border-width: 6px;
    border-radius: 8px;
    padding: 20px;
  }
  
  .stand {
    width: 100px;
    height: 16px;
  }
  
  .base {
    width: 160px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .monitor {
    max-width: 400px;
  }
  
  .screen {
    border-width: 4px;
    border-radius: 6px;
    padding: 15px;
  }
  
  .stand {
    width: 80px;
    height: 12px;
  }
  
  .base {
    width: 120px;
    height: 4px;
  }
  
  /* Ensure tiles have proper spacing on very small screens */
  .computer-frame .grid {
    gap: 12px;
  }
  
  .computer-frame .glass {
    padding: 12px;
  }
}

/* Feature and Solution Tile Animations */
.feature-tile, .solution-tile {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-tile.animate-in, .solution-tile.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for feature tiles */
.feature-tile:nth-child(1) { transition-delay: 0.1s; }
.feature-tile:nth-child(2) { transition-delay: 0.2s; }
.feature-tile:nth-child(3) { transition-delay: 0.3s; }
.feature-tile:nth-child(4) { transition-delay: 0.4s; }

/* Staggered animation delays for solution tiles */
.solution-tile:nth-child(1) { transition-delay: 0.1s; }
.solution-tile:nth-child(2) { transition-delay: 0.2s; }
.solution-tile:nth-child(3) { transition-delay: 0.3s; }
.solution-tile:nth-child(4) { transition-delay: 0.4s; }

/* Mobile dropdown alignment and spacing fix */
#solutionsDropdownMobile a {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Computer Frame Tile Animations */
.computer-frame .glass {
  opacity: 0;
  animation: tileFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.computer-frame .glass:nth-child(1) { animation-delay: 0.1s; }
.computer-frame .glass:nth-child(2) { animation-delay: 0.2s; }
.computer-frame .glass:nth-child(3) { animation-delay: 0.3s; }
.computer-frame .glass:nth-child(4) { animation-delay: 0.4s; }
.computer-frame .glass:nth-child(5) { animation-delay: 0.5s; }
.computer-frame .glass:nth-child(6) { animation-delay: 0.6s; }

@keyframes tileFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for grid items */
.computer-frame .grid > * {
  animation: tileFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.computer-frame .grid > *:nth-child(1) { animation-delay: 0.1s; }
.computer-frame .grid > *:nth-child(2) { animation-delay: 0.2s; }
.computer-frame .grid > *:nth-child(3) { animation-delay: 0.3s; }
.computer-frame .grid > *:nth-child(4) { animation-delay: 0.4s; }
.computer-frame .grid > *:nth-child(5) { animation-delay: 0.5s; }
.computer-frame .grid > *:nth-child(6) { animation-delay: 0.6s; }