/* General Reset & Typography */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #fff8f0;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 16px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
  color: orange;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
  background-color: #f0f0f0;
  color: #0077cc;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    width: 100%;
    display: none;
    padding: 20px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hero Section */

/* Responsive Image Section */
section {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center; /* Center the image */
}

section img {
  width: 100%;
  height: auto;
  max-width: 800px; /* Maximum size on large screens */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto; /* Center the image horizontally */
  object-fit: contain; /* Maintain aspect ratio */
}

/* Mobile Devices (portrait) */
@media (max-width: 480px) {
  section {
    padding: 15px;
  }
  section img {
    border-radius: 8px;
  }
}

/* Tablets and Small Laptops */
@media (min-width: 481px) and (max-width: 1023px) {
  section img {
    max-width: 90%;
  }
}

/* Large Screens */
@media (min-width: 1024px) {
  section img {
    max-height: 500px;
  }
}

/* Extra Large Screens */
@media (min-width: 1440px) {
  section img {
    max-height: 600px;
  }
}

/* Services Section */
.services {
  padding: 40px 20px;
  text-align: center;
  background: #fafafa;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.07);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.service-box h3 {
  font-size: 1.4rem;
  margin: 10px 0;
  color: #222;
}

.service-box p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.btn-small,
.btn-palm {
  display: inline-block;
  background: orange;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 0.9em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-small:hover,
.btn-palm:hover {
  background: darkorange;
}

.service-box.palm-reading {
  border: 2px solid #f0ad4e;
}

/* About Section */
.about {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

/* Gallery Section */
.gallery {
  padding: 40px 20px;
  background: #fafafa;
  text-align: center;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gallery-grid img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Footer Section */
.footer {
  background: #f1f1f1;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
}

/* Enhanced Astrology Footer */
.astro-footer {
  background: #1a1a2e;
  color: #f0e6f6;
  padding: 50px 20px;
  font-family: 'Georgia', serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
  font-size: 1.4rem;
  border-bottom: 2px solid #f29f05;
  padding-bottom: 8px;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-about p,
.footer-contact p {
  line-height: 1.6;
  font-size: 0.95rem;
  margin-top: 10px;
  color: #d4ccf2;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact a {
  color: #f0e6f6;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #f29f05;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    flex: 1 1 100%;
  }
}

/* Palm Read Section */
.service-box.palm-reading {
  border: 2px solid #f0ad4e;
}


.about {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

.gallery {
  padding: 40px 20px;
  background: #fafafa;
  text-align: center;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gallery-grid img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


.footer {
  background: #f1f1f1;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
}

/* Enhanced Astrology Website Footer Styles */

.astro-footer {
  background: #1a1a2e; /* Deep space-like navy */
  color: #f0e6f6;      /* Soft white-lavender text */
  padding: 50px 20px;
  font-family: 'Georgia', serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
  font-size: 1.4rem;
  border-bottom: 2px solid #f29f05; /* Brand orange */
  padding-bottom: 8px;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-about p,
.footer-contact p {
  line-height: 1.6;
  font-size: 0.95rem;
  margin-top: 10px;
  color: #d4ccf2;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact a {
  color: #f0e6f6;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #f29f05; /* Orange hover */
}

/* Responsive Layout */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    flex: 1 1 100%;
  }
}
  
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff8f0;
  color: #333;
}

.palm-read-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(to right, #fdf6ec, #fffdf5);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 40px auto;
}

.palm-content {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  padding: 20px;
}

.palm-title {
  font-size: 2rem;
  color: #8e44ad;
  margin-bottom: 15px;
}

.palm-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.upload-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.upload-btn {
  background-color: #8e44ad;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.upload-btn:hover {
  background-color: #732d91;
}

.upload-btn:hover {
  background-color: #732d91;
}

.palm-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
  padding: 20px;
}

.palm-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


/* chatbox */


/* Section Layout */
.chat-box-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(to right, #fefeff, #f0f7ff);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: 40px auto;
  gap: 20px;
}

.chat-content {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  padding: 20px;
}

.chat-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.chat-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.chat-content button {
  background-color: #8e44ad;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-content button:hover {
  background-color: #732d91;
}

.chat-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
  padding: 20px;
}

.chat-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Floating Chat Box */
.chat-container {
  width: 350px;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', sans-serif;
  z-index: 1000;
}

.chat-header {
  background-color: #8e44ad;
  color: white;
  padding: 15px;
  font-size: 1.1rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: #333;
}

.chat-input-box {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input-box input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 1rem;
}

.chat-input-box button {
  background-color: #8e44ad;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1rem;
}

.chat-input-box button:hover {
  background-color: #732d91;
}

/* Error styling */
.error-message {
    color: #d9534f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

input.error, select.error, textarea.error {
    border-color: #d9534f;
    background-color: #fdf7f7;
}

/* Valid field styling */
input.valid, select.valid, textarea.valid {
    border-color: #5cb85c;
}

/* Number input styling */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Button styling */
button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

button:hover {
    background: #45a049;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tab {
        padding: 15px;
    }
    
    input, select, textarea {
        width: 100%;
    }
}

.modal-body {
  padding: 0 !important;
}
/* Footer Styling */

.astro-footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  border-top: 2px solid #f39c12;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-container > div {
  flex: 1 1 300px;
  min-height: auto;
}

.footer-container h3 {
  color: #f39c12;
  margin-bottom: 15px;
}

.footer-container p,
.footer-container ul,
.footer-container a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #f39c12;
  text-decoration: underline;
}

.footer-contact .social-media {
  margin-top: 10px;
}

.footer-contact .social-media a {
  margin-right: 15px;
  font-size: 20px;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-contact .social-media a:hover {
  color: #f39c12;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-container > div {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-contact .social-media a {
    margin: 0 10px;
  }
}

