/* style.css */

:root {
  /* Bright Retro Palette */
  --primary-color: #00D1B2; /* Teal/Aqua */
  --primary-color-dark: #00A38A;
  --primary-color-light: #48E5C2;

  --secondary-color: #FFDD57; /* Vivid Yellow/Gold */
  --secondary-color-dark: #F2C824;

  --accent-color-1: #FF3860; /* Hot Pink/Red */
  --accent-color-2: #209CEE; /* Electric Blue */
  --accent-color-3: #FF7A00; /* Bright Orange */
  --accent-color-3-dark: #D96800;

  /* Text Colors */
  --text-color-light: #FFFFFF;
  --text-color-dark: #363636;
  --text-color-medium: #4A4A4A;
  --text-color-headings: #222222; /* Darker for main headings */
  --text-color-footer: #cccccc;

  /* Background Colors */
  --bg-light: #FDFDFD;
  --bg-medium-light: #f4f7f6;
  --bg-dark-section: #333333; /* For sections with light text */
  --bg-footer: #1e1e1e;

  /* Borders */
  --border-color-light: #DBDBDB;
  --border-color-retro: var(--primary-color-dark);
  --border-color-input: #BDBDBD;
  --border-color-input-focus: var(--primary-color);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color-2));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color-3));
  --hero-overlay-color: rgba(0, 0, 0, 0.5); /* For text readability on hero */
  --card-image-overlay: rgba(0, 0, 0, 0.3);

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;

  /* Transitions & Animations */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.3s;
  --transition-timing: ease-in-out;

  /* Box Shadows (Retro Blocky) */
  --box-shadow-retro-block: 4px 4px 0px var(--primary-color-dark);
  --box-shadow-retro-block-alt: 4px 4px 0px var(--secondary-color-dark);
  --box-shadow-card: 0 4px 10px rgba(0,0,0,0.1);
  --box-shadow-interactive: 0 4px 12px rgba(0, 0, 0, 0.15);
  --box-shadow-button-hover: 0 6px 15px rgba(0,0,0,0.2);

  /* Navbar height for content offset */
  --navbar-height: 52px; /* Bulma default, adjust if custom */
  --content-offset-top-pages: calc(var(--navbar-height) + 40px); /* For privacy/terms */
}

/* Global Styles */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color-dark);
  line-height: 1.7;
  font-size: 16px; /* Base font size */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-primary);
  color: var(--text-color-headings);
  font-weight: 700; /* Poppins bold */
}

.title {
  margin-bottom: 1rem; /* Default Bulma might be larger */
}
.subtitle {
  margin-top: -0.5rem; /* Adjust default Bulma */
  font-weight: 400; /* Work Sans for subtitles */
  font-family: var(--font-secondary);
  color: var(--text-color-medium);
}
.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }

/* Links */
a {
  color: var(--primary-color);
  transition: color var(--transition-speed-fast) var(--transition-timing);
  font-weight: 500;
}
a:hover {
  color: var(--primary-color-dark);
}

.read-more-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: var(--accent-color-3);
  color: var(--text-color-light);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color var(--transition-speed-normal) var(--transition-timing), transform var(--transition-speed-normal) var(--transition-timing);
}
.read-more-link:hover {
  background-color: var(--accent-color-3-dark);
  color: var(--text-color-light);
  transform: translateY(-2px);
}


/* Buttons - Global Styles */
.button, button, input[type="submit"] {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px; /* Modern rounded corners */
  transition: all var(--transition-speed-normal) var(--transition-timing);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--box-shadow-interactive);
  border: none;
}

.button.is-primary, button.is-primary, input[type="submit"].is-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}
.button.is-primary:hover, button.is-primary:hover, input[type="submit"].is-primary:hover {
  background-color: var(--primary-color-dark);
  box-shadow: var(--box-shadow-button-hover);
  transform: translateY(-2px);
}

.button.is-secondary, button.is-secondary, input[type="submit"].is-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}
.button.is-secondary:hover, button.is-secondary:hover, input[type="submit"].is-secondary:hover {
  background-color: var(--secondary-color-dark);
  box-shadow: var(--box-shadow-button-hover);
  transform: translateY(-2px);
}

.button.is-link, button.is-link { /* Example for another button type */
    background-color: var(--accent-color-2);
    color: var(--text-color-light);
}
.button.is-link:hover, button.is-link:hover {
    background-color: #1b89d1; /* Darker blue */
    box-shadow: var(--box-shadow-button-hover);
    transform: translateY(-2px);
}

.button.is-outlined.is-primary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.button.is-outlined.is-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.retro-button { /* Specific retro style if needed, extends .button */
  /* box-shadow: var(--box-shadow-retro-block); */ /* Can be too much with other shadows */
}
.retro-button:active {
  transform: translateY(1px);
  /* box-shadow: 2px 2px 0px var(--primary-color-dark); */
}


