/*
  Theme: Sanat Stüdyosu (Art Studio)
  Design System: Minimalist & Eco-minimalism
  Author: AI Assistant
*/

/* -------------------------------------------------------------------
 * ## CSS Variables
 * ------------------------------------------------------------------- */
:root {
  /* Neutral Color Palette for Eco-Minimalism */
  --color-primary: #556B2F; /* Dark Olive Green */
  --color-primary-hover: #6B8E23; /* Olive Drab */
  --color-accent: #A0522D; /* Sienna */
  --color-background-light: #F5F5F5; /* Very light grey */
  --color-background-dark: #222222;
  --color-text-dark: #333333;
  --color-text-light: #FFFFFF;
  --color-text-muted: #555555;
  --color-border: #E0E0E0;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-overlay: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Sizing & Spacing */
  --border-radius: 6px;
  --shadow-sm: 0 2px 4px var(--color-shadow);
  --shadow-md: 0 4px 10px var(--color-shadow);
  --navbar-height: 4.5rem; /* ~72px */
  --transition-speed: 0.3s;
}

/* -------------------------------------------------------------------
 * ## Global Styles & Resets
 * ------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(--color-background-white);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
}

.title {
    color: #222222; /* Extra contrast for titles */
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Bulma Variable Overrides */
.has-background-light { background-color: var(--color-background-light) !important; }
.has-text-primary { color: var(--color-primary) !important; }
.progress.is-primary::-webkit-progress-value { background-color: var(--color-primary) !important; }
.progress.is-primary::-moz-progress-bar { background-color: var(--color-primary) !important; }
.progress.is-primary::-ms-fill { background-color: var(--color-primary) !important; }
.tag.is-primary { background-color: var(--color-primary) !important; }
.message.is-primary { border-left: 5px solid var(--color-primary); }
.message.is-primary .message-body { border-color: var(--color-primary); }


/* -------------------------------------------------------------------
 * ## Buttons & Forms (Global)
 * ------------------------------------------------------------------- */
.button, button, input[type='submit'] {
  font-family: var(--font-heading);
  border-radius: var(--border-radius);
  border-width: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  padding: 0.8rem 2rem;
}

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

.button.is-primary:hover, .button.is-primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.button.is-text {
    color: var(--color-accent);
    text-decoration: none;
    padding-left: 0;
}

.button.is-text:hover {
    background-color: transparent;
    color: var(--color-text-dark);
}

/* Form elements */
.input, .textarea {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.input:focus, .textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.125em rgba(85, 107, 47, 0.25);
}

.label {
    font-weight: 500;
    font-family: var(--font-body);
}

/* -------------------------------------------------------------------
 * ## Header & Navigation
 * ------------------------------------------------------------------- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-speed) ease;
}

.navbar {
    min-height: var(--navbar-height);
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.navbar-item:hover, .navbar-item.is-active {
  background-color: transparent !important;
  color: var(--color-primary) !important;
}

.navbar-burger {
    color: var(--color-text-dark);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--color-background-white);
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}


/* -------------------------------------------------------------------
 * ## Section Styles
 * ------------------------------------------------------------------- */

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#hero .title.is-1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#hero .subtitle.is-3 {
    font-weight: 400;
}

/* Mission Section */
#mission .image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Card Styles (Portfolio, Blog, Pricing, etc.) */
.card {
  background-color: var(--color-background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  overflow: hidden;
  height: 100%;
  /* Card centering styles */
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card .card-image {
  text-align: center; /* Center the figure element */
}

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

.card .card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allows content to fill space */
  text-align: left;
}

#pricing .card {
    text-align: center;
}
#pricing .card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}
#pricing .card li {
    margin-bottom: 0.5rem;
}
#pricing .card .card-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: none;
}
#pricing .card .card-header-title {
    color: var(--color-text-light);
}

/* Workshops Section */
@keyframes handDrawnWobble {
  0% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
  100% { transform: rotate(-1deg); }
}

.animated-icon-brush,
.animated-icon-sculpture,
.animated-icon-print {
  display: inline-block;
  animation: handDrawnWobble 4s ease-in-out infinite;
  font-size: 3rem !important;
}

/* Research (Timeline) */
.timeline .timeline-item .timeline-content {
    background: var(--color-background-light);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.timeline .timeline-marker.is-image img {
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

/* External Resources Section */
#external-resources .box {
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed) ease;
}
#external-resources .box:hover {
    box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------------
 * ## Footer
 * ------------------------------------------------------------------- */
.footer {
  background-color: var(--color-background-dark);
  color: #a0a0a0;
  padding: 3rem 1.5rem;
}

.footer .title {
  color: var(--color-text-light);
}

.footer a {
  color: #a0a0a0;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-text-light);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.footer a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer a:hover {
  color: var(--color-text-light);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}

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

/* success.html */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

.success-page .box {
    max-width: 600px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

/* privacy.html & terms.html */
.legal-page-content, .about-page-content, .contacts-page-content {
    padding-top: calc(var(--navbar-height) + 2rem); /* Add space below fixed header */
    padding-bottom: 2rem;
}
.legal-page-content h2, .about-page-content h2, .contacts-page-content h2 {
    margin-bottom: 2rem;
}


/* -------------------------------------------------------------------
 * ## Animations & Transitions
 * ------------------------------------------------------------------- */

/* Barba.js Page Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* ScrollReveal Initial State */
[data-sr] {
  visibility: hidden;
}

/* -------------------------------------------------------------------
 * ## Responsive Design
 * ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  #hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  #hero .subtitle.is-3 {
    font-size: 1.25rem;
  }

  .columns.is-vcentered {
    flex-direction: column-reverse; /* Stack image above text on mobile for Mission/Community */
  }

  .columns.is-vcentered .column:last-child {
      margin-bottom: 2rem;
  }
}