*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  --text-color: #000;
  --main-hue: 355;
  --main-color: #c3001e;
  --nav-color: #666666;
  --bg-color: #fff;
  --main-color-hover: #a00018;
  --input-bg: rgba(195, 0, 30, 0.06);
  --input-bg-hover: rgba(195, 0, 30, 0.12);
  --input-text: #8c9aaf;
  --accent-color: #f5f5f5;
  --border-color: #e0e0e0;
}

a {
  text-decoration: none;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding-top: 0rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(195, 0, 30, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header .container {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 3rem;
}

header ul li {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 3rem;
}

.logo .images {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.logo img {
  height: 35px;
  grid-column: 1/2;
  grid-row: 1/2;
  margin-right: 0.8rem;
}

.logo h2 {
  color: var(--text-color);
  font-size: 1.55rem;
  margin-top: 2px;
  font-weight: 700;
}

.logo h2 span {
  color: var(--main-color);
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 1rem; /* Fixed typo: was "-size" */
  color: var(--nav-color);
  transition: 0.3s;
  border-radius: 25px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--main-color);
  background: rgba(195, 0, 30, 0.1);
}

.contact {
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
}

.contact .container {
  height: 100vh;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.contact .container > div {
  grid-column: 1/2;
  grid-row: 1/2;
}

.left {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 65px 1.55rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  position: relative;
  z-index: 3;
}

.contact-heading h1 {
  font-weight: 700;
  color: var(--text-color);
  font-size: 3.5rem;
  line-height: 0.9;
  white-space: nowrap;
  margin-bottom: 1.2rem;
}

.contact-heading h1 span {
  color: var(--main-color);
}

.text {
  color: #7ca7b6;
  line-height: 1.4;
  font-size: 1rem;
}

.text a {
  color: var(--main-color);
  transition: 0.3s;
  font-weight: 500;
}

.text a:hover {
  color: var(--main-color-hover);
}

.form-wrapper {
  max-width: 32rem;
}

.contact-form {
  display: grid;
  margin-top: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 1rem;
}

.input-wrap {
  position: relative;
}

.input-wrap.w-100 {
  grid-column: span 2;
}

.contact-input {
  width: 100%;
  background-color: var(--input-bg);
  padding: 1.5rem 1.35rem calc(0.75rem - 2px) 1.35rem;
  outline: none;
  font-family: inherit;
  border-radius: 20px;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  box-shadow: 0 0 0 0px rgba(195, 0, 30, 0.169);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.contact-input:hover {
  background-color: var(--input-bg-hover);
  transform: translateY(-2px);
}

.input-wrap label {
  position: absolute;
  top: 50%;
  left: calc(1.35rem + 2px);
  transform: translateY(-50%);
  color: #7ca7b6;
  pointer-events: none;
  transition: 0.25s;
  font-weight: 500;
}

.input-wrap .icon {
  position: absolute;
  top: 50%;
  right: calc(1.35rem + 2px);
  transform: translateY(-50%);
  color: var(--input-text);
  pointer-events: none;
  font-size: 1.25rem;
  transition: 0.3s;
}

textarea.contact-input {
  resize: none;
  width: 100%;
  min-height: 150px;
}

textarea.contact-input ~ label {
  top: 1.2rem;
  transform: none;
}

textarea.contact-input ~ .icon {
  top: 1.3rem;
  transform: none;
}

.input-wrap.focus .contact-input {
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 0 5px rgba(195, 0, 30, 0.11);
  transform: translateY(-2px);
}

.input-wrap.focus label {
  color: var(--main-color);
}

.input-wrap.focus .icon {
  color: var(--main-color);
}

.input-wrap.not-empty label {
  font-size: 0.66rem;
  top: 0.75rem;
  transform: translateY(0);
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  grid-column: span 2;
}

.btn {
  display: inline-block;
  padding: 1.1rem 2rem;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 40px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(195, 0, 30, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background-color: var(--main-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(195, 0, 30, 0.4);
}

.btn.upload {
  position: relative;
  background-color: var(--input-bg);
  color: var(--input-text);
  box-shadow: none;
}

.btn.upload:hover {
  background-color: var(--input-bg-hover);
  transform: translateY(-1px);
}

.btn.upload span {
  color: var(--input-text);
}

.btn.upload input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: red;
  cursor: pointer;
  opacity: 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--main-color) 0%, #a00018 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  margin-top: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(195, 0, 30, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #a00018 0%, var(--main-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(195, 0, 30, 0.4);
}

.contact-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.contact-btn i {
  font-size: 1.2rem;
  margin-left: 0.5rem;
  transition: 0.3s;
}

.contact-btn:hover i {
  transform: translateX(5px);
}

.right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  pointer-events: none;
}

.image-wrapper {
  position: relative;
  grid-column: 2;
}

.image-wrapper .img {
  position: absolute;
  height: 130%;
  left: 60%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 20px;
  object-fit: cover;
}

.wave-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 100%;
  background-color: var(--bg-color);
}

.wave-wrap svg {
  position: absolute;
  height: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  left: calc(100% - 2px);
}

#wave {
  fill: var(--bg-color);
  height: 100%;
}

.dashed-wave {
  position: absolute;
  z-index: 3;
  height: 130%;
  bottom: 60%;
  left: -28px;
  transform: translateY(50%);
}

#dashed-wave {
  fill: none;
  stroke: var(--nav-color);
  stroke-width: 1px;
  stroke-dasharray: 6.5;
  opacity: 0.8;
}