/* Navbar */
.navbar.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.9); /* Slight glassmorphism */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: var(--navbar-height);
}
.navbar-item.logo-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color-dark) !important;
}
.navbar-item, .navbar-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--text-color-dark);
  transition: color var(--transition-speed-fast) var(--transition-timing);
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
  background-color: transparent !important; /* Override Bulma */
  color: var(--primary-color) !important;
}
.navbar-burger span {
  background-color: var(--primary-color-dark);
}

/* Sections General Styling */
.section {
  padding: 4rem 1.5rem; /* Default Bulma is 3rem 1.5rem */
}
.section-title {
  margin-bottom: 3rem;
  color: var(--text-color-headings);
  position: relative;
  display: inline-block; /* For pseudo-element underline */
}
.section-title::after { /* "Hand-drawn" underline style */
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  /* animation: wiggle 0.5s ease-in-out infinite alternate; */ /* Could be too distracting */
}

/* For sections with light backgrounds and dark text */
.section-title-dark {
    color: var(--text-color-headings);
    text-shadow: none;
}
.section-title-dark::after {
    background-color: var(--primary-color);
}

/* Specific Page Title Sections for inner pages */
.page-title-section {
    padding: calc(var(--navbar-height) + 3rem) 1.5rem 3rem;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.page-title-section .hero-text-overlay { /* Re-using class name for consistency */
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: var(--gradient-page-title-overlay);
    border-radius: 8px;
    display: inline-block;
}
.page-title-section .title, .page-title-section .subtitle {
    color: var(--text-color-light);
}


/* Hero Section */
.hero#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* For parallax child or overlay */
}
.hero#hero::before { /* Overlay for text readability */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--hero-overlay-color);
  z-index: 1;
}
.hero .hero-body {
  position: relative;
  z-index: 2; /* Text above overlay */
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text-overlay .title, .hero-text-overlay .subtitle {
    color: var(--text-color-light) !important; /* Ensure white text */
}
.hero .title.animated-title {
  animation: fadeInDown 1s ease-out forwards;
}
.hero .subtitle.animated-subtitle {
  animation: fadeInUp 1s ease-out 0.5s forwards;
  /*opacity: 0; !* Start hidden for animation *!*/
}
.hero .button {
  margin-top: 1.5rem;
  animation: zoomIn 0.8s ease-out 1s forwards;
  /*opacity: 0; !* Start hidden for animation *!*/
  transform: scale(0.5);
}

@keyframes fadeInDown {
  /*from { opacity: 0; transform: translateY(-30px); }*/
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  /*from { opacity: 0; transform: translateY(30px); }*/
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
  /*from { opacity: 0; transform: scale(0.5); }*/
  to { opacity: 1; transform: scale(1); }
}


/* Retro Block Styling */
.retro-block {
  background-color: var(--bg-medium-light);
  padding: 2.5rem;
  border: 2px solid var(--border-color-retro);
  box-shadow: var(--box-shadow-retro-block);
  border-radius: 0px; /* Sharp edges for retro */
  margin-bottom: 2rem;
}
.retro-block-light {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border: 1px solid var(--border-color-light);
  box-shadow: var(--box-shadow-card); /* Softer shadow for light blocks */
  border-radius: 4px;
  margin-bottom: 2rem;
}
.retro-bg-alt { /* For alternating section backgrounds */
  background-color: var(--bg-medium-light);
}

/* Cards (Bulma .card as base) */
.card.retro-card, .card.retro-card-instructor, .card.retro-card-resource {
  background-color: var(--text-color-light);
  border: 1px solid var(--border-color-light);
  box-shadow: var(--box-shadow-card);
  border-radius: 8px; /* Slightly rounded for modern retro */
  transition: transform var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
  display: flex;
  flex-direction: column;
  /* align-items: center; This is too global for card, content may not always be centered */
  height: 100%; /* For equal height cards in columns */
}
.card.retro-card:hover, .card.retro-card-instructor:hover, .card.retro-card-resource:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-interactive);
}

.card .card-image { /* Bulma's card-image */
  /* align-items: center; */ /* Let .image-container handle this */
}
.card .card-image .image-container { /* Custom container for strict image control */
  width: 100%;
  overflow: hidden; /* Crucial for object-fit */
  display: flex; /* For centering image inside */
  justify-content: center;
  align-items: center;
  margin-bottom: 0; /* Remove default figure margin if any */
}

/* For instructor cards with 1by1 images */
.retro-card-instructor .card-image .image-container {
  height: 250px; /* Fixed height for profile images */
}
.retro-card-instructor .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.retro-card-instructor .card-content {
  text-align: center;
}
/* General card image handling for 4by3 or 16by9 */
.retro-card .card-image .image-container {
   /* Adjust height based on aspect ratio if needed, or keep it fluid */
}
.retro-card .card-image img, .retro-card-resource .card-image img {
  width: 100%;
  height: 100%; /* If container has fixed height */
  object-fit: cover;
  display: block;
}
.card .card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allows content to fill space if card height is fixed by row */
  display: flex;
  flex-direction: column;
}
.card .card-content .title {
  color: var(--text-color-headings);
  margin-bottom: 0.5rem;
}
.card .card-content .subtitle {
  color: var(--text-color-medium);
  margin-bottom: 1rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-dark);
}

