/* Font Setup - Add your Ideal Sans font files to /fonts folder */
@font-face {
  font-family: 'Ideal Sans';
  src: url('fonts/IdealSans-Book.woff2') format('woff2'),
       url('fonts/IdealSans-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body {
  font-family: 'Ideal Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  background-color: #1A1A1A;
  overflow: hidden;
}

/* Layout */
.landing {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

/* Left Content Section */
.content {
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #1A1A1A 0%, #141414 100%);
  padding: 48px 80px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header / Logo */
.header {
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.2s forwards;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 32px;
  width: auto;
}

/* Hero Content */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin-top: -80px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #333333;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.badge-text {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #888888;
}

/* Headline */
.headline {
  font-size: 74px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 40px;
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.headline span:nth-child(1) {
  animation-delay: 0.6s;
}

.headline span:nth-child(2) {
  animation-delay: 0.75s;
}

.headline span:nth-child(3) {
  animation-delay: 0.9s;
}

.headline-green,
.headline-white {
  color: #ffffff;
}

/* Button */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  background-color: #ffffff;
  border: none;
  border-radius: 100px;
  color: #1A1A1A;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
  transform: scale(1.02);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

/* Footer */
.footer {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: #666666;
  z-index: 10;
}

.footer-copyright {
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.3s forwards;
}

.footer-contact {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.4s forwards;
}

.footer-contact:hover {
  color: #ffffff;
}

/* Right Image Section */
.image-section {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  opacity: 0;
  scale: 1.08;
  animation: imageReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
             kenBurns 30s ease-in-out 2.3s infinite alternate;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-section:hover .hero-image {
  transform: scale(1.02);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes imageReveal {
  from {
    opacity: 0;
    scale: 1.08;
  }
  to {
    opacity: 1;
    scale: 1.03;
  }
}

@keyframes kenBurns {
  from {
    scale: 1.03;
    object-position: 20% center;
  }
  to {
    scale: 1.08;
    object-position: 20% 40%;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal {
  background-color: #1A1A1A;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-title {
  font-size: 26px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 8px;
  padding-right: 40px;
}

.modal-subtitle {
  font-size: 15px;
  color: #888888;
  margin-bottom: 28px;
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #888888;
}

.form-label .required {
  color: #666666;
  font-weight: 400;
  font-size: 14px;
}

/* Submit error */
.submit-error {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 140, 140, 0.8);
  text-align: center;
  margin-top: 0;
  margin-bottom: -12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.submit-error.active {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #333333;
  padding: 8px 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #ffffff;
}

.form-input::placeholder {
  color: #555555;
}

/* Validation States */
.form-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(255, 140, 140, 0.6);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: #3a3a3a;
}

.form-input:valid:focus {
  border-color: #ffffff;
}

.form-group {
  position: relative;
}

.form-error {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 140, 140, 0.8);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.form-group.has-error .form-error {
  opacity: 1;
  transform: translateY(0);
}

.form-group.has-error .form-input {
  border-color: rgba(255, 140, 140, 0.6);
}

/* Form submission states */
.modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-submit.loading {
  position: relative;
  color: transparent;
}

.modal-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #1A1A1A;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-submit {
  margin-top: 0;
  height: 48px;
  background-color: #ffffff;
  border: none;
  border-radius: 100px;
  color: #1A1A1A;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-submit:hover {
  transform: scale(1.02);
}

.modal-submit:active {
  transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .content {
    padding: 40px 48px;
  }

  .headline {
    font-size: 56px;
  }

  .footer {
    left: 48px;
    bottom: 40px;
  }
}

@media (max-width: 768px) {
  .landing {
    position: relative;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }

  .content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 32px 24px 48px;
    background: transparent;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, padding 0.5s ease;
  }

  .image-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: width 0.5s ease, position 0.5s ease;
  }

  .image-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.1) 60%,
      rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
  }

  .hero-image {
    animation: imageReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    object-position: 20% center;
  }

  .header {
    margin-bottom: 0;
    transition: margin 0.5s ease;
  }

  .hero {
    flex: 1;
    justify-content: center;
    margin-top: 0;
    transition: margin 0.5s ease;
  }

  .headline {
    font-size: 70px;
    transition: font-size 0.5s ease;
  }

  .badge {
    margin-bottom: 24px;
    border-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.5s ease, margin 0.5s ease;
  }

  .badge-text {
    color: #ffffff;
    transition: color 0.5s ease;
  }

  .footer {
    left: 24px;
    bottom: 24px;
  }

  .footer-copyright,
  .footer-contact {
    color: rgba(255, 255, 255, 0.5);
  }

  .footer-contact:hover {
    color: #ffffff;
  }

  .submit-btn {
    width: fit-content;
    transition: width 0.5s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (max-width: 480px) {
  .content {
    padding: 24px 24px 40px;
  }

  .headline {
    font-size: 60px;
  }

  .submit-btn {
    height: 52px;
  }
}

@media (max-width: 380px) {
  .headline {
    font-size: 52px;
  }
}

/* Modal Header */
.modal-header {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* Form transitions */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* Form Success State */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.form-success.active {
  display: flex;
  animation: successReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.success-icon {
  color: #ffffff;
  margin-bottom: 32px;
  opacity: 0;
  animation: successIconReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes successIconReveal {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.success-message {
  font-size: 16px;
  color: #888888;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Google Places Autocomplete Dropdown */
.pac-container {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: 'Ideal Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pac-item {
  padding: 12px 16px;
  color: #ffffff;
  border-top: 1px solid #2a2a2a;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover,
.pac-item-selected {
  background-color: #2a2a2a;
}

.pac-item-query {
  color: #ffffff;
  font-size: 15px;
}

.pac-matched {
  font-weight: 400;
}

.pac-item > span:last-child {
  color: #888888;
  font-size: 13px;
}

.pac-icon {
  display: none;
}

.pac-logo::after {
  display: none;
}

/* Modal Mobile */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    padding: 32px 24px 40px;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-close {
    top: 20px;
    right: 12px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-form {
    gap: 24px;
  }

  .submit-error {
    margin-bottom: -8px;
  }
}
