/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Limelight Font Class */
.limelight-regular {
  font-family: "Limelight", sans-serif;
  font-weight: 400;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", "Inter", sans-serif;
  line-height: 1.6;
  color: #1d1d1f;
  background-color: #f5f5f7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive Images & Media */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  max-width: 100%;
  height: auto;
}

/* Flexible Box Icons */
.bx {
  line-height: 1;
  vertical-align: middle;
}

/* Reveal animations for Ava-style scroll effects */
.has-animations .is-revealing {
  opacity: 0;
  transform: translateY(30px);
}

.has-animations .animate__animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.button-shadow {
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.button-shadow:hover {
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.35);
}

.section {
  position: relative;
}

.section-inner {
  position: relative;
}

.has-bottom-divider {
  position: relative;
  padding-bottom: 60px;
}

.has-bottom-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--medium-gray), transparent);
}

/* iOS Color Variables */
:root {
  --ios-blue: #007AFF;
  --ios-blue-dark: #0051D5;
  --ios-purple: #AF52DE;
  --ios-purple-dark: #8E44AD;
  --ios-teal: #5AC8FA;
  --ios-pink: #FF2D55;
  --ios-orange: #FF9500;
  --ios-background: #f5f5f7;
  --ios-secondary-bg: #ffffff;
  --ios-tertiary-bg: #fafafa;
  --ios-card-bg: rgba(255, 255, 255, 0.8);
  --ios-glass-bg: rgba(255, 255, 255, 0.7);
  --light-gray: #f5f5f7;
  --medium-gray: #e5e5e7;
  --dark-gray: #86868b;
  --text-dark: #1d1d1f;
  --text-secondary: #424245;
  --text-light: #86868b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --border-radius: 18px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1.2s ease-in-out 1.8s forwards;
}

#preloader img {
  width: 100px;
  animation: iosPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes iosPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}



/* Navigation - iOS Glassmorphism Style */
nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ios-glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  width: 100%;
  margin: 0;
  border-radius: 0;
  will-change: width, top, border-radius;
}

/* Scrolled state - centered and shrunken */
nav.scrolled {
  top: 1rem;
  width: 90%;
  max-width: 1100px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1416px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  will-change: padding;
}

