/* Motion Wave Studio - Main Stylesheet */

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

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Header */
.header {
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: sticky; top:0; z-index:50;
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
/*
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 6rem 0;
    text-align: center;
}

section.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1f4b 0%, #3f51b5 40%, #00bfa6 100%);
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

/* Abstract blobs
section.hero::before,
section.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}

section.hero::before {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle at center, #7f00ff, transparent 70%);
}

section.hero::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -200px;
  background: radial-gradient(circle at center, #00e5ff, transparent 70%);
}
*/

/* ---- MOTION WAVE: Splotchy Gradient + Vector Overlays ---- */
section.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(80px, 8vw, 140px) 0;

  /* 1) Base sweep + blotchy blobs (stacked radial-gradients) */
  background: /* teal glow bottom-left */ radial-gradient(900px 700px at 6% 92%, rgba(0, 200, 180, 0.28), transparent 62%),
    /* cyan glow upper-right */
    radial-gradient(800px 600px at 88% 14%, rgba(0, 230, 255, 0.24), transparent 64%),
    /* purple glow center-left */
    radial-gradient(900px 700px at 28% 48%, rgba(140, 0, 255, 0.22), transparent 65%),
    /* indigo patch lower-right */
    radial-gradient(700px 520px at 74% 78%, rgba(60, 70, 170, 0.22), transparent 66%),
    /* magenta patch top-left */
    radial-gradient(600px 460px at 10% 8%, rgba(210, 0, 255, 0.16), transparent 68%),
    /* base sweep */
    linear-gradient(160deg, #0c1224 0%, #232c74 40%, #371a84 60%, #0bb4a6 100%);
}

/* Keep content above overlays */
section.hero > .container { position: relative; z-index: 2; }

/* 2) Blurred organic overlay (SVG with Gaussian blur) */
section.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;   /* bleed outside so blur isn’t clipped */
  height: 110%;
  z-index: 1;
  pointer-events: none;
  background: no-repeat center/cover
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'>\
  <defs>\
    <filter id='g' x='-20%' y='-20%' width='140%' height='140%'>\
      <feGaussianBlur stdDeviation='40'/>\
    </filter>\
    <linearGradient id='lg' x1='0' y1='0' x2='1' y2='1'>\
      <stop offset='0' stop-color='%238000ff' stop-opacity='0.35'/>\
      <stop offset='1' stop-color='%2300e5ff' stop-opacity='0.28'/>\
    </linearGradient>\
  </defs>\
  <path filter='url(%23g)' d='M0,500 C220,380 420,360 640,430 C820,486 990,450 1180,360 C1340,285 1490,220 1600,240 L1600,900 L0,900 Z' fill='url(%23lg)'/>\
</svg>");
  mix-blend-mode: screen; /* helps the glow feel layered; remove if too strong */
}

/* 3) Crisp hard-edged swoop top-right (vector mask/overlay) */
section.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;            /* sits under content, over base gradients */
  pointer-events: none;
  background: no-repeat right top / cover
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'>\
  <path d='M1600,0 L1600,0 L1600,380 C1360,330 1210,250 1060,150 C900,45 760,0 600,0 L1600,0 Z' fill='%230b0f22'/>\
</svg>");
  /* If your page background isn’t #0b0f22, change the fill above to match. */
}

/* Optional: subtle grain to avoid banding on large monitors */
@media (min-width: 900px) {
    section.hero {
      background-image: radial-gradient(900px 700px at 6% 92%, rgba(0, 200, 180, 0.28), transparent 62%),
      radial-gradient(800px 600px at 88% 14%, rgba(0, 230, 255, 0.24), transparent 64%),
      radial-gradient(900px 700px at 28% 48%, rgba(140, 0, 255, 0.22), transparent 65%),
      radial-gradient(700px 520px at 74% 78%, rgba(60, 70, 170, 0.22), transparent 66%),
      radial-gradient(600px 460px at 10% 8%, rgba(210, 0, 255, 0.16), transparent 68%),
      linear-gradient(160deg, #0c1224 0%, #232c74 40%, #371a84 60%, #0bb4a6 100%),
      url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0 0 .04 .08 0 0 0'/></feComponentTransfer></filter><rect width='120' height='120' filter='url(%23n)\'/></svg>\");
      background-blend-mode: normal, normal, normal, normal, normal, normal, overlay;
  }
}

/* 2-column layout */
section.hero > .container {
  /* Use GRID for precise columns; switch to flex below if you prefer */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

/* If your global .container styles are overriding this,
   increase specificity OR move this block later in your CSS. 
   Worst case: add !important to display/grid lines. */

/* Left column (text) */
.hero-content {
  max-width: 56ch; /* keeps line length readable */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Right column (image) */
.hero-media {
  position: relative;
  justify-self: end;              /* nudge to the right like the mockup */
  width: min(440px, 38vw);        /* responsive cap */
  aspect-ratio: 16 / 11;          /* gives a nice “browser mockup” box */
  border-radius: 16px;
  overflow: visible;
}

/* Media: make the image fill the box neatly */
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* use 'cover' if your asset should crop to fill */
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.06) inset;
}

/* Glow/halo behind the media (matches redesign vibe) */
.hero-media::before {
  content: "";
  position: absolute;
  inset: -12% -10% -18% -10%;
  z-index: -1;
  border-radius: 24px;
  filter: blur(20px);
  background: radial-gradient(60% 60% at 30% 35%, rgba(128,0,255,.35), transparent 70%),
    radial-gradient(70% 70% at 70% 60%, rgba(0,229,255,.28), transparent 75%),
    radial-gradient(50% 50% at 50% 90%, rgba(11,182,167,.22), transparent 80%);
  opacity: .9;
}

/* Optional: subtle float animation on the media */
@keyframes mw-float {
  0%   { transform: translateY(0) }
  50%  { transform: translateY(-16px) }
  100% { transform: translateY(0) }
}
.hero-media { animation: mw-float 7s ease-in-out infinite; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  section.hero > .container {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-media { width: min(560px, 48vw); }
}

@media (max-width: 860px) {
  section.hero > .container {
    grid-template-columns: 1fr;   /* stack */
  }
  .hero-media {
    justify-self: stretch;
    width: 100%;
    margin-top: 20px;
    aspect-ratio: auto;
  }
  .hero-media img {
    width: 100%;
    height: auto; /* ensure no vertical squish on narrow screens */
  }
}


/* Example: shallower corner for packages */
section.hero.hero--packages::after {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'>\
  <path d='M1600,0 L1600,0 L1600,330 C1380,300 1240,240 1100,160 C920,60 780,0 640,0 L1600,0 Z' fill='%230b0f22'/>\
</svg>");
}


/* Respect reduced-motion users if you later animate anything here */
@media (prefers-reduced-motion: reduce) {
    section.hero, section.hero::before { animation: none !important; }
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    /* background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%); */
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700) !important;
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

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

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Package Cards */
.package-card {
    position: relative;
    text-align: center;
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.package-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.package-period {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--success-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: auto;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgb(16 185 129 / 0.1);
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error {
    background: rgb(239 68 68 / 0.1);
    border-color: var(--error-color);
    color: #991b1b;
}

.alert-warning {
    background: rgb(245 158 11 / 0.1);
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background: rgb(37 99 235 / 0.1);
    border-color: var(--primary-color);
    color: #1e40af;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--gray-300);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.125rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header, .footer, .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
