/*--- CSS RESET & BASES ---*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html {
  scroll-behavior: smooth;
  background: #fafafa;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #1A2340;
  background: #FAFAFA;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #29A9E7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F66223;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/*--- VARIABLES (with fallbacks) ---*/
:root {
  --color-primary: #1A2340;
  --color-secondary: #29A9E7;
  --color-accent: #FAFAFA;
  --color-highlight: #F66223; /* Electric orange for bold accents */
  --color-neon-green: #39FF14;
  --color-neon-pink: #FA1EFF;
  --color-shadow: rgba(26,33,64,0.10);
  --radius: 18px;
  --transition: 0.24s cubic-bezier(.68,-0.55,.27,1.55);
}

/*--- TYPOGRAPHY ---*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.03em;
  font-weight: bold;
  color: #1A2340;
  margin-bottom: 18px;
}
h1 { font-size: 2.8rem; line-height: 1.15; color: #29A9E7; text-shadow: 0 4px 16px #29A9E711; }
h2 { font-size: 2rem; color: #1A2340; }
h3 { font-size: 1.35rem; color: #F66223; }
h4 { font-size: 1.1rem; color: #1A2340; }
p, label, input, textarea, table, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
p { margin-bottom: 16px; }
strong, b {
  font-weight: 700;
  color: #1A2340;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.text-section h2, .text-section h3 { text-align: center; }

/*--- SPACING & LAYOUT PATTERNS (Flexbox-Based) ---*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--color-shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FAFAFA;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--color-shadow);
  padding: 24px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 350px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px #29A9E755;
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px #29A9E710;
  padding: 20px;
  min-width: 220px;
  max-width: 420px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: center;
}
.service-cards > div {
  flex: 1 1 240px;
  background: #29A9E7;
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px #29A9E722;
  position: relative;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-cards > div:hover {
  box-shadow: 0 8px 32px #1A234044;
  transform: scale(1.05);
}

/* Feature grid for .tehnologie-inovatii */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #F66223;
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px #F6622344;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px #29A9E744;
  transform: scale(1.05);
}
.feature-grid img {
  width: 56px;
  margin-bottom: 14px;
}

.workshop-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: disc inside;
  margin: 0 0 12px 24px;
}


/*--- BUTTONS & CALLS TO ACTION ---*/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 32px;
  background: #39FF14;
  color: #1A2340;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px #39FF1422;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s, transform 0.19s;
  margin: 16px 0;
}
.cta.primary {
  background: #29A9E7;
  color: #fff;
  box-shadow: 0 2px 18px #29A9E732;
}
.cta.primary:hover, .cta.primary:focus {
  background: #F66223;
  color: #fff;
  transform: scale(1.04);
  outline: none;
}
.cta.secondary {
  background: #F66223;
  color: #fff;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #29A9E7;
  color: #fff;
  transform: scale(1.04);
}

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.16s;
  border-radius: 24px;
}

/*--- HEADER & NAVIGATION ---*/
header {
  width: 100%;
  background: #1A2340;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 24px;
  position: sticky;
  top: 0;
  z-index: 199;
  box-shadow: 0 6px 24px #29A9E714;
}
header img {
  height: 48px;
  margin-right: 24px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: #29A9E7;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 16px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus, header nav a.active {
  background: #29A9E7;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: #29A9E7;
  color: #FAFAFA;
  border-radius: 32px;
  font-size: 2rem;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  z-index: 399;
  transition: background 0.18s, color 0.18s;
  margin-left: 16px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #1A2340;
  color: #FAFAFA;
}

/*--- MOBILE MENU ---*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #1A2340;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  background: #FA1EFF;
  color: #fff;
  border-radius: 50%;
  border: none;
  padding: 8px 15px;
  align-self: flex-end;
  margin: 18px 28px 7px 0;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #39FF14;
  color: #1A2340;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding-top: 38px;
  width: 100%;
}
.mobile-nav a {
  color: #FAFAFA;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 36px;
  transition: background 0.16s, color 0.14s;
  border-radius: 19px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F66223;
  color: #FFF;
}

/*--- MAIN CONTENT SECTIONS ---*/
main {
  background: #fafafa;
  min-height: 75vh;
  width: 100vw;
  padding-bottom: 60px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 18px #1A234022;
}

/*--- LIST BLOCK HIGHLIGHT STYLES ---*/
.fact-highlights, .bio-breakthroughs, .case-studies {
  background: #29A9E7;
  color: #FFF;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 18px #29A9E720;
}
.fact-highlights h3, .bio-breakthroughs h3, .case-studies h3 { color: #FFF; }

.did-you-know, .innovation-facts {
  background: #FA1EFF33;
  border-radius: 10px;
  padding: 12px 17px;
  margin: 10px 0 0 0;
  color: #1A2340;
  font-weight: 500;
  box-shadow: 0 2px 10px #1A234022;
}

/*--- TESTIMONIALS ---*/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 20px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px #29A9E710;
  padding: 20px 30px;
  min-width: 240px;
  max-width: 420px;
  margin-bottom: 20px;
  color: #1A2340;
}
.testimonial-card p strong, .testimonial-card strong {
  color: #F66223;
}

/*--- TABLES ---*/
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0 32px 0;
  background: #FAFAFA;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #29A9E714;
  overflow: hidden;
}
thead {
  background: #29A9E7;
  color: #fff;
}
th, td {
  padding: 14px 18px;
  text-align: left;
}
th {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  letter-spacing:0.04em;
  color: #fff;
  background: #29A9E7;
  border-bottom: 2px solid #F66223;
}
tbody tr {
  border-bottom: 1px solid #e3eaf4;
}
tbody tr:nth-child(even) {
  background: #e9f7ff44;
}
td {
  color: #1A2340;
}

