/* 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;
}

/* about Section */
.about {
    height: 80vh;
    min-height: 450px;
    background: url('/images/about/bg.JPG') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.about-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%);
}

.about-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;
    padding-right: 1.5rem;
}

/* Fix for container margin on the left when about-content overrides it */
@media (min-width: 1200px) {
    .container.about-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; /* Pull up next heading */
    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;
}

.about-desc {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.team-section {
    background: #fff;
    padding: 30px 0;
}

.team-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Images */
.team-cards {
    display: flex;
    gap: 17px;
    justify-content: center;
    margin-top: 40px;
}

.card {
    position: relative; /* IMPORTANT */
    background: #f5f5f5;
    padding: 60px 20px 30px; /* extra top space for icon */
    text-align: center;
    width: 260px;
    height: 320px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #000000;
}

.card:hover {
    transform: translateY(-10px);
}

/* ICON */
.icon {
    position: absolute;
    top: -35px; /* half outside */
    left: 50%;
    transform: translateX(-50%);
    
    width: 70px;
    height: 70px;
    background: #ff0084;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.icon img {
    width: 40px;
    height: 40px;
}

/* TITLE */
.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
}

.card h3::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #ff0084;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* PARAGRAPH */
.card p {
    font-size: 14px;
    color: #555;
}

/* Content */
.team-content {
    max-width: 500px;
}
.team-content h2{
    color: rgb #1c1c1c (28, 28, 28);
}

.subtitle {
    font-size: 28px;
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.title {
    font-size: 48px;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 20px;
}

.team-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Button */
.btn {
    display: inline-block;
    background: #c81414;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    transition: 0.3s;
}

.btn:hover {
    background: #a10f0f;
}

/* About Section */
.about-section {
    padding: 20px 0;
    background-color: #fff;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Content */
.about-content {
    max-width: 550px;
}

.about-subtitle {
    font-size: 28px;
    font-style: italic;
    color: #888;
}

.about-title {
    font-size: 52px;
    font-weight: 800;
    font-style: italic;
    margin: 15px 0;
}

.about-content p {
    color: #666;
    line-height: 1.7;
}

/* Button */
.about-btn {
    display: inline-block;
    margin-top: 25px;
    background: #c81414;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
}

/* Images */
.about-images {
    display: flex;
    height: 500px;
    width: 100%;
    max-width: 550px;
    margin-top: 30px;
    margin-left: auto;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.img-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: 0.5s ease;
}
/* Hover expand effect */
.img-box:hover {
    flex: 2.5;
}

/* IMPORTANT */
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.achievement-section {
    background: #fff;
    padding: 80px 40px;
}

/* TOP */
.achievement-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.subtitle {
    font-size: 32px;
    font-style: italic;
    color: #999;
}

.title {
    font-size: 48px;
    font-weight: 800;
    font-style: italic;
}

.right {
    max-width: 500px;
    color: #666;
    line-height: 1.7;
}

/* STATS */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    align-items: center;
}

/* EACH BOX */
.stat-box {
    position: relative;
}

/* Divider line */
.stat-box:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    width: 1px;
    height: 90%;
    background: #ddd;
}

/* ICON */
.stat-box i {
    font-size: 35px;
    color: #000;
    margin-bottom: 10px;
}

/* NUMBER */
.stat-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px #898686;
    margin: 10px 0;
}

/* TEXT */
.stat-box p {
    font-size: 16px;
    color: #555;
}

@media (max-width: 992px) {
    .team-container {
        flex-direction: column;
        text-align: center;
    }

    .team-images {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .img-box {
        width: 100px;
        height: 250px;
    }

    .title {
        font-size: 32px;
    }
}


/* ===============================
   HERO / ABOUT BANNER
================================= */

@media (max-width: 991px) {

  .about {
    height: 60vh;
    min-height: 350px;
  }

  .subtitle-script {
    font-size: 2.5rem;
    margin-left: 0;
  }

  .main-title {
    font-size: 3rem;
  }

  .about-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {

  .subtitle-script {
    font-size: 2rem;
  }

  .main-title {
    font-size: 2.2rem;
  }
}

/* ===============================
   ABOUT SECTION
================================= */

@media (max-width: 991px) {

  .about-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .about-content {
    max-width: 100%;
  }

  .about-images {
    height: 350px;
    max-width: 100%;
  }

  .img-box:hover {
    flex: 1.5; /* reduce zoom on mobile */
  }
}

@media (max-width: 600px) {

  .about-images {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .img-box {
    width: 100%;
    height: 180px;
  }
}

/* ===============================
   TEAM SECTION
================================= */

@media (max-width: 991px) {

  .team-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    margin-right: 0.3rem;
  }

  .team-cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    width: 45%;
    height: auto;
  }
}

@media (max-width: 600px) {

  .card {
    width: 100%;
  }

  .icon {
    width: 60px;
    height: 60px;
  }

  .icon img {
    width: 30px;
    height: 30px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 13px;
  }
}

/* ===============================
   ACHIEVEMENTS SECTION
================================= */

@media (max-width: 991px) {

  .achievement-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .achievement-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-box::after {
    display: none;
  }
}

@media (max-width: 600px) {

  .achievement-stats {
    grid-template-columns: 1fr;
  }

  .stat-box h3 {
    font-size: 18px;
  }

  .stat-box p {
    font-size: 14px;
  }
}


/* ===============================
   SMALL UI FIXES
================================= */

/* Fix overflow issues */
img {
  max-width: 100%;
  height: auto;
}

/* Better spacing */
section {
  padding: 50px 0;
}

/* Smooth animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}