/* ===================================================
   DEAR AGENCY - Main Stylesheet
   =================================================== */

/* --- Custom Properties --- */
:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --secondary: #EC4899;
  --accent: #F97316;
  --accent-alt: #06B6D4;
  --gradient-hero: linear-gradient(135deg, #1E1B4B 0%, #312E81 25%, #5B21B6 50%, #7C3AED 75%, #A855F7 100%);
  --gradient-cta: linear-gradient(135deg, #7C3AED, #EC4899);
  --gradient-warm: linear-gradient(135deg, #F97316, #EC4899);
  --gradient-card: linear-gradient(135deg, #312E81, #5B21B6);
  --bg-dark: #0F0E1A;
  --bg-darker: #0A0915;
  --bg-surface: #1A1830;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --transition: 0.3s ease;
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul { list-style: none; }

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-padding {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===================================================
   NAVIGATION
   =================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
  background: rgba(15, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  padding: 0.6rem 0;
}

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

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo strong {
  font-weight: 700;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  color: #fff !important;
  font-weight: 600 !important;
}

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

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.85;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  background: rgba(124, 58, 237, 0.1);
  animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.type-rotator-wrapper {
  height: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.type-rotator {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent);
}

.type-rotator .cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: var(--text-secondary);
}

/* ===================================================
   SERVICES
   =================================================== */
.services {
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(26, 24, 48, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===================================================
   ABOUT / STATS
   =================================================== */
.about {
  background: var(--bg-darker);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

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

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-features li svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===================================================
   PORTFOLIO
   =================================================== */
.portfolio {
  background: var(--bg-dark);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-cta);
  border-color: transparent;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card .card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

img.card-bg {
  position: absolute;
  inset: 0;
}

.portfolio-card:hover {
  transform: scale(1.02);
}

.portfolio-card:hover .card-bg {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 21, 0.92) 0%, rgba(10, 9, 21, 0.5) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 1;
  transition: background 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(10, 9, 21, 0.97) 0%, rgba(10, 9, 21, 0.6) 50%, rgba(124, 58, 237, 0.1) 100%);
}

.portfolio-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.3);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.portfolio-overlay h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ===================================================
   PROCESS
   =================================================== */
.process {
  background: var(--bg-darker);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--accent-alt));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.process-step:hover .step-number {
  background: var(--gradient-cta);
  color: #fff;
  border-color: transparent;
}

.process-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 250px;
  margin: 0 auto;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials {
  background: var(--bg-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}

.testimonial-quote-icon {
  font-size: 4rem;
  line-height: 1;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: serif;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.testimonial-card blockquote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.testimonial-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

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

/* ===================================================
   CONTACT
   =================================================== */
.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 30%, #5B21B6 60%, #7C3AED 100%);
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-method:hover { color: var(--text-primary); }

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gradient-cta);
  border-color: transparent;
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
}

.social-link:hover svg { fill: #fff; }

.contact-form-wrapper {
  background: rgba(26, 24, 48, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: rgba(15, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group select {
  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='%23CBD5E1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #EF4444;
}

.form-error {
  color: #EF4444;
  font-size: 0.8rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #34D399;
  font-weight: 600;
  font-size: 1.1rem;
}

.form-success.show { display: block; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.05rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--bg-darker);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  flex-shrink: 0;
}

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

/* ===================================================
   TRUSTED BY / MARQUEE
   =================================================== */
.trusted-by {
  padding: 2.5rem 0;
  background: var(--bg-darker);
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.marquee-item:hover { opacity: 1; }

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================================
   TECH STACK
   =================================================== */
.tech-stack {
  background: var(--bg-darker);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-clr, var(--primary));
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12);
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.tech-icon-box svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-clr, var(--text-secondary));
  fill: none;
}

.tech-icon-box svg text {
  fill: var(--accent-clr, var(--text-secondary));
  stroke: none;
}

.tech-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ===================================================
   PRICING
   =================================================== */
.pricing {
  background: var(--bg-darker);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
}

.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, var(--bg-surface) 30%);
  transform: scale(1.04);
}

.pricing-card.popular:hover { transform: scale(1.04) translateY(-6px); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-tier {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  margin: 1rem 0 0.75rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

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

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pricing-features li.included {
  color: var(--text-secondary);
}

.pricing-features li.included svg {
  width: 18px;
  height: 18px;
  stroke: #34D399;
  flex-shrink: 0;
}

.pricing-features li.not-included {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-features li.not-included svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

/* ===================================================
   FAQ
   =================================================== */
.faq {
  background: var(--bg-dark);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: rgba(124, 58, 237, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

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

.faq-chevron {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===================================================
   CTA BANNER
   =================================================== */
.cta-banner {
  background: var(--bg-darker);
}

.cta-banner-content {
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.cta-banner-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner-content > p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-banner-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cta-trust-badges svg {
  stroke: #34D399;
}

/* ===================================================
   SCROLL REVEAL ANIMATIONS
   NO opacity hiding - transform only. Content always visible.
   =================================================== */
.reveal {
  transform: translateY(20px);
  transition: transform 0.7s ease;
}

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

.reveal-left {
  transform: translateX(-20px);
  transition: transform 0.7s ease;
}

.reveal-left.active { transform: translateX(0); }

.reveal-right {
  transform: translateX(20px);
  transition: transform 0.7s ease;
}

.reveal-right.active { transform: translateX(0); }

.reveal-stagger > * {
  transform: translateY(15px);
  transition: transform 0.5s ease;
}

.reveal-stagger.active > * { transform: translateY(0); }
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.5s; }

/* ===================================================
   KEYFRAMES
   =================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .process-timeline::before { display: none; }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-6px); }

  .cta-banner-buttons { flex-direction: column; align-items: center; }
  .cta-banner-buttons .btn { width: 100%; justify-content: center; }

  .cta-trust-badges { flex-direction: column; align-items: center; gap: 0.75rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(15, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(124, 58, 237, 0.2);
  }

  .nav-links.active { right: 0; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    gap: 1rem;
  }

  .testimonial-card {
    min-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

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

  .portfolio-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

/* ===================================================
   FLOATING WHATSAPP BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left, .reveal-right,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}
