/* ===== Root Variables ===== */
:root {
  /* Primary Color Scheme (Complementary) */
  --primary-color: #2C3E50; /* Deep blue */
  --primary-light: #3E5871;
  --primary-dark: #1A2530;
  
  --complementary: #E67E22; /* Orange */
  --complementary-light: #F39C12;
  --complementary-dark: #D35400;
  
  /* Neutral Colors */
  --neutral-light: #F5F7FA;
  --neutral-medium: #E4E7EB;
  --neutral-dark: #333333;
  
  /* Shadows and Effects */
  --neomorphic-light: rgba(255, 255, 255, 0.7);
  --neomorphic-shadow: rgba(0, 0, 0, 0.1);
  --card-shadow: 6px 6px 12px var(--neomorphic-shadow), -6px -6px 12px var(--neomorphic-light);
  --button-shadow: 4px 4px 8px var(--neomorphic-shadow), -4px -4px 8px var(--neomorphic-light);
  --inset-shadow: inset 2px 2px 5px var(--neomorphic-shadow), inset -2px -2px 5px var(--neomorphic-light);
  
  /* Font Sizes */
  --h1-size: 3rem;
  --h2-size: 2.5rem;
  --h3-size: 2rem;
  --h4-size: 1.5rem;
  --body-size: 1rem;
  --small-size: 0.875rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 20px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ===== Typography ===== */
body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--neutral-dark);
  line-height: 1.6;
  background-color: var(--neutral-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1, .title.is-1 {
  font-size: var(--h1-size);
}

h2, .title.is-2 {
  font-size: var(--h2-size);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

h2:after, .title.is-2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--complementary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

h3, .title.is-3 {
  font-size: var(--h3-size);
}

h4, .title.is-4 {
  font-size: var(--h4-size);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--complementary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--complementary-dark);
  text-decoration: none;
}

.has-text-white {
  color: #FFFFFF !important;
}

.has-text-centered {
  text-align: center;
}

/* ===== Global Layout ===== */
.container {
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section:nth-child(odd) {
  background-color: #FFFFFF;
}

.section:nth-child(even) {
  background-color: var(--neutral-light);
}

.columns {
  margin-left: -1rem;
  margin-right: -1rem;
}

.column {
  padding: var(--spacing-sm);
}

/* ===== Neomorphic Elements ===== */
.neomorphic-card {
  background: var(--neutral-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--card-shadow);
  padding: var(--spacing-md);
  transition: var(--transition-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.neomorphic-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 16px var(--neomorphic-shadow), -8px -8px 16px var(--neomorphic-light);
}

.neomorphic-button {
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--neutral-light);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-small);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: var(--transition-fast);
  z-index: 1;
}

.neomorphic-button:hover, .neomorphic-button:focus {
  box-shadow: var(--inset-shadow);
  transform: translateY(2px);
}

.neomorphic-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--complementary-light);
  border-radius: var(--radius-small);
  transition: var(--transition-fast);
  z-index: -1;
}

.neomorphic-button:hover:before {
  width: 100%;
}

.button.is-primary {
  background-color: var(--complementary);
  border-color: transparent;
}

.button.is-primary:hover {
  background-color: var(--complementary-dark);
}

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

.button.is-light:hover {
  background-color: var(--neutral-medium);
}

/* ===== Header & Navigation ===== */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-fast);
}

.header.scrolled {
  background-color: var(--primary-color);
}

.navbar {
  padding: var(--spacing-xs) 0;
}

.navbar-brand .title {
  color: var(--primary-color);
  margin-bottom: 0;
}

.navbar-item {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition-fast);
}

.navbar-item:hover, .navbar-item:focus {
  color: var(--complementary);
  background-color: transparent !important;
}

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

.navbar-burger:hover {
  background-color: transparent;
}

