/* ============================================
   SKYRIDGE DIGITAL V2 — Glassmorphism Dark Mode
   ============================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #06070a;
  --bg-secondary: #0b0d12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 24px;
  --text-primary: #f0f0f5;
  --text-secondary: #7a7a8e;
  --text-muted: #4a4a5e;
  --accent: #C0A060;
  --accent-bright: #D4B878;
  --accent-dim: #9A7D40;
  --accent-glow: 0 0 40px rgba(192, 160, 96, 0.25);
  --accent-glow-intense: 0 0 60px rgba(192, 160, 96, 0.4);
  --gradient-accent: linear-gradient(135deg, #C0A060, #8B6914);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img, video {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(192, 160, 96, 0.08);
  border: 1px solid rgba(192, 160, 96, 0.2);
  border-radius: 100px;
}

/* --- Glass Panels --- */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass-panel-sm {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-logo .logo-sky {
  color: var(--text-primary);
}

.nav-logo .logo-ridge {
  color: var(--accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  background: rgba(192, 160, 96, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff !important;
  border: 1px solid rgba(192, 160, 96, 0.4) !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(192, 160, 96, 0.2) !important;
  border-color: rgba(192, 160, 96, 0.7) !important;
  box-shadow: 0 0 30px rgba(192, 160, 96, 0.3);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section (Scroll-Driven Video) --- */
.hero {
  position: relative;
  height: 300vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      to right,
      rgba(6, 7, 10, 0.92) 0%,
      rgba(6, 7, 10, 0.7) 45%,
      rgba(6, 7, 10, 0.3) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(6, 7, 10, 0.5) 0%,
      rgba(6, 7, 10, 0.35) 40%,
      rgba(6, 7, 10, 0.6) 70%,
      rgba(6, 7, 10, 0.95) 100%
    );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 720px;
  padding: 0 24px;
  margin-right: auto;
  margin-left: 8%;
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-content h1 {
  margin-bottom: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-content h1 .gradient-text {
  opacity: 0;
  animation: glowFadeIn 1.2s 0.8s forwards;
}

.hero-content .hero-sub {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(240, 240, 245, 0.8);
  margin-bottom: 16px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-content .hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(240, 240, 245, 0.5);
  margin-bottom: 40px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.9s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1.1s forwards;
}

@media (max-width: 768px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s 1.2s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

/* --- Page Hero (Non-scroll pages) --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 160, 96, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: rgba(192, 160, 96, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(192, 160, 96, 0.4);
  box-shadow: 0 4px 20px rgba(192, 160, 96, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(192, 160, 96, 0.2);
  border-color: rgba(192, 160, 96, 0.7);
  box-shadow: 0 0 30px rgba(192, 160, 96, 0.35), 0 0 60px rgba(192, 160, 96, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(192, 160, 96, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(192, 160, 96, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 14px 0;
}

.btn-ghost:hover {
  color: var(--accent-bright);
}

.btn-ghost .arrow {
  transition: transform var(--transition);
}

.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 40px 32px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(192, 160, 96, 0.08);
  border: 1px solid rgba(192, 160, 96, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--accent);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 48px 32px 40px;
  text-align: center;
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(192, 160, 96, 0.1);
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 12px;
}

/* Step connector line */
.steps-grid .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--glass-border), transparent);
}

/* --- Services Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.service-feature:hover {
  background: var(--surface);
}

.service-feature .check {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-feature span {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Pricing Panel */
.pricing-panel {
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.price-monthly {
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(192, 160, 96, 0.06);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.price-monthly strong {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 40px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.comparison-table thead th {
  background: rgba(192, 160, 96, 0.06);
  padding: 20px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table thead th:nth-child(2) {
  color: var(--accent);
}

.comparison-table tbody td {
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--surface);
}

.comparison-table .highlight-col {
  background: rgba(192, 160, 96, 0.03);
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Case Studies --- */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 40px;
  transition: all var(--transition);
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.case-study-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: var(--bg-secondary);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(192, 160, 96, 0.08);
  border-radius: 100px;
  align-self: flex-start;
}

.case-study-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.case-study-body p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.case-study-metrics {
  display: flex;
  gap: 32px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.contact-form {
  padding: 48px 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 160, 96, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a8e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(192, 160, 96, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 160, 96, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 40px;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Keyframes --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowFadeIn {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  80% {
    text-shadow: 0 0 40px rgba(192, 160, 96, 0.5);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    text-shadow: none;
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Ambient Glow Effects --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.4;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(192, 160, 96, 0.06);
  top: -200px;
  right: -100px;
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 105, 20, 0.05);
  bottom: -150px;
  left: -100px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid .step-card::after {
    display: none;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .case-study-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 7, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  /* --- Mobile Hero --- */
  .hero {
    height: 200vh;
  }

  .hero-overlay {
    background:
      radial-gradient(
        ellipse 80% 70% at 50% 50%,
        rgba(6, 7, 10, 0.3) 0%,
        rgba(6, 7, 10, 0.6) 60%,
        rgba(6, 7, 10, 0.85) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(6, 7, 10, 0.4) 0%,
        rgba(6, 7, 10, 0.15) 35%,
        rgba(6, 7, 10, 0.15) 55%,
        rgba(6, 7, 10, 0.9) 100%
      );
  }

  .hero-content h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  }

  .hero-content .hero-sub {
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.7);
  }

  .hero-content .hero-tagline {
    background: rgba(6, 7, 10, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 12px 16px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
    color: rgba(240, 240, 245, 0.85);
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .case-study-body {
    padding: 32px 24px;
  }

  .case-study-metrics {
    flex-wrap: wrap;
    gap: 20px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 12px 10px;
  }

  .pricing-panel {
    padding: 36px 24px;
  }

  /* --- Mobile Text Readability --- */
  /* Bump up the grey text colors for small screens */
  p,
  .card p,
  .step-card p,
  .footer-brand p {
    color: #a0a0b0;
  }

  .section-header p {
    color: #a0a0b0;
  }

  /* Step numbers (01, 02, 03) — much more visible */
  .step-number {
    color: rgba(192, 160, 96, 0.25);
  }

  /* Stat labels and muted text */
  .stat-label,
  .section-label,
  .hero-scroll-indicator span {
    color: #8a8a9e;
  }

  /* Footer text */
  .footer ul li a,
  .footer ul li {
    color: #9a9aae;
  }

  .footer h4 {
    color: #7a7a8e;
  }

  .footer-bottom {
    color: #7a7a8e;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}
