/* Design System Variables */
:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
}

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

html {
  font-size: var(--font-size);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

p {
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
}

/* Layout */
.page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--background) 0%, var(--background) 50%, var(--muted) 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

/* Background Icons */
.background-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--muted-foreground);
  opacity: 0.4;
}

/* Header */
.header {
  border-bottom: 1px solid rgba(var(--border), 0.5);
  background-color: rgba(var(--background), 0.8);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 20;
  padding: 2rem 0;
}

.main-title {
  letter-spacing: -0.025em;
  color: var(--foreground);
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--muted-foreground);
  opacity: 0;
}

/* Main Content */
.main-content {
  flex: 1;
  position: relative;
  z-index: 20;
  padding: 4rem 0;
}

.content-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-accent {
  width: 4px;
  height: 2rem;
  background: linear-gradient(180deg, var(--primary) 0%, var(--muted-foreground) 100%);
  border-radius: 9999px;
}

.section-title {
  color: var(--foreground);
}

.content-card {
  background-color: rgba(var(--card), 0.5);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid rgba(var(--border), 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted-foreground);
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@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-color: rgba(var(--card), 0.5);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(var(--border), 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(var(--border), 0.5);
}

.service-card-full {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .service-card-full {
    grid-column: span 3;
  }
}

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

.service-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, rgba(var(--primary), 0.1) 0%, rgba(var(--primary), 0.05) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.service-title {
  color: var(--foreground);
}

.service-description {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(var(--border), 0.5);
  background-color: rgba(var(--background), 0.8);
  backdrop-filter: blur(8px);
  margin-top: auto;
  position: relative;
  z-index: 20;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateX(-100px) translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateX(calc(25vw)) translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateX(calc(50vw)) translateY(10px) rotate(180deg);
  }
  75% {
    transform: translateX(calc(75vw)) translateY(-10px) rotate(270deg);
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(0px) rotate(360deg);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-600 {
  animation-delay: 600ms;
}

.animate-delay-800 {
  animation-delay: 800ms;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1rem;
  }
}