/* Root Variables - Tetrad Color Scheme */
:root {
  /* Primary Colors */
  --primary-color: #4D6DE3;  /* Blue */
  --primary-dark: #3452C5;
  --primary-light: #7A90EC;
  
  /* Tetrad Scheme */
  --secondary-color: #E34D6D;  /* Red-Pink */
  --secondary-dark: #C53452;
  --secondary-light: #EC7A90;
  
  --tertiary-color: #6DE34D;  /* Green */
  --tertiary-dark: #52C534;
  --tertiary-light: #90EC7A;
  
  --quaternary-color: #DE4DE3;  /* Purple */
  --quaternary-dark: #C534C5;
  --quaternary-light: #EC7AEC;
  
  /* Neutrals */
  --dark: #16213E;
  --gray-dark: #3E4A6B;
  --gray-medium: #6B7A9E;
  --gray-light: #C5D0E6;
  --light: #F5F7FC;
  
  /* Typography */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 3px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
html, body {
  font-family: var(--body-font);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

/* Retro Design System Elements */
.retro-box {
  border: 3px solid var(--dark);
  box-shadow: 6px 6px 0 var(--gray-dark);
  transition: var(--transition-medium);
}

.retro-box:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--gray-dark);
}

/* Responsive Typography */
.title.is-1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.title.is-2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.title.is-3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.title.is-4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

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

.hero-title {
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.hero .button {
  margin: 0.5rem;
  transition: all var(--transition-medium);
  transform: scale(1);
}

.hero .button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero .button.is-primary {
  background-color: var(--primary-color);
}

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

/* Timeline Component */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

.timeline:before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--gray-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid white;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content .heading {
  color: var(--primary-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .timeline:before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    left: 21px;
  }
}

/* Service Cards */
.card {
  border-radius: var(--border-radius-md);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  overflow: hidden;
}

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

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

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-content h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

/* Research and Analysis */
.content h3 {
  color: var(--primary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.box {
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Why Us Section */
#de-ce-noi .box {
  height: 100%;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-left: 4px solid var(--primary-color);
}

#de-ce-noi .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

#de-ce-noi .box h3 {
  color: var(--primary-color);
}

/* Success Stories */
#studii-de-caz .card {
  overflow: hidden;
}

#studii-de-caz .card-content h3 {
  color: var(--tertiary-dark);
}

/* External Resources */
#resurse-externe .box {
  background-color: white;
  padding: var(--spacing-lg);
}

#resurse-externe .box a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

#resurse-externe .box a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Innovation Section */
#inovatie {
  position: relative;
}

#inovatie .image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#inovatie .image img {
  transition: transform var(--transition-slow);
}

#inovatie .image:hover img {
  transform: scale(1.03);
}

#inovatie .button {
  margin-top: var(--spacing-md);
}

/* Webinar Section */
#webinarii .card-image {
  position: relative;
  overflow: hidden;
}

#webinarii .card-image img {
  transition: transform var(--transition-slow);
}

#webinarii .card:hover .card-image img {
  transform: scale(1.05);
}

#webinarii .subtitle {
  color: var(--gray-medium);
}

/* FAQ Accordion */
.accordion {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.accordion-item {
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: var(--spacing-sm);
}

.accordion-header {
  padding: var(--spacing-md) 0;
}

.accordion-button {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: var(--spacing-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.accordion-button::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.accordion-button:hover {
  color: var(--primary-color);
}

.accordion-content {
  padding-bottom: var(--spacing-md);
  display: none;
}

.accordion-item.active .accordion-button::after {
  content: '-';
}

.accordion-item.active .accordion-content {
  display: block;
}

/* Blog Section */
#blog .card {
  margin-bottom: var(--spacing-lg);
}

#blog .card-content .title {
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

#blog .card-content .subtitle {
  font-size: 0.9rem;
  color: var(--gray-medium);
}

#blog .button.is-link.is-outlined {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

#blog .button.is-link.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Contact Section */
#contact .box {
  padding: var(--spacing-lg);
}

#contact .field {
  margin-bottom: var(--spacing-md);
}

#contact .label {
  color: var(--dark);
  font-weight: 600;
}

#contact .input, #contact .textarea {
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--gray-light);
  box-shadow: none;
  transition: border-color var(--transition-fast);
}

#contact .input:focus, #contact .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

#contact .button {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: var(--spacing-xl) 0;
}

.footer .title {
  color: white;
}

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

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

.footer a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

/* Button Styles */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

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

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

.button.is-light {
  background-color: var(--light);
  color: var(--dark);
}

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-lg);
}

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

/* Privacy and Terms Pages */
.privacy-content, .terms-content {
  padding-top: 120px;
  margin-bottom: var(--spacing-xl);
}

/* Responsive Fixes */
@media (max-width: 1023px) {
  .columns.is-reversed-tablet {
    flex-direction: column-reverse;
    display: flex;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.morph-animation {
  animation: morphing 15s infinite;
}

/* Additional Utilities */
.has-text-primary {
  color: var(--primary-color) !important;
}

.has-text-secondary {
  color: var(--secondary-color) !important;
}

.has-text-tertiary {
  color: var(--tertiary-color) !important;
}

.has-background-primary-light {
  background-color: rgba(77, 109, 227, 0.1) !important;
}

.image-container {
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.read-more-link {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.read-more-link::after {
  content: '→';
  position: absolute;
  right: -1.5em;
  top: 50%;
  transform: translateY(-50%);
  transition: right var(--transition-fast);
}

.read-more-link:hover {
  color: var(--primary-dark);
}

.read-more-link:hover::after {
  right: -1.8em;
}

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
}

/* Fix for image aspect ratios */
.image.is-4by3 img, .image.is-16by9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Make cards have consistent heights */
.card-equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-equal-height .card-content {
  flex-grow: 1;
}

/* Ensure images are centered */
.card-image figure {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.container {
  padding-inline: 12px;
}