/* Performance optimized CSS - font imports handled in HTML for better loading */

/* Font-display optimization for external fonts */
@font-face {
  font-family: 'Inter';
  font-display: swap;
  font-feature-settings: normal;
  font-optical-sizing: auto;
}

/* Exact CSS Variables from Replit */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(20, 14.3%, 4.1%);
  --muted: hsl(60, 4.8%, 95.9%);
  --muted-foreground: hsl(25, 5.3%, 44.7%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(20, 14.3%, 4.1%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(20, 14.3%, 4.1%);
  --border: hsl(20, 5.9%, 90%);
  --input: hsl(20, 5.9%, 90%);
  --primary: hsl(207, 90%, 54%);
  --primary-foreground: hsl(211, 100%, 99%);
  --secondary: hsl(60, 4.8%, 95.9%);
  --secondary-foreground: hsl(24, 9.8%, 10%);
  --accent: hsl(60, 4.8%, 95.9%);
  --accent-foreground: hsl(24, 9.8%, 10%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(60, 9.1%, 97.8%);
  --ring: hsl(20, 14.3%, 4.1%);
  --radius: 0.5rem;
  --brand-gray: hsl(213, 12%, 25%);
  --logo-gray: hsl(0, 0%, 45%);
  --light-gray: hsl(0, 0%, 97%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Century Gothic', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility classes */
.brand-gray {
  color: var(--brand-gray);
}

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

.logo-gray {
  color: var(--logo-gray);
}

.logo-gray-bg {
  background-color: var(--logo-gray);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
  transition: all 0.2s;
}

.navbar.scrolled {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 4rem;
}

.nav-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 2rem;
  width: auto;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-menu.desktop {
    display: flex;
  }
}

.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-link:hover {
  color: #111827;
}

.nav-right {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-right.desktop {
    display: flex;
  }
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid #e5e7eb;
}

.social-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.social-link.linkedin:hover {
  color: #0e76a8;
}

.social-link.xing:hover {
  color: #026466;
}

.nav-cta {
  background-color: var(--logo-gray);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hamburger {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger:hover {
  color: #111827;
  background-color: #f3f4f6;
}

.mobile-menu {
  display: none;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  color: #6b7280;
  padding: 0.5rem 0;
  transition: color 0.2s;
  border: none;
  background: none;
  font-size: inherit;
  cursor: pointer;
}

.mobile-menu-link:hover {
  color: #111827;
}

.mobile-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.mobile-cta {
  width: 100%;
  background-color: var(--logo-gray);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mobile-cta:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  background-color: var(--light-gray);
  padding: 5rem 1rem;
  padding-top: 6rem;
}

.hero-container {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--brand-gray);
  margin-bottom: 2rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-image {
  order: -1;
}

@media (min-width: 1024px) {
  .hero-image {
    order: 1;
  }
}

.profile-img {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: block;
  /* Prevent layout shift during loading */
  background-color: #f3f4f6;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--logo-gray);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 2px solid var(--logo-gray);
  color: #374151;
  background: transparent;
}

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

/* Container */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Title */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #111827;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* Services Section */
.services {
  padding: 6.25rem 1rem;
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1), 0 4px 6px 0 rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--logo-gray);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.service-card p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.service-card li i {
  color: #10b981;
  margin-right: 0.75rem;
}

.working-approach {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.working-approach h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

@media (min-width: 768px) {
  .working-approach h4 {
    font-size: 1.875rem;
  }
}

.working-approach p {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.75;
}

/* About Section */
.about {
  padding: 5rem 1rem;
  background: white;
}

.about-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}



/* Legal Pages */
.legal-page {
  padding: 6rem 1rem 5rem;
  background: white;
}

.legal-content {
  max-width: 64rem;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111827;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.legal-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #374151;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  text-decoration: none;
}

.back-link {
  margin-top: 3rem;
  text-align: center;
}

/* Contact Section */
.contact {
  padding: 5rem 1rem;
  background: white;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 4rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item i {
  color: #9ca3af;
}

.contact-item span {
  color: #374151;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #f3f4f6;
  color: #6b7280;
  border-radius: 0.5rem;
  margin-right: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--logo-gray);
  color: white;
}

/* Contact Form */
.contact-form {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #111827;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0;
}

.checkbox-group a {
  color: #000;
  text-decoration: underline;
}

.checkbox-group a:hover {
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 3rem 1rem 2rem;
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.footer-bottom p {
  color: #d1d5db;
  font-size: 0.875rem;
}