/* ===== CSS Variables ===== */
/* Single balanced color scheme: Medium Gray with Warm Orange accents */
/* Professional, modern, welcoming - perfect for web developer portfolio */

:root {
  /* Balanced gray tones - lighter than dark mode, darker than light mode */
  --background: hsl(220, 8%, 28%);
  --foreground: hsl(220, 10%, 95%);
  --card: hsl(220, 10%, 32%);
  --card-foreground: hsl(220, 10%, 95%);

  /* Warm orange accent - professional and inviting */
  --primary: hsl(25, 85%, 55%);
  --primary-foreground: hsl(220, 10%, 12%);

  /* Supporting colors */
  --secondary: hsl(220, 8%, 35%);
  --secondary-foreground: hsl(220, 8%, 90%);
  --muted: hsl(220, 8%, 30%);
  --muted-foreground: hsl(220, 8%, 70%);
  --border: hsl(220, 8%, 40%);
  --accent: hsl(25, 85%, 55%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(25, 85%, 55%), hsl(35, 82%, 58%));
  --gradient-hero: linear-gradient(180deg, hsl(220, 8%, 28%) 0%, hsl(220, 8%, 30%) 100%);
  --glow-primary: 0 0 50px hsla(25, 85%, 55%, 0.35);

  /* Shadows */
  --shadow-soft: 0 4px 20px hsla(220, 10%, 5%, 0.3);
  --shadow-card: 0 8px 30px hsla(220, 10%, 5%, 0.4);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sizing */
  --header-height: 80px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Semantic aliases used by FAQ and other components */
  --bg-secondary: hsl(220, 8%, 24%);
  --bg-card: hsl(220, 10%, 32%);
  --border-color: hsl(220, 8%, 40%);
  --text-primary: hsl(220, 10%, 95%);
  --text-secondary: hsl(220, 8%, 70%);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

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

.hero-name .text-gradient {
  background: linear-gradient(135deg, hsl(25, 85%, 55%) 0%, hsl(35, 82%, 65%) 50%, hsl(20, 90%, 50%) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ===== Typography ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: block;
  width: fit-content;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.6s ease 0.3s;
}

.section-title.animated::after {
  width: 60px;
}

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

.text-center .section-title::after,
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-intro {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, hsla(35, 82%, 65%, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

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

.btn-primary:hover::before {
  opacity: 1;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 24px;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: hsla(var(--background), 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header {
  background: hsla(220, 8%, 28%, 0.85);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo-bracket {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: var(--secondary);
  border-radius: 20px;
  padding: 4px;
}

.lang-option {
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 16px;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.lang-option.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 20px;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-blob-1 {
  top: 20%;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 40% 40%, hsla(25, 85%, 60%, 0.38), hsla(25, 85%, 55%, 0.12) 70%);
  animation: blob-drift-1 10s ease-in-out infinite;
}

.hero-blob-2 {
  bottom: 10%;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 60% 60%, hsla(35, 82%, 58%, 0.28), hsla(25, 85%, 55%, 0.08) 70%);
  animation: blob-drift-2 13s ease-in-out infinite;
}

.hero-blob-3 {
  top: 50%;
  left: 50%;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle at 50% 50%, hsla(25, 85%, 55%, 0.16), transparent 65%);
  animation: blob-drift-3 17s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.3;
  animation: grid-shimmer 8s ease-in-out infinite;
}

.hero-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, hsla(25, 85%, 55%, 0.04) 30%, transparent 60%, hsla(25, 85%, 55%, 0.02) 90%, transparent 100%);
  background-size: 200% 200%;
  animation: grid-shimmer 12s ease-in-out infinite 2s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float var(--duration) ease-in-out var(--delay) infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.hero-greeting .icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit .icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator .icon {
  color: var(--muted-foreground);
}

/* ===== About ===== */
.about {
  padding: 120px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  transition: transform 0.15s ease;
  will-change: transform;
  box-shadow: var(--shadow-card);
}

.about-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-avatar .icon {
  width: 60px;
  height: 60px;
  color: white;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

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

.stat-number.stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
}

.stat-number.stat-icon svg {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.about-description {
  color: var(--muted-foreground);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--secondary);
  border-radius: 50px;
}

.highlight .icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
  background: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 0 1px hsla(25, 85%, 55%, 0.2), var(--glow-primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: hsla(25, 85%, 55%, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-icon {
  background: hsla(25, 85%, 55%, 0.2);
  transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--muted-foreground);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature {
  padding: 6px 12px;
  font-size: 0.875rem;
  background: var(--secondary);
  border-radius: 20px;
  color: var(--secondary-foreground);
}

.service-cta {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.service-cta:hover {
  gap: 8px;
}

/* ===== Projects ===== */
.projects {
  padding: 120px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 0 1px hsla(25, 85%, 55%, 0.2);
}

.project-thumbnail {
  position: relative;
  aspect-ratio: 294/149;
  overflow: hidden;
}

.project-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, hsla(25, 85%, 55%, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

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

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  object-position: top center;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
}

.project-type {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 20px;
}

.project-type.redesign {
  background: hsla(25, 85%, 55%, 0.9);
  color: white;
}

.project-type.new {
  background: hsla(150, 70%, 40%, 0.9);
  color: white;
}

.project-info {
  padding: 24px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-desc {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.project-url {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.project-url:hover { color: var(--primary); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.8);
}

.modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: var(--muted);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 48px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.view-btn {
  padding: 10px 20px;
  font-weight: 600;
  background: var(--secondary);
  border-radius: 8px;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.view-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Before/After Slider */
.slider-container {
  margin-bottom: 24px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slider-label {
  font-weight: 600;
  color: var(--muted-foreground);
}

.before-after-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  /* Show full-page screenshots without cropping */
  height: clamp(420px, 70vh, 860px);
  background: var(--background);
}

.slider-image {
  position: absolute;
  inset: 0;
}

.slider-image img {
  width: 100%;
  height: 100%;
  /* Avoid cropping: show the entire screenshot */
  object-fit: contain;
  object-position: top center;
}


.slider-image.after {
  clip-path: inset(0 50% 0 0);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
}

.slider-button {
  position: relative;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-button svg {
  width: 16px;
  height: 16px;
  color: var(--foreground);
}

.slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

/* Single Image */
.single-image {
  display: none;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-image img {
  width: 100%;
}

.modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== About Me Section ===== */
.about-me {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--secondary) 100%);
  position: relative;
}

.about-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-me-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-me-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
  will-change: transform;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-me-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.about-me-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-me-paragraph {
  color: var(--muted-foreground);
  line-height: 1.9;
  font-size: 1.05rem;
}

.about-me-paragraph:first-child {
  font-size: 1.15rem;
  color: var(--foreground);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-me-card {
    padding: 32px 24px;
  }

  .about-me-paragraph {
    font-size: 1rem;
  }

  .about-me-paragraph:first-child {
    font-size: 1.1rem;
  }
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: var(--secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted-foreground);
}

.contact-item .icon {
  color: var(--primary);
}

.contact-item a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px hsla(25, 85%, 55%, 0.35);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: hsla(150, 70%, 40%, 0.1);
  border-radius: var(--radius);
  color: hsl(150, 70%, 35%);
}

.availability-dot {
  width: 10px;
  height: 10px;
  background: hsl(150, 70%, 40%);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

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

.footer-text {
  color: var(--muted-foreground);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3000;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast .icon {
  color: hsl(150, 70%, 40%);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes blob-drift-1 {
  0%   { transform: translate(0px, 0px) scale(1); }
  35%  { transform: translate(30px, -50px) scale(1.04); }
  70%  { transform: translate(-20px, -30px) scale(0.97); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes blob-drift-2 {
  0%   { transform: translate(0px, 0px) scale(1); }
  40%  { transform: translate(-35px, -60px) scale(1.05); }
  75%  { transform: translate(25px, -35px) scale(0.96); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes blob-drift-3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(calc(-50% + 25px), calc(-50% - 40px)) scale(1.06); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes grid-shimmer {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.35; }
}

@keyframes particle-float {
  0%   { transform: translate(0, 0);                          opacity: 0; }
  10%  {                                                       opacity: 1; }
  85%  {                                                       opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy));           opacity: 0; }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll animation base states — no animation until .animated is added */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.animated {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.05s;
}

.animate-on-scroll.animated.stagger-1 { animation-delay: 0.1s; }
.animate-on-scroll.animated.stagger-2 { animation-delay: 0.2s; }
.animate-on-scroll.animated.stagger-3 { animation-delay: 0.3s; }
.animate-on-scroll.animated.stagger-4 { animation-delay: 0.4s; }
.animate-on-scroll.animated.stagger-5 { animation-delay: 0.5s; }

.animate-from-left {
  opacity: 0;
  transform: translateX(-30px);
}
.animate-from-left.animated {
  animation: fadeLeft 0.7s ease forwards;
}

.animate-from-right {
  opacity: 0;
  transform: translateX(30px);
}
.animate-from-right.animated {
  animation: fadeRight 0.7s ease forwards;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.88);
}
.animate-scale.animated {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-blob-1 {
    width: 200px;
    height: 200px;
    left: -30px;
    background: radial-gradient(circle at 40% 40%, hsla(25, 85%, 60%, 0.25), hsla(25, 85%, 55%, 0.08) 70%);
  }

  .hero-blob-2 {
    width: 240px;
    height: 240px;
    right: -30px;
    background: radial-gradient(circle at 60% 60%, hsla(35, 82%, 58%, 0.18), hsla(25, 85%, 55%, 0.05) 70%);
  }

  .hero-blob-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 50% 50%, hsla(25, 85%, 55%, 0.10), transparent 65%);
  }

  .hero-benefits {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 24px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cookie-text {
  flex: 1;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.cookie-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 12px 24px;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie {
    width: 100%;
  }
}

/* ===== FAQ Section ===== */
.faq {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
}

.faq-question-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-10, rgba(249,115,22,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

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

  .animate-on-scroll,
  .animate-from-left,
  .animate-from-right,
  .animate-scale {
    opacity: 1;
    transform: none;
  }

  .hero-particles {
    display: none;
  }
}
