/* style.css */
:root {
  /* Light Theme Defaults */
  --bg-color: #ffffff;
  --bg-alt: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --surface-color: rgba(255, 255, 255, 0.45);
  --surface-color-strong: rgba(255, 255, 255, 0.6);
  --border-color: rgba(15, 23, 42, 0.1);
  --border-highlight: rgba(15, 23, 42, 0.25);
  --nav-bg: rgba(255, 255, 255, 0.55);
  --glass-blur: 20px;
  --glass-sheen: rgba(255, 255, 255, 0.5);
  
  --brand-primary: #0f172a;
  --brand-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --brand-glow: rgba(15, 23, 42, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 24px var(--brand-glow);
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-color: #030712;
  --bg-alt: #0b0f19;
  --text-primary: #f8fafc;
  --text-secondary: #aab6c9;
  --surface-color: rgba(255, 255, 255, 0.09);
  --surface-color-strong: rgba(255, 255, 255, 0.14);
  --border-color: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.28);
  --nav-bg: rgba(3, 7, 18, 0.55);
  --glass-sheen: rgba(255, 255, 255, 0.08);
  
  --brand-primary: #ffffff;
  --brand-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  --brand-glow: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Base resets & typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

/* Ambient gradient blobs for glassmorphism backdrop */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: blob-float 22s ease-in-out infinite;
}

.bg-blobs span:nth-child(1) {
  width: 42vw;
  height: 42vw;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at 30% 30%, #ff9a9e, #fecfef);
  animation-delay: 0s;
}

.bg-blobs span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  top: 10%;
  right: -12%;
  background: radial-gradient(circle at 60% 40%, #a1c4fd, #c2e9fb);
  animation-delay: -7s;
}

