:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;

  /* Custom colors */
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --purple-500: #8b5cf6;
  --green-500: #10b981;
  --amber-500: #f59e0b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --radius: 0.5rem;
  --header-height: 60px;
  --footer-height: 60px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(to right bottom, #0f172a, #1e293b);
  color: hsl(210, 40%, 98%);
  line-height: 1.6;
  position: relative;
  padding-bottom: var(--footer-height);
  overflow-x: hidden;
}

/* Canvas background */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  object-fit: contain;
}

.app-title {
  font-size: 1.15rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--cyan-500), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.header-button:hover, .header-button:focus {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-button:active {
  transform: scale(0.97);
}

/* Main container */
.container {
  width: 100%;
  max-width: 1280px;
  padding: 0 16px;
  margin: 0 auto;
}

.main-content {
  padding: 24px 0;
}

/* Cards */
.card {
  background-color: rgba(30, 41, 59, 0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(6, 182, 212, 0.2);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-content {
  padding: 20px;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Items */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 250px;
  margin: 0 auto;
}

.service-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item:active {
  transform: scale(0.98);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

.service-content {
  text-align: center;
}

.service-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-content p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Project List */
.project-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.project-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:last-child {
  border-bottom: none;
}

.project-link {
  display: flex;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  color: white;
  transition: background-color 0.2s, transform 0.2s;
}

.project-link:hover, .project-link:focus {
  background-color: rgba(255, 255, 255, 0.05);
}

.project-link:active {
  transform: translateX(4px);
}

.project-link::before {
  content: '•';
  color: var(--cyan-500);
  font-size: 24px;
  margin-right: 12px;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--footer-height);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: white;
  text-decoration: none;
  font-size: 12px;
  transition: background-color 0.2s;
}

.footer-link:hover, .footer-link:focus {
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-link:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: rgba(6, 182, 212, 0.2);
  color: var(--cyan-500);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-secondary {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--purple-500);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--slate-800);
  margin: 15% auto;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

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

.modal-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: white;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-input {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.warning-text {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: var(--cyan-500);
  color: white;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.btn:hover, .btn:focus {
  background-color: #0891b2;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-pulse {
  animation: pulse 3s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Loading animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
}

.spinner-ring-1 {
  inset: 0;
  border: 4px solid rgba(6, 182, 212, 0.3);
  animation: spinner-rotate 2s linear infinite;
}

.spinner-ring-2 {
  inset: 8px;
  border: 4px solid transparent;
  border-top-color: var(--cyan-500);
  animation: spinner-rotate 1.5s linear infinite;
}

.spinner-ring-3 {
  inset: 16px;
  border: 4px solid transparent;
  border-right-color: var(--purple-500);
  animation: spinner-rotate 1.2s linear infinite reverse;
}

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utilities */
.text-gradient {
  background: linear-gradient(to right, var(--cyan-500), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

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