/* ::-webkit-scrollbar {
    display: none;
} */

body{
  overflow-x: hidden;
}

 .mobile-visible {
    display: none !important;
  }

  .laptop-visible {
    display: flex !important;
  }

  .footer-mobile-visible {
    display: none !important;
  }

  .footer-laptop-visible {
    display: block !important;
  }

@media (max-width: 480px) {
  .mobile-visible {
    display: flex !important;
  }

  .laptop-visible {
    display: none !important;
  }

  .footer-mobile-visible {
    display: block !important;
  }

  .footer-laptop-visible {
    display: none !important;
  }
}

.contact-section {
  background-color: white;
  overflow: hidden;
  padding: 2rem 0;
  border-radius: 40px;
}

/* Container with improved responsive grid */
.contact-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* Left Section */
.contact-section-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-logo-left {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.contact-logo-left img {
  max-width: min(400px, 80vw);
  /* transform: rotateZ(-10deg); */
  position: absolute;
  bottom: -5%;
  right: -25%;
}

.contact-section-left h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  text-align: center;
  color: black;
  line-height: 1.1;
  font-family: Bebas;
}

/* Footer Text Block */
.footer-text {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
  width: 100%;
}

.footer-text:hover h2 {
  text-decoration: underline;
}

.footer-text h2 {
  font-family: Bebas;
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
}

/* Contact Info Details */
.contact-info-details {
  color: #666;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: ITCNormal;
}

.contact-info-details strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-family: Bebas;
}

.contact-map-link {
  color: var(--text-light);
  text-decoration: underline;
  font-family: "ITC Light", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.map-icon {
  transition: transform 0.3s ease;
}

.contact-map-link:hover .map-icon {
  transform: translateX(5px);
}

/* Social Links */
.link-wrapper-animation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.link-wrapper-animation i {
  transition: all 0.3s ease;
}

.link-wrapper-animation:hover i {
  transform: scale(1.1);
}

/* Right Section */
.contact-section-right {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.contact-logo {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 2rem;
}

.contact-logo img {
  max-width: min(400px, 80vw);
  transform: rotateZ(57deg) scale(1.18);
  position: absolute;
  top: -168%;
  /* opacity: 0.1; */
}

/* Form Styling */
.contact-form-wrapper {
  background: var(--secondary);
  padding: 2.5rem;
  box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0);
  transition: all 0.5s ease;
  font-family: "ITC Light", sans-serif;
}

.contact-form-wrapper:hover {
  box-shadow: 0 0 20px 2px var(--primary);
  transition: all 0.2s ease;
}

.contact-form-wrapper h3 {
  color: white;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: Bebas;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-form-group {
  margin-bottom: 1.25rem;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-darker);
  border: 2px solid transparent;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(238, 126, 33, 0.1);
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-form-group textarea {
  height: 120px;
  resize: vertical;
  min-height: 80px;
}

.contact-submit-btn {
  width: 100%;
  background: var(--primary);
  color: black;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Bebas;
}

.contact-submit-btn:hover {
  transform: scale(1.02);
  color: white;
  box-shadow: 0 5px 15px rgba(238, 126, 33, 0.3);
}

/* Responsive Breakpoints */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
  .contact-container {
    padding: 0 1rem;
    grid-template-columns: 1fr;
  }

  .contact-logo-left img,
  .contact-logo img {
    max-width: 300px;
  }

  .contact-section-left h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    width: 100%;
  }

  .contact-logo {
    width: 100%;
    height: 90px;
    margin: 0;
    display: none;
  }

  .contact-logo img {
    transform: rotateZ(-135deg);
    right: 10%;
    z-index: -1;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-section-left {
    gap: 0.1rem;
  }

  .contact-section-left h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .footer-text {
    /* flex-direction: column; */
    text-align: center;
    justify-content: center;
    /* font-size: 30px; */
    gap: 0.25rem;
  }

  .footer-text h2 {
    /* font-size: clamp(1.25rem, 3vw, 2rem); */
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-logo {
    height: 150px;
    margin-bottom: 1rem;
  }

  .contact-info-details {
    gap: 1rem;
  }

  .link-wrapper-animation {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0rem;
    margin-bottom: 0;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .section.background-secondary {
    padding: 1rem 0;
  }

  .contact-section {
    padding: 1rem 0;
    border-radius: 20px;
  }

  .contact-container {
    padding: 0 0.75rem;
  }

  .contact-section-left h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .footer-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }

  .contact-form-wrapper {
    padding: 1rem;
    border-radius: 10px;
  }

  .contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-form-group input,
  .contact-form-group textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .contact-submit-btn {
    padding: 0.75rem;
    font-size: 1.1rem;
  }

  .contact-info-details strong {
    font-size: 1.1rem;
  }

  .contact-logo-left img,
  .contact-logo img {
    max-width: 250px;
    display: none;
  }

  /* Stack social media links vertically on very small screens */
  .link-wrapper-animation {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .link-wrapper-animation i {
    font-size: 1.5rem !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
  .contact-container {
    padding: 0 0.5rem;
  }

  .contact-section-left h1 {
    font-size: 1.75rem;
  }

  .footer-text h2 {
    font-size: 0.9rem;
  }

  .contact-form-wrapper {
    padding: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .contact-logo-left img,
  .contact-logo img {
    display: none;
  }

  .contact-form-wrapper {
    /* background: white; */
    color: black;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .contact-form-wrapper h3 {
    color: black;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .contact-logo-left img,
  .contact-logo img {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .contact-form-group input,
  .contact-form-group textarea {
    border: 2px solid white;
  }

  .contact-form-group input:focus,
  .contact-form-group textarea:focus {
    border-color: var(--primary);
  }
}
