/* ========== VARIABLES ========== */
:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #111827;
  --bg-tertiary: #1A2235;
  --accent: #00D4FF;
  --accent-secondary: #6366F1;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(148, 163, 184, 0.1);
  --success: #10B981;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ========== UTILITIES ========== */
.gradient-text {
  background: linear-gradient(135deg, #00D4FF 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 5rem; }
}

/* ========== BADGE TECH ========== */
.badge-tech {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #00D4FF 0%, #6366F1 100%);
  color: var(--bg-primary);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 0.25rem 0;
}

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; padding: 10px 24px; font-size: 13px; }
}

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  transition: color 0.2s;
}

.menu-toggle:hover { color: var(--text-primary); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.icon-close { display: none; }
.menu-toggle.open .icon-menu { display: none; }
.menu-toggle.open .icon-close { display: block; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
}

.mobile-nav-link {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  z-index: 1;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

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

.hero-badge {
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.5rem; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 18px; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-stats { gap: 3rem; }
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

@media (min-width: 768px) {
  .stat-number { font-size: 2.5rem; }
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
  display: none;
}

@media (min-width: 640px) {
  .stat-divider { display: block; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: 80px 0;
  position: relative;
}

@media (min-width: 768px) {
  .section { padding: 120px 0; }
}

.section-border {
  border-top: 1px solid var(--border-subtle);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-subtitle { font-size: 18px; }
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease-out;
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00D4FF 0%, #6366F1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .service-title { font-size: 1.5rem; }
}

.service-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ========== PROCESS / TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
}

@media (min-width: 768px) {
  .timeline-line { display: block; }
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .timeline-step {
    align-items: center;
    gap: 0;
    margin-bottom: 4rem;
  }
  .timeline-step:last-child { margin-bottom: 0; }
}

.step-content {
  flex: 1;
}

@media (min-width: 768px) {
  .step-content {
    width: 50%;
    flex: none;
  }
  .step-left { padding-right: 3rem; text-align: right; }
  .step-right { padding-left: 3rem; text-align: left; }
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .step-left .step-header { justify-content: flex-end; }
  .step-right .step-header { justify-content: flex-start; }
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

@media (min-width: 768px) {
  .step-number { font-size: 3.5rem; }
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.step-dot {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .step-dot { display: block; }
}

.step-spacer {
  display: none;
  width: 50%;
}

@media (min-width: 768px) {
  .step-spacer { display: block; }
}

/* Mobile timeline vertical line */
.timeline-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.3;
}

@media (min-width: 768px) {
  .timeline-step::before { display: none; }
}

.timeline { position: relative; }
.timeline-step { position: relative; padding-left: 2.5rem; }
.timeline-step .step-dot-mobile {
  position: absolute;
  left: 15px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .timeline-step { padding-left: 0; }
  .timeline-step .step-dot-mobile { display: none; }
}

/* ========== PORTFOLIO ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.project-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}

.project-card:hover .project-hover {
  opacity: 1;
}

.project-hover span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  background: rgba(10, 14, 26, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.p-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ========== TECHNOLOGIES ========== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.tech-badge:hover {
  color: var(--text-primary);
  border-color: rgba(0, 212, 255, 0.2);
}

.tech-badge span {
  opacity: 0.6;
}

/* ========== CONTACT ========== */
.contact-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 3fr 2fr; gap: 4rem; }
}

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

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

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  outline: none;
  transition: all 0.2s;
}

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

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

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

/* Form Success */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.success-text {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--accent);
}

.info-details {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.info-value:hover {
  color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  padding-bottom: 40px;
}

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

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ========== ANIMATIONS ========== */
.anim-fade {
  opacity: 0;
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animations */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-anim {
    opacity: 1;
    transform: none;
  }
}
