/* ==========================================================
   Pages CSS
   File: pages.css
   Contains styling for Contact, About, Blog, WhyChooseUs, 404 pages
   ========================================================== */

/* ================== Contact Page ================== */
.contact-section {
  padding: 40px 20px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  color: #ffffff;
}

/* Contact Box */
.contact-box {
  background: #2B304C; /* Gray 800 */
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.contact-box:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

/* Contact Title */
.contact-title {
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  color: #ff9800; /* Custom Orange */
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px; /* space for underline */
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #040B2D; /* underline color */
  border-radius: 2px;
}

/* Social Box */
.contact-box.social-box {
  justify-content: flex-start;
  height: 100%;
}

.contact-box.social-box .contact-content {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #999;
  border-radius: 8px;
  background: #222;
  transition: transform 0.3s, border-color 0.3s;
}

.social-icon:hover {
  border-color: #ff9800;
  transform: translateY(-3px);
}

.social-icon i {
  font-size: 22px;
  color: #fff;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.contact-list a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: #ff9800;
}

.icon {
  font-size: 18px;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
  .contact-list li {
    flex-direction: row;
    gap: 6px;
  }
}

/* ================== About Page ================== */
.about-section {
  color: #ffffff;
  padding: 100px 20px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.about-left {
  flex: 1;
  min-width: 300px;
}

.about-left img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-right {
  flex: 1;
  min-width: 300px;
}

.about-right h2 {
  font-size: 36px;
  font-weight: 700;
  color: #E685FF;
  margin-bottom: 20px;
}

.about-right p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1;
  min-width: 150px;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.feature-fast {
  background: linear-gradient(135deg,#9F85FF,#E685FF);
  color: #fff;
}

.feature-price {
  background: linear-gradient(135deg,#85d8e5,#4aa8c2);
  color: #fff;
}

.feature-secure {
  background: linear-gradient(135deg,#E377FF,#9477FF);
  color: #fff;
}

.feature-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.feature-box p {
  font-size: 14px;
}

/* Responsive About Page */
@media(max-width:768px){
  .about-container {
    flex-direction: column;
    gap: 30px;
  }
  .about-left, .about-right {
    flex: 1 !important;
    min-width: 100% !important;
  }
  .about-features .feature-box {
    flex: 1 1 100%;
  }
}

/* ================== 404 Error Page ================== */
.error-404-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #ffffff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  padding: 20px;
}

.error-404-container h1 {
  font-size: 10rem;
  font-weight: 800;
  margin: 0;
  color: #FFA500;
  text-shadow: 0 0 20px rgba(255, 165, 0, 0.7);
}

.error-404-container h2 {
  font-size: 2.5rem;
  margin: 20px 0 10px;
}

.error-404-container p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.85;
}

.btn-home {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #FFA500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-home:hover {
  background: #FF8C00;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .error-404-container h1 {
    font-size: 6rem;
  }
  .error-404-container h2 {
    font-size: 2rem;
  }
  .error-404-container p {
    font-size: 1rem;
  }
}