/* Scrolled state - compact padding */
nav.scrolled .nav-container {
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Scrolled state - smaller logo */
nav.scrolled .logo img {
  width: 36px;
  height: 36px;
}

nav.scrolled .brand-name {
  font-size: 1.3rem;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--ios-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Scrolled state - compact nav links */
nav.scrolled .nav-links {
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Scrolled state - smaller font */
nav.scrolled .nav-links a {
  font-size: 0.9rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--ios-blue);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ios-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.toggle-btn:hover {
  transform: scale(1.1);
}


/* Hero Section - Redesigned Split Layout */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-left {
  animation: slideInFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ios-card-bg);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 1.125rem;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ios-blue);
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1.8px;
  text-align: left;
  margin-left: 53px;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
}

.hero-description.typing-text .word {
  color: rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.hero-description.typing-text .word.active {
  color: var(--text-secondary);
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 980px;
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: none;
  cursor: pointer;
  letter-spacing: -0.2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  min-height: 44px;
  min-width: 44px;
}

.btn-arrow {
  font-size: 1.25rem;
  transition: var(--transition);
}

.cta-btn.primary {
  background: var(--ios-blue);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.cta-btn.primary:hover {
  background: var(--ios-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.cta-btn.primary:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-btn.secondary {
  background: white;
  color: var(--text-dark);
  border: 1.5px solid var(--medium-gray);
  padding: calc(1rem - 1.5px) calc(2rem - 1.5px);
  box-shadow: var(--shadow-sm);
}

.cta-btn.secondary:hover {
  background: var(--ios-background);
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ios-blue);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
  padding-left: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--medium-gray);
}

.hero-right {
  position: relative;
  animation: slideInFromRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Hero Figure Boxes - Solid Template Style */
.hero-visual .placeholder {
  position: relative;
  z-index: 1;
}

.anime-element {
  position: relative;
}

.has-animations .anime-element {
  opacity: 0;
}

.anime-ready .has-animations .anime-element {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.hero-figure-box {
  position: absolute;
  top: 0;
  will-change: transform;
}

.hero-figure-box-01,
.hero-figure-box-02,
.hero-figure-box-03,
.hero-figure-box-04,
.hero-figure-box-08,
.hero-figure-box-09,
.hero-figure-box-10 {
  overflow: hidden;
}

.hero-figure-box-01::before,
.hero-figure-box-02::before,
.hero-figure-box-03::before,
.hero-figure-box-04::before,
.hero-figure-box-08::before,
.hero-figure-box-09::before,
.hero-figure-box-10::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform-origin: 100% 100%;
}

/* Box 01 - Top right gradient */
.hero-figure-box-01 {
  left: 70%;
  top: 15%;
  width: 28%;
  height: 37%;
  background: linear-gradient(to left top, #007AFF, rgba(0, 122, 255, 0));
  transform: rotateZ(45deg);
}

.hero-figure-box-01::before {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(45deg) scale(1.5);
}

/* Box 02 - Bottom gradient */
.hero-figure-box-02 {
  left: 40%;
  top: 60%;
  width: 38%;
  height: 50%;
  background: linear-gradient(to left top, #8B5CF6, rgba(139, 92, 246, 0));
  transform: rotateZ(-45deg);
}

.hero-figure-box-02::before {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(-45deg) scale(1.5);
}

/* Box 03 - Top large */
.hero-figure-box-03 {
  left: 60%;
  top: -50%;
  width: 57%;
  height: 76%;
  background: linear-gradient(to left top, #00BFFB, rgba(0, 191, 251, 0));
}

.hero-figure-box-03::before {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(45deg) scale(1.5);
}

/* Box 04 - Top center */
.hero-figure-box-04 {
  left: 35%;
  top: -8%;
  width: 45%;
  height: 60%;
  background: linear-gradient(to left top, #007AFF, rgba(0, 122, 255, 0));
  transform: rotateZ(-135deg);
}

.hero-figure-box-04::before {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(-45deg) scale(1.5);
}

/* Box 05, 06, 07 - Main solid boxes with iOS styling */
.hero-figure-box-05,
.hero-figure-box-06,
.hero-figure-box-07 {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
  box-shadow: -20px 32px 64px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.hero-figure-box-05 {
  left: 17%;
  top: 13%;
  width: 64%;
  height: 74%;
  transform: perspective(500px) rotateY(-15deg) rotateX(8deg) rotateZ(-1deg);
}

.hero-figure-box-06 {
  left: 65%;
  top: 6%;
  width: 30%;
  height: 40%;
  transform: rotateZ(20deg);
}

.hero-figure-box-07 {
  left: 1.9%;
  top: 42.4%;
  width: 24.2%;
  height: 32.3%;
  transform: rotateZ(20deg);
}

/* Box 08 - Small accent */
.hero-figure-box-08 {
  left: 27.1%;
  top: 81.6%;
  width: 19.69%;
  height: 26.26%;
  background: linear-gradient(to left top, #FF9500, rgba(255, 149, 0, 0));
  transform: rotateZ(-22deg);
}

.hero-figure-box-08::before {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(45deg) scale(1.5);
}

/* Box 09 - Small accent */
.hero-figure-box-09 {
  left: 42.6%;
  top: 88.3%;
  width: 14.39%;
  height: 19.19%;
  background: linear-gradient(to left top, #8B5CF6, rgba(139, 92, 246, 0));
  transform: rotateZ(-52deg);
}

.hero-figure-box-09::before {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(45deg) scale(1.5);
}

/* Box 10 - Small accent */
.hero-figure-box-10 {
  left: 74.3%;
  top: 54.1%;
  width: 20.95%;
  height: 27.27%;
  background: linear-gradient(to left top, #00BFFB, rgba(0, 191, 251, 0));
  transform: rotateZ(-50deg);
}

.hero-figure-box-10::before {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotateZ(45deg) scale(1.5);
}

/* Continuous floating animation for some boxes */
.hero-figure-box-01,
.hero-figure-box-08,
.hero-figure-box-10 {
  animation: heroBoxFloat 6s ease-in-out infinite;
}

.hero-figure-box-02,
.hero-figure-box-09 {
  animation: heroBoxFloat 8s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-figure-box-03,
.hero-figure-box-04 {
  animation: heroBoxFloat 10s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes heroBoxFloat {

  0%,
  100% {
    transform: translateY(0) rotate(var(--initial-rotation, 0deg));
  }

  50% {
    transform: translateY(-20px) rotate(var(--initial-rotation, 0deg));
  }
}



.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: iosFloat 8s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, rgba(175, 82, 222, 0.05) 100%);
  animation: iosFloat 8s ease-in-out infinite;
  filter: blur(40px);
  z-index: 1;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  animation-delay: 3s;
}

@keyframes iosFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}


/* Section Base Styles - iOS */
section {
  padding: 6rem 2rem;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--ios-card-bg);
  border: 1px solid rgba(0, 122, 255, 0.15);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ios-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.legal-modal-content h2 {
  text-align: left;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section - iOS Cards */
.about {
  background: var(--ios-background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-main-card {
  position: sticky;
  top: 100px;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.about-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.overlay-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.about-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card.highlight-card {
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  color: white;
  border: none;
}

.about-card.highlight-card h3,
.about-card.highlight-card p {
  color: white;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon-bg {
  width: 48px;
  height: 48px;
  background: var(--ios-background);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.about-card.highlight-card .card-icon-bg {
  background: rgba(255, 255, 255, 0.2);
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin: 0;
}

.about-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Typing Effect Styles - Word by Word Highlighting */
.typing-card .typing-title,
.typing-card .typing-text {
  position: relative;
  display: block;
  overflow: visible;
}

.typing-card .typing-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
}

.typing-card .typing-text {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.typing-card .word {
  display: inline;
  color: rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.typing-card .word.active {
  color: var(--ios-blue);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
}

.typing-card .typing-text .word.active {
  color: var(--text-dark);
  font-weight: 500;
  text-shadow: none;
}


/* Pillars Section - iOS Card Design */
.pillars {
  background: white;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--ios-card-bg);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ios-blue), var(--ios-purple));
  transform: scaleX(0);
  transition: var(--transition);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 122, 255, 0.1);
}

.pillar-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--ios-background);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow);
}

.pillar-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.pillar-card h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.pillar-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}


/* Areas Section - iOS Style with Numbers */
.areas {
  background: var(--ios-background);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: var(--dark-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.area-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ios-blue), var(--ios-purple));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.05), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: var(--transition);
}

.area-card:hover::after {
  transform: translate(20%, -20%) scale(1.5);
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 122, 255, 0.2);
}

.area-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 122, 255, 0.1);
  line-height: 1;
  transition: var(--transition);
}

.area-card:hover .area-number {
  color: rgba(0, 122, 255, 0.15);
  transform: scale(1.1);
}

.area-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.area-card.highlight {
  background: linear-gradient(135deg, var(--ios-blue) 0%, var(--ios-purple) 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3);
}

.area-card.highlight::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}

.area-card.highlight:hover {
  box-shadow: 0 12px 48px rgba(0, 122, 255, 0.4);
}

.area-card.highlight h3,
.area-card.highlight p,
.area-card.highlight .area-link {
  color: white !important;
}

.area-card.highlight .area-number {
  color: rgba(255, 255, 255, 0.2);
}

.area-card.highlight:hover .area-number {
  color: rgba(255, 255, 255, 0.3);
}

.area-card h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.area-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ios-blue);
  transition: var(--transition);
  position: relative;
}

.area-link::after {
  content: '→';
  font-size: 1.25rem;
  transition: var(--transition);
}

.area-card:hover .area-link {
  gap: 0.75rem;
  color: var(--ios-purple);
}

.area-card:hover .area-link::after {
  transform: translateX(4px);
}

.area-card:active {
  transform: translateY(-4px) scale(0.98);
}


/* FlashHiring Section - iOS Feature Showcase Redesigned */
.flashhiring {
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.03) 0%, rgba(175, 82, 222, 0.03) 100%);
  position: relative;
}

