@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - LIGHT/WHITE THEME */
  --bg-deep: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-nav: rgba(255, 255, 255, 0.85);
  --bg-input: #ffffff;
  --border-glass: rgba(15, 16, 32, 0.08);
  --border-glow: rgba(0, 180, 216, 0.3);
  
  /* Text colors inverted for Light Theme */
  --text-white: #0f1020;      /* Primary dark text */
  --text-muted: #5c5d75;      /* Secondary dark text */
  --text-dark: #ffffff;       /* Light text on dark buttons */
  
  --accent-purple: #4361ee;   /* Vibrant blue-purple */
  --accent-cyan: #0096c7;     /* Light blue attention accent */
  --accent-blue: #0077b6;     /* Deep light blue */
  --accent-green: #2ec4b6;
  --accent-red: #d90429;
  
  --gradient-brand: linear-gradient(135deg, #00b4d8, #0077b6, #4361ee);
  --gradient-purple: linear-gradient(135deg, #0077b6, #4361ee);
  --gradient-cyan: linear-gradient(135deg, #00b4d8, #0077b6); /* Light blue gradients */
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadow & Blur */
  --shadow-glow-purple: 0 0 20px rgba(0, 119, 182, 0.2);
  --shadow-glow-cyan: 0 0 20px rgba(0, 180, 216, 0.3);
  --shadow-glow-green: 0 0 20px rgba(37, 211, 102, 0.3);
  --blur-glass: blur(12px);
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-margin-top: var(--header-height);
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: var(--gradient-dark);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  gap: 8px;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: var(--text-dark); /* White text on light blue button */
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.05);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: var(--blur-glass);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 35px rgba(0, 180, 216, 0.1);
  transform: translateY(-4px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-nav);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-white);
}

.logo-symbol {
  width: 32px;
  height: 32px;
  background: var(--gradient-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-cyan);
}

.logo-text span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: block;
  line-height: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-white);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2), .hamburger span:nth-child(3) { top: 10px; }
.hamburger span:nth-child(4) { top: 20px; }

.hamburger.open span:nth-child(1) { top: 10px; width: 0%; left: 50%; }
.hamburger.open span:nth-child(2) { transform: rotate(45deg); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }
.hamburger.open span:nth-child(4) { top: 10px; width: 0%; left: 50%; }

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px 0;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  top: 100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(0, 180, 216, 0.06);
  border: 1px solid rgba(0, 180, 216, 0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 8px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  background: var(--gradient-card);
  padding: 12px;
  box-shadow: 0 15px 35px rgba(15, 16, 32, 0.08);
}

.avatar-frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.avatar-overlay-card {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.08);
  animation: float 4s ease-in-out infinite;
}

.avatar-overlay-card-2 {
  position: absolute;
  top: 40px;
  right: -20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.08);
  animation: float 4s ease-in-out infinite 2s;
}

.avatar-overlay-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-cyan);
}

.avatar-overlay-text p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

.avatar-overlay-text span {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Sections General */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Narrative Section: Physical to Digital */
.narrative-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.narrative-visual {
  position: relative;
}

.door-card-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.door-card {
  display: flex;
  gap: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.door-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.06);
}

.door-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--text-muted);
}

.door-card.active::before {
  background: var(--gradient-cyan);
}

.door-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 16, 32, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.door-card.active .door-card-icon {
  background: var(--gradient-cyan);
  color: var(--text-dark);
  box-shadow: var(--shadow-glow-cyan);
}

.door-card-info h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.door-card-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.narrative-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.narrative-text p {
  color: var(--text-muted);
}

.highlight-quote {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 20px;
  margin: 10px 0;
  font-style: italic;
  color: var(--text-white);
  font-size: 1.1rem;
}

/* Reels / Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.reel-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 180, 216, 0.1);
}

.reel-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #f8f9fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.reel-card:hover .reel-thumb-img {
  transform: scale(1.05);
}

.reel-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(248, 249, 250, 0.95) 80%, #ffffff 100%);
  z-index: 1;
}

.reel-play-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-glow-cyan);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-play-btn svg {
  fill: var(--text-dark);
  margin-left: 4px;
}

.reel-card:hover .reel-play-btn {
  transform: scale(1.1);
}

.reel-stat {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 150, 199, 0.85);
  backdrop-filter: var(--blur-glass);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-glow-cyan);
}

.reel-card:nth-child(even) .reel-stat {
  background: rgba(67, 97, 238, 0.85);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.reel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  background: var(--gradient-card);
}

.reel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.reel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comparison / Difference Section */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.comparison-card {
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.comparison-card.agency {
  background: rgba(217, 4, 41, 0.015);
  border: 1px solid rgba(217, 4, 41, 0.08);
}

.comparison-card.doorknock {
  background: rgba(0, 180, 216, 0.015);
  border: 1px solid rgba(0, 180, 216, 0.1);
  box-shadow: 0 10px 40px rgba(0, 180, 216, 0.02);
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.comp-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.comp-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agency .comp-icon-box {
  background: rgba(217, 4, 41, 0.08);
  color: var(--accent-red);
}

.doorknock .comp-icon-box {
  background: rgba(0, 180, 216, 0.08);
  color: var(--accent-cyan);
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.comp-item-icon {
  margin-top: 4px;
  flex-shrink: 0;
}

.comp-item-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.comp-item-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.process-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-cyan);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow-cyan);
  position: relative;
}

.process-step:not(:last-child) .process-num::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  width: 60px;
  height: 2px;
  background: var(--border-glass);
}

