/* src/styles/main.css */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.35;
  color: #000000;
  background-color: #f0eee6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Geometric Background */
.geometric-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.geometric-bg::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #d97757 0%, #c96643 100%);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  opacity: 0.25;
  animation:
    float 8s ease-in-out infinite,
    morph 12s ease-in-out infinite;
}

.geometric-bg::after {
  content: '';
  position: absolute;
  bottom: 35%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #6a9bcc 0%, #5a8bb8 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: rotate(25deg);
  opacity: 0.3;
  animation:
    float 6s ease-in-out infinite reverse,
    morph2 10s ease-in-out infinite;
}

.geometric-shape-1 {
  position: absolute;
  top: 55%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: #e8d5b7;
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  transform: rotate(30deg);
  opacity: 0.4;
  animation:
    float 10s ease-in-out infinite,
    morph3 15s ease-in-out infinite;
}

.geometric-shape-2 {
  position: absolute;
  top: 35%;
  left: 3%;
  width: 45px;
  height: 45px;
  background: #f4f1e8;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.5;
  animation:
    float 12s ease-in-out infinite,
    morph4 18s ease-in-out infinite;
}

.geometric-shape-3 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ddd5c7 0%, #c9c0b3 100%);
  border-radius: 20% 80% 20% 80% / 20% 20% 80% 80%;
  opacity: 0.3;
  animation:
    float 14s ease-in-out infinite,
    morph5 20s ease-in-out infinite;
}

.geometric-shape-4 {
  position: absolute;
  top: 70%;
  left: 20%;
  width: 35px;
  height: 35px;
  background: #f0eee6;
  border-radius: 80% 20% 55% 45% / 25% 75% 25% 75%;
  opacity: 0.4;
  animation:
    float 16s ease-in-out infinite,
    morph6 14s ease-in-out infinite;
}

.geometric-shape-5 {
  position: absolute;
  top: 25%;
  right: 40%;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #e8d5b7 0%, #ddd5c7 100%);
  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  opacity: 0.3;
  animation:
    float 11s ease-in-out infinite,
    morph7 16s ease-in-out infinite;
}

/* Animation Keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  25% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }
  75% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }
}

@keyframes morph2 {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  33% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  66% {
    border-radius: 50% 50% 33% 67% / 55% 73% 27% 45%;
  }
}

@keyframes morph3 {
  0%,
  100% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }
}

@keyframes morph4 {
  0%,
  100% {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  }
  33% {
    border-radius: 75% 25% 43% 57% / 68% 34% 66% 32%;
  }
  66% {
    border-radius: 43% 57% 68% 32% / 39% 61% 39% 61%;
  }
}

@keyframes morph5 {
  0%,
  100% {
    border-radius: 20% 80% 20% 80% / 20% 20% 80% 80%;
  }
  50% {
    border-radius: 80% 20% 80% 20% / 80% 80% 20% 20%;
  }
}

@keyframes morph6 {
  0%,
  100% {
    border-radius: 80% 20% 55% 45% / 25% 75% 25% 75%;
  }
  50% {
    border-radius: 25% 75% 30% 70% / 80% 20% 80% 20%;
  }
}

@keyframes morph7 {
  0%,
  100% {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  }
  50% {
    border-radius: 30% 70% 70% 30% / 40% 60% 40% 60%;
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  background-color: #f0eee6;
  backdrop-filter: blur(10px);
  border-bottom: 0.75px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 16px;
  font-weight: 200;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
  padding: 8px 16px;
  border-radius: 6px;
}

.nav-link:hover {
  opacity: 0.7;
  color: #333;
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: #d97757;
  background-color: rgba(217, 119, 87, 0.1);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
}

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

.hero-title {
  font-size: 28px;
  font-weight: 200;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #000000;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 48px;
  color: #666666;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 700px;
}

.hero-card {
  background: #d97757;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  text-align: left;
}

.hero-card-secondary {
  background: #6a9bcc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  text-align: left;
}

.hero-card-header {
  margin-bottom: 16px;
}

.hero-card-badge {
  display: inline-block;
  background: #000;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-card h3,
.hero-card-secondary h3 {
  font-size: 24px;
  font-weight: 400;
  color: #000;
  margin: 0;
}

.hero-card p,
.hero-card-secondary p {
  color: #000;
  margin-bottom: 24px;
  font-size: 16px;
}

.underline-fnds {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.04em;
  text-decoration-color: currentColor;
  transition: text-decoration-color 0.2s ease;
}

.underline-fnds:hover {
  text-decoration-color: #666;
}

.hero-link {
  color: #000000;
  text-decoration: none;
}

.hero-link:hover {
  color: #333333;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 100;
  font-size: 16px;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 120px;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: #f0eee6;
  color: #000000;
}

.btn-secondary:hover {
  background: #e5e5e5;
  color: #000000;
}

/* Form Styles */
.form-container {
  width: 100%;
  max-width: 500px;
  padding: 0;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0.85;
}

