/* ========================================
   LOBOLY TECH STUDIO - Umbrella Site
   Color Palette from Logo:
   - Background Dark:  #0f1923
   - Surface Dark:     #162230
   - Surface Lighter:  #1e2d3d
   - Border:           #2a3a4a
   - Green Accent:     #2dd4a8
   - Green Glow:       #2dd4a880
   - Text Primary:     #e8f0f8
   - Text Secondary:   #8899aa
   - Cat Silver:       #b0c4d8
   ======================================== */

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

:root {
  --bg-dark: #0f1923;
  --surface: #162230;
  --surface-light: #1e2d3d;
  --border: #2a3a4a;
  --accent: #2dd4a8;
  --accent-glow: rgba(45, 212, 168, 0.5);
  --accent-subtle: rgba(45, 212, 168, 0.1);
  --text-primary: #e8f0f8;
  --text-secondary: #8899aa;
  --text-muted: #5a6a7a;
  --silver: #b0c4d8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid lines background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 212, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 168, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Floating dots decoration */
.dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.dot:nth-child(2) {
  width: 4px;
  height: 4px;
  opacity: 0.25;
  animation-delay: -2s;
  animation-duration: 8s;
}

.dot:nth-child(3) {
  width: 3px;
  height: 3px;
  opacity: 0.15;
  animation-delay: -4s;
  animation-duration: 10s;
}

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

/* Main container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER / HERO ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0 60px;
  text-align: center;
}

.hero__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px var(--accent-glow));
  animation: fadeInUp 0.8s ease-out;
}

.hero__brand {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 24px 0;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ---- SECTION ---- */
.section {
  padding: 40px 0 80px;
}

.section__title {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

/* ---- PROJECTS GRID ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ---- PROJECT CARD ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out both;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--accent));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(45, 212, 168, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface-light);
  padding: 6px;
  flex-shrink: 0;
}

.card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card__subdomain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.8;
  margin-top: 2px;
}

.card__description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 168, 0.15);
  letter-spacing: 0.02em;
}

.card__status {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.card__status--dev {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.card__arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.card:hover .card__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer__brand {
  color: var(--accent);
  font-weight: 600;
}

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

/* Staggered card animations */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero__icon {
    width: 90px;
    height: 90px;
  }

  .hero__brand {
    font-size: 2.5rem;
  }

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

  .card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero__icon {
    width: 72px;
    height: 72px;
  }

  .hero__brand {
    font-size: 2rem;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 16px;
  }
}
