/* ===================================
   CSS Custom Properties (Design Tokens)
   =================================== */

:root {
  /* Primary Colors - Deep Navy */
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-primary-dark: #020617;

  /* Accent Colors - Gold/Bronze */
  --color-accent: #d4af37;
  --color-accent-light: #f3cf55;
  --color-accent-dark: #aa8c2c;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-600: #475569;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Font Families */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Breakpoints (for reference in media queries) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* ===================================
   Reset and Base Styles
   =================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Account for fixed nav when scrolling to anchors */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px;
  /* Account for fixed navigation */
  overflow-x: hidden;
}

/* Fade-in animation for sections on page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--section-index, 0) * 0.1s);
}

/* ===================================
   Typography
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
}

h3 {
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===================================
   Layout Utilities
   =================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section {
  padding: var(--space-20) 0;
}

/* Image optimization */
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth image loading */


/* ===================================
   Accessibility
   =================================== */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* Focus visible styles for all interactive elements */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure buttons have visible focus states */
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Ensure links have visible focus states */
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure form inputs have visible focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

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

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===================================
   Navigation
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-gray-800);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--color-accent);
  background-color: var(--color-gray-50);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-link.active {
  color: var(--color-accent);
  background-color: var(--color-gray-100);
}

.nav-link.active::after {
  width: 80%;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-20) var(--space-6);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: var(--space-4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    text-align: left;
  }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .nav-container {
    padding: var(--space-4) var(--space-8);
  }
}

/* ===================================
   Hero Section
   =================================== */

/* ===================================
   Hero Section
   =================================== */

.hero {
  background-color: var(--color-gray-50);
  background-image:
    radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.05) 0px, transparent 50%);
  padding: var(--space-20) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 800px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-weight: 800;
  line-height: 1.1;
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, var(--text-xl));
  color: var(--color-gray-600);
  max-width: 600px;
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  font-weight: 400;
}

.hero-experience {
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.cta-button {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-12);
  margin-top: var(--space-4);
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background-color: var(--color-primary-light);
}

.hero-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.hero-image-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  position: relative;
  z-index: 1;
  display: block;
  opacity: 1;
}

/* Decorative elements behind image */
.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  z-index: 0;
  opacity: 0.3;
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-16);
  }

  .hero-headline {
    font-size: var(--text-5xl);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .hero-headline {
    font-size: var(--text-6xl);
  }
}

/* ===================================
   Services Section
   =================================== */

.services {
  background-color: var(--color-white);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
  color: var(--color-primary);
  position: relative;
  padding-bottom: var(--space-6);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:focus-within {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-color: var(--color-accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

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

.service-title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-weight: 700;
  font-family: var(--font-heading);
}

.service-description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  border-top: 1px solid var(--color-gray-100);
  padding-top: var(--space-4);
}

.service-list li {
  padding: var(--space-2) 0;
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  position: relative;
  padding-left: var(--space-6);
  display: flex;
  align-items: center;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Tablet (768px and up) - 2 columns */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* Desktop (1024px and up) - 4 columns */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

/* ===================================
   Experience Section
   =================================== */

/* ===================================
   Experience Section
   =================================== */

.experience {
  background-color: var(--color-gray-50);
  position: relative;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Credential Highlight */
.experience-credential {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  color: var(--color-white);
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.experience-credential::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.credential-text {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.credential-subtitle {
  font-size: clamp(1.125rem, 2vw, var(--text-2xl));
  color: var(--color-gray-300);
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Company Highlights */
.experience-companies {
  margin-top: var(--space-8);
}

.experience-subtitle {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-12);
  font-weight: 700;
  font-family: var(--font-heading);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.experience-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  opacity: 0.5;
}

.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.company-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.company-logo-placeholder {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-50);
  border-radius: var(--radius-full);
  padding: var(--space-3);
}

.company-logo-placeholder svg {
  width: 100%;
  height: 100%;
}

.company-name {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-weight: 700;
  font-family: var(--font-heading);
}

.company-role {
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.company-description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* Skills and Differentiators */
.experience-skills {
  margin-top: var(--space-16);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-6);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.skill-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
  line-height: 1;
  background-color: var(--color-gray-50);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.skill-content {
  flex: 1;
}

.skill-title {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.skill-description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .companies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.testimonials-container {
  width: 100%;
}

/* Mobile: Horizontal scroll */
.testimonials-grid {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-light) var(--color-gray-200);
}

.testimonials-grid::-webkit-scrollbar {
  height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
  background: var(--color-gray-200);
  border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
  background: var(--color-accent-light);
  border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:focus-within {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-color: var(--color-accent);
}

.testimonial-quote-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-light);
  opacity: 0.5;
  flex-shrink: 0;
}

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

.testimonial-quote {
  flex: 1;
  margin: 0;
}

.testimonial-quote p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-800);
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-attribution {
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-author {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0;
}

.testimonial-title {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  font-weight: 500;
  margin-bottom: 0;
}

.testimonial-company {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0;
}

/* Tablet (768px and up) - 2 columns grid */
@media (min-width: 768px) {
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    gap: var(--space-8);
  }

  .testimonial-card {
    flex: none;
  }

  .testimonial-quote p {
    font-size: var(--text-lg);
  }
}

/* Desktop (1024px and up) - 3 columns grid */
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-card {
    padding: var(--space-8);
  }

  .testimonial-quote-icon {
    width: 48px;
    height: 48px;
  }
}

/* ===================================
   About Section
   =================================== */

/* ===================================
   About Section
   =================================== */

.about {
  background-color: var(--color-white);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

/* About Narrative */
.about-narrative {
  max-width: 800px;
  margin: 0 auto;
}

.about-intro {
  font-size: var(--text-2xl);
  line-height: var(--leading-relaxed);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-8);
  font-family: var(--font-heading);
}

.about-text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
}

.about-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.about-text em {
  color: var(--color-accent-dark);
  font-style: italic;
  font-family: var(--font-heading);
}

.about-closing {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-200);
  font-family: var(--font-heading);
}