/*--- FORMS ---*/
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
  max-width: 420px;
}
label {
  font-weight: 500;
  color: #1A2340;
}
input[type="text"], 
input[type="email"], 
textarea {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 11px 16px;
  border: 2px solid #29A9E7;
  border-radius: 8px;
  outline: none;
  background: #fafafa;
  color: #1A2340;
  box-shadow: 0 1px 7px #29A9E711;
  transition: border 0.16s, box-shadow 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2px solid #F66223;
  box-shadow: 0 0 8px #F6622355;
}
input[type="submit"], button[type="submit"] {
  margin-top: 10px;
}

/*--- FOOTER ---*/
footer {
  background: #1A2340;
  padding: 36px 0 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 0.98rem;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
footer nav a {
  color: #29A9E7;
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #39FF14;
  text-decoration: underline;
}
@media (max-width: 480px) {
  footer nav {
    flex-direction: column;
    gap: 8px;
  }
}

/*--- COOKIE CONSENT BANNER ---*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1A2340;
  color: #FFF;
  box-shadow: 0 -1px 12px #1A234066;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 26px 16px;
  z-index: 3000;
  gap: 22px;
  font-size: 1.03rem;
  animation: cookie-slideup 0.48s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes cookie-slideup {
  0% { transform: translateY(120%); opacity: 0; }
  80% { transform: translateY(-7%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Orbitron', 'Roboto', Arial, sans-serif;
  padding: 10px 26px;
  margin: 0 2px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.18s, color 0.15s, box-shadow 0.19s;
}
.cookie-btn.accept {
  background: #29A9E7;
  color: #fff;
  box-shadow: 0 2px 8px #29A9E712;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: #39FF14; color: #1A2340; }
.cookie-btn.reject {
  background: #F66223;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #29A9E7; color: #fff; }
.cookie-btn.settings {
  background: #fff;
  color: #1A2340;
  border: 2px solid #29A9E7;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: #29A9E7; color: #fff; }

/*--- COOKIE MODAL ---*/
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%) scale(0.92);
  max-width: 98vw;
  min-width: 320px;
  background: #FAFAFA;
  color: #1A2340;
  border-radius: 16px;
  box-shadow: 0 8px 32px #29A9E795, 0 0 0 400vw rgba(30,40,76,0.26);
  z-index: 3500;
  padding: 34px 32px 32px 32px;
  animation: cookiemodal-pop 0.32s cubic-bezier(.47,1.64,.41,.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes cookiemodal-pop {
  0% { opacity:0; transform: translateX(-50%) scale(0.7); }
  100% { opacity:1; transform: translateX(-50%) scale(1); }
}
.cookie-modal h2 {
  color: #29A9E7;
  margin-bottom: 0;
}
.cookie-categories {
  margin: 18px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type="checkbox"] {
  width: 23px; height: 23px;
  accent-color: #29A9E7;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 22px;
  font-size: 1.45rem;
  color: #1A2340;
  background: #FFF;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 12px;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #29A9E7;
  color: #fff;
}

/*--- RESPONSIVE DESIGN (MOBILE-FIRST) ---*/
@media (max-width: 1280px) {
  .container { max-width: 98vw; }
}
@media (max-width: 1023px) {
  .feature-grid, .service-cards, .testimonial-slider { flex-direction: column; align-items: center; }
  .service-cards > div, .feature-grid > div, .testimonial-card { max-width: 98vw; }
  .card { max-width: 95vw; }
}
@media (max-width: 900px) {
  .content-grid, .card-container { flex-direction: column; }
}
@media (max-width: 768px) {
  main { padding-bottom: 32px; }
  .container { max-width: 100vw; padding: 0 10px; }
  header { padding: 12px 12px; }
  header nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .section, section, .card, .service-cards > div, .feature-grid > div { padding: 27px 12px; min-width: 0; }
  .text-image-section { flex-direction: column; gap: 18px; text-align: center; }
  .testimonial-slider { gap: 12px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.06rem; }
  .card { padding: 15px 7px; }
  .section, section { padding: 18px 5px; }
  .cookie-modal { padding: 25px 4vw 25px 4vw; }
}
@media (max-width: 410px) {
  .cookie-banner { font-size: 0.93rem; }
  .cookie-modal { min-width: 96vw; font-size: 0.93rem; }
}

/*--- VIBRANT & ENERGETIC VISUAL ACCENTS ---*/
ul li img, .section img.icon, .feature-item img, .service-cards img {
  height: 37px;
  width: auto;
  vertical-align: middle;
  margin-right: 12px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 7px #29A9E722;
}

/* Subtle hover pop for all a, .card, .feature-grid > div, .service-cards > div, .testimonial-card */
a:not(.cta):hover {
  color: #F66223;
  text-shadow:0 2px 8px #F6622333;
}

/*--- UTILITIES ---*/
.mt-0 { margin-top: 0!important; }
.mt-16 { margin-top: 16px!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-24 { margin-bottom: 24px!important; }
.text-center { text-align: center!important; }

/*--- MISC (ACCESSIBILITY, FOCUS STATE) ---*/
:focus {
  outline: 2px solid #29A9E7;
  outline-offset: 3px;
}

::selection {
  background: #29A9E788;
  color: #1A2340;
}

/*--- ANIMATIONS & MICROINTERACTIONS ---*/
.card, .service-cards > div, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.17s, border-color 0.17s;
}
.animated-pop {
  animation: popcard 0.32s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes popcard {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/*--- PRINT & HIGH CONTRAST (for accessibility) ---*/
@media (print) {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}

/*--- END CSS ---*/
