@import url('./public/fonts/fonts.css');

:root {
  --background-color-light: #FFFFFB;
  --section-highlight: #E8E8E3;
  --text-color: #343641;
  --box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  --box-shadow-hover: 0 4px 6px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color-light);
}

.landing-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.section {
  padding: 4rem 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section:nth-child(odd) {
  background-color: var(--section-highlight);
}

.section-with-image {
  padding: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero and Contact sections with image */
.hero-container, .contact-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: 80vh;
  overflow: hidden;
}

.hero-content, .contact-content {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: auto 6rem;
  box-sizing: border-box;
}

.hero-logo {
  max-width: 300px;
  max-height: 200px;
  margin-bottom: 1rem;
}

.hero-logo img {
  width: 100%;
}

.hero-image, .contact-image {
  flex: 1;
  max-width: 50%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
  position: relative;
}

.hero-image {
  right: 0;
}

.contact-image {
  left: 0;
}

.hero-image img, .contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

h1, h2, h3 {
  font-family: 'Georgia', serif;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.sub-container {
  margin-top: 1.5rem;
}

.simple-card {
  flex: 1 1 ;
  padding: 1.5rem;
  padding-top: 3rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  position: relative;
}

.simple-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.dark-card {
  background: var(--section-highlight);
}

.light-card {
  background: var(--background-color-light);
}

.card-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--text-color);
  color: var(--section-highlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Georgia', serif;
  box-shadow: var(--box-shadow);
}

.center {
  text-align: center;
}

.image-card {
  flex: 1 1 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-card-content {
  padding: 1.5rem;
}

.contact-infpx{
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-item svg {
  margin-right: 10px;
}

.floating-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.floating-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.floating-button.clicked {
  transform: scale(0.9);
  background-color: #1a1a1a;
}

.floating-button svg {
  color: var(--background-color-light);
  font-size: 1.5rem;
}

.floating-button svg {
  color: var(--background-color-light);
  font-size: 1.5rem;
}

.contact-menu {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.contact-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-button {
  position: relative;
  bottom: auto;
  right: auto;
  background-color: var(--text-color);
  opacity: 0;
  transform: scale(0.9);
  margin: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  transition-delay: calc(var(--btn-index) * 0.1s);
}

.contact-menu.open .contact-button {
  opacity: 0.9;
}

.contact-button:hover {
  opacity: 1;
  transform: scale(1);
}

.contact-button.clicked {
  transform: scale(0.85);
  background-color: #1a1a1a;
}

.contact-button.contact-phone {
  --btn-index: 0;
}

.contact-button.contact-email {
  --btn-index: 1;
}

/* Backdrop overlay */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition-property: opacity, visibility, -webkit-backdrop-filter, backdrop-filter;
}

.backdrop.visible {
  visibility: visible;
  opacity: 1;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 1.5rem;
    min-height: 0;
  }

  .section-with-image {
    padding: 0;
  }
  
  .simple-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .card-with-number {
    margin-top: 2rem;
  }

  .card-with-number:first-child {
    margin-top: 0;
  }
  
  .card-container {
    flex-direction: row;
  }
  
  .hero-container, .contact-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
    max-width: 100%;
  }
  
  .hero-content, .contact-content {
    flex: 1;
    max-width: 100%;
    margin: 3rem 1.5rem;
    order: 1;
    box-sizing: border-box;
  }
  
  .hero-image, .contact-image {
    flex: 1;
    max-width: 100%;
    height: 40vh;
    position: static;
  }

  .hero-image {
    order: 2;
  }
  
  .hero-logo {
    display: flex;
    align-self: center;
  }
}