.flashhiring::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(0, 122, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.flashhiring-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.flashhiring-content {
  max-width: 550px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 0, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #00C853;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00C853;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.flashhiring-content h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flashhiring-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 28px;
  height: 28px;
  background: var(--ios-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.feature-text {
  font-size: 1.0625rem;
  color: var(--text-dark);
  font-weight: 500;
}

.flashhiring-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.text-link {
  color: var(--ios-blue);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.text-link:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

.flashhiring-visual {
  position: relative;
}

.visual-container {
  position: relative;
}

/* Carousel Container */
.carousel-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /* border-radius: var(--border-radius-xl); */
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-indicators .indicator.active {
  background: var(--ios-blue);
  border-color: var(--ios-blue);
  width: 30px;
  border-radius: 5px;
}

.placeholder-image {
  position: relative;
  width: 100%;
  height: 450px;
  background: #f8f9fa;
  /* Light browser frame background */
  border-radius: 12px;
  /* Browser window rounded corners */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  /* Browser shadow */
  border: 1px solid #e1e5e9;
  /* Thin border */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Clip content to browser shape */
  transition: var(--transition);
}

.placeholder-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.mockup-header {
  position: relative;
  /* Not absolute, so it stays in flow */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center title, dots on left */
  padding: 0.75rem 1rem;
  background: #e8eaed;
  /* Browser title bar background */
  border-bottom: 1px solid #dadce0;
  /* Separator */
  border-radius: 12px 12px 0 0;
  /* Match top corners */
  z-index: 15;
}

.mockup-dots {
  display: flex;
  gap: 0.5rem;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mockup-dots span:nth-child(1) {
  background: #FF5F57;
}

.mockup-dots span:nth-child(2) {
  background: #FFBD2E;
}

.mockup-dots span:nth-child(3) {
  background: #28CA42;
}

.mockup-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
  /* Center the title */
}

.mockup-content {
  /* Browser viewport: contains carousel, clipped to browser shape */
  position: relative;
  flex: 1;
  background: #ffffff;
  /* White background for content */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Clip carousel to viewport */
  border-radius: 0 0 12px 12px;
  /* Match bottom corners */
}

.mockup-bar {
  height: 40px;
  background: rgba(0, 122, 255, 0.15);
  border-radius: 8px;
  animation: shimmer 2s ease-in-out infinite;
}

.mockup-bar.short {
  width: 70%;
}

.mockup-bar.medium {
  width: 85%;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  animation: iosFloat 4s ease-in-out infinite;
  z-index: 20;
  /* Above browser */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-badge i {
  font-size: 1.5rem;
  color: var(--ios-blue);
}

.badge-1 {
  top: 4rem;
  left: 1%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 9rem;
  right: 0%;
  animation-delay: 2s;
}

.badge-emoji {
  font-size: 1.25rem;
}

.badge-label {
  font-size: 0.9375rem;
}


/* Vision & Mission Section - iOS Gradient Cards Redesigned */
.vision-mission {
  background: var(--ios-background);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vision-card,
.mission-card {
  padding: 4rem 3rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vision-card::before,
.mission-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.vision-card:hover::before,
.mission-card:hover::before {
  opacity: 1;
  transform: translate(-25%, -25%);
}

.vision-card {
  background: linear-gradient(135deg, var(--ios-blue), #0051D5);
  color: white;
}

.mission-card {
  background: linear-gradient(135deg, var(--ios-purple), #8E44AD);
  color: white;
}

.vision-card:hover,
.mission-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.vm-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.vision-card h3,
.mission-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.vision-card p,
.mission-card p {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.95;
}

.card-decoration {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}


/* Contact Section - iOS Form Design Redesigned */
.contact {
  background: var(--dark-surface);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-card {
  background: var(--ios-card-bg);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--dark-surface);
  color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
  transform: translateY(-2px);
}

.cta-btn.full-width {
  width: 100%;
  justify-content: center;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card,
.social-card {
  background: var(--ios-background);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info-card h3,
.social-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--dark-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.info-content {
  flex: 1;
  padding-top: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.0625rem;
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

a.info-value:hover {
  color: var(--ios-blue);
}

.social-card h4 {
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 56px;
  height: 56px;
  background: var(--dark-surface);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-icon:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.social-icon.linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
}

.social-icon.twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
}

.social-icon.email:hover {
  background: var(--ios-blue);
  border-color: var(--ios-blue);
}


/* Custom Scrollbar - Hidden but functional */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

::-webkit-scrollbar-thumb:active {
  background: transparent;
}

/* Firefox scrollbar - hidden */
* {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

/* Hide scrollbar for all browsers */
body {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

/* Footer - Modern iOS Design */
.site-footer {
  background: linear-gradient(180deg, #1a1a1d 0%, #0f0f11 100%);
  color: white;
  padding: 5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.3), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.footer-logo .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
}

.footer-logo .highlight {
  color: var(--ios-blue);
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(165, 165, 165, 0.786);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(0, 122, 255, 0.15);
  border-color: var(--ios-blue);
  color: var(--ios-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
}

.footer-nav-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-content: end;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-nav-list li a,
.footer-nav-list li span {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-nav-list li a:hover {
  color: var(--ios-blue);
  transform: translateX(4px);
}

.footer-nav-list li span {
  cursor: default;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 2rem 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
}

.footer-copyright {
  text-align: left;
}

.footer-copyright p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: var(--ios-blue);
}

.footer-legal-links .separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-badge svg {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }
}

.made-with,
.in-india {
  font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
}

.back-to-top:active {
  transform: translateY(-1px) scale(1);
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Extra Large Devices (1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .pillars-grid,
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Large Tablets & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.9375rem;
  }

  .pillars-grid,
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .about-content {
    gap: 2rem;
  }

  .flashhiring-wrapper {
    grid-template-columns: 1fr;
  }

  .flashhiring-visual {
    order: -1;
  }
}

/* Small Tablets & Large Phones (576px - 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1.25rem;
  }

  /* Navigation - Mobile Menu */
  .nav-container {
    padding: 1rem 1.25rem;
  }

  /* Disable shrinking on mobile */
  nav,
  nav.scrolled {
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    max-width: none !important;
  }

  nav.scrolled .nav-container {
    padding: 1rem 1.25rem !important;
  }

  nav.scrolled .logo img {
    width: 42px !important;
    height: 42px !important;
  }

  nav.scrolled .brand-name {
    font-size: 1.5rem !important;
  }

  nav.scrolled .nav-links a {
    font-size: 1rem !important;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    gap: 0;
    z-index: 998;
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    text-align: left;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links.active {
    display: flex;
  }

  .toggle-btn {
    display: block;
  }

  /* Hero Section */
  .hero {
    padding: 7rem 1.25rem 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .hero-left {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* background: rgba(255, 255, 255, 0.7); */
    padding: 2rem;
    border-radius: 24px;
  }

  .hero-visual {
    height: 100%;
    opacity: 0.3;
  }

  .hero-figure-box {
    transform: scale(0.75);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* Sections */
  section {
    padding: 3.5rem 1.25rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-main-card {
    position: relative;
    top: 0;
  }

  /* Pillars & Areas */
  .pillars-grid,
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pillar-card,
  .area-card {
    padding: 2.5rem 2rem;
  }

  /* Vision & Mission */
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vision-card,
  .mission-card {
    padding: 3rem 2rem;
  }

  /* FlashHiring */
  .flashhiring-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .flashhiring-content {
    max-width: 100%;
  }

  .flashhiring-content h2 {
    font-size: 2rem;
  }

  .flashhiring-tagline {
    font-size: 1.0625rem;
  }

  .placeholder-image {
    height: 380px;
  }

  .feature-list {
    gap: 1.25rem;
  }

  .floating-badge {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }

  /* Contact Section */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 2.5rem 2rem;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 1.25rem 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-nav-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-badge {
    justify-content: center;
  }
}

/* Mobile Phones (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }

  /* Navigation */
  .brand-name {
    font-size: 1.125rem;
  }

  /* Hero Section */
  .hero {
    padding: 6rem 1rem 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-left {
    padding: 1.5rem;
  }

  .hero-visual {
    opacity: 0.25;
  }

  .hero-figure-box {
    transform: scale(0.65);
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-item h3 {
    font-size: 1.75rem;
  }

  .stat-item p {
    font-size: 0.875rem;
  }

  /* Sections */
  section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-tag {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }

  /* Cards */
  .pillar-card,
  .area-card {
    padding: 2rem 1.5rem;
  }

  .pillar-icon,
  .area-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .pillar-card h3,
  .area-card h3 {
    font-size: 1.125rem;
  }

  .vision-card,
  .mission-card {
    padding: 2.5rem 1.75rem;
  }

  .vm-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  /* FlashHiring */
  .flashhiring-content h2 {
    font-size: 1.75rem;
  }

  .flashhiring-visual {
    height: 320px;
  }

  .placeholder-image {
    height: 320px;
    padding: 1.5rem;
  }

  .feature-item {
    gap: 0.875rem;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .feature-text {
    font-size: 0.9375rem;
  }

  .flashhiring-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .product-badge {
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
  }

  .flashhiring-actions {
    width: 100%;
  }

  .flashhiring-actions .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .floating-badge {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .mockup-header {
    padding-bottom: 1rem;
  }

  .mockup-title {
    font-size: 0.875rem;
  }

  /* Contact */
  .contact-form-card,
  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  .info-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-nav-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social {
    gap: 0.75rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}

/* Extra Small Devices (up to 374px) */
@media (max-width: 374px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .pillar-card,
  .area-card,
  .vision-card,
  .mission-card {
    padding: 1.75rem 1.25rem;
  }

  .hero-left {
    padding: 1.25rem;
  }

  .hero-visual {
    opacity: 0.2;
  }

  .hero-figure-box {
    transform: scale(0.55);
  }

  .floating-badge {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* Landscape Mode for Small Devices */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 5rem 1.25rem 2rem;
  }

  .hero-left {
    padding: 1.5rem;
  }

  .hero-visual {
    opacity: 0.25;
  }

  .hero-figure-box {
    transform: scale(0.7);
  }

  section {
    padding: 2.5rem 1.25rem;
  }
}

/* iOS-style Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply smooth animations to sections */
.hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.pillar-card,
.area-card {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.pillar-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pillar-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pillar-card:nth-child(3) {
  animation-delay: 0.3s;
}

.pillar-card:nth-child(4) {
  animation-delay: 0.4s;
}

.pillar-card:nth-child(5) {
  animation-delay: 0.5s;
}

.pillar-card:nth-child(6) {
  animation-delay: 0.6s;
}

.area-card:nth-child(1) {
  animation-delay: 0.1s;
}

.area-card:nth-child(2) {
  animation-delay: 0.2s;
}

.area-card:nth-child(3) {
  animation-delay: 0.3s;
}

.area-card:nth-child(4) {
  animation-delay: 0.4s;
}

.area-card:nth-child(5) {
  animation-delay: 0.5s;
}

.area-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* iOS-style focus states */
*:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea,
.pillar-card,
.area-card,
.vision-card,
.mission-card {
  will-change: transform;
}

/* Selection color */
::selection {
  background-color: var(--ios-blue);
  color: white;
}

::-moz-selection {
  background-color: var(--ios-blue);
  color: white;
}

/* ============================================
   AREA DETAIL MODAL
   ============================================ */

.area-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.area-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  max-height: 75vh;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: var(--transition);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-content {
  overflow-y: auto;
  flex: 1;
  padding: 2.5rem;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--dark-gray);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.modal-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
  }
}

.modal-icon-wrapper i {
  font-size: 2.5rem;
  color: white;
}

.modal-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ios-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
  animation: numberBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

@keyframes numberBounce {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.modal-header h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-body {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.modal-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.modal-features,
.modal-benefits,
.modal-technologies {
  margin-bottom: 2rem;
}

.modal-features h3,
.modal-benefits h3,
.modal-technologies h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-features h3::before {
  content: '✨';
  font-size: 1.5rem;
}

.modal-benefits h3::before {
  content: '🎯';
  font-size: 1.5rem;
}

.modal-technologies h3::before {
  content: '⚡';
  font-size: 1.5rem;
}

.modal-features ul,
.modal-benefits ul {
  list-style: none;
  padding: 0;
}

.modal-features li,
.modal-benefits li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid var(--light-gray);
  animation: slideInFromLeft 0.4s ease-out both;
}

.modal-features li:nth-child(1) {
  animation-delay: 0.3s;
}

.modal-features li:nth-child(2) {
  animation-delay: 0.35s;
}

.modal-features li:nth-child(3) {
  animation-delay: 0.4s;
}

.modal-features li:nth-child(4) {
  animation-delay: 0.45s;
}

.modal-benefits li:nth-child(1) {
  animation-delay: 0.5s;
}

.modal-benefits li:nth-child(2) {
  animation-delay: 0.55s;
}

.modal-benefits li:nth-child(3) {
  animation-delay: 0.6s;
}

.modal-benefits li:nth-child(4) {
  animation-delay: 0.65s;
}

.modal-features li:last-child,
.modal-benefits li:last-child {
  border-bottom: none;
}

.modal-features li::before,
.modal-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-features li::after,
.modal-benefits li::after {
  content: '✓';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeInUp 0.5s ease-out 0.7s both;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--ios-blue), var(--ios-purple));
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
  transition: var(--transition);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tech-tag:nth-child(1) {
  animation-delay: 0.7s;
}

.tech-tag:nth-child(2) {
  animation-delay: 0.75s;
}

.tech-tag:nth-child(3) {
  animation-delay: 0.8s;
}

.tech-tag:nth-child(4) {
  animation-delay: 0.85s;
}

.tech-tag:nth-child(5) {
  animation-delay: 0.9s;
}

.tech-tag:nth-child(6) {
  animation-delay: 0.95s;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.modal-footer {
  padding: 1.5rem 2.5rem 2.5rem;
  text-align: center;
  animation: fadeInUp 0.5s ease-out 1s both;
}

.modal-cta {
  width: 100%;
  justify-content: center;
  font-size: 1.125rem;
  padding: 1.125rem 2.5rem;
}

/* Mobile Modal Responsive */
@media (max-width: 767px) {
  .modal-container {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--border-radius);
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-icon-wrapper {
    width: 64px;
    height: 64px;
  }

  .modal-icon-wrapper i {
    font-size: 2rem;
  }

  .modal-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .modal-description {
    font-size: 1rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem 2rem;
  }

  .tech-tags {
    gap: 0.5rem;
  }

  .tech-tag {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 575px) {
  .area-modal {
    padding: 0.5rem;
  }

  .modal-content {
    padding: 1.5rem 1.25rem;
  }

  .modal-header h2 {
    font-size: 1.375rem;
  }

  .modal-footer {
    padding: 1rem 1.25rem 1.5rem;
  }
}

/* ============================================
   SCROLL-BASED TEXT FILL ANIMATION
   ============================================ */

.scroll-fill-text {
  background: linear-gradient(90deg,
      var(--ios-blue) 0%,
      var(--ios-blue) 50%,
      var(--text-dark) 50%,
      var(--text-dark) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fill-text.filled {
  background-position: 0 0;
}

/* Gradient fill variant */
.scroll-fill-gradient {
  background: linear-gradient(90deg,
      var(--ios-blue) 0%,
      var(--ios-purple) 25%,
      var(--ios-teal) 50%,
      var(--text-dark) 50%,
      var(--text-dark) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fill-gradient.filled {
  background-position: 0 0;
}

/* Animated gradient fill */
.scroll-fill-animated {
  background: linear-gradient(90deg,
      var(--ios-blue) 0%,
      var(--ios-purple) 30%,
      var(--ios-pink) 50%,
      var(--text-dark) 50%,
      var(--text-dark) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-fill-animated.filled {
  background-position: 0 0;
}

/* Word-by-word fill effect */
.word-fill-wrapper {
  display: inline-block;
}

.word-fill {
  display: inline-block;
  background: linear-gradient(90deg,
      var(--ios-blue) 0%,
      var(--ios-blue) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--text-dark);
}

.word-fill.filled {
  background-size: 100% 100%;
}

/* Apply to specific elements */
.hero-title.scroll-fill-text,
.section-header h2.scroll-fill-gradient {
  font-weight: 700;
}

/* Enhanced effect for hero title */
.hero-title.scroll-fill-gradient {
  background: linear-gradient(90deg,
      var(--ios-blue) 0%,
      var(--ios-purple) 20%,
      var(--ios-pink) 40%,
      var(--ios-teal) 50%,
      var(--text-dark) 50%,
      var(--text-dark) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title.scroll-fill-gradient.filled {
  background-position: 0 0;
}

/* Pulsing effect when filled */
@keyframes textGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 16px rgba(0, 122, 255, 0.5));
  }
}

.scroll-fill-gradient.filled,
.scroll-fill-animated.filled {
  animation: textGlow 3s ease-in-out infinite;
}

/* Word fill with stagger */
.word-fill-wrapper .word-fill:nth-child(1) {
  transition-delay: 0.05s;
}

.word-fill-wrapper .word-fill:nth-child(2) {
  transition-delay: 0.1s;
}

.word-fill-wrapper .word-fill:nth-child(3) {
  transition-delay: 0.15s;
}

.word-fill-wrapper .word-fill:nth-child(4) {
  transition-delay: 0.2s;
}

.word-fill-wrapper .word-fill:nth-child(5) {
  transition-delay: 0.25s;
}

.word-fill-wrapper .word-fill:nth-child(6) {
  transition-delay: 0.3s;
}

.word-fill-wrapper .word-fill:nth-child(7) {
  transition-delay: 0.35s;
}

.word-fill-wrapper .word-fill:nth-child(8) {
  transition-delay: 0.4s;
}

.word-fill-wrapper .word-fill:nth-child(9) {
  transition-delay: 0.45s;
}

.word-fill-wrapper .word-fill:nth-child(10) {
  transition-delay: 0.5s;
}

.word-fill-wrapper .word-fill:nth-child(11) {
  transition-delay: 0.55s;
}

.word-fill-wrapper .word-fill:nth-child(12) {
  transition-delay: 0.6s;
}

.word-fill-wrapper .word-fill:nth-child(13) {
  transition-delay: 0.65s;
}

.word-fill-wrapper .word-fill:nth-child(14) {
  transition-delay: 0.7s;
}

.word-fill-wrapper .word-fill:nth-child(15) {
  transition-delay: 0.75s;
}

/* Smooth color transition for word fill */
.word-fill {
  background: linear-gradient(90deg,
      var(--ios-blue) 0%,
      var(--ios-purple) 50%,
      var(--ios-blue) 100%);
  position: relative;
}

.word-fill.filled {
  animation: wordShine 2s ease-in-out;
}

@keyframes wordShine {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {

  .scroll-fill-text,
  .scroll-fill-gradient,
  .scroll-fill-animated,
  .word-fill {
    color: var(--text-dark);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* ============================================
   ANIME.JS SPLIT TEXT ANIMATIONS
   ============================================ */

/* Wrapper for split text animations */
.split-text-wrapper {
  overflow: hidden;
  display: inline-block;
}

/* Line wrapper with clip */
.split-line-clip {
  overflow: hidden;
  display: block;
  position: relative;
}

.split-line-clip .line {
  display: block;
  transform-origin: center;
}

/* Character-based split */
.split-char {
  display: inline-block;
  transform-origin: center;
  will-change: transform, opacity;
}

/* Line-based split */
.split-line {
  display: block;
  overflow: hidden;
  transform-origin: left center;
  will-change: transform, opacity;
}

/* Word-based split */
.split-word {
  display: inline-block;
  transform-origin: center;
  will-change: transform, opacity;
  white-space: nowrap;
}

/* Animated text reveal styles */
.text-reveal {
  position: relative;
  overflow: hidden;
}

.text-reveal .line-wrapper {
  overflow: hidden;
  display: block;
  line-height: 1.4;
}

.text-reveal .line {
  display: block;
  transform: translateY(100%);
  will-change: transform;
}

/* Fade in animation class */
.animate-text-in .line {
  transform: translateY(0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered animation helper */
.stagger-animation {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-animation.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Clip path animations */
.clip-animate {
  overflow: hidden;
  position: relative;
}

.clip-animate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-surface);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.clip-animate.revealed::before {
  transform: translateX(100%);
}

/* Loop animation styles */
.loop-text-animation {
  display: inline-block;
  position: relative;
}

.loop-text-animation .line {
  animation-fill-mode: both;
}

/* Preserve whitespace */
.split-preserve-space {
  white-space: pre-wrap;
}

/* Typing cursor animation */
.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--ios-blue);
  font-weight: 400;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Typing text container */
.typing-text {
  display: inline-block;
  position: relative;
}

/* Character reveal for typing */
.split-char {
  display: inline-block;
  opacity: 0;
  transform-origin: center;
}

.split-char.typed {
  opacity: 1;
  animation: charReveal 0.1s ease-out forwards;
}

@keyframes charReveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legal Modal Styles */
.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-modal.active {
  display: block;
  opacity: 1;
}

.legal-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--dark-surface);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.legal-modal.active .legal-modal-container {
  transform: translate(-50%, -50%) scale(1);
  background-color: whitesmoke;
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: left;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--light-gray);
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.legal-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  color: var(--text-dark);
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.legal-modal-close:hover {
  background: var(--medium-gray);
  transform: rotate(90deg);
}

.legal-modal-content {
  padding: 2.5rem;
  overflow-y: auto;
  flex: 1;
}

.legal-modal-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}

.legal-modal-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-modal-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem 0;
}

.legal-modal-content p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-modal-content ul,
.legal-modal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
}

.legal-modal-content li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-modal-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-modal-content .last-updated {
  display: block;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Modal scrollbar */
.legal-modal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

@media (max-width: 768px) {
  .legal-modal-container {
    width: 95%;
    max-height: 85vh;
    border-radius: 16px;
  }

  .legal-modal-header {
    padding: 1.5rem;
  }

  .legal-modal-content {
    padding: 1.5rem;
  }

  .legal-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}