/* ============================================
   Expertise Solutions — Main Stylesheet
   ============================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1e3a5f;
  --primary-light: #eff6ff;
  --dark: #111827;
  --medium: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --accent: #10b981;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.3;
  margin-bottom: 0;
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin-bottom: 0; }

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

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--medium);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f2847 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

/* ============================================
   Client Logos
   ============================================ */
.logos {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.logos-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logos-grid img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.logos-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--light);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

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

/* ============================================
   Portfolio
   ============================================ */
.portfolio {
  padding: 100px 0;
  background: var(--white);
}

.portfolio-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.portfolio-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: 24px;
}

.portfolio-card-image img {
  max-width: 70%;
  max-height: 100px;
  object-fit: contain;
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark);
}

.portfolio-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.portfolio-tag {
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.portfolio-card-body .description {
  color: var(--medium);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.portfolio-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 4px 8px;
  background: var(--dark);
  color: var(--white);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--light);
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  color: var(--dark);
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 24px;
  position: relative;
  padding-top: 8px;
}

.testimonial-quote::before {
  content: "\201C";
  font-size: 48px;
  color: var(--primary);
  line-height: 1;
  position: absolute;
  top: -12px;
  left: 0;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.testimonial-author-role {
  font-size: 13px;
  color: var(--medium);
  font-style: italic;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--medium);
  font-size: 16px;
  margin-bottom: 16px;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.2s, transform 0.2s;
}

.about-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--primary-dark);
  color: var(--white);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}

.contact-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  margin-bottom: 24px;
  font-size: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-privacy {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  font-size: 14px;
}

.contact-privacy:hover {
  color: var(--white);
}

.contact-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.contact-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.contact-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-submit:hover {
  background: #1447b8;
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 0;
  background: #0f1f33;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .section { padding: 72px 0; }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .hero {
    padding: 120px 0 72px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .logos-grid {
    gap: 24px;
  }

  .logos-grid img {
    height: 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
