:root {
  /* Light Theme */
  --primary: #38C5CD;
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --card-bg: #f9f9f9;
  --card-border: #eeeeee;
  --header-bg: rgba(255, 255, 255, 0.7);
  --btn-primary-bg: #1a1a1a;
  --btn-primary-text: #ffffff;
  --btn-secondary-border: #dddddd;

  --container-width: 1100px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --card-bg: #141414;
  --card-border: #222222;
  --header-bg: rgba(10, 10, 10, 0.7);
  --btn-primary-bg: #f5f5f5;
  --btn-primary-text: #0a0a0a;
  --btn-secondary-border: #333333;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* Floating Pill Header */
header {
  position: fixed;
  top: 2rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.pill-nav {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  min-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

#theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#theme-toggle:hover {
  background: var(--card-border);
}

.sun { display: none; }
.moon { display: block; }

[data-theme="dark"] .sun { display: block; }
[data-theme="dark"] .moon { display: none; }

/* Hero */
.hero {
  padding: 240px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.hero .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn.primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
  border: 1px solid var(--btn-secondary-border);
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--card-bg);
}

/* Sections */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-card {
  text-align: center;
}

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

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

/* Services Wrapper */
.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  transition: var(--transition);
}

.service-item:hover {
  padding-left: 1.5rem;
}

.service-item .number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
}

.service-item h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Contact Card */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 6rem 3rem;
  border-radius: 40px;
  text-align: center;
}

.contact-card h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.email-link {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.email-link:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  padding: 60px 0;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .service-item h3 { font-size: 1.6rem; }
  .service-item { grid-template-columns: 60px 1fr; }
  .contact-card h2 { font-size: 2.5rem; }
  .email-link { font-size: 1.6rem; }
  .pill-nav { min-width: 90%; }
}