/* About Highlights */
.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.about-highlight-card {
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
  background-color: var(--color-white);
}

.highlight-title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.highlight-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.highlight-list li {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-6);
  position: relative;
}

.highlight-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: var(--text-lg);
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .about-content {
    gap: var(--space-24);
  }
}

/* ===================================
   Book Section
   =================================== */

.book {
  background-color: var(--color-primary);
  padding: var(--space-24) 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Decorative background pattern */
.book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.book-callout {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.book-icon {
  width: 80px;
  height: 80px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-4);
}

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

.book-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.book-title {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  color: var(--color-white);
  margin-bottom: 0;
  font-weight: 700;
  font-family: var(--font-heading);
}

.book-description {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-300);
  margin-bottom: 0;
  max-width: 600px;
}

.book-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: var(--space-4);
}

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

.book-link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.book-link-icon {
  font-size: var(--text-xl);
  transition: transform 0.3s ease;
}

.book-link:hover .book-link-icon {
  transform: translateX(4px);
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .book-callout {
    flex-direction: row;
    text-align: left;
    gap: var(--space-12);
  }

  .book-content {
    align-items: flex-start;
  }

  .book-icon {
    width: 120px;
    height: 120px;
  }
}

/* ===================================
   Contact Section
   =================================== */

/* ===================================
   Contact Section
   =================================== */

.contact {
  background-color: var(--color-gray-50);
  position: relative;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.contact-intro {
  text-align: center;
}

.contact-description {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-social {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background-color: #0077b5;
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.linkedin-link:hover {
  background-color: #006399;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.linkedin-link:focus-visible {
  outline: 2px solid #0077b5;
  outline-offset: 2px;
}

.linkedin-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-gray-900);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:hover {
  border-color: var(--color-gray-300);
  background-color: var(--color-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-input.error {
  border-color: var(--color-error);
  background-color: #fef2f2;
}

.form-input.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: var(--leading-relaxed);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
  display: none;
  margin-top: var(--space-1);
}

.form-error.visible {
  display: block;
}

.form-submit {
  position: relative;
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-4);
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.form-submit:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-submit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-text {
  display: inline-block;
}

.submit-loading {
  display: none;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
}

.form-submit.loading .submit-text {
  display: none;
}

.form-submit.loading .submit-loading {
  display: flex;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.form-message {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  display: none;
  margin-top: var(--space-4);
  text-align: center;
}

.form-message.visible {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.form-success {
  background-color: #f0fdf4;
  border: 1px solid var(--color-success);
  color: #15803d;
}

.form-error-message {
  background-color: #fef2f2;
  border: 1px solid var(--color-error);
  color: #b91c1c;
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .contact-form {
    padding: var(--space-12);
  }

  .form-submit {
    width: auto;
    min-width: 240px;
    align-self: center;
  }
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-100);
  padding: var(--space-12) 0;
  margin-top: var(--space-24);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gray-100);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: var(--text-base);
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: var(--color-accent-light);
  background-color: rgba(255, 255, 255, 0.05);
  outline: none;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-social-icon {
  width: 20px;
  height: 20px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-copyright,
.footer-location {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-gray-200);
}

.footer-location {
  color: var(--color-gray-600);
  font-size: var(--text-xs);
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-info {
    align-items: flex-end;
    text-align: right;
  }
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile optimizations */
@media (max-width: 767px) {
  section {
    padding: var(--space-16) 0;
  }

  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-8);
  }

  .service-card,
  .company-card,
  .testimonial-card {
    padding: var(--space-6);
  }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }

  h1 {
    font-size: var(--text-5xl);
  }

  section {
    padding: var(--space-24) 0;
  }

  /* Improved spacing for tablet */
  .services-grid,
  .companies-grid {
    gap: var(--space-8);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }

  /* Enhanced spacing for desktop */
  section {
    padding: clamp(var(--space-20), 8vw, var(--space-24)) 0;
  }

  .section-title {
    margin-bottom: var(--space-16);
  }
}

/* Large desktop (1280px and up) */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn::before,
  .service-card::before,
  .nav-link::after,
  .skill-item::before,
  .about-highlight-card::before {
    display: none;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    padding-top: 0;
  }

  .nav,
  .skip-link,
  .nav-toggle,
  .footer {
    display: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  section {
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .container {
    max-width: 100%;
  }
}