:root {
  --primary-color: #007aff;
  --bg-color: #f5f5f7;
  --card-bg: #ffffff;
  --text-color: #1c1c1e;
  --light-text: #6e6e73;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-color: #1c1c1e;
  --card-bg: #2c2c2e;
  --text-color: #f5f5f7;
  --light-text: #aeaeb2;
  --border-color: #3a3a3c;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --header-bg: rgba(28, 28, 30, 0.8);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

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

/* Header & Nav */
header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

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

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--border-color);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px var(--shadow-color);
}

/* Buttons */
.cta-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Services Grid */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--light-text);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-color);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--light-text);
}

/* Highlight Section */
.highlight-section {
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  margin-bottom: 6rem;
}

.highlight-section h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.highlight-section p {
  font-size: 1.125rem;
  color: var(--light-text);
  max-width: 800px;
  margin: 0 auto;
}

/* Images */
img {
  border-radius: 16px;
  transition: var(--transition);
}

/* Footer */
footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--light-text);
  font-size: 0.95rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 0;
  }
  .hero-text h1 {
    font-size: 2.75rem;
  }
  .hero-text p {
    margin: 0 auto 2.5rem;
  }
  .cta-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    display: none; /* In a real scenario, we'd add a hamburger menu */
  }
  .hero-text h1 {
    font-size: 2.25rem;
  }
  .cta-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .highlight-section {
    padding: 2rem;
  }
}