.form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  opacity: 1;
}

.form-title {
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.3;
  opacity: 1;
}

.form-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.3;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

/* Material Input Group */
.material-input-group {
  position: relative;
  margin-bottom: 24px;
}

/* Legacy label (for compatibility) */
label {
  display: inline-block;
  margin-right: 20px;
  padding-bottom: 2px;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  color: #666;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* Material floating label */
.material-label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 16px;
  color: #666666;
  pointer-events: none;
  transition: all 0.2s ease;
  transform-origin: left top;
  background-color: #ffffff;
  padding: 0 4px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
  text-transform: none;
}

.required {
  color: #d97757;
}

/* Standard inputs */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='url'],
input[type='search'],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.3;
  background-color: #ffffff;
  color: #000000;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Material inputs */
.material-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.3;
  background-color: #ffffff;
  color: #000000;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

/* Hide placeholder when using floating labels */
.material-input::placeholder {
  color: transparent;
}

.material-input:focus {
  border-color: #6a9bcc;
  border: 1.5px solid #6a9bcc;
}

.material-input:focus + .material-label,
.material-input:not(:placeholder-shown) + .material-label {
  top: -7px;
  transform: scale(0.75);
  color: #6a9bcc;
  background-color: #ffffff;
}

.material-textarea {
  min-height: 100px;
  resize: vertical;
  padding: 20px 16px 14px 16px;
}

.material-textarea + .material-label {
  top: 32px;
}

.material-textarea:focus + .material-label,
.material-textarea:not(:placeholder-shown) + .material-label {
  top: 0;
  transform: translateY(-50%) scale(0.75);
}

/* Select styling */
.material-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.3;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  color: #000000;
  cursor: pointer;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.material-select:focus {
  border-color: #6a9bcc;
}

.material-select:focus + .material-label,
.material-select:not([value=""]) + .material-label {
  top: 0;
  transform: translateY(-50%) scale(0.75);
  color: #6a9bcc;
  background-color: #ffffff;
}

/* Helper text */
.helper-text {
  font-size: 12px;
  color: #666666;
  margin-top: 4px;
  margin-left: 16px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* Legacy input styling */
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6a9bcc;
}

.btn-form {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 100;
  font-size: 16px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 120px;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  opacity: 1;
}

.btn-form-primary {
  background: #d97757;
  color: #ffffff;
  width: 100%;
}

.btn-form-primary:hover {
  opacity: 0.9;
  font-weight: 450;
}

/* Footer */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 48px 0;
  margin-top: auto;
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 200;
  color: #ffffff;
  text-decoration: none;
}

.footer-description {
  color: #999;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-link {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 12px;
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .nav-container,
  .hero-container {
    padding: 0 40px;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero-title {
    font-size: 46px;
  }

  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 56px;
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-logo {
    font-size: 22px;
  }

  .footer-links {
    gap: 32px;
  }

  /* Larger geometric shapes on desktop */
  .geometric-bg::before {
    width: 160px;
    height: 160px;
    right: 12%;
  }

  .geometric-bg::after {
    width: 130px;
    height: 130px;
    left: 12%;
  }

  .geometric-shape-1 {
    width: 80px;
    height: 80px;
  }
  .geometric-shape-2 {
    width: 60px;
    height: 60px;
  }
  .geometric-shape-3 {
    width: 100px;
    height: 100px;
  }
  .geometric-shape-4 {
    width: 50px;
    height: 50px;
  }
  .geometric-shape-5 {
    width: 70px;
    height: 70px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 54px;
  }

  .hero-subtitle {
    font-size: 22px;
    margin-bottom: 64px;
  }

  /* Even larger geometric shapes on large screens */
  .geometric-bg::before {
    width: 200px;
    height: 200px;
    right: 10%;
    top: 18%;
  }

  .geometric-bg::after {
    width: 160px;
    height: 160px;
    left: 15%;
    bottom: 32%;
  }

  .geometric-shape-1 {
    width: 100px;
    height: 100px;
    right: 18%;
  }
  .geometric-shape-2 {
    width: 75px;
    height: 75px;
    left: 5%;
  }
  .geometric-shape-3 {
    width: 120px;
    height: 120px;
    right: 28%;
  }
  .geometric-shape-4 {
    width: 65px;
    height: 65px;
    left: 22%;
  }
  .geometric-shape-5 {
    width: 85px;
    height: 85px;
    right: 42%;
  }
}
