@font-face {
  font-family: 'Snell';
  src: url('fonts/SnellRoundhand-BoldScript.otf') format('opentype');
}

@font-face {
  font-family: 'BrittanyHustel';
  src: url('fonts/Brittanyhustle.otf') format('opentype');
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'YoungSerif';
  src: url('fonts/YoungSerif-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Amatica';
  src: url('fonts/AmaticaSC-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'SecularOne';
  src: url('fonts/SecularOne-Regular.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times', serif;
}

/* Language specific styles */
[lang="he"] {
  direction: rtl;
  display: none;
  font-family: 'Amatica', cursive;
}

[lang="en"] {
  direction: ltr;
  display: none;
}

.active-lang {
  display: block;
}

/* Specific Hebrew element overrides */
[lang="he"] h1,
[lang="he"] h2,
[lang="he"] .page-title {
  font-family: 'Amatica', cursive;
  font-size: 5em; /* Slightly larger to account for Hebrew font characteristics */
}

[lang="he"] p,
[lang="he"] a,
[lang="he"] button {
  font-family: 'Amatica', cursive;
  font-size: 1.4em; /* Larger for better readability */
}

body, html {
  height: 100%;
  color: #1a3c40;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.7)
  ),
  url('/images/possidi-beach.jpg') center/cover no-repeat;
  z-index: -1;
  overflow-y: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  will-change: transform;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Home page specific styles */
.home-body {
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(200, 200, 200, 0.5);
  position: relative;
}

.home-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  z-index: 0;
}

.background-video {
  position: fixed;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  z-index: -1;
}

@media screen and (orientation: portrait) {
  .background-video {
    width: 100%;
    height: 100%;
  }
}

/* Navigation Menu */
.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #1a3c40;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  padding: 10px;
  font-family: 'YoungSerif', serif;
}

.menu-button:hover {
  opacity: 0.8;
}

.nav-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  transition: left 0.3s ease;
  z-index: 999;
  padding-top: 80px;
}

.nav-menu.active {
  left: 0;
}

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

.nav-menu li {
  padding: 15px 30px;
}

.nav-menu a {
  color: #1a3c40;
  text-decoration: none;
  font-family: 'YoungSerif', serif;
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover {
  opacity: 0.7;
}

.nav-menu a .icon {
  margin-right: 15px;
  padding-right: 15px;
  width: 20px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

[lang="he"] .nav-menu a .icon {
  margin-right: 0;
  margin-left: 15px;
}

/* Content Sections */
.content {
  position: relative;
  padding: 100px 20px;
  margin: 0 auto;
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 1;
}

.home-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  width: 100%;
  padding: 20px;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Typography */
h1 {
  font-size: 4.5rem;
  font-family: 'BrittanyHustel', cursive;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(236, 228, 228, 0.929);
}

.passports {
  font-size: 4.5rem;
  font-family: 'BrittanyHustel', cursive;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(236, 228, 228, 0.929);
}

.page-title {
  font-size: 3.5rem;
  font-family: 'BrittanyHustel', cursive;
  margin: 2rem 0;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  color: #1a3c40;
}

/* Home page specific content */
.names {
  margin: 42px 0 0 0;
  font-size: 2rem;
}

[lang="he"] .names {
  margin: 42px 0 0 0;
  font-size: 2rem;
}

.names p:first-child {
  font-size: 1rem;
  margin-bottom: 15px;
}

[lang="he"] .names p:first-child {
  font-size: 1.7rem;
  margin-bottom: 3px;
}

.names strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

[lang="he"] .names strong {
  font-family: 'SecularOne', sans-serif;
  font-size: 1.2em;
  font-weight: normal;
}

.names em {
  font-family: 'BrittanyHustel', cursive;
  font-style: normal;
  display: block;
  margin: -33px 0;
  font-size: 3.5rem;
}

.details {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-family: 'YoungSerif', serif;
  text-transform: uppercase;
}

/* Info Sections */
.info-section {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[lang="he"] .info-section {
  text-align: right;
}

.info-section h2 {
  font-family: 'YoungSerif', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a3c40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-section h2 .icon {
  font-size: 1.3rem;
  width: 30px;
  color: #1a3c40;
}

.info-section p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #1a3c40;
}

/* Buttons and Links */
.rsvp-button, .details-button {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  color: #000;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-family: 'YoungSerif', serif;
  margin-top: 10px;
}

.rsvp-button:hover, .details-button:hover {
  background-color: white;
}

[lang="he"] .rsvp-button, [lang="he"] .details-button {
  font-family: 'Amatica', cursive;
  font-size: 1.4em;
}

.hotel-link, .activity-link {
  display: inline-block;
  color: #1a3c40;
  text-decoration: none;
  border-bottom: 1px solid #1a3c40;
  transition: opacity 0.3s ease;
  margin-top: 1rem;
}

.hotel-link:hover, .activity-link:hover {
  opacity: 0.7;
}

/* Activities page specific */
.location {
  color: #1a3c40;
  font-style: italic;
  margin-bottom: 1rem;
}

.duration {
  display: inline-block;
  background-color: rgba(26, 60, 64, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.language-switch {
  background: none;
  border: none;
  color: #1a3c40;
  cursor: pointer;
  font-family: 'YoungSerif', serif;
  font-size: 1.2rem;
  padding: 15px 30px;
  width: 100%;
  text-align: left;
  transition: opacity 0.3s ease;
}

.language-switch:hover {
  opacity: 0.7;
}

.language-switch .icon {
  margin-right: 15px;
  width: 20px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

[lang="he"] .language-switch .icon {
  margin-right: 0;
  margin-left: 15px;
}

@media screen and (max-height: 700px) {
  .home-content {
    top: 15%;
    transform: translate(-50%, 0);
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1, .passports {
    font-size: 3.5rem;
  }

  .names {
    margin: 30px 0;
    font-size: 1.8rem;
  }

  .names em {
    font-size: 3rem;
    margin: -25px 0;
  }

  .details {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
}

@media screen and (max-height: 568px) {
  .home-content {
    top: 10%;
  }
}

@media screen and (max-width: 380px) {
  h1, .passports {
    font-size: 3rem;
  }

  .names {
    font-size: 1.6rem;
  }

  .names em {
    font-size: 2.5rem;
    margin: -20px 0;
  }
}

[lang="he"] .info-section p,
[lang="he"] .info-section h2 {
  font-family: system-ui, sans-serif;
  font-size: 1em;
}

[lang="he"] .info-section h2 {
  font-family: system-ui, sans-serif;
  font-size: 1.6em;
}

[lang="he"] .nav-menu a,
[lang="he"] .language-switch {
  font-family: system-ui, sans-serif;
  font-size: 1.2em;
} 