/*
  CSS = Cascading Style Sheets
  This file controls how things LOOK: colors, spacing, fonts, layout.
  
  Basic syntax: selector { property: value; }
  "For this element, use these styles"
*/

/* ===== RESET & BASE ===== */
/* 
  * = "everything" - we're setting default styles for the whole page
  margin: 0 and padding: 0 remove browser's default spacing
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
  box-sizing: border-box means width/height include padding and border.
  Without it, adding padding would make elements wider than you expect.
*/

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

/* ===== FLOATING GRAPHIC ELEMENTS ===== */
.graphic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.content-wrap {
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 1;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(49, 130, 206, 0.7) 0%, rgba(49, 130, 206, 0.3) 50%, transparent 75%);
  top: 5%;
  left: 0%;
  animation: float-1 18s ease-in-out infinite;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(26, 54, 93, 0.65) 0%, rgba(26, 54, 93, 0.25) 50%, transparent 75%);
  top: 55%;
  right: 0%;
  animation: float-2 22s ease-in-out infinite;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(49, 130, 206, 0.6) 0%, rgba(49, 130, 206, 0.25) 50%, transparent 75%);
  bottom: 15%;
  left: 10%;
  animation: float-3 15s ease-in-out infinite;
}

.orb-4 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(74, 85, 104, 0.6) 0%, rgba(74, 85, 104, 0.2) 50%, transparent 75%);
  top: 25%;
  right: 20%;
  animation: float-1 20s ease-in-out infinite 2s;
}

.orb-5 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(26, 54, 93, 0.6) 0%, rgba(26, 54, 93, 0.25) 50%, transparent 75%);
  bottom: 35%;
  right: 0%;
  animation: float-2 25s ease-in-out infinite 1s;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.08); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(25px, 25px); }
  75% { transform: translate(-15px, -20px); }
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  animation: headerEntrance 0.8s ease-out;
}

header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a365d;
  letter-spacing: 0.02em;
  animation: headerTitle 0.6s ease-out 0.15s both;
}

.tagline {
  font-size: 1.2rem;
  color: #4a5568;
  margin-top: 0.5rem;
  font-style: italic;
  animation: headerTagline 0.6s ease-out 0.3s both;
}

@keyframes headerEntrance {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes headerTitle {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes headerTagline {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 600px;
  margin: 0 auto;
}

section {
  background: white;
  padding: 2rem;
  margin-bottom: 3rem;
  min-height: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out, box-shadow 0.3s ease;
}

section.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Scroll hint - encourages user to scroll and discover the animations */
.scroll-hint {
  text-align: center;
  color: #718096;
  font-size: 0.9rem;
  margin: -1rem 0 2rem;
  animation: bounce-hint 2s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

section h2 {
  color: #1a365d;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

section p {
  margin-bottom: 1rem;
}

/* ===== BUTTON ===== */
button {
  background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(49, 130, 206, 0.35);
}

/*
  :hover = when the mouse is over the element
  transition = smooth change between states
*/
button:hover {
  background: linear-gradient(135deg, #2c5282 0%, #234e77 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.45);
}

button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 10px rgba(49, 130, 206, 0.3);
}

/* ===== GREETING MESSAGE ===== */
.greeting-message {
  margin-top: 1rem;
  font-weight: 600;
  color: #1a365d;
  min-height: 1.5em;
}

.greeting-message .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #3182ce;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== LIST ===== */
ul {
  margin-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Staggered list animation when "How This Works" section scrolls into view */
.learn-more li {
  opacity: 0;
  transform: translateX(-20px);
}

.learn-more.visible li {
  animation: listItemIn 0.45s ease-out both;
}

.learn-more.visible li:nth-child(1) { animation-delay: 0.1s; }
.learn-more.visible li:nth-child(2) { animation-delay: 0.2s; }
.learn-more.visible li:nth-child(3) { animation-delay: 0.3s; }

@keyframes listItemIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== CONTACT FORM ===== */
.contact-form label {
  display: block;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form .optional {
  font-weight: 400;
  color: #718096;
  font-size: 0.9em;
}

.contact-form .optional {
  font-weight: 400;
  color: #718096;
  font-size: 0.9em;
}

.contact-form .optional {
  font-weight: 400;
  color: #718096;
  font-size: 0.9em;
}

.contact-form .optional {
  font-weight: 400;
  color: #718096;
  font-size: 0.9em;
}

.contact-form textarea,
.contact-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form textarea:focus,
.contact-form input[type="email"]:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.contact-form .form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form button[type="submit"] {
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: #718096;
  font-size: 0.9rem;
  animation: footerFadeIn 0.8s ease-out 0.4s both;
}

@keyframes footerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
/*
  Media query: "When the screen is 600px or smaller, use these styles"
  This makes the site work on phones
*/
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 1.5rem;
  }
}
