/* Contact Page Specific Styles */
:root {
  --primary-color: #4e54c8;
  --primary-dark: #3f44ae;
  --secondary-color: #8f94fb;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f9f9f9;
  --bg-dark: #1a1a2e;
  --border-color: #e0e0e0;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Contact Hero Section */
.contact-hero {
  background: url('pagebackground.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgb(255, 243, 243);
  padding-top: 80px;
  position: relative;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: 3.5rem;
  color: rgb(255, 243, 243);
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.5s ease-out;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  color: var(--text-color);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  color:white;
}

.contact-details {
  margin-top: 40px;
  
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
  
}

.contact-item p {
  margin-bottom: 5px;
  color: var(--text-light);
  color:white;
}

.contact-item a {
  color: var(--text-light);
  transition: var(--transition);
  color:white;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form-container {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-container p {
  margin-bottom: 30px;
  color: var(--text-light);
}

.contact-form {
  margin-top: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(78, 84, 200, 0.4);
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--border-radius);
  display: none;
}

.form-message.success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-message.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-color);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

.map-container {
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Social Media Section */
.social-section {
  padding: 80px 0;
  background-color: white;
  text-align: center;
}

.social-title {
  max-width: 700px;
  margin: 0 auto 50px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.social-link {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.social-link:hover {
  transform: translateY(-10px) rotate(10deg);
  box-shadow: 0 15px 25px rgba(78, 84, 200, 0.4);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  background-color: white;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: rgba(78, 84, 200, 0.05);
}

.accordion-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-color);
}

.accordion-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.accordion.active .accordion-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.accordion.active .accordion-header h3 {
  color: white;
}

.accordion.active .accordion-icon {
  color: white;
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 20px;
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

/* Animation Classes */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-element.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: calc(var(--delay, 0) * 0.2s);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

/* Form Input Focus Animation */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(78, 84, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
  }
}

/* Responsive
  /* Responsive Styles */
  @media screen and (max-width: 1024px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    
    .contact-hero h1 {
      font-size: 2.8rem;
    }
    
    .section-header h2 {
      font-size: 2.2rem;
    }
  }
  
  @media screen and (max-width: 768px) {
    .contact-hero {
      height: 40vh;
    }
    
    .contact-hero h1 {
      font-size: 2.2rem;
    }
    
    .contact-hero p {
      font-size: 1rem;
    }
    
    .form-row {
      grid-template-columns: 1fr;
      gap: 0;
    }
    
    .social-links {
      flex-wrap: wrap;
      gap: 20px;
    }
    
    .social-link {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
    }
    
    .contact-form-container {
      padding: 30px 20px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .contact-hero h1 {
      font-size: 1.8rem;
    }
    
    .section-title {
      font-size: 1.8rem;
    }
    
    .section-header h2 {
      font-size: 1.8rem;
    }
    
    .contact-item {
      flex-direction: column;
      text-align: center;
    }
    
    .contact-item i {
      margin: 0 auto 15px;
    }
    
    .contact-item:hover {
      transform: none;
    }
    
    .social-link {
      width: 50px;
      height: 50px;
      font-size: 1.3rem;
    }
  }
  
  /* Accessibility Improvements */
  .form-control:focus,
  .btn-submit:focus,
  .social-link:focus,
  .back-to-top:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }
  
  /* Add screen reader only class */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  /* Add support for reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .contact-item:hover,
    .social-link:hover,
    .back-to-top:hover {
      transform: none;
    }
    
    .animate-element,
    .animate-fade-in {
      transition: none !important;
      animation: none !important;
      transform: none !important;
      opacity: 1 !important;
    }
    
    .form-control:focus {
      animation: none;
    }
  }
  
  /* Add support for high contrast mode */
  @media (forced-colors: active) {
    .contact-item i,
    .social-link,
    .btn-submit,
    .back-to-top {
      border: 1px solid currentColor;
    }
  }
  
  /* Add RTL support */
  [dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 20px;
  }
  
  [dir="rtl"] .contact-item:hover {
    transform: translateX(-10px);
  }
  
  [dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
  }
  
  [dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
  }
  
  /* Add loading states */
  .loading {
    position: relative;
    overflow: hidden;
  }
  
  .loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.2), 
      transparent
    );
    animation: loading-shine 1.5s infinite;
  }
  
  @keyframes loading-shine {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }
  
  /* Add utility classes */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  
  .mt-0 { margin-top: 0; }
  .mt-1 { margin-top: 0.25rem; }
  .mt-2 { margin-top: 0.5rem; }
  .mt-3 { margin-top: 1rem; }
  .mt-4 { margin-top: 1.5rem; }
  .mt-5 { margin-top: 3rem; }
  
  .mb-0 { margin-bottom: 0; }
  .mb-1 { margin-bottom: 0.25rem; }
  .mb-2 { margin-bottom: 0.5rem; }
  .mb-3 { margin-bottom: 1rem; }
  .mb-4 { margin-bottom: 1.5rem; }
  .mb-5 { margin-bottom: 3rem; }
  
  /* Fix for Safari flexbox gap */
  @supports not (gap: 30px) {
    .social-links > * {
      margin: 0 15px;
    }
  }
  
  /* Fix for older browsers */
  @supports not (display: grid) {
    .contact-grid {
      display: flex;
      flex-wrap: wrap;
    }
    
    .contact-grid > * {
      flex: 0 0 calc(50% - 25px);
      margin: 0 12.5px;
    }
    
    .form-row {
      display: flex;
      flex-wrap: wrap;
    }
    
    .form-row > * {
      flex: 0 0 calc(50% - 10px);
      margin: 0 5px;
    }
    
    @media screen and (max-width: 768px) {
      .contact-grid > *,
      .form-row > * {
        flex: 0 0 100%;
        margin: 10px 0;
      }
    }
  }
  
  /* Print styles */
  @media print {
    .contact-hero {
      height: auto;
      padding: 40px 0;
      background: none !important;
      color: black;
    }
    
    .contact-form-container,
    .map-container {
      box-shadow: none;
      border: 1px solid var(--border-color);
    }
    
    .contact-item i,
    .social-link {
      background: none !important;
      color: black !important;
      border: 1px solid black;
    }
    
    .btn-submit,
    .back-to-top,
    .social-section {
      display: none;
    }
    
    .contact-grid {
      display: block;
    }
    
    .contact-info,
    .contact-form-container {
      margin-bottom: 30px;
    }
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    :root {
      --bg-light: #1e1e2e;
      --bg-color: #121220;
      --text-color: #f0f0f0;
      --text-light: #c0c0c0;
      --border-color: #333344;
    }
    
    .contact-form-container,
    .accordion {
      background-color: var(--bg-color);
    }
    
    .form-control {
      background-color: var(--bg-color);
      color: var(--text-color);
      border-color: var(--border-color);
    }
    
    .accordion-header:hover {
      background-color: rgba(78, 84, 200, 0.1);
    }
  }
  
  /* Enhanced form validation styles */
  .form-control.error {
    border-color: var(--accent-color);
  }
  
  .error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
  }
  
  .form-control.error + .error-message {
    display: block;
  }
  
  /* Add smooth transitions for theme changes */
  * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  
   
  /* Add support for container queries if supported */
  @supports (container-type: inline-size) {
    .contact-grid {
      container-type: inline-size;
      container-name: contact-grid;
    }
    
    @container contact-grid (max-width: 768px) {
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }
  }
  
  /* Add enhanced hover effects */
  .contact-form-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  /* Add custom scrollbar for textareas */
  textarea.form-control::-webkit-scrollbar {
    width: 8px;
  }
  
  textarea.form-control::-webkit-scrollbar-track {
    background: rgba(78, 84, 200, 0.1);
    border-radius: 4px;
  }
  
  textarea.form-control::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }
  
  textarea.form-control::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
/* ===== Navigation - Standardized ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#navbar.sticky {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-container {
  width: 90%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo img {
  height: 67px;
  border-radius: 0;
  filter: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 70%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Burger menu for mobile */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 5px;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  #navbar {
    padding: 12px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    transition: right 0.5s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: navLinkFade 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--i, 1));
  }
  
  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .burger {
    display: block;
    z-index: 1001;
  }
  
  .burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
