/* ============================================
   VIBRANTREVOLVE — MAIN STYLESHEET
   Consolidated, production-ready CSS
   ============================================ */

/* === CSS VARIABLES === */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --border-color: #333333;
  --card-bg: #161616;
  --accent: #ffd700;
  --accent-hover: #e6c200;
  --accent-light: #ffed4a;
  --accent-rgb: 255, 215, 0;
  --shadow: rgba(var(--accent-rgb), 0.15);
  --shadow-deep: rgba(var(--accent-rgb), 0.25);
  --white: #ffffff;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --container-max: 1200px;
  --section-padding: 5rem;
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;
  --border-color: #e5e5e5;
  --card-bg: #ffffff;
  --accent: #c7a300;
  --accent-hover: #a88a00;
  --accent-light: #ffd700;
  --accent-rgb: 199, 163, 0;
  --shadow: rgba(var(--accent-rgb), 0.12);
  --shadow-deep: rgba(var(--accent-rgb), 0.2);
  --white: #ffffff;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover, a:focus {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 65ch;
}

/* === LAYOUT === */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

section {
  padding: var(--section-padding) 1.5rem;
}

section:nth-child(even) {
  background-color: var(--bg-tertiary);
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10001;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  z-index: 10000;
  transition: width var(--transition-fast);
}

/* === HEADER === */
.site-header {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-text {
  display: none;
}

@media (min-width: 480px) {
  .logo-text { display: inline; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* === THEME TOGGLE === */
.theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #000;
  transform: rotate(15deg) scale(1.1);
}

.theme-toggle .fa-sun,
.theme-toggle .fa-moon {
  position: absolute;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.theme-toggle .fa-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .fa-moon { opacity: 1; transform: rotate(0) scale(1); }

[data-theme="light"] .theme-toggle .fa-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .fa-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* === NAVIGATION === */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

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

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* === HERO SECTION === */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--shadow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  margin: 0 auto;
  font-size: 1.1rem;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px var(--shadow);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* === SERVICE CARDS === */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.08), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

/* === PRICING CARDS === */
.pricing-card {
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--shadow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 1rem;
  right: -2.5rem;
  background: var(--accent);
  color: #000;
  padding: 0.25rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0;
  display: block;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.features-list {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* === CURRENCY TOGGLE === */
.currency-toggle {
  text-align: center;
  margin: 2rem 0;
}

.currency-toggle button {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--accent);
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0.3rem 0.5rem;
  border-radius: 50px;
  transition: all var(--transition-base);
}

.currency-toggle button:hover,
.currency-toggle button.active {
  background: var(--accent);
  color: #000;
}

/* === PORTFOLIO === */
.portfolio-filters {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #000;
}

.filter-btn.active {
  box-shadow: 0 0 15px var(--shadow);
}

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

.portfolio-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 25px 50px var(--shadow-deep);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  margin-bottom: 0.5rem;
  text-align: left;
}

.portfolio-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-links {
  display: flex;
  gap: 0.75rem;
}

.portfolio-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.portfolio-links a:hover {
  background: var(--white);
  transform: scale(1.05);
}

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

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-base);
  text-align: left;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--shadow);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  position: relative;
  padding-left: 1rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

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

.client img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.client-info strong {
  color: var(--accent);
  font-size: 0.95rem;
  display: block;
}

.client-info span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === PROCESS STEPS === */
.process-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 2rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: bold;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px var(--shadow);
}

.process-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px var(--shadow-deep);
}

/* === TECH STACK === */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-category {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.tech-category h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  text-align: center;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  transition: all var(--transition-base);
}

.tech-tag:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* === FORM === */
.form-group {
  margin-bottom: 1.25rem;
}

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

input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-base);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--shadow);
  transform: translateY(-1px);
}

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

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

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Form validation */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-align: center;
  max-width: 450px;
  width: 100%;
  transform: translateY(-20px) scale(0.95);
  transition: transform var(--transition-base);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content h3 {
  margin-bottom: 0.75rem;
}

/* === BACK TO TOP === */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #000;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 997;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px var(--shadow);
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.1);
  background: var(--white);
  box-shadow: 0 8px 25px var(--shadow-deep);
}

/* === STICKY CTA === */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  padding: 0.75rem;
  text-align: center;
  border-top: 2px solid var(--accent);
  z-index: 998;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}

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

.footer-column h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

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

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-links a {
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-links a:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* === ANIMATIONS === */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* === LOADING === */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10001;
  transition: opacity var(--transition-slow);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav.open {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .process-step:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: -1.5rem;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  #backToTop {
    bottom: 80px;
    right: 20px;
  }

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

@media (max-width: 480px) {
  .currency-toggle button {
    width: 45%;
    margin: 0.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .price {
    font-size: 2rem;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-element {
    opacity: 1;
    transform: none;
  }
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .sticky-cta, #backToTop, .scroll-progress {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
    color: black;
  }
}
