@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-3: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

[data-theme="light"] {
  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #dbeafe 100%);
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.75rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); margin-bottom: 16px; }

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

a:hover { color: var(--secondary); }

section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.btn:hover::after { transform: translateX(0); }

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.btn-large { padding: 16px 40px; font-size: 1.1rem; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: all var(--transition);
  border-radius: 2px;
  display: block;
}

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

/* MOBILE OVERLAY */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.open { opacity: 1; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.08;
  top: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.06;
  bottom: -100px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content p {
  color: var(--text);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.15;
  color: #fff;
}

.hero-title span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .hero-subtitle {
  color: var(--text-muted);
}

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

/* SERVICES */
.services-preview { background: var(--bg-alt); }

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

.service-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--glass);
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; }

/* STATS */
.stats {
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-card { text-align: center; }
.stat-card h3 { font-size: 2.5rem; color: #fff; margin-bottom: 8px; }
.stat-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* PROJECTS */
.featured-projects h2,
.featured-projects > .container > p { text-align: center; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 220px;
  width: 100%;
  transition: transform 0.5s;
}

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

.project-card h3,
.project-card p,
.project-card a {
  padding: 0 24px;
}

.project-card h3 { padding-top: 24px; padding-bottom: 8px; }
.project-card p { margin-bottom: 12px; }
.project-card a { display: inline-block; padding-bottom: 24px; font-weight: 600; }

/* TESTIMONIALS */
.testimonials { background: var(--bg-alt); }
.testimonials h2 { text-align: center; }

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

.testimonial-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.stars { font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card > p { font-style: italic; margin-bottom: 20px; color: var(--text); }
.testimonial-author { border-top: 1px solid var(--border); padding-top: 16px; }
.testimonial-author strong { display: block; color: var(--text); margin-bottom: 2px; }
.testimonial-author small { color: var(--text-muted); font-size: 0.85rem; }

/* CTA */
.cta-section {
  background: var(--gradient-1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }

/* PAGE HEADER */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  background: var(--gradient-hero);
}

.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; }

/* SERVICES DETAIL */
.services-detail { padding: 80px 0; }

.service-detail-item { margin-bottom: 80px; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-grid.service-reverse { direction: rtl; }
.service-detail-grid.service-reverse > * { direction: ltr; }

.service-detail-content h2 { margin-bottom: 16px; }

.service-features {
  list-style: none;
  margin: 24px 0;
}

.service-features li {
  padding: 10px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
}

.service-detail-image {
  height: 400px;
  border-radius: var(--radius);
}

/* PRICING */
.pricing { background: var(--bg-alt); }
.pricing h2, .pricing > .container > p { text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

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

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0;
}

.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pricing-card .btn { width: 100%; margin-top: 16px; justify-content: center; }

/* PORTFOLIO */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: block;
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  height: 240px;
  width: 100%;
  transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h3 { color: #fff; margin-bottom: 4px; }
.portfolio-overlay p { color: rgba(255,255,255,0.8); margin: 0; }

.portfolio-info { padding: 24px; }

.portfolio-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.portfolio-stats span {
  background: var(--glass);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* CASE STUDY */
.case-study-section { background: var(--bg-alt); }

.case-study-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.case-study-image { border-radius: var(--radius); }

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.metric { text-align: center; }
.metric h4 { color: var(--primary); font-size: 1.75rem; }
.metric p { margin: 0; font-size: 0.85rem; }

.case-study-info h4 { margin-top: 24px; }
.case-study-info ul { list-style: none; color: var(--text-muted); }
.case-study-info li { margin: 8px 0; padding-left: 20px; position: relative; }
.case-study-info li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ABOUT */
.about-story { padding: 80px 0; }

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

.story-image {
  height: 400px;
  border-radius: var(--radius);
}

.values { background: var(--bg-alt); }
.values h2 { text-align: center; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.value-card h3 { margin-bottom: 12px; }

.team h2 { text-align: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  height: 260px;
  width: 100%;
}

.team-card h3, .team-card p { padding: 0 20px; }
.team-card h3 { padding-top: 20px; }
.team-role { color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.team-bio { margin-bottom: 12px; font-size: 0.9rem; }

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
}

.team-social a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.company-stats h2 { text-align: center; }

/* CONTACT */
.contact-section { padding: 80px 0; }

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

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

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

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.contact-form button { align-self: flex-start; }

.contact-info-wrapper h2 { margin-bottom: 24px; }

.contact-info-card {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.contact-info-card h3 { margin-bottom: 8px; font-size: 1rem; }
.contact-info-card p { margin: 0; }

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.social-link {
  padding: 8px 20px;
  background: var(--glass);
  color: var(--text);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* FAQ */
.faq { background: var(--bg-alt); }
.faq h2 { text-align: center; margin-bottom: 40px; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow);
}

.faq-item h3 { font-size: 1.05rem; margin-bottom: 12px; }
.faq-item p { font-size: 0.9rem; margin: 0; }

/* FOOTER */
.footer {
  background: #0b1120;
  padding: 80px 0 24px;
  border-top: 1px solid var(--border);
}

[data-theme="light"] .footer {
  background: #f1f5f9;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-section p { font-size: 0.9rem; }

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-section ul li a:hover { color: var(--primary); }

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { margin: 0; font-size: 0.85rem; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }

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

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

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

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

.animate {
  opacity: 0;
}

.animate.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate.fade-in {
  animation: fadeIn 0.7s ease forwards;
}

.animate.slide-in-left {
  animation: slideInLeft 0.7s ease forwards;
}

.animate.slide-in-right {
  animation: slideInRight 0.7s ease forwards;
}

/* PAGE TRANSITION */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.page-transition.active { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 96px 32px 32px;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  }

  .nav-menu.open { right: 0; }

  .nav-overlay.open { display: block; }

  .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link.active {
    background: var(--glass);
  }

  .hamburger { display: flex; }

  .nav-cta { display: none; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .stats-grid,
  .contact-content,
  .story-content,
  .case-study-content {
    grid-template-columns: 1fr;
  }

  .service-detail-grid,
  .service-detail-grid.service-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-detail-image {
    height: 250px;
  }

  .story-image { height: 300px; }

  .contact-form button { width: 100%; justify-content: center; }

  .case-study-metrics { grid-template-columns: 1fr; }

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

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

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .service-detail-image { height: 200px; }
  .team-image { height: 220px; }
}
