:root {
  /* Tetrad color scheme */
  --primary: #3366cc;
  --primary-dark: #284d99;
  --primary-light: #5686e6;
  
  --secondary: #cc6633;
  --secondary-dark: #994d26;
  --secondary-light: #e68356;
  
  --tertiary: #33cc66;
  --tertiary-dark: #269949;
  --tertiary-light: #56e68a;
  
  --quaternary: #cc3399;
  --quaternary-dark: #992673;
  --quaternary-light: #e656b6;

  /* Neutral colors */
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --mid-gray: #e1e5eb;
  --dark-gray: #4a5568;
  --black: #1a1a2e;
  
  /* Typography */
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Rubik', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Transitions */
  --transition-fast: 0.3s;
  --transition-normal: 0.5s;
  --transition-slow: 0.8s;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.read-more {
  font-weight: 500;
  color: var(--secondary);
  position: relative;
  padding-right: 24px;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--secondary-dark);
  padding-right: 28px;
}

.read-more:hover:after {
  transform: translateX(4px);
}

/* Curved Grid Elements */
.curved-grid {
  position: relative;
  overflow: hidden;
}

.curved-grid:before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: linear-gradient(45deg, rgba(51, 102, 204, 0.03), rgba(204, 102, 51, 0.03), rgba(51, 204, 102, 0.03));
  transform: scale(1.1) rotate(-3deg);
  z-index: -1;
  border-radius: var(--radius-lg);
}

/* Buttons */
.button {
  font-family: var(--heading-font);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width var(--transition-fast);
  z-index: -1;
}

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

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

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

.button.is-secondary {
  background-color: var(--secondary);
  color: white;
  border-color: transparent;
}

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

.button.is-tertiary {
  background-color: var(--tertiary);
  color: white;
  border-color: transparent;
}

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

.button.is-quaternary {
  background-color: var(--quaternary);
  color: white;
  border-color: transparent;
}

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

.button.is-rounded {
  border-radius: var(--radius-full);
}

.button.is-light {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.header.is-scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.navbar-burger {
  height: auto;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin-top: 4rem;
}

.hero-body {
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
}

.hero .title, 
.hero .subtitle,
.hero p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin: var(--space-sm) auto 0;
}

/* Cards */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
}

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

.card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

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

.card-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--black);
}

.card-content p {
  flex: 1;
}

/* About Section */
#despre-noi {
  position: relative;
}

#despre-noi:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background-color: rgba(51, 102, 204, 0.05);
  z-index: -1;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Services Section */
#servicii .card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#servicii .card:hover {
  transform: translateY(-10px);
}

/* Research Section */
#cercetare {
  background: linear-gradient(135deg, rgba(51, 102, 204, 0.05), rgba(51, 204, 102, 0.05));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Success Stories */
#povesti-de-succes {
  position: relative;
  overflow: hidden;
}

#povesti-de-succes:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(204, 102, 51, 0.05);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: -1;
}

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

#inovatie:after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(51, 204, 102, 0.08) 0%, rgba(51, 204, 102, 0) 70%);
  z-index: -1;
}

/* News Section */
#noutati .card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

#noutati .card-image {
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

/* FAQ Section */
#faq .title.is-4 {
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

/* Careers Section */
#cariere {
  position: relative;
}

#cariere ul {
  margin-left: var(--space-md);
}

#cariere ul li {
  margin-bottom: var(--space-sm);
}

/* Contact Form */
#contact {
  position: relative;
  overflow: hidden;
}

#contact:before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 25%;
  height: 50%;
  background: radial-gradient(circle, rgba(204, 51, 153, 0.08) 0%, rgba(204, 51, 153, 0) 70%);
  z-index: -1;
}

#contact .input, 
#contact .textarea, 
#contact .select select {
  border-radius: var(--radius-md);
  border: 1px solid var(--mid-gray);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#contact .input:focus, 
#contact .textarea:focus, 
#contact .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.2);
}

.info-item {
  margin-bottom: var(--space-md);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Footer */
.footer {
  background-color: var(--light-gray);
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.footer:before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(51, 102, 204, 0.05) 0%, rgba(51, 102, 204, 0) 70%);
  border-radius: 50%;
}

.footer h3 {
  margin-bottom: var(--space-md);
  position: relative;
}

.footer h3:after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  margin-top: var(--space-xs);
}

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

.footer ul li {
  margin-bottom: var(--space-xs);
}

.footer ul li a {
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--primary);
}

.social-links a {
  display: inline-block;
  margin-right: var(--space-sm);
  color: var(--dark-gray);
  transition: color var(--transition-fast), transform var(--transition-fast);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

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

.success-container {
  max-width: 600px;
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  color: var(--tertiary);
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-lg);
}

/* Animations */
@keyframes morphing {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 40% 60% 40% 60% / 40% 50% 50% 60%;
  }
  100% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
}

.morph-shape {
  animation: morphing 15s ease-in-out infinite;
}

/* ScrollReveal Animations */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.reveal-fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .columns {
    margin-left: 0;
    margin-right: 0;
  }
  
  .footer .column {
    margin-bottom: var(--space-md);
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .buttons.is-centered {
    flex-direction: column;
  }
  
  .button.is-large {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
}