@import url(https://fonts.bunny.net/css?family=poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i);
:root {
  --color-primary: rebeccapurple;
  --color-accent: #610006;
  --color-background: #ffffff;
  --color-surface: #570005;
  --color-text: #000000;
  --color-text-light: #333333;
  --color-border: #e0e0e0;
  --color-footer-bg: #111111;
  --color-footer-text: #ffffff;
  --color-link-hover: #c0c0c0;

  --font-family-base: "Poppins", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.25rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 1.75rem;
  --font-size-xxl: 2rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 5rem;

  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --border-width: 1px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  line-height: 1.7;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 200vh;
  background-color: var(--color-background);
  color: var(--color-text);
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  margin-left: var(--space-xl);
  list-style-type: none;
  padding: var(--space-sm);
  border: var(--border-width) solid var(--color-accent);
  border-top-color: transparent;
  border-right-color: transparent;
}

li:last-child {
  border-bottom-left-radius: var(--radius-lg);
}

.mobilenav {
  position: fixed;
  z-index: 200;
  height: 72px;
  right: 20px;
  top: 20px;
  background-color: rgba(0,0,0,0.5);
  transition: background-color 0.2s ease-in-out;
  width: 64px;
  border-radius: 8px;
  display: none;
}

.mobilenav.viz {
  background-color: rgba(0,0,0,0.75);
}

.mobilenav .btn {
  width: 100%;
  height: 100%;
  padding: 16px 0 0 18px;
  box-sizing: border-box;
  cursor: pointer;
}

.mobilenav .btn i {
  display: block;
  height: 2px;
  background-color: var(--color-background);
  margin-bottom: 6px;
  position: relative;
}

.mobilenav .btn i:before {
  position: absolute;
  content: '';
  width: 0px;
  height: 2px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.mobilenav .btn:hover i:before {
  width: 100%;
}

.mobilenav .btn .l1 {
  width: 28px;
}

.mobilenav .btn .l2 {
  width: 19.6px;
  transition: all 0.2s ease-in-out;
}

.mobilenav .btn:hover .l2 {
  width: 28px;
}

.mobilenav .btn span {
  color: #fff;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease-in-out;
  text-align: center;
}

.mobilenav .btn:hover span {
  color: var(--color-background);
}

.mobilemenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(36, 36, 36, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out 0.8s, visibility 0s linear 1.1s;
  overflow: hidden;
}

.mobilemenu.viz {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
  overflow: hidden;
}

.mobilemenu .menu {
  position: absolute;
  height: 100%;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.mobilemenu.viz .menu {
  overflow: hidden;
}

.mobilemenu .menu .shadow {
  display: none;
}

.mobilemenu .menu .shadow .closebtn {
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  top: 20px;
  right: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background-color: rgba(0,0,0,0.6);
  border-radius: 8px;
  z-index: 10;
}

.mobilemenu .menu .shadow .closebtn::before,
.mobilemenu .menu .shadow .closebtn::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
}

.mobilemenu .menu .shadow .closebtn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobilemenu .menu .shadow .closebtn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobilemenu .menu .content {
  position: absolute;
  height: 100%;
  top: 0;
  right: 0;
  background-color: #101010;
  width: 0;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
  transform-origin: right center;
}

.mobilemenu.viz .menu .content {
  width: 100%;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobilemenu .menu .content .front {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu.viz .menu .content .front {
  opacity: 1;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu .menu .content .back {
  position: absolute;
  width: 80px;
  border-right: solid 2px #550005;
  height: 100%;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu.viz .menu .content .back {
  opacity: 1;
  transition: opacity 0.3s ease 0.5s;
}

.mobilemenu .menu .content .front h1 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  background-color: #101010;
  padding: 20px 0 21px 0;
  font-size: 22px;
  margin: 80px 0 0 50px;
  line-height: 1;
}

.mobilemenu .menu .content .front ul {
  margin: 20px 0 0 70px;
  padding: 24px 0;
  list-style: none;
  background-color: #101010;
}

.mobilemenu .menu .content .front ul li {
  margin-top: 20px;
  margin-left: 0;
  border: none;
  padding: 0;
}

.mobilemenu .menu .content .front ul li:nth-child(1) {
  margin-top: 0;
}

.mobilemenu .menu .content .front ul li a {
  color: #fff;
  text-decoration: none;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  display: block;
}

.mobilemenu .menu .content .front ul li.has-dropdown {
  position: relative;
  cursor: pointer;
}

.mobilemenu .menu .content .front ul li.has-dropdown > span {
  color: #fff;
  text-decoration: none;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobilemenu .menu .content .front ul li.has-dropdown > span img {
  width: 10px;
  height: 10px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.mobilemenu .menu .content .front ul li.has-dropdown.open > span img {
  transform: rotate(90deg);
}

.mobilemenu .menu .content .front ul li.has-dropdown .mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px;
  padding-left: 20px;
}

.mobilemenu .menu .content .front ul li.has-dropdown.open .mobile-dropdown {
  max-height: 300px;
}

.mobilemenu .menu .content .front ul li.has-dropdown .mobile-dropdown a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-background);
  border: none;
}

header {
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: url(images/laptop-dark.png) center/cover no-repeat;
  gap: var(--space-xxl);
}

header .container h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards 0.6s;
}

header .container h2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.9s;
}

header .container h3 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;
}

header .header-arrow {
  position: absolute;
  display: inline-block;
  width: 62px;
  height: 33px;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%);
  animation: fadeIn 3s ease-in-out forwards, bounce 1.2s infinite ease-in-out;
  transition: opacity 2s ease;
}

