/* ============================================
   HOME.CSS - CodeMotionHub Main Page
   Hero. Services. Cases. Process. Team. CTA.
   ============================================ */

/* SECTION 1: HERO */
.hero {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-lead {
    font-size: var(--text-base);
  }

  .hero-cta {
    gap: var(--space-2);
  }

  .hero {
    padding: var(--space-16) 0;
  }
}

/* SECTION 2: VALUE PROPOSITION */
.value-proposition {
  padding: var(--space-24) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: var(--space-6) auto 0;
  border-radius: var(--radius-full);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.value-card {
  background: var(--color-surface-elevated);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) ease;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.15);
}

.value-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.value-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.value-card p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* SECTION 3: SERVICES OVERVIEW */
.services-overview {
  padding: var(--space-24) 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.services-showcase {
  display: grid;
  gap: var(--space-20);
}

.service-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.service-highlight:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.service-highlight:nth-child(even) .service-highlight-image {
  order: 2;
}

.service-highlight:nth-child(even) .service-highlight-content {
  order: 1;
}

.service-highlight-image {
  position: relative;
}

.service-highlight-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.service-highlight-content h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.service-highlight-content p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: all var(--duration-normal) ease;
}

.btn-link:hover {
  gap: var(--space-4);
  color: var(--color-primary-hover);
}

@media (max-width: 768px) {
  .service-highlight {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .service-highlight:nth-child(even) .service-highlight-image {
    order: 1;
  }

  .service-highlight:nth-child(even) .service-highlight-content {
    order: 2;
  }

  .service-highlight-content h3 {
    font-size: var(--text-xl);
  }
}

/* SECTION 4: FEATURED CASE STUDIES */
.featured-cases {
  padding: var(--space-24) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.case-card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--duration-normal) ease;
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.15);
}

.case-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: var(--space-12);
}

.case-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.case-content h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.case-content p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.section-cta {
  text-align: center;
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* SECTION 5: OUR PROCESS */
.our-process {
  padding: var(--space-24) 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-20);
  line-height: var(--leading-relaxed);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.process-step {
  background: var(--color-surface);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) ease;
  position: relative;
}

.process-step:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-elevated);
}

.step-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: var(--space-4);
}

.process-step h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.process-image {
  margin-top: var(--space-20);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.process-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

/* SECTION 6: TECHNOLOGY STACK */
.tech-stack {
  padding: var(--space-24) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.tech-category {
  background: var(--color-surface-elevated);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
}

.tech-category h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tech-category h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.tech-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all var(--duration-fast) ease;
}

.tech-badge:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.tech-image {
  margin-top: var(--space-20);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tech-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .tech-categories {
    grid-template-columns: 1fr;
  }
}

/* SECTION 7: TEAM & CULTURE */
.team-culture {
  padding: var(--space-24) 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  margin-bottom: var(--space-24);
}

.team-text h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.team-text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.team-text .btn {
  margin-top: var(--space-6);
}

.team-image {
  position: relative;
}

.team-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
}

.stat-card {
  background: var(--color-surface);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--duration-normal) ease;
}

.stat-card:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-primary);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  .team-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .team-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SECTION 8: FINAL CTA */
.final-cta {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.btn-lg {
  padding: var(--space-4) var(--space-12) !important;
  font-size: var(--text-base) !important;
}

.cta-contact-info {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.contact-item i {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.contact-item a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .cta-title {
    font-size: var(--text-2xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .cta-contact-info {
    flex-direction: column;
    gap: var(--space-6);
  }
}

/* BUTTON STYLES */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white!important;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text-secondary);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container {
    gap: var(--space-12);
  }

  .service-highlight {
    gap: var(--space-12);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-2xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .cta-title {
    font-size: var(--text-xl);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}
