/* LOADER */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-logo {
  width: 250px;
  animation: zoomIn 1.2s ease-in-out infinite alternate;
}

/* Logo animation */
@keyframes zoomIn {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Hide loader */
#loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* contact Section */
.contact {
    height: 80vh;
    min-height: 450px;
    background: url('/images/contact/contact.JPG') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Slanted dark overlay on the left */
    background: linear-gradient(105deg, rgba(83, 83, 83, 0.9) 0%, rgba(17, 17, 17, 0.85) 50%, transparent 50.5%, transparent 100%);
}

.contact-content {
    position: relative;
    z-index: 10;
    color: var(--text-white);
    max-width: 600px;
    padding-top: 80px;
    /* Offset for navbar */
    margin-left: 0;
    /* Reset margin auto from container to align left */
    /* Add padding to match horizontal container */
    padding-left: 1.5rem;
}

/* Fix for container margin on the left when contact-content overrides it */
@media (min-width: 1200px) {
    .container.contact-content {
        margin: 0 auto;
        padding-left: 100px; /* Back to original container padding */
    }
}

.subtitle-script {
    font-family: var(--font-script);
    font-size: 4rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: -1rem;
    margin-left: -10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

.contact-desc {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

/* SECTION */
.contact-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.state-title {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 30px 0 20px;
}

/* State Buttons */

.state-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.state-buttons a {
  padding: 10px 24px;
  background: #f50057;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.state-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 132, 0.3);
}
/* Default visible */

#tamilnadu {
  display: block;
}

/* Hide all states */

.state-section {
  display: none;
}





/* Show clicked state */

.state-section:target {
  display: block;
}
/* Grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Cards */

.card {
  background: white;
  padding: 15px;
  box-shadow: 0 3px 3px #32b0eecc;
  transition: .3s;
  display: flex;
  width: 360px;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border: 1px solid #32b0eecc;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px #32b0eecc;
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: #f50057;
}

.card p {
  margin: 5px 0 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.card span {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  background: #fff0f5;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}





/* State Buttons */
.state-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
}

/* State Titles */
.state-title {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.state-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cards Animation */
.card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Smooth section switch */
.state-section {
  animation: fadeSection 0.6s ease;
}

@keyframes fadeSection {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframe */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===== STATE BUTTONS ===== */
@media (max-width: 600px) {

  .state-buttons {
    gap: 10px;
  }

  .state-buttons a {
    font-size: 13px;
    padding: 8px 16px;
  }
  /* REMOVE FIXED WIDTH ISSUE */
.card {
  width: 100%; /* important fix */
  height: auto;
  min-height: 190px;
}
}




/* ===== TEXT SCALING ===== */
@media (max-width: 600px) {

  .state-title {
    font-size: 22px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }

  .card span {
    font-size: 11px;
  }
}

/* ===== FOOTER ===== */
@media (max-width: 992px) {

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
    .subtitle-script {
        font-size: 2.5rem;
    }
}
@media (max-width: 600px) {
    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .contact {
        height: 72vh;
        min-height: 350px;
    }
}