header .header-arrow::before,
header .header-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 3px);
  width: 6px;
  height: 45px;
  border-radius: 9999px;
  background-color: #ffffff;
  transform-origin: 50% calc(100% - 3px);

}

header .header-arrow::before {
  transform: rotate(45deg);
}

header .header-arrow::after {
  transform: rotate(-45deg);
} 

header .header-arrow.hide {
  opacity: 0;
  pointer-events: none;
}

header .header-arrow.hide::before,
header .header-arrow.hide::after {
  opacity: 0;
}

.logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
}

.logo img {
  max-width: 350px;
  height: auto; 
  object-fit: contain; 
}

.navbar {
  margin-top: var(--space-xl);
  padding-inline: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.navbar .logo,
.navbar .links,
.navbar .regulament {
  opacity: 0;
  transform: translateY(-25px);
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-duration: 0.6s;
}

.navbar .logo {
  animation-name: navbarFade;
  animation-delay: 0.2s;
}

.navbar .links {
  animation-name: navbarFade;
  animation-delay: 0.4s;
}

.navbar .regulament {
  animation-name: navbarFade;
  animation-delay: 0.6s;
}

.links {
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
  
  gap: var(--space-md);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.links .editii img,
.links .poze img {
  width: 10px;
  height: 10px;
}

.links .poze img,
.links .editii img {
  filter: invert(1);
}

.regulament {
  font-size: var(--font-size-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.links > div {
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.links > div:hover {
  color: var(--color-link-hover);
}

.regulament a {
  transition: color var(--transition-fast);
}

.regulament a:hover {
  color: var(--color-link-hover);
}

.editii,
.poze {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.editii img,
.poze img {
  transition: all var(--transition-normal);
}

.dropdown {
  z-index: 20;
  position: absolute;
  min-width: 150px;
  top: 100%;
  left: 0;
  background-color: var(--color-background);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  border: var(--border-width) solid var(--color-border);
  font-weight: initial;
}

.dropdown a {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 0.75rem 1rem;
  transition: background-color var(--transition-fast);
}

.dropdown a:hover {
  background-color: #e4e4e4;
}

.editii:hover img,
.poze:hover img {
  rotate: 90deg;
}

.editii:hover .dropdown,
.poze:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.dropdown a:not(:last-child) {
  border-bottom: var(--border-width) solid var(--color-border);
}

.dropdown a:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  font-size: var(--font-size-xl);
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-block: var(--space-xxl);
  gap: var(--space-xl);
}

main .about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: var(--space-sm);
}

main .about span a {
  color: revert;
  text-decoration: revert;
}

main .about .about-text {
  width: 80ch;
  font-size: calc(var(--font-size-md) - 0.1rem);
  line-height: 1.8;
  text-align: justify;

  margin-bottom: var(--space-xl);
}

main .about .about-text p {
  display: inline;
}

main .about-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

main .about-title h2 {
  font-size: 2.4rem;
  position: relative;
  display: inline-block;
  color: #1f1f1f;
}

main .about-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
}

main .about-button {
  color: var(--color-background);
  background-color: #830009;

  font-size: var(--font-size-md);
  transition: background-color var(--transition-fast);

  padding: var(--space-md);
  border-radius: var(--radius-md);

  cursor: pointer;
}

main .about-button:hover {
  background-color: #550005;
}

main .values {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: rgba(245, 247, 251, 0.9);
  border-radius: 10px;
}

main .value-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

main .value-card img {
  width: 60px;
  margin-bottom: 1rem;
}

main .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

main .team .team-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

main .team-title {
  text-align: center;
  margin-bottom: 3rem;
}

main .team-title h2 {
  font-size: 2.4rem;
  position: relative;
  display: inline-block;
  color: #1f1f1f;
}

main .team-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
}

main .team-list .team-wrapper > div {
  background: #f4f6f5;
  border-left: 5px solid var(--color-accent);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .team-list .team-wrapper > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

main .team-list .team-wrapper h3 {
  margin-bottom: 0.8rem;
  color: var(--color-accent);
}

main .calendar,
main .calendar .event-cards {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-lg);
}

main .calendar {
  align-items: center;
  gap: var(--space-xxl);
}

main .calendar .title {
  position: relative;
  font-size: var(--font-size-lg);
}

main .calendar .title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
}

main .calendar .event-cards .card {
  background: var(--color-surface);
  color: var(--color-background);
  border-radius: var(--radius-md);
  font-size: 1.1rem;

  padding: var(--space-xl);
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

main .calendar .event-cards .card p:first-child {
  font-weight: 600;
}


main .calendar .event-cards .card:hover {
  transform: translateY(-5px);
}

.arrow {
  position: relative;
  display: flex;
  align-self: center;
  width: 4px;
  height: 50px;
  margin: 0 29px;
  border-radius: 9999px;
  background-color: var(--color-text);
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 2px);
  width: 4px;
  height: 20px;
  border-radius: 9999px;
  background-color: var(--color-text);
  transform-origin: 50% calc(100% - 2px);
}

.arrow::before {
  transform: rotate(45deg);
}

.arrow::after {
  transform: rotate(-45deg);
}

footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  text-align: center;
}

