/* ===== Google Font Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500;700&display=swap');

:root {
  --bg-soft: #f4f0ff;
  --dreamy-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1f9 100%);
  --main-violet: #a78bfa;
  --soft-purple: #c3bef0;
  --butterfly-glow: rgba(216, 180, 254, 0.4);
  --glass-white: rgba(255, 255, 255, 0.7);
  --text-color: #5a4b81;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-soft);
  background-image:
    radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%); /* Subtle blob accents */
  background: var(--dreamy-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.8;
}

/* ===== Floating Navbar ===== */
.navbar {
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
  background: var(--glass-white);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 25px rgba(167, 139, 250, 0.1);
  position: sticky;
  top: 20px;
  z-index: 1000;
}

.navbar .logo {
  height: 60px; /* Increased from 45px */
  width: auto;  /* Maintains aspect ratio */
  transition: transform 0.5s ease;
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.4)); /* Soft purple glow */
  margin-right: 15px;
}

/* Optional: Make it even bigger when hovering */
.navbar .logo:hover {
  transform: scale(1.15) rotate(-3deg);
}



.navbar a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--main-violet);
}

/* ===== Layout ===== */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== Header (Dreamy Hero) ===== */
header {
  text-align: center;
  padding: 60px 0;
  animation: float 6s ease-in-out infinite;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--main-violet);
  text-shadow: 2px 4px 10px var(--butterfly-glow);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.8;
}

/* ===== Dreamy Sections ===== */
section {
  background: var(--glass-white);
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 50px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 20px 20px 60px #d1c9e6, -20px -20px 60px #ffffff;
  transition: all 0.4s ease;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(167, 139, 250, 0.15);
}

h2 {
  color: var(--main-violet);
  font-size: 1.8rem;
  margin-bottom: 25px;
  border-bottom: 2px dashed var(--soft-purple);
  display: inline-block;
}

h3 {
  color: var(--soft-purple);
  margin-top: 30px;
}
/* ===== User Testing Charts ===== */
.charts-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Stacks on mobile */
  justify-content: center;
  margin-top: 20px;
}

.user-testing-card {
  flex: 1;
  min-width: 400px;
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--soft-purple);
}

.data-viz {
  width: 100%;
  height: auto;
  border: none !important; /* Removes the thick white border from general img style */
  mix-blend-mode: multiply; /* Helps blend white chart backgrounds into your dreamy purple */
}

/* ===== Logo Brand Board ===== */
.logo-brand-board {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.logo-item {
  text-align: center;
  margin: 0;
}

.logo-item img {
  width: 180px; /* Adjusted for better fit */
  height: auto;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.logo-item img:hover {
  transform: translateY(-5px) scale(1.05);
}

.logo-item figcaption {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--main-violet);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Container for exactly 5 screens per row */
.screens-grid {
  display: grid;
  /* Creates exactly 5 equal columns */
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 30px 0;
  justify-items: center;
  align-items: start;
}

/* Individual Phone Screen Styling */
.app-screen {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 3px solid white;
  background: white;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.15);
  /* This 'transition' makes the growing look smooth, not jerky */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  /* Ensures the image doesn't get cut off by other containers when it grows */
  position: relative;
  z-index: 1;
}

/* Hover Effect */
.app-screen:hover {
  /* scale(1.1) makes it 10% larger */
  transform: scale(1.15) translateY(-5px);
  /* Brings the hovered image to the front so it doesn't hide behind others */
  z-index: 10;
  /* Add a soft violet glow to match the dreamy vibe */
  box-shadow: 0 20px 40px rgba(167, 139, 250, 0.4);
  border-color: var(--main-violet);
}

.section-intro {
  text-align: center;
  font-style: italic;
  color: var(--soft-purple);
  margin-bottom: 20px;
}

/* ===== Buttons ===== */
.repo-link {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #c3bef0 0%, #a78bfa 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 8px 15px rgba(167, 139, 250, 0.3);
  transition: 0.3s;
}

.repo-link:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(167, 139, 250, 0.4);
}

/* ===== Images & Content ===== */
img {
  border-radius: 20px;
  border: 5px solid white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.prototype-img {
  margin: 20px auto;
  display: block;
  max-width: 80%;
}

ul {
  list-style: none;
}

li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

li::before {
  content: '🦋'; /* Butterfly emoji for bullet points */
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* ===== Animations ===== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 2.5rem; }
  .navbar { flex-direction: column; border-radius: 20px; }
}

@media (max-width: 900px) {
  .screens-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 per line on tablets */
  }
}

@media (max-width: 600px) {
  .screens-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per line on mobile */
  }
}