/* ===== DESIGN SYSTEM ===== */
:root {
  --logo-size: 150px;
  --gap-xl: 40px;
  
  /* Modern Palette */
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-weak: #eff6ff;
  --ring: rgba(37, 99, 235, 0.2);
  --radius: 20px;
  --radius-inner: 12px;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --card: #0f172a;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --brand: #3b82f6;
    --brand-hover: #60a5fa;
    --brand-weak: rgba(59, 130, 246, 0.1);
    --ring: rgba(59, 130, 246, 0.3);
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.6);
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  
  /* Smooth Background Gradient */
  background-image: 
    radial-gradient(at 0% 0%, var(--brand-weak) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--brand-weak) 0px, transparent 50%);
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* ===== HEADER ===== */
.site-header {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto 20px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow);
  object-fit: cover;
  transition: var(--transition);
}

.brand:hover .brand-logo {
  transform: scale(1.05) rotate(-2deg);
}

.brand-text h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, var(--ink), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--ring);
}

.about-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--ring);
}

/* ===== TILES GRID ===== */
.tiles-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 100px;
}

.tiles {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.tile {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand);
  opacity: 0;
  transition: var(--transition);
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-weak);
}

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

.tile--highlight {
  border-color: var(--ring);
  background: linear-gradient(to bottom right, var(--card), var(--brand-weak));
}

.tile-media {
  aspect-ratio: 16/9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg);
  border-radius: var(--radius-inner);
  padding: 20px;
  transition: var(--transition);
}

.tile:hover .tile-media {
  background: #fff;
}

@media (prefers-color-scheme: dark) {
  .tile:hover .tile-media {
    background: rgba(255,255,255,0.05);
  }
}

.tile-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.tile:hover .tile-media img {
  transform: scale(1.1);
}

.tile-content h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.tile-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px 24px;
  background: transparent;
  text-align: center;
  border-top: 1px solid var(--brand-weak);
}

.footer-container p {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.tile {
  animation: fadeIn 0.6s ease backwards;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-top: 20px;
  }
  
  .brand {
    flex-direction: column;
  }
  
  .tiles {
    grid-template-columns: 1fr;
  }
  
  .brand-text h1 {
    font-size: 1.75rem;
  }
}