footer .left,
footer .middle,
footer .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

footer .middle {
  flex: 2;
}

footer .left {
  align-items: flex-start;
}

footer .right {
  align-items: flex-end;
}

footer .left img,
footer .right img {
  max-width: 250px;
  height: auto; 
  object-fit: contain; 
}

.cncv-logo {
  max-width: 250px;
}


@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  
  50% {
    transform: translate(-50%, -10px);
  }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navbarFade {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }

}

@media only screen and (max-width: 480px) {
  .mobilemenu .menu {
    max-width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .mobilenav {
    display: block;
  }

  header .header-arrow {
    display: none;
  }

  .navbar .logo img {
    max-width: 250px;
  }

  .navbar .links,
  .navbar .regulament {
    display: none;
  }

  .navbar {
    padding-inline: var(--space-md);
  }

  main .about .about-text {
    font-size: var(--font-size-sm);
    width: 40ch;
  }

  main .values {
    flex-direction: column;
  }

  main .team {
    padding-inline: var(--space-sm)
  }

  footer {
    flex-direction: column;
    gap: var(--space-md);
  }

  footer .left,
  footer .right  {
    align-items: center;
    justify-content: center;
  }

  footer .left img,
  footer .right img {
    max-width: 250px;
  }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
  .mobilenav {
    display: block;
  }

  header .header-arrow {
    display: none;
  }

  .navbar .logo img {
    max-width: 250px;
  }

  .navbar .links,
  .navbar .regulament {
    display: none;
  }

  .navbar {
    padding-inline: var(--space-md);
  }

  main .about .about-text {
    font-size: var(--font-size-base);
    width: 60ch;
  }

  main .values {
    flex-direction: column;
  }

  main .values .value-card {
    max-width: 600px;
  }

  main .team {
    padding-inline: var(--space-sm)
  }

  footer {
    flex-direction: column;
    gap: var(--space-md);
  }

  footer .left,
  footer .right .img-container {
    align-items: center;
    justify-content: center;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .mobilenav {
    display: block;
  }

  .navbar .links,
  .navbar .regulament {
    display: none;
  }

  .navbar .logo img {
    max-width: 250px;
  }
  main .about .about-text {
    width: 60ch;
  }

  footer {
    padding: var(--space-md) var(--space-lg);
  }

  footer .left,
  footer .middle,
  footer .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer .right {
    align-items: center;
    justify-content: center;
  }
  
  footer .left img,
  footer .right img {
    max-width: 250px;
  }

  footer .middle {
    flex: 2
  }
}
