/* Modern Windows-Inspired Dashboard */

:root {
  /* Light theme */
  --bg-desktop: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-window: #ffffff;
  --bg-card: #f8f9fa;
  --bg-card-hover: #e9ecef;
  --bg-button: #0078d4;
  --bg-button-hover: #106ebe;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-inverse: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-desktop: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-window: #1e1e1e;
    --bg-card: #2d2d30;
    --bg-card-hover: #3e3e42;
    --bg-button: #0086d4;
    --bg-button-hover: #1a9df8;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-inverse: #ffffff;
    --border-color: #3e3e42;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  background: var(--bg-desktop);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  color: var(--text-primary);
  line-height: 1.6;
}

.window {
  background: var(--bg-window);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.title-bar {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  padding: 18px 24px;
  font-weight: 600;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.title-bar .title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: var(--text-inverse);
  font-weight: bold;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.close-btn:active {
  transform: scale(0.95);
}

.window-body {
  padding: 40px;
}

.clippy-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease 0.1s both;
}

.clippy {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.speech-bubble {
  background: var(--bg-window);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 18px;
  color: var(--text-primary);
  position: relative;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.speech-bubble p {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeIn 0.5s ease both;
  display: flex;
  align-items: center;
  gap: 20px;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.3s; }

.card:hover {
  background: var(--bg-card-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--bg-button);
}

.card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 8px;
  background: var(--bg-window);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--bg-button);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  
  .window {
    border-radius: 12px;
  }
  
  .title-bar {
    padding: 14px 18px;
    font-size: 18px;
  }
  
  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .window-body {
    padding: 24px;
  }
  
  .clippy-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }
  
  .clippy {
    width: 100px;
  }
  
  .speech-bubble {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .card:hover {
    transform: translateY(-4px);
  }
  
  .card-icon {
    width: 64px;
    height: 64px;
  }
  
  .card-content {
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .window-body {
    padding: 20px;
  }
  
  .clippy-box {
    padding: 16px;
  }
  
  .clippy {
    width: 80px;
  }
  
  .speech-bubble {
    font-size: 15px;
    padding: 14px 18px;
  }
  
  .card {
    padding: 16px;
  }
  
  .card h3 {
    font-size: 20px;
  }
  
  .card p {
    font-size: 15px;
  }
  
  .btn {
    padding: 11px 24px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn:focus-visible,
.close-btn:focus-visible,
.card:focus-visible {
  outline: 3px solid var(--bg-button);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .window,
  .card,
  .btn {
    border-width: 2px;
  }
}