.navbar-menu.is-active {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023px) {
  .navbar-menu {
    padding: var(--spacing-sm);
  }
  
  .navbar-item {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-image:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-body {
  padding: var(--spacing-xl) 0;
  z-index: 1;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: var(--spacing-md);
}

.hero .buttons {
  margin-top: var(--spacing-md);
}

/* ===== Contact Form Section ===== */
.contact-form-top {
  padding-top: 120px;
  background-color: var(--neutral-light);
}

.contact-form-container {
  background: var(--neutral-light);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
  box-shadow: var(--card-shadow);
}

.form-neomorphic .input,
.form-neomorphic .textarea,
.form-neomorphic .select select {
  background-color: var(--neutral-light);
  border: none;
  box-shadow: var(--inset-shadow);
  border-radius: var(--radius-small);
  padding: 1rem;
  transition: var(--transition-fast);
}

.form-neomorphic .input:focus,
.form-neomorphic .textarea:focus,
.form-neomorphic .select select:focus {
  box-shadow: var(--inset-shadow), 0 0 0 2px var(--complementary-light);
}

.form-neomorphic .label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

/* ===== About Section ===== */
.about-section {
  background-color: #FFFFFF;
}

.image-container {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: var(--spacing-md);
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-medium);
}

.image-container:hover img {
  transform: scale(1.05);
}

.toggle-container {
  margin-top: var(--spacing-md);
}

.toggle-switches .field {
  margin-bottom: var(--spacing-xs);
}

.switch {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 1.5rem;
  margin-right: var(--spacing-sm);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch + label {
  cursor: pointer;
  font-weight: 600;
}

/* ===== Case Studies Section ===== */
.case-studies-section {
  background-color: var(--neutral-light);
}

.case-studies-section .card-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  margin-bottom: var(--spacing-sm);
  width: 100%;
}

.case-studies-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.case-studies-section .card:hover .card-image img {
  transform: scale(1.1);
}

.case-studies-section .card-content {
  padding: var(--spacing-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-studies-section .card-content h3 {
  margin-bottom: var(--spacing-sm);
}

/* ===== Community Section ===== */
.community-section {
  background-color: #FFFFFF;
}

.community-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.community-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  margin-bottom: var(--spacing-sm);
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.community-card:hover .community-image img {
  transform: scale(1.1);
}

.community-content {
  padding: var(--spacing-sm);
  flex-grow: 1;
}

/* ===== External Resources Section ===== */
.external-resources-section {
  background-color: var(--neutral-light);
}

.resource-card {
  height: 100%;
  padding: var(--spacing-md);
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-list li {
  margin-bottom: var(--spacing-sm);
}

.resource-list a {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition-fast);
  display: block;
  padding: var(--spacing-xs);
  border-radius: var(--radius-small);
}

.resource-list a:hover {
  background-color: var(--neutral-medium);
  color: var(--complementary);
  padding-left: var(--spacing-sm);
}

/* ===== Webinars Section ===== */
.webinars-section {
  background-color: #FFFFFF;
}

.webinar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.webinar-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  margin-bottom: var(--spacing-sm);
}

.webinar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.webinar-card:hover .webinar-image img {
  transform: scale(1.1);
}

.webinar-content {
  padding: var(--spacing-sm);
  flex-grow: 1;
}

.webinar-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.webinar-archive {
  margin-top: var(--spacing-md);
}

.webinar-list {
  list-style: none;
  padding: 0;
}

.webinar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--neutral-medium);
}

.webinar-list li:last-child {
  border-bottom: none;
}

.webinar-title {
  flex-grow: 1;
  font-weight: 600;
}

.webinar-list .button {
  margin-left: var(--spacing-sm);
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  background-color: var(--neutral-light);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card .card-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  margin-bottom: var(--spacing-sm);
}

.portfolio-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.portfolio-card:hover .card-image img {
  transform: scale(1.1);
}

.portfolio-card .card-content {
  padding: var(--spacing-sm);
  flex-grow: 1;
}

/* ===== Careers Section ===== */
.careers-section {
  background-color: #FFFFFF;
}

.career-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.benefits-card {
  margin-top: var(--spacing-md);
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.benefit-item .icon {
  margin-right: var(--spacing-sm);
  color: var(--complementary);
}

/* ===== History Section ===== */
.history-section {
  background-color: var(--neutral-light);
  padding: var(--spacing-xl) 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 4px;
  height: 100%;
  background: var(--complementary);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--spacing-md);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 42px;
  width: 20px;
  height: 20px;
  background: var(--complementary);
  border-radius: var(--radius-full);
  border: 4px solid var(--neutral-light);
  box-shadow: 0 0 0 4px var(--complementary-light);
}

.timeline-content {
  background: var(--neutral-light);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
  box-shadow: var(--card-shadow);
}

.timeline-content h3 {
  color: var(--complementary);
  margin-bottom: var(--spacing-xs);
}

/* ===== Awards Section ===== */
.awards-section {
  background-color: #FFFFFF;
}

.award-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.award-image {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--card-shadow);
}

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

.award-content {
  padding: var(--spacing-xs);
}

.award-content h3 {
  margin-bottom: var(--spacing-xs);
}

.award-content p {
  color: var(--primary-color);
}

/* ===== News Section ===== */
.news-section {
  background-color: var(--neutral-light);
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  margin-bottom: var(--spacing-sm);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: var(--spacing-sm);
  flex-grow: 1;
}

.news-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.news-content .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ===== Gallery Section ===== */
.gallery-section {
  background-color: #FFFFFF;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: var(--spacing-md);
}

.gallery-item {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: var(--transition-medium);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 16px var(--neomorphic-shadow), -8px -8px 16px var(--neomorphic-light);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-lg) 0;
}

.footer .title {
  color: white;
}

.footer p {
  margin-bottom: var(--spacing-sm);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-links a {
  color: white;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--complementary-light);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: white;
  transition: var(--transition-fast);
}

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

.copyright {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: var(--spacing-md);
  z-index: 9999;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0 var(--spacing-md) 0 0;
}

/* ===== Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.success-container {
  max-width: 600px;
  background: var(--neutral-light);
  border-radius: var(--radius-medium);
  padding: var(--spacing-xl);
  box-shadow: var(--card-shadow);
}

.success-icon {
  font-size: 5rem;
  color: var(--complementary);
  margin-bottom: var(--spacing-md);
}

/* ===== Privacy & Terms Pages ===== */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.content-container h1 {
  margin-bottom: var(--spacing-md);
}

.content-container h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.content-container p {
  margin-bottom: var(--spacing-sm);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.75rem;
    --h4-size: 1.5rem;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .timeline:before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 22px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-content p {
    margin: 0 0 var(--spacing-sm) 0;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery-item img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero {
    min-height: auto;
    padding-top: 100px;
  }
  
  .contact-form-top {
    padding-top: 100px;
  }
  
  .award-image {
    width: 100px;
    height: 100px;
  }
}