:root {
  /* Ultra-Professional Light Theme */
  --bg-page: #f8fafc; /* Very light slate */
  --bg-surface: #ffffff; /* Crisp white */
  --bg-header: rgba(255, 255, 255, 0.98);
  
  --primary: #5c2d91; /* Professional Purple (Microsoft/Teams) */
  --secondary: #0078d4; /* Microsoft Azure Blue */
  
  --primary-hover: #4a2475;
  --text-main: #111827;
  --text-muted: #4b5563;
  
  --border-light: #e5e7eb;
  
  /* Sophisticated Soft Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  
  /* Layout & Spacing */
  --header-height: 60px;
  --container-width: 1140px;
  
  /* Dark Mode specific for Hero/Header */
  --bg-dark: #0f172a;
  --bg-header-dark: rgba(15, 23, 42, 0.95);
  --text-dark-mode: #f8fafc;
  --text-dark-mode-muted: #94a3b8;
  --border-dark: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 4px; /* Professional sharp corners */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

/* Header with subtle Microsoft Gradient Top Bar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all 0.2s ease;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* Subtle Microsoft color gradient bar */
  background: linear-gradient(to right, #f25022, #7fba00, #0078d4, #ffb900);
}

.header.scrolled {
  background-color: var(--bg-header-dark);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  margin-top: 3px; /* account for top bar */
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.header .logo-text {
  color: var(--text-dark-mode);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark-mode-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-dark-mode);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 3px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark-mode);
  transition: 0.2s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  max-width: 650px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-dark-mode);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dark-mode-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero .btn-secondary {
  color: var(--text-dark-mode);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

.service-img-wrapper {
  height: 160px;
  overflow: hidden;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.service-content {
  padding: 2rem;
}

/* Unified Professional Icons */
.service-icon-wrapper {
  margin-bottom: 1.25rem;
  display: flex;
  color: var(--secondary);
  background: rgba(0, 120, 212, 0.08);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About Section */
.about {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Unified Checkmarks */
.check-icon-wrapper {
  margin-top: 0.2rem;
  flex-shrink: 0;
  color: var(--secondary);
}

.about-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.about-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--bg-page);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.stat-card:nth-child(3) {
  grid-column: span 2;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact CTA Section */
.contact {
  background-color: var(--bg-dark);
}

.cta-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark-mode);
}

.cta-content p {
  color: var(--text-dark-mode-muted);
  font-size: 1.05rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: var(--text-dark-mode);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

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

.footer-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

/* Animations */
.animate-on-load {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .about-container, .cta-box { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .hero-bg { width: 100%; opacity: 0.05; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav.active { left: 0; }
  .nav-list { flex-direction: column; text-align: center; font-size: 1.25rem; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .section { padding: 4rem 0; }
  .cta-box { padding: 2.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}
