:root {
  /* Modern Professional Palette */
  --color-primary: #3B82F6; /* Modern Blue */
  --color-primary-dark: #2563EB;
  --color-secondary: #0F172A; /* Slate Dark */
  --color-bg: #F8FAFC; /* Slate Light Background */
  --color-bg-alt: #F1F5F9; /* Slate Light Alt */
  --color-text: #1E293B; /* Slate Dark Text */
  --color-text-light: #475569;
  --color-white: #FFFFFF;
  --color-border: #EFEBE5;
  
  --font-main: 'Inter', sans-serif;
  
  --shadow-sm: 0 4px 6px rgba(93, 64, 55, 0.05);
  --shadow-md: 0 10px 15px rgba(93, 64, 55, 0.08);
  --shadow-lg: 0 20px 25px rgba(93, 64, 55, 0.1);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

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

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

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.nav-links a {
  margin: 0 1rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

.services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

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

.card-title {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.card-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

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

.features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.features-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: '✓';
  color: var(--color-primary);
  margin-right: 0.5rem;
  font-weight: bold;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-content {
  padding: 2rem;
}

.testimonial-card {
  background: var(--color-bg-alt);
  border: none;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-info {
  list-style: none;
}

.footer-info li {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* Checkout Layout */
.checkout-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  max-width: 1000px;
  margin: 4rem auto;
}

.summary-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.payment-section {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .checkout-wrapper { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}

/* Testimonials Scrolling */
.scrolling-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

/* Gradient fade on edges for smooth entry/exit */
.scrolling-wrapper::before,
.scrolling-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scrolling-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.scrolling-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.scrolling-content {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.scrolling-content:hover {
  animation-play-state: paused;
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 350px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.review-card .stars {
  color: #f1c40f;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-card .review-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.review-card .reviewer {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.9rem;
}

@keyframes scroll {
  0% {
      transform: translateX(0);
  }
  100% {
      /* Shift by exactly half since we duplicated the 5 cards */
      transform: translateX(calc(-50% - 1rem));
  }
}
