:root {
  --primary-color: #e1641c;
  --text-dark: #000000;
  --bg-primary: #ebebde;
  --bg-white: #ffffff;
  --bg-grey: #f5f5f5;
  --success-color: #27ae60;
  --error-color: #e74c3c;
  --bounce-easing: cubic-bezier(0.68, -0.3, 0.265, 1.3);
  --snappy-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-primary);
  padding: 35px 0;
  font-size: 1.75rem;
  position: relative;
}

.header .container {
  line-height: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-switcher {
  margin-left: 96px;
  position: relative;
  height: 32px;
  width: 58px;
  line-height: 1;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.language-switcher-dropdown {
  position: relative;
  height: 100%;
  width: 100%;
}

.language-links {
  padding: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  width: 58px;
  transition: border-color 0.3s ease;
  list-style: none;
  cursor: pointer;
}

.language-links:hover,
.language-links.is-active {
  border-color: var(--text-dark);
}

.language-links.is-active li:not(.is-active) {
  display: block;
}

.language-links li {
  order: 2;
}

.language-links li.is-active {
  display: block;
  position: relative;
  order: 1;
}

.language-links li.is-active a {
  pointer-events: none;
}

.language-links li.is-active::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" fill="none"><path d="M10 0H0L5 6L10 0Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.language-links li:not(.is-active) {
  display: none;
}

.language-links li:not(.is-active):hover a {
  background-color: var(--text-dark);
  color: var(--bg-white);
}

.language-link {
  display: block;
  text-decoration: none;
  color: var(--text-dark);
  text-transform: uppercase;
  padding: 6px 8px;
  padding-right: 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.language-link:hover {
  text-decoration: none !important;
}

.logo {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.4s ease;
  letter-spacing: 1px;
}

.bouncy-easing {
  transition-timing-function: var(--bounce-easing) !important;
}

.snappy-easing {
  transition-timing-function: var(--snappy-easing) !important;
}

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

.visually-hidden,
.grecaptcha-badge {
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  padding-top: 240px;
  background-color: var(--bg-primary);
  max-height: calc(65vh - 98px + 180px);
  display: flex;
  align-items: center;
}

.hero-illustration {
  animation: fadeInFromLeft 3s var(--snappy-easing);
  animation-fill-mode: both;
  pointer-events: none;
  user-select: none;
  margin-left: -340px;
}

.hero-illustration img {
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  aspect-ratio: 537 / 561;
}

@keyframes fadeInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }
  5% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

@media (max-width: 768px) {
  @keyframes fadeInFromLeft {
    0% {
      opacity: 0;
      transform: translateX(-50px);
    }
    5% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.hero-illustration {
  width: 100%;
  max-width: 537px;
}

.hero-illustration img {
  aspect-ratio: 537 / 595;
  animation: float 10s ease-in-out infinite;
  max-width: 90vw;
  max-height: 60vh;
  height: auto;
  width: auto;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

#intro {
  padding: 0 0 272px 0;
  background: var(--bg-primary);
}

.intro-title {
  width: calc(50% + 150px);
  margin: auto auto 40px auto;
  padding-left: 150px;
}

.intro-text {
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.28;
  width: calc(50% + 100px);
  margin: auto;
  padding-left: 130px;
  letter-spacing: 0.05px;
}

/* Instagram Section */
.instagram-section {
  padding: 80px 0 160px 0;
  background-color: var(--bg-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: normal;
  color: var(--text-dark);
}

.large-h1 {
  font-family: 'Montserrat', serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 48px;
  line-height: normal;
}

h3 {
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: normal;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.instagram-post {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--bounce-easing), box-shadow 0.3s ease,
    opacity 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-grey);
  border-radius: 8px;
}

.instagram-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.instagram-post img:not(.full-size-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--bounce-easing);
}

.instagram-post:hover img:not(.full-size-img) {
  transform: scale(1.025);
}

/* Hide full-size images */
.instagram-post .full-size-img {
  display: none;
}

/* Instagram Modal Overlay */
.instagram-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  pointer-events: none;
  transition: background 0.4s ease;
}

.instagram-overlay.active {
  background: rgba(0, 0, 0, 0.95);
  pointer-events: auto;
}

.instagram-modal-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.instagram-modal {
  position: fixed;
  overflow: hidden;
  background: #000;
  opacity: 0;
  z-index: 10000;
}

.instagram-overlay.active .instagram-modal {
  opacity: 1;
}

.instagram-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease !important;
  z-index: 10001;
  color: white;
}

.instagram-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.btn-primary {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  padding: 20px 32px;
  transition: all 0.4s var(--bounce-easing);
  line-height: normal;
  font-size: 1.25rem;
  outline: none;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.075);
}

