/* c:\dev\web\ai-lab\styles.css */

:root {
  --bg-color: #080c18;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(56, 189, 248, 0.15);
  
  --color-primary: #38bdf8;
  --color-secondary: #a855f7;
  --color-accent: #06d6a0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Effects */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(6, 214, 160, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
}

/* Back Link */
.back-link {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.05);
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  color: #fff;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease-out;
}

.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.site-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Section */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover::before {
  opacity: 1;
}

.project-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.project-card__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.project-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.project-card__cta {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}

.project-card:hover .project-card__cta {
  gap: 12px;
}

/* Future/Placeholder Cards */
.project-card--placeholder {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.3);
  pointer-events: none;
}
.project-card--placeholder .project-card__icon {
  opacity: 0.5;
  filter: grayscale(1);
}
.project-card--placeholder .project-card__title {
  color: var(--text-muted);
}
.project-card--placeholder .project-card__desc {
  color: rgba(148, 163, 184, 0.5);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
