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

/* Fonts (Using system fonts for simplicity) */
body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
  padding: 1rem 2rem;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: #333333;
  border-radius: 0.25rem;
}

/* Responsive Navigation (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 25px;
  background: #fff;
  margin-bottom: 4px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  nav {
    display: none;
    width: 100%;
    background-color: #1c1c1c;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  background: #fcfcfc url('https://images.unsplash.com/photo-1581091012184-0d968f6a7b1c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 28, 28, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero button {
  background: #ff6a00;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.3s;
}

.hero button:hover {
  background: #e55f00;
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4rem 2rem;
  background: #fff;
}

.feature-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  width: 300px;
  margin: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: #333;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #666;
}

/* FAQ */
.faq-section {
  padding: 4rem 2rem;
  background: #f0f0f0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  max-width: 800px;
  margin: 1rem auto;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.faq-question {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #666;
  line-height: 1.6;
}

/* Contact / CTA Section */
.contact-section {
  background: #1c1c1c;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.contact-section h2 {
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 4px;
  border: none;
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background: #ff6a00;
  border: none;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e55f00;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 8px;
}

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

.contact-form button:disabled {
  background: #b35000;
  cursor: not-allowed;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

footer p {
  margin: 0.5rem 0;
}

.small-text {
  font-size: 0.85rem;
  color: #ccc;
}

/* Responsive Layout */
@media (max-width: 992px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    margin: 1rem 0;
    width: 90%;
    max-width: 400px;
  }
}

/* Overlay and Modal Styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 8px;
  z-index: 1001;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal.success {
  border-left: 4px solid #4CAF50;
}

.modal.error {
  border-left: 4px solid #f44336;
}

.modal h3 {
  margin-bottom: 1rem;
  color: #333;
}

.modal p {
  color: #666;
  margin-bottom: 1.5rem;
}

.modal button {
  background: #ff6a00;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.modal button:hover {
  background: #e55f00;
}

.loading-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  text-align: center;
}

.loading-container .loading-spinner {
  width: 50px;
  height: 50px;
  border-width: 5px;
}

.loading-container p {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.butterfly-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  min-width: 30px;
  max-width: 30px;
  min-height: 30px;
  max-height: 30px;
}