.bg-blobs span:nth-child(3) {
  width: 34vw;
  height: 34vw;
  bottom: -12%;
  left: 20%;
  background: radial-gradient(circle at 50% 50%, #d4fc79, #96e6a1);
  animation-delay: -14s;
}

.bg-blobs span:nth-child(4) {
  width: 30vw;
  height: 30vw;
  bottom: 5%;
  right: 5%;
  background: radial-gradient(circle at 40% 60%, #e0c3fc, #8ec5fc);
  animation-delay: -3s;
}

[data-theme="dark"] .bg-blobs span {
  opacity: 0.28;
}

[data-theme="dark"] .bg-blobs span:nth-child(1) { background: radial-gradient(circle at 30% 30%, #4a00e0, #8e2de2); }
[data-theme="dark"] .bg-blobs span:nth-child(2) { background: radial-gradient(circle at 60% 40%, #1cb5e0, #000046); }
[data-theme="dark"] .bg-blobs span:nth-child(3) { background: radial-gradient(circle at 50% 50%, #0ba360, #3cba92); }
[data-theme="dark"] .bg-blobs span:nth-child(4) { background: radial-gradient(circle at 40% 60%, #61045f, #aa076b); }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-5%, -4%) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blobs span { animation: none; }
}

/* Shared glass surface treatment */
.glass, .about-card, .service-card, .testimonial-card, .pricing-card,
.faq-item, .portfolio-item, .contact-form-wrapper, .hero-form-wrapper,
.stat-item, .cta-box {
  background: var(--surface-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  position: relative;
}

.glass::before, .about-card::before, .service-card::before, .testimonial-card::before,
.pricing-card::before, .faq-item::before, .portfolio-item::before,
.contact-form-wrapper::before, .hero-form-wrapper::before, .stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--glass-sheen) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.about-card > *, .service-card > *, .testimonial-card > *, .pricing-card > *,
.faq-item > *, .portfolio-item > *, .contact-form-wrapper > *, .hero-form-wrapper > *,
.stat-item > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

*:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Layout utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.text-center { text-align: center; }
.section { padding: 5rem 0; }
.bg-alt { background-color: transparent; }
.full-width { width: 100%; }

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand-gradient);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* Theme Toggle */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.icon-btn:hover {
  background: var(--surface-color);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--bg-color); /* Inverse */
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-primary {
  background: var(--brand-primary);
  color: #000000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

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

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--border-highlight);
  background: var(--border-color);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  flex-direction: column;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
  animation: slideDown var(--transition-normal);
}

.mobile-link {
  padding: 1rem 24px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}
.mobile-link:last-child {
  border-bottom: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px; /* offset nav */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  transition: transform 0.5s ease-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(147, 51, 234, 0.2);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.2);
  bottom: -50px;
  left: -100px;
}

[data-theme="light"] .orb-1 { background: rgba(147, 51, 234, 0.1); }
[data-theme="light"] .orb-2 { background: rgba(59, 130, 246, 0.1); }

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-text .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-text .hero-buttons {
  justify-content: flex-start;
}

.hero-form-wrapper {
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-form-wrapper .form-group {
  margin-bottom: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-row-2 .form-group {
  margin-bottom: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-group {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

.radio-group legend {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding: 0;
  color: var(--text-primary);
}

.radio-group .radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--brand-primary);
}

.tagline {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Active nav link */
.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Page Hero (reusable for sub-pages) */
.page-hero {
  position: relative;
  padding: 9rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.page-hero .page-eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  letter-spacing: 0.03em;
}

.page-hero .page-title {
  font-size: clamp(2.75rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Breadcrumb for sub-pages */
.page-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.page-breadcrumb a {
  transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
  color: var(--text-primary);
}

.page-breadcrumb .separator {
  color: var(--border-highlight);
}

.page-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Section Header */
.section-header {
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* About Section */
.about-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
  background: var(--surface-color-strong);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--bg-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .icon-wrapper {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-content {
  padding: 2.5rem;
  flex: 1;
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.service-visual {
  height: 200px;
  width: 100%;
}

.bg-gradient-1 { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.bg-gradient-2 { background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); }
.bg-gradient-3 { background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%); }
.bg-gradient-4 { background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }

[data-theme="dark"] .bg-gradient-1 { background: linear-gradient(45deg, #4a00e0 0%, #8e2de2 100%); }
[data-theme="dark"] .bg-gradient-2 { background: linear-gradient(120deg, #1cb5e0 0%, #000046 100%); }
[data-theme="dark"] .bg-gradient-3 { background: linear-gradient(120deg, #0ba360 0%, #3cba92 100%); }
[data-theme="dark"] .bg-gradient-4 { background: linear-gradient(120deg, #61045f 0%, #aa076b 100%); }


/* Features Parallax */
.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-text {
  flex: 1;
}

.feature-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.feature-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--surface-color);
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.feature-visual-wrapper {
  flex: 1;
  perspective: 1000px;
}

.glass-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.glass-panel.floating {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mock-ui {
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-header {
  height: 40px;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-color);
}

.mock-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-line {
  height: 12px;
  background: var(--surface-color);
  border-radius: var(--radius-full);
  width: 100%;
}
.mock-line.short {
  width: 60%;
}
.mock-box {
  flex: 1;
  background: var(--surface-color);
  border-radius: var(--radius-sm);
}

.dark-mock {
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color);
}

/* Feature visuals presented as Apple-style device mockups.
   Desktop/tablet renders an iPad; mobile collapses to an iPhone. */
.feature-visual {
  position: relative; /* anchor for bezel pseudo-elements */
  /* iPad bezel */
  padding: 1.6rem 1.2rem 2rem;
  background: linear-gradient(145deg, #3a3a42 0%, #0c0c10 45%, #14141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2.2rem;
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* The screen: fills the bezel interior and clips the illustration */
.feature-visual .feature-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
}

.feature-image svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

/* Dynamic-island camera notch (sits within the top bezel) */
.feature-visual::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 3;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.18);
}

/* Home indicator (sits within the bottom bezel) */
.feature-visual::after {
  content: '';
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  z-index: 3;
}



/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.portfolio-item:hover {
  transform: translateY(-8px);
}

.portfolio-image {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-alt);
  transition: transform var(--transition-slow);
}

.portfolio-image svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

/* Rich, layered portfolio artwork (no external images needed) */
.img-1 {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255, 154, 158, 0.55) 0%, rgba(255, 154, 158, 0) 55%),
    radial-gradient(120% 100% at 90% 90%, rgba(254, 240, 250, 0.5) 0%, rgba(254, 240, 250, 0) 55%),
    linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.img-2 {
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(253, 230, 138, 0.5) 0%, rgba(253, 230, 138, 0) 55%),
    radial-gradient(120% 100% at 85% 85%, rgba(143, 211, 244, 0.55) 0%, rgba(143, 211, 244, 0) 55%),
    linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.img-3 {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(161, 140, 209, 0.55) 0%, rgba(161, 140, 209, 0) 55%),
    radial-gradient(120% 100% at 90% 90%, rgba(251, 194, 235, 0.55) 0%, rgba(251, 194, 235, 0) 55%),
    linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

[data-theme="dark"] .img-1 {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(74, 0, 224, 0.6) 0%, rgba(74, 0, 224, 0) 55%),
    radial-gradient(120% 100% at 90% 90%, rgba(142, 45, 226, 0.6) 0%, rgba(142, 45, 226, 0) 55%),
    linear-gradient(135deg, #434343 0%, #000000 100%);
}
[data-theme="dark"] .img-2 {
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(28, 181, 224, 0.55) 0%, rgba(28, 181, 224, 0) 55%),
    radial-gradient(120% 100% at 88% 88%, rgba(10, 60, 90, 0.6) 0%, rgba(10, 60, 90, 0) 55%),
    linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
[data-theme="dark"] .img-3 {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(97, 4, 95, 0.6) 0%, rgba(97, 4, 95, 0) 55%),
    radial-gradient(120% 100% at 90% 90%, rgba(170, 7, 107, 0.6) 0%, rgba(170, 7, 107, 0) 55%),
    linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

/* Subtle decorative grid overlay on top of portfolio artwork */
.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: overlay;
  pointer-events: none;
}


.portfolio-info {
  padding: 1.5rem;
  background: transparent;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Statistics */
.stats-grid {
  text-align: center;
}

.stat-item {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
}

.stat-value {
  font-size: clamp(2rem, 2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Testimonials */
.testimonial-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.quote {
  font-size: 1.125rem;
  font-weight: 500;
  flex: 1;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-color);
}

.av-1 { background: linear-gradient(45deg, #ff9a9e, #fecfef); }
.av-2 { background: linear-gradient(45deg, #a1c4fd, #c2e9fb); }
.av-3 { background: linear-gradient(45deg, #d4fc79, #96e6a1); }

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Pricing */
.pricing-card {
  padding: 3rem 2rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.highlighted {
  border-color: var(--border-highlight);
  background: var(--surface-color-strong);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.pricing-card.highlighted:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .popular-badge {
  background: var(--brand-primary);
  color: #000;
}

.tier-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tier-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.tier-price span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
  color: var(--text-secondary);
}

.tier-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tier-features li::before {
  content: '✓';
  color: var(--text-primary);
  font-weight: bold;
}

/* FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--surface-color);
}

.chevron {
  transition: transform var(--transition-normal);
}

.faq-question[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-in-out, padding var(--transition-normal);
  padding: 0 1.5rem;
  color: var(--text-secondary);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* CTA */
.cta-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(147, 51, 234, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.contact-detail-item svg {
  color: var(--text-primary);
}






fieldset.hidden-fields-container {
    display: none;
}



/* =========================================
   CONTACT FORM 7
   ========================================= */

.contact-form-wrapper {
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    box-sizing: border-box;
    width: 100%;
}

/* Prevent CF7 generated wrapper from breaking layout */
.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* =========================================
   2 COLUMN FORM
   ========================================= */

.contact-form-wrapper .form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* =========================================
   FORM GROUP
   ========================================= */

.contact-form-wrapper .form-group {
    width: 100%;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.contact-form-wrapper .form-group label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* =========================================
   INPUTS
   ========================================= */

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1.1rem;

    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;

    box-sizing: border-box;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

/* =========================================
   TEXTAREA
   ========================================= */

.contact-form-wrapper textarea {
    min-height: 140px;
    resize: vertical;
}

/* =========================================
   PLACEHOLDER
   ========================================= */

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* =========================================
   FOCUS
   ========================================= */

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;

    border-color: var(--text-primary);
    box-shadow:
        0 0 0 1px var(--text-primary);
}

/* =========================================
   WEBSITE QUESTION
   ========================================= */

.contact-form-wrapper .radio-group {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.contact-form-wrapper .radio-group > label {
    margin-bottom: 0.75rem;
}

/* CF7 radio container */
.contact-form-wrapper .wpcf7-radio {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Individual radio */
.contact-form-wrapper .wpcf7-list-item {
    margin: 0;
}

/* Radio label */
.contact-form-wrapper .wpcf7-radio label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin: 0;

    font-size: 1rem;
    font-weight: 400;

    cursor: pointer;
}

/* Radio input */
.contact-form-wrapper .wpcf7-radio input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
}

/* =========================================
   SUBMIT BUTTON
   ========================================= */

.contact-form-wrapper .submit-group {
    margin-bottom: 0;
}

.contact-form-wrapper input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--text-primary);
    color: var(--bg-alt);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.contact-form-wrapper input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =========================================
   CF7 VALIDATION
   ========================================= */

.contact-form-wrapper .wpcf7-not-valid {
    border-color: #dc2626 !important;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    display: block;

    margin-top: 0.35rem;

    font-size: 0.8rem;
    color: #dc2626;
}

/* =========================================
   CF7 RESPONSE
   ========================================= */

.contact-form-wrapper .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;

    border-radius: var(--radius-md);
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .contact-form-wrapper {
        padding: 2rem;
    }

    .contact-form-wrapper .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

}



/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  border-radius: 0;
  background: var(--surface-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.footer-links h3, .footer-social h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

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

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color);
  color: var(--text-primary);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-icons a:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--surface-color);
  transform: translateY(-4px);
}

/* Animations & Utility */
.reveal {
  /* Visible by default so the page never appears empty if JS is blocked */
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* Responsive Design */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 3rem; }
  .pricing-card.highlighted { transform: scale(1); }
  .pricing-card.highlighted:hover { transform: translateY(-8px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .grid-2, .grid-3, .grid-4, .contact-layout { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-text .hero-buttons { justify-content: center; }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-card { padding: 2rem 1.5rem; }

  /* Feature visuals: collapse to an iPhone-style frame on mobile */
  .feature-visual {
    padding: 1.2rem 0.9rem 1.6rem; /* thicker bezel */
    border-radius: 2.6rem;
    aspect-ratio: 9 / 13; /* portrait phone */
    max-width: 320px;
    margin: 0 auto;
  }
  .feature-visual .feature-image {
    border-radius: 1.4rem;
  }
  .feature-visual::before {
    width: 72px;
    height: 16px;
    top: 0.45rem;
    border-radius: 10px;
  }
  .feature-visual::after {
    width: 70px;
    height: 4px;
    bottom: 0.6rem;
  }
  .feature-image svg {
    max-height: 100%;
  }
}

.screen-reader-response {
    display: none !important;
}
