/* styles.css */

/* Color + font tokens */
:root {
  /* Gradients for cards */
  --gradient-purple: linear-gradient(135deg, #9333ea, #3b82f6);
  --gradient-green: linear-gradient(135deg, #22c55e, #14b8a6);
  --gradient-orange: linear-gradient(135deg, #f97316, #ec4899);
  --gradient-neutral: linear-gradient(135deg, rgba(26, 19, 15, .3), rgba(26, 19, 15, .5));
  --font-primary: "Kumbh Sans", -apple-system, system-ui, sans-serif;
  --font-body: "Kumbh Sans", -apple-system, system-ui, sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dreamy blur -> sharp intro for the background image */
.dreamy-bg {
  opacity: 0;
  filter: blur(18px) saturate(130%);
  transform: scale(1.04); /* tiny zoom for a cinematic feel */
  animation: dreamyBlurIn 1.8s ease-out forwards;
  animation-delay: 0.2s;  /* optional: slight delay so it follows the page load */
}

@keyframes dreamyBlurIn {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(130%);
    transform: scale(1.04);
  }
  50% {
    opacity: 1;
    filter: blur(10px) saturate(120%);
    transform: scale(1.025);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(110%);
    transform: scale(1);  /* settle back to normal */
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .dreamy-bg {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

body {
  background-color:#1a130f;
  color: #fff;
  font-family: var(--font-body);
  padding: 2rem 3rem;
}

/* Heading + body typography */
h1,
h2,
.link-card h2 {
  color: #fff;
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 100;
}

p,
.link-card p {
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 100;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.3;
}

/* Body text */
p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 70ch;
}

.large-text {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
}

/* Accessibility */
:focus {
  outline: 3px solid #c2914d;
  outline-offset: 2px;
  animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Page structure */
.page-container {
  position: relative;
  min-height: 100vh;
}

/* Background styles */
.background-container {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.background-image {
  position: absolute;
  margin: auto;
  max-width: 800px;      /* ← make it smaller (adjust as needed) */
  width: 100%;
  height: auto;          /* keep proportions */
  object-fit: contain;   /* NO CROPPING */
  display: block;
  right: 0;
}

/* Content layout */
.content-container {
  position: relative;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.header-content {
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
}

.fade-in {
   opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

.title {
  font-size: 5rem;
  font-weight: 100;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
  opacity: 0.9;
}

/* Links grid layout */
.main-content {
  margin: 0 auto;
  padding: 1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 50%;
}

/* Link card styles */
.link-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Gradient overlays (set via data-gradient) */
.link-card[data-gradient="purple"]::before { background: var(--gradient-purple); }
.link-card[data-gradient="green"]::before  { background: var(--gradient-green); }
.link-card[data-gradient="orange"]::before { background: var(--gradient-orange); }
.link-card[data-gradient="neutral"]::before   { background: var(--gradient-neutral); }

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

.link-card:hover {
  transform: translateY(-4px);
}

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

/* Card content layout */
.card-content {
  position: relative;
  display: flex;
  gap: 1rem;
}

.icon-container {
  flex-shrink: 0;
}

.icon-container svg {
  width: 2rem;
  height: 2rem;
}

.text-container {
  flex-grow: 1;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.title-row h2 {
  font-size: 1.25rem;
  font-weight: 100;
}

.title-row svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.link-card:hover .title-row svg {
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .links-grid {
    width: 100%;
  }

  .background-image {
  opacity: 50% !important;
}
}