/* Contact Form Section */
.contact-section {
  padding: 80px 0 160px 0;
}

.contact-form {
  max-width: 826px;
  margin-right: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: normal;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px 15px 16px;
  border: 1px solid var(--bg-grey);
  border-radius: 0;
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  line-height: normal;
  transition: all 0.4s var(--bounce-easing);
  background-color: var(--bg-grey);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  border-radius: 8px;
}

.form-group textarea {
  resize: vertical;
  min-height: 196px;
  resize: none;
}

.form-group.checkbox-group {
  margin-top: -12px;
}

/* Custom Checkbox Styles */
.checkbox-group {
  margin-bottom: 24px !important;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  cursor: pointer;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--text-light) !important;
  margin-bottom: 0 !important;
  gap: 12px;
}

.checkbox-label input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.custom-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 3px;
}

.checkbox-square {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--bg-white);
  border: 2px solid var(--text-dark);
  border-radius: 4px;
  transition: opacity 0.4s var(--snappy-easing);
  opacity: 1;
}

.checkbox-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--snappy-easing);
}

.checkbox-svg svg {
  width: 100%;
  height: 100%;
}

.checkbox-svg path {
  stroke: #000000;
}

.checkbox-label
  input[type='checkbox']:checked
  + .custom-checkbox
  .checkbox-square {
  opacity: 0;
}

.checkbox-label
  input[type='checkbox']:checked
  + .custom-checkbox
  .checkbox-svg {
  opacity: 1;
}

.checkbox-label:hover .checkbox-square {
  border-color: var(--accent-color);
}

.checkbox-label input[type='checkbox']:focus + .custom-checkbox {
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.btn-submit {
  margin-top: 8px;
}

.success-message,
.error-message {
  display: inline-block;
  max-width: 600px;
  margin: 0 30px;
  padding: 15px 20px;
  border-radius: 8px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.error-message {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* About Section */
.about-section {
  padding: 64px 0 128px 0;
}

.about-grid {
  display: flex;
  gap: 140px;
  flex-wrap: wrap;
  font-size: 1.25rem;
  line-height: 1.5;
}

.cif {
  margin-top: 8px;
}

.email a {
  display: inline-block;
  margin-top: 46px;
  line-height: 1;
  text-decoration: none;
  color: black;
}

.about-grid a:hover {
  color: var(--primary-color);
}

.about-grid h3 {
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 88px 0;
  margin-top: auto;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: normal;
}

.privacy-link {
  text-decoration: none;
  font-size: 0.875rem;
  line-height: normal;
  color: var(--text-dark);
  transition: all 0.4s var(--bounce-easing);
}

.privacy-link:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .intro-title,
  .intro-text {
    padding: 0;
    width: 100%;
    max-width: 600px;
  }

  .instagram-section,
  .contact-section,
  .about-section,
  #intro {
    padding-bottom: 80px;
  }

  .hero {
    padding-top: 100px;
    max-height: calc(65vh - 98px + 100px);
  }

  .form-row {
    gap: 0;
  }

  .form-group label {
    font-size: 1rem !important;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  .about-grid {
    font-size: 1.25rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 16px 24px;
  }

  footer.footer {
    padding: 48px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h1.large-h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  h3 {
    font-size: 1.25rem;
  }

  .intro-text {
    font-size: 1.75rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-illustration {
    margin-left: -100px;
    animation: fadeInFromLeft 3s var(--snappy-easing);
  }

  .hero-illustration img {
    max-height: 50vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-illustration {
    max-width: 250px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 40px;
  }

  .footer .container {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .instagram-section h2,
  .contact-section h2,
  .about-section h2 {
    font-size: 1.5rem;
  }

  .instagram-section,
  .contact-section,
  .about-section {
    padding: 60px 0;
  }
}

/* Loading Animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
  ::selection {
    background-color: var(--primary-color);
    color: var(--bg-white);
  }
}

/* Privacy Policy Page Styles */
.privacy-hero {
  padding: 120px 0 60px;
  background: linear-gradient(
    135deg,
    var(--bg-light) 0%,
    rgba(230, 126, 34, 0.05) 100%
  );
  text-align: center;
}

.privacy-content {
  padding: 60px 0;
  background-color: var(--bg-white);
}
