/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4A90E2;
  --primary-dark: #357ABD;
  --secondary: #F5F7FA;
  --text-primary: #1a1a1a;
  --text-secondary: #6B7280;
  --white: #ffffff;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--white) 100%);
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 2.75rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-cta .btn {
  min-width: 220px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-proof h2 {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.client-logo {
  width: 140px;
  height: 60px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 5rem 0;
  background: var(--white);
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.step p {
  font-size: 0.95rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ===== Case Study ===== */
.case-study {
  padding: 5rem 0;
  background: var(--secondary);
}

.case-study-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.case-study h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.case-study p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 0.75rem;
}

.final-cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== Services Page ===== */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--secondary);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.services-intro {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.services-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.services-list {
  padding: 2rem 0 5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h4 {
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 0.75rem;
}

.service-card .btn {
  margin-top: 1.5rem;
}

/* ===== About Page ===== */
.about-content {
  padding: 3rem 0 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-values {
  background: var(--secondary);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.about-values p {
  margin-bottom: 0.5rem;
}

.about-values p:last-child {
  margin-bottom: 0;
}

/* ===== Contact Page ===== */
.contact-content {
  padding: 3rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-email {
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-email a {
  color: var(--primary);
  font-weight: 500;
}

.contact-form {
  background: var(--secondary);
  padding: 2.5rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 600;
}

.footer-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

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

/* ===== Newsletter Popup ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.popup-overlay.active {
  display: flex;
}

.popup {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.popup-close:hover {
  background: var(--secondary);
  color: var(--text-primary);
}

.popup h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.popup p {
  margin-bottom: 1.5rem;
}

.popup .form-group {
  margin-bottom: 1rem;
}

.popup .btn {
  width: 100%;
  margin-bottom: 1rem;
}

.popup-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero {
    padding: 7rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .client-logos {
    gap: 1.5rem;
  }
  
  .case-study-content {
    padding: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
