/*
 * style.css
 * Theme: Cursos de Diseño en Argentina
 * Design System: Modern with Hyperrealistic Textures
 * Color Scheme: Analogous
 * Animation Style: 3D Effects
 */

/* --------------------------------
 * CSS Variables
 * -------------------------------- */
:root {
  /* Analogous Color Palette */
  --primary-color: hsl(171, 100%, 41%); /* Bulma's default primary - Teal */
  --primary-color-dark: hsl(171, 100%, 29%);
  --secondary-color: hsl(204, 86%, 53%); /* Blue */
  --accent-color: hsl(141, 71%, 48%);   /* Green */

  /* Neutral Colors */
  --text-color: #363636;
  --text-color-light: #f5f5f5;
  --background-light: #f9f9f9;
  --background-dark: #222324;
  --border-color: #dbdbdb;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-family-headings: 'Roboto', sans-serif;
  --font-family-body: 'Lato', sans-serif;

  /* Spacing & Borders */
  --global-radius: 8px;
  --section-padding: 4rem 1.5rem;
}


/* --------------------------------
 * Global Styles & Bulma Overrides
 * -------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: white;
}

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}

.title, .subtitle, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: #222222; /* Stronger contrast for titles */
}

p {
  margin-bottom: 1rem;
}

.section {
  padding: var(--section-padding);
}

/* --------------------------------
 * UI Components & General Classes
 * -------------------------------- */

/* --- Buttons --- */
.button.is-primary {
  background-color: var(--primary-color);
  border-radius: var(--global-radius);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.button.is-primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.button.is-primary:active {
  transform: translateY(-1px);
}

/* --- Cards --- */
.card {
  background-color: #ffffff;
  border-radius: var(--global-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) perspective(1000px) rotateX(2deg);
  box-shadow: var(--card-shadow-hover);
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
}
.card .card-content .content ul {
    list-style: disc inside;
    margin-left: 0;
}
.card .card-content .content li {
    margin-bottom: 0.5em;
}

.card-footer {
    border-top: 1px solid var(--border-color);
}
.card-footer-item {
    transition: background-color 0.3s ease;
}
.card-footer-item:hover {
    background-color: #fafafa;
}

/* --- Form --- */
.input, .textarea, .select select {
    border-radius: var(--global-radius);
    border-color: var(--border-color);
    box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus,
.input:active, .textarea:active, .select select:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

/* --------------------------------
 * Section Specific Styles
 * -------------------------------- */

/* --- Header / Navbar --- */
.navbar.is-fixed-top {
  background-color: rgba(34, 35, 36, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 700;
}
.navbar-item img {
    max-height: 2.5rem;
}

/* --- Hero Section --- */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  color: var(--text-color-light);
}

#hero .title, #hero .subtitle, #hero p {
  color: var(--text-color-light);
}

#hero .hero-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Testimonials Section --- */
#testimonials .card {
    text-align: left;
}
#testimonials .media-content .title {
    margin-bottom: 0.25rem;
}
#testimonials .is-rounded {
    object-fit: cover;
}
#testimonials .content {
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

/* --- Press / Stats Section --- */
#press .level-item .title {
    font-size: 3rem;
    color: var(--primary-color);
}

#press .level-item .heading {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Pricing Section --- */
#pricing .card {
    display: flex;
    flex-direction: column;
}
#pricing .card-header {
    background-color: #f5f5f5;
    box-shadow: none;
}
#pricing .card-header-title {
    font-size: 1.25rem;
}
#pricing .card-footer {
    margin-top: auto;
}
#pricing .card[style*="border"] {
    transform: scale(1.05);
}
#pricing .card[style*="border"]:hover {
    transform: scale(1.05) translateY(-10px) perspective(1000px) rotateX(2deg);
}

/* --- Gallery Section --- */
#gallery .card {
    box-shadow: none;
}
#gallery .card .card-image {
    border-radius: var(--global-radius);
    overflow: hidden;
}
#gallery .card .card-image img {
    transition: transform 0.5s ease;
}
#gallery .card:hover .card-image img {
    transform: scale(1.05);
}

/* --- Community Section --- */
#community .card {
    background-color: var(--background-light);
    box-shadow: none;
    border: 1px solid var(--border-color);
}
#community .card ul li strong {
    color: var(--primary-color);
}

/* --- Contact Section --- */
#contact .card {
    padding: 1rem;
}
@media screen and (min-width: 769px) {
  #contact .card {
    padding: 2rem;
  }
}

/* --- Footer --- */
.footer {
  padding: 3rem 1.5rem 3rem;
  background-color: var(--background-dark);
}
.footer .title, .footer p, .footer a {
  color: var(--text-color-light);
}
.footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.footer ul {
  list-style: none;
  margin-left: 0;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer .social-links a {
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

/* --------------------------------
 * Specific Page Styles
 * -------------------------------- */

/* --- Success Page --- */
body.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--background-light);
}

/* --- Privacy & Terms Pages --- */
.static-page-content {
  padding-top: 8rem; /* Navbar height + extra space */
  padding-bottom: 4rem;
}
.static-page-content h1, .static-page-content h2 {
    margin-bottom: 1.5rem;
}
.static-page-content h1 {
    font-size: 2.5rem;
}
.static-page-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
}

/* --------------------------------
 * Responsive Adjustments
 * -------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --section-padding: 3rem 1rem;
  }
  .title.is-1 {
    font-size: 2.5rem;
  }
  .title.is-2 {
    font-size: 2rem;
  }
  .subtitle.is-3 {
    font-size: 1.25rem;
  }
}