/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Contact Button - Fixed Position */
.contact-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #16a085;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(22, 160, 133, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: slideInRight 0.8s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.5);
  background: #27ae60;
}

.contact-btn i {
  font-size: 1.1rem;
  animation: phoneRing 2s ease-in-out infinite;
}

.contact-text {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Landing Container */
.landing-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #1a1a2e;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.landing-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: 1;
}

.landing-container.has-background::before {
  background-image: var(--custom-bg-image);
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

/* Logo */
.logo-container {
  /* margin-bottom: 30px; */
  animation: fadeInDown 0.8s ease;
}

.logo {
  max-width: 350px;
  /* height: 100px; */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

/* Title */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
  transition: color 0.3s ease;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

/* Form */
.project-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
}

.form-select:focus {
  outline: none;
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.form-select:hover {
  border-color: #0f3460;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  background: #0f3460;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 52, 96, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 52, 96, 0.5);
  background: #16213e;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn i {
  font-size: 1.2rem;
}

/* Help Text */
.help-text {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.help-text i {
  color: #667eea;
}

.phone-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-btn {
    top: 15px;
    right: 15px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .contact-text {
    display: none;
  }

  .contact-btn i {
    font-size: 1.2rem;
    margin: 0;
  }

  .landing-container {
    padding: 15px;
    /* padding-top: 70px; */
  }

  .content-wrapper {
    max-width: 100%;
  }

  .card {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .logo {
    max-width: 264px;
  }

  .form-select {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 14px;
    font-size: 1rem;
  }

  .help-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .contact-btn {
    top: 10px;
    right: 10px;
    padding: 10px;
    width: 45px;
    height: 45px;
    justify-content: center;
    border-radius: 50%;
  }

  .title {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .card {
    padding: 25px 15px;
  }

  .help-text {
    font-size: 0.8rem;
  }
}

/* Loading State */
.submit-btn.loading {
  position: relative;
  color: transparent;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
