:root {
  --space-xxs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #1E293B;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2563EB;
  color: white;
  padding: var(--space-xs);
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

.hero-background {
  background: url('assets/optimized/background.webp') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  position: relative;
}

.overlay {
  background-color: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-sm);
  box-sizing: border-box;
  gap: var(--space-sm);
}



.title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xxs);
  color: #1E293B;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.1rem;
  color: #1E293B;
  margin-bottom: var(--space-xs);
  max-width: 600px;
  font-weight: 700;
}

.sub-tagline {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: var(--space-sm);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.5;
}

.cta-section {
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.cta-button {
  display: inline-block;
  background: #2563EB;
  color: white;
  padding: 0.75rem var(--space-md);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  border: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }
  
  .cta-button:hover,
  .cta-button:focus {
    transform: none;
  }
  
  .card {
    transition: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .icon {
    transition: none;
  }
  
  .card:hover .icon {
    transform: none;
  }
  
  .glide__bullet {
    transition: none;
  }
  
  .glide__bullet:hover,
  .glide__bullet:focus {
    transform: none;
  }
  
  [data-glide-el="controls"] button {
    transition: none;
  }
  
  .contact-link {
    transition: none;
  }
  
  .chat-link::before {
    content: "Chat: ";
  }
  
  .skip-link {
    transition: none;
  }
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: #1D4ED8;
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

.glide {
  max-width: 380px;
  width: 100%;
  margin-bottom: var(--space-md);
  overflow: visible;
  position: relative;
}

/* Removed gradient overlays to reduce visual noise */

.glide__slides {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.glide__slide {
  display: flex;
  justify-content: center;
  padding: var(--space-sm);
  transition: all 0.4s ease;
}

.glide__slide {
  opacity: 1;
}

.glide__slide .card {
  opacity: 1;
}

.card {
  background: white;
  border-radius: 12px;
  padding: var(--space-sm);
  width: 240px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.card:hover .icon {
  opacity: 1;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: #1E293B;
}

.card p {
  color: #64748B;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  font-size: 0.85rem;
}

.card a {
  display: inline-block;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card a:hover,
.card a:focus {
  background: #2563EB;
  color: white;
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

[data-glide-el="controls"] {
  margin-top: var(--space-sm);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

[data-glide-el="controls"] button {
  font-size: 1.2rem;
  background: rgba(37, 99, 235, 0.1);
  border: 2px solid #2563EB;
  color: #2563EB;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-glide-el="controls"] button:hover,
[data-glide-el="controls"] button:focus {
  background: #2563EB;
  color: white;
  outline: 3px solid #2563EB;
  outline-offset: 2px;
}

.glide__bullets {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: var(--space-xs) 0;
  position: relative;
  z-index: 10;
}

.glide__bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.glide__bullet--active {
  background: #2563EB;
  border-color: #2563EB;
  transform: scale(1.3);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.glide__bullet:hover,
.glide__bullet:focus {
  background: rgba(37, 99, 235, 0.2);
  border-color: #2563EB;
  transform: scale(1.2);
  outline: none;
}

.glide__bullet:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.contact-section {
  max-width: 500px;
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.contact-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: #1E293B;
}

.contact-section p {
  color: #64748B;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
  font-size: 0.85rem;
}

.contact-info {
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563EB;
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  font-size: 0.875rem;
  text-align: center;
  min-height: 44px;
}

.contact-link:hover,
.contact-link:focus {
  background: #1D4ED8;
  outline: 3px solid #2563EB;
  outline-offset: 2px;
}

.linkedin-link {
  background: #0077b5;
  gap: var(--space-xxs);
}

.linkedin-link:hover,
.linkedin-link:focus {
  background: #005885;
  outline: 3px solid #0077b5;
  outline-offset: 2px;
}

.schedule-link {
  background: #2563EB;
}

.schedule-link:hover,
.schedule-link:focus {
  background: #1D4ED8;
  outline: 3px solid #2563EB;
  outline-offset: 2px;
}

.email-link {
  background: #38b2ac;
}

.email-link:hover,
.email-link:focus {
  background: #319795;
  outline: 3px solid #38b2ac;
  outline-offset: 2px;
}

.linkedin-icon {
  flex-shrink: 0;
}

.chat-link {
  background: #48bb78;
}

.chat-link:hover,
.chat-link:focus {
  background: #38a169;
  outline: 3px solid #48bb78;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
  }
  
  .sub-tagline {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
  }
  
  .cta-section {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .cta-button {
    padding: 0.75rem var(--space-md);
    font-size: 0.95rem;
    min-height: 44px;
  }
  
  .card {
    width: 280px;
    padding: var(--space-md);
  }
  
  .icon {
    width: 70px;
    height: 70px;
  }
  
  .contact-section {
    padding: var(--space-md);
    margin-top: var(--space-xs);
  }
  
  .glide {
    max-width: 400px;
    margin-bottom: var(--space-md);
  }
  
  /* Removed gradient overlays */
  
  .glide__bullets {
    margin-top: var(--space-sm);
  }
  
  .glide__bullet {
    width: var(--space-xs);
    height: var(--space-xs);
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-link {
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .overlay {
    padding: var(--space-sm);
    justify-content: flex-start;
  }
  
  .title {
    font-size: 2rem;
    margin-top: var(--space-sm);
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
  }
  
  .sub-tagline {
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
  }
  
  .cta-section {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .cta-button {
    padding: 0.75rem var(--space-md);
    font-size: 0.875rem;
    min-height: 44px;
  }
  
  .card {
    width: 260px;
    padding: var(--space-sm);
  }
  
  .icon {
    width: 60px;
    height: 60px;
  }
  
  .glide__slide {
    padding: var(--space-xs);
  }
  
  .glide {
    max-width: 300px;
    margin-bottom: var(--space-sm);
  }
  
  /* Removed gradient overlays */
  
  .glide__bullets {
    margin-top: var(--space-xs);
  }
  
  .glide__bullet {
    width: 6px;
    height: 6px;
  }
  
  .contact-section {
    padding: var(--space-sm);
    margin-top: var(--space-xs);
  }
  
  .contact-info {
    gap: var(--space-xs);
  }
  
  .contact-link {
    width: 180px;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    min-height: 44px;
  }
}

/* Desktop Typography (1024px+) */
@media (min-width: 1024px) {
  .title {
    font-size: 3rem; /* 48px */
  }
  
  .tagline {
    font-size: 1.5rem; /* 24px */
  }
  
  .sub-tagline {
    font-size: 1rem; /* 16px */
  }
  
  .contact-section h2 {
    font-size: 2.25rem; /* 36px */
  }
  
  .card h3 {
    font-size: 1.875rem; /* 30px */
  }
  
  .card p {
    font-size: 1rem; /* 16px */
  }
  
  .contact-section p {
    font-size: 1rem; /* 16px */
  }
  
  body, html {
    font-size: 1.125rem; /* 18px */
  }
}

