:root {
  --twinkie-yellow: #FFD700;
  --twinkie-gold: #FBC02D;
  --twinkie-cream: #FFFDD0;
  --hostess-blue: #0056b3;
  --hostess-red: #d32f2f;
  --text-color: #424242;
  --bg-color: #fafafa;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  cursor: url('../assets/twinkie-cursor.svg') 16 8, auto;
  overflow-x: hidden;
}

a, button {
  cursor: url('../assets/twinkie-cursor.svg') 16 8, pointer;
}

/* Navigation */
nav {
  background-color: var(--twinkie-yellow);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hostess-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--hostess-blue);
  font-weight: 600;
  transition: transform 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: var(--hostess-red);
  transform: scale(1.1) rotate(-2deg);
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  padding: 4rem 0;
}

h1, h2 {
  color: var(--hostess-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle, var(--twinkie-cream) 0%, #fff 70%);
}

.hero-img {
  width: 300px;
  animation: float 4s ease-in-out infinite;
  margin-bottom: 2rem;
}

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

/* Cards & Fun Facts */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.fact-card {
  perspective: 1000px;
  height: 200px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.fact-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-front {
  background-color: var(--twinkie-yellow);
  color: var(--hostess-blue);
  font-weight: 700;
  font-size: 1.2rem;
}

.card-back {
  background-color: var(--twinkie-cream);
  color: var(--text-color);
  transform: rotateY(180deg);
  border: 2px dashed var(--twinkie-gold);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--twinkie-gold);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '🍰';
  position: absolute;
  width: 30px;
  height: 30px;
  right: -15px;
  background-color: white;
  border: 4px solid var(--twinkie-yellow);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -15px; }

.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Anatomy Section */
.anatomy-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.anatomy-part {
  text-align: center;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  border: 3px solid var(--twinkie-yellow);
  width: 250px;
  transition: transform 0.3s;
}

.anatomy-part:hover {
  transform: translateY(-10px);
}

.anatomy-part h3 {
  color: var(--hostess-red);
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--hostess-blue);
  color: white;
  margin-top: 4rem;
}

@media (max-width: 600px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item::after { left: 15px; }
  .right { left: 0%; }
}