.process-step:nth-child(even) .process-num {
  background: var(--gradient-purple);
  color: var(--text-dark);
  box-shadow: var(--shadow-glow-purple);
}

.process-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Page Intro Block (About/Contact pages) */
.page-intro {
  padding: 140px 0 60px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(234, 236, 240, 0.4) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
}

.page-intro .badge {
  margin-bottom: 16px;
}

.page-intro h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.page-intro p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* About Philosophy Content */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding: 40px 0;
}

.about-main-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-main-text p {
  color: var(--text-muted);
}

.about-card-stat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

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

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

.contact-info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.08);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: var(--blur-glass);
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.04);
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.1);
}

/* User inputs validation styling using baseline features */
.form-control:user-invalid {
  border-color: var(--accent-red);
}

.form-control:user-valid:focus {
  border-color: var(--accent-cyan);
}

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

/* Footer styling */
.footer {
  background-color: #f3f4f6;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px 0;
  color: var(--text-muted);
}

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

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-desc p {
  font-size: 0.9rem;
}

.footer-links h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
}

/* Video Modal Dialogs & Success Popups (Top-layer Animations) */
dialog {
  margin: auto;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 0;
  max-width: 800px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(15, 16, 32, 0.15);
  color: var(--text-white);
}

/* 1. Closed state styling & mandatory top-layer transition settings */
dialog {
  opacity: 0;
  transform: scale(0.9);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

/* 2. Open state styling */
dialog[open] {
  opacity: 1;
  transform: scale(1);

  /* 3. Entry animation setup */
  @starting-style {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Backdrop setup */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition:
    display 0.3s allow-discrete,
    overlay 0.3s allow-discrete,
    background-color 0.3s ease-out;
}

dialog[open]::backdrop {
  background-color: rgba(15, 16, 32, 0.6);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
  }
}

/* Dialog Inner Components */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 1.5rem;
}

.modal-close:hover {
  background: rgba(15, 16, 32, 0.05);
  color: var(--text-white);
}

.modal-body {
  padding: 24px;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eaecf0;
  border-radius: 12px;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-vertical-container {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin: 0 auto;
}

.success-modal-content {
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 15px rgba(46, 196, 182, 0.2);
}

/* Floating AI Human Assistant Widget */
.floating-assistant-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  z-index: 999;
  text-decoration: none;
  cursor: pointer;
}

.floating-avatar-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  background-color: var(--bg-secondary);
  background-image: url('../assets/images/assistant-avatar.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 150, 199, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.floating-assistant-widget:hover .floating-avatar-circle {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-cyan);
}

.pulse-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  animation: widget-pulse 2s infinite;
  pointer-events: none;
}

.speech-bubble {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 16px 16px 0 16px;
  box-shadow: 0 8px 24px rgba(15, 16, 32, 0.08);
  padding: 10px 16px;
  margin-right: 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f1020;
  white-space: nowrap;
  position: relative;
  opacity: 0.95;
  transition: all 0.3s ease;
  animation: widget-float 3s ease-in-out infinite;
}

/* Speech Bubble Tail pointing right to the avatar */
.speech-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 12px;
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
  display: block;
  width: 0;
}

.floating-assistant-widget:hover .speech-bubble {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.15);
  color: var(--accent-cyan);
}

@keyframes widget-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes widget-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  dialog, .reel-card, .glass-card, .btn, .door-card, .floating-avatar-circle, .speech-bubble {
    transition-duration: 0.05s !important;
    transform: none !important;
    animation: none !important;
  }
  @starting-style {
    dialog[open] {
      transform: none !important;
    }
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .avatar-overlay-card {
    left: 10px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comparison-container {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  
  .process-step:not(:last-child) .process-num::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    flex-direction: column;
    padding: 60px 24px;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border-glass);
    z-index: 1050;
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-cta {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .narrative-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .speech-bubble {
    display: none; /* Hide speech bubble on mobile to save screen space */
  }

  .floating-assistant-widget {
    bottom: 20px;
    right: 20px;
  }
}

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

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 180, 216, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

/* Pricing Plans Section Layout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.02);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 180, 216, 0.08);
  border-color: rgba(0, 180, 216, 0.3);
}

/* Featured / Recommended Pricing Card */
.pricing-card.featured {
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 20px 50px rgba(0, 180, 216, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, rgba(240, 247, 255, 0.6) 100%);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: var(--text-dark);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-glow-cyan);
  z-index: 2;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.pricing-price-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-white);
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.pricing-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.pricing-meta.commitment {
  color: var(--accent-cyan);
}

.pricing-who {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  min-height: 110px;
}

.pricing-features-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.pricing-features-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  font-weight: bold;
}

.pricing-card.featured .pricing-features-icon {
  color: #0077b6;
}

.pricing-cta-wrapper {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 40px auto 0 auto;
    gap: 40px;
  }
  .pricing-who {
    min-height: auto;
  }
}

/* Founder's Letter Layout */
.founder-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.founder-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.founder-image-area {
  display: flex;
  justify-content: center;
  align-items: start;
  position: sticky;
  top: 100px;
}

.founder-avatar-frame {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-glass);
  box-shadow: 0 15px 35px rgba(0, 180, 216, 0.05);
  position: relative;
  background: var(--bg-secondary);
}

.founder-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.founder-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-glass);
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .founder-image-area {
    order: -1; /* Place image on top for mobile screens */
    position: relative;
    top: 0;
  }
  .founder-avatar-frame {
    max-width: 200px;
  }
}


