/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.3) 0%, rgba(20, 20, 20, 0.75) 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-bg-white);
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 72px;
  }
}

.hero p {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 650px;
}

/* Services Grid Section */
.services-grid {
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 48px 40px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Stats section strip */
.stats-strip {
  padding: 80px 0;
  background-color: var(--color-bg-dark);
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  gap: 40px 20px;
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Portfolio Showcase Section */
.portfolio-grid {
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.portfolio-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-bg-dark);
  border-radius: 8px;
}

.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 30%, rgba(20, 20, 20, 0.9) 100%);
  z-index: 2;
}

.portfolio-info {
  position: relative;
  z-index: 3;
  padding: 40px;
  color: var(--color-bg-white);
  width: 100%;
  transition: var(--transition-smooth);
}

.portfolio-tag {
  font-family: var(--font-accent);
  color: var(--color-primary);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 600;
}

.portfolio-info h3 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.portfolio-desc {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-desc {
  opacity: 1;
  max-height: 100px;
  margin-top: 10px;
}

/* Tech Grid Mobile Responsiveness */
.tech-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial Grid Mobile Responsiveness */
.testimonial-grid {
  grid-template-columns: 1fr;
  gap: 30px;
}

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