/* Forcing image centering in cards, as requested strictly */
.card .card-image,
.card .card-image .image-container,
.card .image-container figure { /* figure often wraps img */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.card .card-image img {
    margin: 0 auto; /* Ensure image itself is centered if its display is block/inline-block */
}


/* Innovation Section specific */
.statistical-widget {
  background-color: var(--primary-color-light);
  color: var(--text-color-dark);
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--box-shadow-retro-block-alt);
}
.statistical-widget .title {
  color: var(--text-color-dark);
}
.switch[type="checkbox"] + label::before { /* Style Bulma switch */
  background-color: var(--primary-color-light);
}
.switch[type="checkbox"]:checked + label::before {
  background-color: var(--primary-color) !important;
}


/* Gallery Section */
#gallery .image.is-square img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-shadow: var(--box-shadow-card);
  transition: transform var(--transition-speed-normal) var(--transition-timing), opacity 0.5s;
}
#gallery .image.is-square:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Community Section - Testimonials */
.retro-testimonial {
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: var(--box-shadow-card);
}
.retro-testimonial.is-primary { border-color: var(--primary-color); background-color: #f0fcf9; }
.retro-testimonial.is-info { border-color: var(--accent-color-2); background-color: #ebf5fb; }
.retro-testimonial.is-warning { border-color: var(--secondary-color); background-color: #fffbeb;}
.retro-testimonial p {
    color: var(--text-color-dark);
}
.retro-testimonial strong {
    color: var(--text-color-headings);
}

/* External Resources Section */
.retro-card-resource .card-content .title a {
    color: var(--primary-color-dark);
    text-decoration: none;
}
.retro-card-resource .card-content .title a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}
.retro-card-resource .is-size-7 {
    color: var(--text-color-medium);
    margin-bottom: 0.75rem;
}


/* Contact Form */
.retro-form {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-card);
}
.retro-label {
  font-family: var(--font-primary);
  color: var(--text-color-headings);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.retro-input, .retro-textarea {
  font-family: var(--font-secondary);
  border: 1px solid var(--border-color-input);
  border-radius: 6px;
  padding: 12px 15px;
  box-shadow: none; /* Remove Bulma's default input shadow */
  transition: border-color var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
}
.retro-input:focus, .retro-textarea:focus {
  border-color: var(--border-color-input-focus);
  box-shadow: 0 0 0 0.125em var(--primary-color-light); /* Bulma-like focus */
}
.retro-textarea {
  min-height: 120px;
}

/* Footer */
.retro-footer {
  background-color: var(--bg-footer);
  color: var(--text-color-footer);
  padding: 3rem 1.5rem;
}
.retro-footer .title.footer-title {
  color: var(--text-color-light);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.retro-footer p, .retro-footer li {
  color: var(--text-color-footer);
  font-size: 0.95rem;
}
.retro-footer a {
  color: var(--primary-color-light);
  transition: color var(--transition-speed-fast) var(--transition-timing);
  text-decoration: none; /* Remove underline from footer links */
}
.retro-footer a:hover {
  color: var(--text-color-light);
  text-decoration: underline;
}
.retro-footer .content p {
    color: var(--text-color-footer); /* Ensure copyright text color */
}
.retro-footer .social-links a { /* Specific styling for social links if needed */
  margin-right: 15px;
  font-size: 1.1rem; /* Make them slightly larger if text-only */
}
.retro-footer .social-links a:last-child {
  margin-right: 0;
}


/* Privacy & Terms Pages Content Offset */
body.privacy-page main, body.terms-page main {
  padding-top: var(--content-offset-top-pages);
}
body.privacy-page .section, body.terms-page .section {
    padding-top: 2rem; /* Reduce top padding for first section after offset */
}
body.privacy-page .page-title-section, body.terms-page .page-title-section {
    padding-top: var(--navbar-height); /* Reset padding if banner is directly after navbar */
}

/* Success Page Styling */
body.success-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.success-page main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--navbar-height); /* Account for fixed navbar */
}
body.success-page .section { /* Ensure section takes full height available */
    width: 100%;
}
body.success-page .content.retro-block {
    max-width: 700px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
}


/* Parallax & Scroll Reveal (Initial states for JS) */
.parallax-bg {
  /* JS will handle background-position */
}
.reveal-on-scroll {
  /*opacity: 0;*/
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-timing), transform 0.8s var(--transition-timing);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism utility - can be applied to blocks */
.glassmorphic-block {
  background: rgba(255, 255, 255, 0.15); /* Light background for the glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); /* Subtle shadow */
}

/* Responsive Adjustments (Bulma handles most, add customs if needed) */
@media screen and (max-width: 768px) {
  .section {
    padding: 2.5rem 1rem;
  }
  .title.is-1 { font-size: 2.5rem; }
  .title.is-2 { font-size: 2rem; }
  .hero#hero {
    min-height: 80vh; /* Adjust hero height on mobile */
  }
  .columns.is-centered .column.is-two-thirds {
    width: 90%; /* Give more space on mobile for main content columns */
  }
  .retro-block, .retro-block-light {
    padding: 1.5rem;
  }
}