:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --accent: #0071e3;
  --gray: #f5f5f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
  background: linear-gradient(#F9F9F9, #ffffff);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta:hover {
  background: #005bb5;
  transform: scale(1.05);
}

section {
  padding: 80px 20px;
}

section.light {
  background: var(--gray);
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.section-desc {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.process-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-left {
  flex: 1;
}

.process-right {
  flex: 1;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px 0;
}

.step {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease;
}

.step.active {
  font-weight: 700;
  color: var(--accent);
}

.step-details .step-pane {
  display: none;
}

.step-details .step-pane.active {
  display: block;
}

.process-graphic {
  max-width: 100%;
  border-radius: 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-main {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.portfolio-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.portfolio-info {
  padding: 20px;
}

.cta.small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.portfolio-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.portfolio-card img {
  width: 100%;
  display: block;
}

.portfolio-card h4 {
  margin: 15px 20px 0;
}

.portfolio-card p {
  margin: 10px 20px 20px;
  font-size: 0.9rem;
}

.testimonial-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  min-height: 200px;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0 0 20px;
  color: #333333;
}

.client {
  font-weight: 500;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.final-cta {
  text-align: center;
  background: #e5e9ec;
  padding: 100px 20px;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.secondary-link {
  display: block;
  margin-top: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.secondary-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .process-wrapper {
    flex-direction: column;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  max-width: 100%;
  border-radius: 12px;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

footer {
  background: var(--gray);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #005bb5;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  nav ul {
    gap: 10px;
  }
}