.business-card {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f5f5 100%); */
  background: transparent; /* Changed to transparent */
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 80%, rgba(195, 0, 30, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(195, 0, 30, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.business-card .container {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative; /* Added for stacking context */
  z-index: 2; /* Added to ensure card is above background animations */
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(195, 0, 30, 0.08);
  max-width: 1000px; /* Reverted */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.card-left {
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  position: relative;
  overflow: hidden;
}

.card-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(195, 0, 30, 0.02) 0%, transparent 70%);
  pointer-events: none;
  animation: subtle-rotate 30s linear infinite;
}

.card-right {
  height: 100%;
  min-height: 500px;
  position: relative;
}

.map-container {
  height: 100%;
  width: 100%;
  border-radius: 0 25px 25px 0;
  overflow: hidden;
  position: relative;
}

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(195, 0, 30, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.9) contrast(1.1) brightness(0.95);
  transition: filter 0.3s ease;
}

.map-container:hover iframe {
  filter: saturate(1) contrast(1.2) brightness(1);
}

.card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-area {
  margin-bottom: 1.5rem;
}

.logo-area img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(195, 0, 30, 0.15));
  transition: transform 0.3s ease;
}

.logo-area img:hover {
  transform: scale(1.05);
}

.card-header h2 {
  color: var(--text-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header h2 span {
  color: var(--main-color);
}

.card-body {
  text-align: center;
}

.card-body h3 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-body .title {
  color: var(--main-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.card-body .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

.contact-info {
  margin-bottom: 2.5rem;
}

.contact-info p {
  color: var(--input-text);
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.8rem 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(195, 0, 30, 0.05);
  backdrop-filter: blur(10px);
}

.contact-info p:hover {
  background: rgba(195, 0, 30, 0.08);
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(195, 0, 30, 0.15);
  border-color: rgba(195, 0, 30, 0.2);
}

.contact-info i {
  color: var(--main-color);
  margin-right: 1.2rem;
  width: 22px;
  font-size: 1.2rem;
  text-align: center;
}

.contact-info a {
  color: var(--input-text) !important;
  text-decoration: none;
  transition: 0.3s;
}

.contact-info a:hover {
  color: var(--main-color) !important;
}

footer {
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for consistency */
}

footer .container {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.powered-by {
  margin: 20px 0;
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 15px 20px;
  background: rgba(195, 0, 30, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(195, 0, 30, 0.1);
}

.powered-by a {
  color: var(--main-color);
  text-decoration: none;
  padding: 0 5px;
  transition: color 0.3s ease;
  font-weight: 600;
}

.powered-by a:hover {
  color: var(--main-color-hover);
}

main {
  margin-top: 65px;
  position: relative;
  z-index: 1;
}

/* Enhanced mobile responsiveness */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .card-right {
    min-height: 400px;
  }

  .map-container {
    border-radius: 0 0 25px 25px;
  }
  
  .card-left {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .business-card {
    padding: 2rem 0;
  }
  
  .card-header h2 {
    font-size: 1.8rem;
  }
  
  .card-body h3 {
    font-size: 1.5rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
    margin: 0.8rem 0;
  }
  
  .powered-by {
    font-size: 12px;
    margin: 10px 0;
    padding: 10px 15px;
  }
}

@media (max-width: 500px) {
  .card-left {
    padding: 2rem;
  }
  
  .card-right {
    min-height: 300px;
  }
}

@media (max-width: 1000px) {
  .logo {
    margin-right: 1rem;
  }
  .logo img {
    height: 30px;
    margin-right: 0.7rem;
  }
  .logo h2 {
    font-size: 1.3rem;
  }
  .nav-link {
    margin-left: 3.5rem;
    padding: 0 0.8rem;
    font-size: 0.9rem;
  }
  .contact-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: normal;
  }
  .text {
    font-size: 0.9rem;
  }
  .contact-form {
    display: grid;
    margin-top: 1.9rem;
    column-gap: 0.8rem;
    row-gap: 0.65rem;
  }
  .contact-input {
    border-radius: 17px;
    font-size: 0.87rem;
    padding: 1.5rem 1.2rem calc(0.75rem - 2px) 1.2rem;
  }
  .input-wrap label {
    font-size: 0.91rem;
    left: calc(1.2rem + 2px);
  }
  .input-wrap .icon {
    font-size: 1.1rem;
    right: calc(1.2rem + 2px);
  }
  textarea.contact-input ~ label {
    top: 1.33rem;
  }
  .input-wrap.focus .contact-input {
    box-shadow: 0 0 0 3.5px rgba(195, 0, 30, 0.11);
  }
  .input-wrap.not-empty label {
    font-size: 0.61rem;
  }
  .contact-buttons {
    column-gap: 0.8rem;
    margin-top: 0.45rem;
  }
  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.87rem;
  }
  .dashed-wave {
    bottom: 55%;
    left: -10px;
  }
  #dashed-wave {
    stroke-width: 0.7px;
    stroke-dasharray: 6;
  }
  .wave-wrap {
    transform: translateX(-10%);
  }
  .wave-wrap svg {
    height: calc(110% + 10px);
    transform: translate(-5%, -50%);
  }
}

@media (max-width: 650px) {
  header .container {
    height: 55px;
    padding: 0 0.5rem;
  }
  
  header ul {
    gap: 0.5rem;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
  }
  
  .logo {
    margin-right: 0;
    flex-shrink: 0;
  }
  
  .logo img {
    height: 22px;
    margin-right: 0.4rem;
  }
  
  .logo h2 {
    font-size: 1rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    margin-left: 0;
    white-space: nowrap;
  }
  
  .language-switcher {
    margin-left: 0;
    gap: 0.3rem;
    flex-shrink: 0;
  }
  
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 15px;
  }
  
  .left {
    padding: 50px 1.5rem 0;
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .form-wrapper {
    width: 100%;
    padding: 1rem 0;
  }
  .right {
    display: none;
  }
  .input-wrap .icon {
    display: none;
  }
}

@media (max-width: 420px) {
  header .container {
    height: 50px;
    padding: 0 0.5rem;
  }
  
  header ul {
    gap: 0.3rem;
  }
  
  .logo h2 {
    font-size: 0.9rem;
  }
  
  .logo img {
    height: 20px;
    margin-right: 0.3rem;
  }
  
  .nav-link {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }
  
  .lang-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 12px;
  }
  
  .input-wrap {
    grid-column: span 2;
  }
  .contact-buttons {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }
  .contact-heading h1 {
    font-size: 1.9rem;
    line-height: 1;
  }
  .logo img {
    height: 25px;
    margin-right: 0.7rem;
  }
  .logo h2 {
    font-size: 1.15rem;
  }
  .input-wrap .icon {
    display: none;
  }
  .business-card .container {
    max-width: 82rem;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

html {
  scroll-behavior: smooth;
}

.marqenti-logo {
  width: 35px;
  height: 35px;
  background: var(--main-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-grid {
  animation: fadeInUp 0.8s ease-out;
}

.contact-info p {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.contact-info p:nth-child(1) { animation-delay: 0.1s; }
.contact-info p:nth-child(2) { animation-delay: 0.2s; }
.contact-info p:nth-child(3) { animation-delay: 0.3s; }
.contact-info p:nth-child(4) { animation-delay: 0.4s; }
.contact-info p:nth-child(5) { animation-delay: 0.5s; }

.input-wrap.error .contact-input {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-wrap.error label {
  color: #dc3545;
}

.contact-info p {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect for buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced form error states */
.input-wrap.error .contact-input {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  background-color: rgba(220, 53, 69, 0.05);
}

.input-wrap.error label {
  color: #dc3545;
}

.input-wrap.error .icon {
  color: #dc3545;
}

/* Loading state for submit button */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* Enhanced scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Header scroll effect */
.header-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Add subtle rotation animation for background */
@keyframes subtle-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Styles for background animations */
.background-animations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind the card */
  overflow: hidden; /* Ensure animations don't spill out */
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow clicks to pass through */
  --animation-speed: 1; /* Controlled by JS */
}

.floating-elements .particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(195, 0, 30, 0.1); /* Softer particle color */
  opacity: 0; /* Start invisible, fade in with animation */
  animation-name: float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.floating-elements .particle.dot {
  width: 5px; /* Smaller dots */
  height: 5px;
}

.floating-elements .particle.line {
  width: 1px; /* Thinner lines */
  height: 60px; /* Shorter lines */
  border-radius: 1px;
}

@keyframes float {
  0% {
    transform: translateY(20px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.7; /* Fade in */
  }
  80% {
    opacity: 0.7; /* Stay visible */
  }
  100% {
    transform: translateY(calc(-100vh - 50px)) translateX(var(--random-x-end)) rotate(var(--random-rotate-end));
    opacity: 0;
  }
}

/* Language switcher styles */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 2rem;
}

.lang-btn {
  background: transparent;
  border: 2px solid var(--nav-color);
  color: var(--nav-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: rgba(195, 0, 30, 0.05);
}

.lang-btn.active {
  background: var(--main-color);
  border-color: var(--main-color);
  color: white;
}

.lang-btn.active:hover {
  background: var(--main-color-hover);
  border-color: var(--main-color-hover);
}

/* Meet the Team Section */
.team-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.team-container {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.team-header h2 span {
  color: var(--main-color);
}

.team-header p {
  font-size: 1.1rem;
  color: var(--nav-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), #ff6b6b);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.team-card:hover::before {
  transform: scaleX(1);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--main-color), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(195, 0, 30, 0.3);
}

.team-avatar img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.team-card h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-card .title {
  color: var(--main-color);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.team-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--main-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.team-visit-btn:hover {
  background: var(--main-color-hover);
  transform: translateX(5px);
}

.team-visit-btn i {
  transition: transform 0.3s ease;
}

.team-visit-btn:hover i {
  transform: translateX(3px);
}

/* Responsive team section */
@media (max-width: 768px) {
  .team-section {
    padding: 3rem 0;
  }
  
  .team-header h2 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-card {
    padding: 1.5rem;
  }
}