/* =========================  RESPONSIVE  ========================== */

@media(max-width:992px) {

  .about-container {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .header-nav {
    border-radius: 0;
  }

  .about-content h2 {
    font-size: px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .experience-card {
    left: 20px;
  }

  .hero-left h1 {
    font-size: 45px;
  }

  .hero-left p {
    font-size: 17px;
  }

  .stats {
    gap: 15px;
  }

  .stat-box {
    min-width: 140px;
    padding: 18px;
  }

  .main-title {
    font-size: 46px;
  }

  .welcome-banner {
    max-width: none;
  }
}

@media(max-width:768px) {

  .about-section {
    padding: 80px 20px;
  }

  .about-content h2 {
    font-size: 38px;
  }

  .about-content p {
    font-size: 15px;
  }

  .about-btn {
    width: 100%;
    justify-content: center;
  }

  .experience-card {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 20px;
    width: fit-content;
  }

  .header {
    padding: 20px 10px;
  }

  .main-title {
    font-size: 36px;
  }

  .content h3 {
    font-size: 22px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    padding: 120px 20px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-left h4 {
    font-size: 14px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .stats {
    flex-direction: column;
  }

}

/* testominal section */

@media (max-width: 850px) {
  .testimonial-card {
    padding: 100px 32px 42px 32px;
  }

  .content h2 {
    font-size: 46px;
  }

  .client {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 320px;
  }

  .hero-overlay h1 {
    font-size: 35px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .heading .script {
    font-size: 65px;
  }

  .heading h1 {
    font-size: 40px;
    margin-top: -18px;
  }

  .testimonial-card {
    padding: 32px 24px 40px 24px;
    min-height: auto;
  }

  /* reset absolute positioning for mobile */
  .profile {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .profile::before,
  .profile::after {
    display: none;
  }

  .profile img {
    width: 110px;
    height: 110px;
  }

  .agent-info {
    position: relative;
    left: auto;
    top: auto;
    text-align: center;
    margin-bottom: 20px;
  }

  .rating {
    position: relative;
    right: auto;
    top: auto;
    width: fit-content;
    margin: 0 auto 25px auto;
    padding: 6px 24px;
    font-size: 18px;
    letter-spacing: 4px;
  }

  .rating::before,
  .rating::after {
    display: none;
  }

  .content h2 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .content p {
    font-size: 16px;
    line-height: 1.65;
  }

  .client {
    font-size: 18px;
    padding-left: 16px;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .btn-prev {
    left: 8px;
  }

  .btn-next {
    right: 8px;
  }
}

@media (max-width: 520px) {
  .content h2 {
    font-size: 28px;
  }

  .testimonial-card {
    padding: 24px 18px 32px 18px;
  }

  .client {
    font-size: 16px;
  }
}

/* end */



/*================== about section page =======================  */


/* ========== RESPONSIVE FIXES (with renamed classes) ========== */
@media (max-width: 1050px) {
  .about-container {
    gap: 45px;
  }

  .about-title {
    font-size: 52px;
  }

  .about-card-1 {
    width: 160px;
    height: 200px;
    left: 10px;
    top: 150px;
  }

  .about-card-2 {
    width: 200px;
    height: 160px;
    right: 70px;
    top: 20px;
  }

  .about-card-3 {
    width: 240px;
    height: 260px;
    right: 5px;
    top: 130px;
  }

  .about-sep-h {
    width: 230px;
    right: 5px;
    top: 200px;
  }

  .about-sep-v {
    right: 120px;
    height: 260px;
    top: 130px;
  }
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-left {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .about-buttons {
    justify-content: center;
  }

  .about-badge {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
  }

  .about-media {
    width: 100%;
    min-height: 480px;
    margin-top: 30px;
    transform: scale(0.95);
  }

  .about-card-1 {
    width: 150px;
    height: 190px;
    left: 0px;
    top: 160px;
  }

  .about-card-2 {
    width: 180px;
    height: 150px;
    right: 40px;
    top: 30px;
  }

  .about-card-3 {
    width: 220px;
    height: 240px;
    right: 0px;
    top: 140px;
  }

  .about-sep-h {
    width: 210px;
    right: 0px;
    top: 210px;
  }

  .about-sep-v {
    right: 100px;
    height: 240px;
    top: 140px;
  }

  .about-award {
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 30px;
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .about-sparkle-1 {
    right: 15px;
    bottom: 50px;
    font-size: 24px;
  }

  .about-sparkle-2 {
    right: 50px;
    bottom: 90px;
    font-size: 16px;
  }

  .about-sparkle-3 {
    left: 20%;
    top: 5px;
  }
}

@media (max-width: 680px) {
  .about-media {
    transform: scale(0.85);
    min-height: 440px;
    margin-top: 10px;
  }

  .about-card-1 {
    width: 130px;
    height: 170px;
    left: -10px;
    top: 170px;
  }

  .about-card-2 {
    width: 160px;
    height: 135px;
    right: 20px;
    top: 40px;
  }

  .about-card-3 {
    width: 190px;
    height: 210px;
    right: -5px;
    top: 150px;
  }

  .about-sep-h {
    width: 180px;
    right: -5px;
    top: 215px;
  }

  .about-sep-v {
    right: 85px;
    height: 210px;
    top: 150px;
  }

  .about-award {
    width: 70px;
    height: 70px;
    font-size: 30px;
    bottom: 20px;
  }
}

@media (max-width: 550px) {
  .about-title {
    font-size: 38px;
  }

  .btn-primary {
    padding: 11px 26px;
  }

  .about-media {
    transform: scale(0.8);
    min-height: 400px;
    margin-top: -10px;
  }

  .about-card-1 {
    width: 115px;
    height: 150px;
    left: -15px;
    top: 175px;
  }

  .about-card-2 {
    width: 140px;
    height: 120px;
    right: 10px;
    top: 50px;
  }

  .about-card-3 {
    width: 165px;
    height: 185px;
    right: -10px;
    top: 155px;
  }

  .about-sep-h {
    width: 155px;
    right: -10px;
    top: 215px;
    height: 8px;
  }

  .about-sep-v {
    right: 70px;
    height: 185px;
    top: 155px;
    width: 8px;
  }

  .about-award {
    width: 60px;
    height: 60px;
    font-size: 26px;
    bottom: 10px;
  }

  .about-sparkle-1 {
    right: 5px;
    bottom: 40px;
    font-size: 20px;
  }

  .about-sparkle-2 {
    right: 35px;
    bottom: 75px;
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  .about-media {
    transform: scale(0.72);
    min-height: 380px;
  }

  .about-card-1 {
    left: -20px;
    top: 180px;
  }

  .about-card-3 {
    right: -15px;
  }
}


/* about  second start   */


/* ========== RESPONSIVE ========== */
@media (max-width: 1050px) {
  .about-section {
    padding: 80px 5%;
  }

  .content-box h2 {
    font-size: 40px;
  }

  .bottom-text {
    font-size: 24px;
    margin-top: 70px;
  }
}

/* Tablet & mobile: disable typing (no conflict) */
@media (max-width: 991px) {
  .about-section-container {
    flex-direction: column;
    gap: 50px;
  }

  .image-box {
    max-width: 520px;
    margin: 0 auto;
  }

  .content-box {
    text-align: center;
  }

  .content-box h2 {
    white-space: normal;
    width: auto;
    border-right: none;
    overflow: visible;
    background: linear-gradient(135deg, #ff8a5c, #ffb347);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: none !important;
    border-right: 0;
    padding-bottom: 5px;
  }

  .content-box.show h2 {
    animation: none;
    border-right: none;
  }

  .content-box p {
    text-align: left;
    color: #f0f3f8;
  }

  .bottom-text {
    font-size: 22px;
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 20px;
  }

  .content-box h2 {
    font-size: 32px;
    text-align: center;
  }

  .content-box p {
    font-size: 16px;
    text-align: left;
  }

  .bottom-text {
    font-size: 19px;
    margin-top: 50px;
    line-height: 1.4;
  }

  .image-box img {
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .content-box h2 {
    font-size: 28px;
  }

  .content-box p {
    font-size: 15px;
  }
}

/* Hover effects */
.content-box {
  transition: transform 0.3s ease;
}

.content-box:hover {
  transform: translateY(-3px);
}

.image-box {
  transition: transform 0.3s ease;
}

.image-box:hover {
  transform: translateY(-5px);
}

.reveal {
  will-change: transform, opacity;
}

/* Dark scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: #02152d;
}

::-webkit-scrollbar-thumb {
  background: #ff8c42;
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffaa66;
}

.bottom-text:hover {
  transform: scale(1.01) translateY(-2px);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
}

/* about  second end   */


/* about  third start   */

/* responsive */
@media screen and (max-width: 992px) {
  .thrid-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .thrid-content {
    text-align: center;
  }

  .thrid-content p {
    max-width: 100%;
  }

  .thrid-btn {
    margin: 0 auto;
    justify-content: center;
  }

  .thrid-grid {
    width: 100%;
  }

  .thrid-content h2 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 680px) {
  .thrid-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .abo-thrid {
    padding: 3rem 1.5rem;
  }

  .thrid-card {
    padding: 1.4rem;
  }

  .thrid-content h2 {
    font-size: 2rem;
  }
}

/* about  third end   */

/* about  fourth start   */


/* responsive */
@media (max-width: 900px) {
  .abo-four-grid {
    gap: 1.5rem;
  }

  .abo-four-title {
    font-size: 2.8rem;
  }

  .abo-four-card h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 720px) {
  .abo-four-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }

  .abo-four-title {
    font-size: 2.4rem;
  }

  .abo-four-number {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .abo-four-card {
    padding: 1.5rem;
  }

  .abo-four-card p {
    font-size: 0.85rem;
  }
}

/* fade-up animation */
@keyframes aboFourFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.abo-four-header,
.abo-four-card {
  animation: aboFourFadeUp 0.6s ease forwards;
}

.abo-four-card:nth-child(1) {
  animation-delay: 0.05s;
}

.abo-four-card:nth-child(2) {
  animation-delay: 0.1s;
}

.abo-four-card:nth-child(3) {
  animation-delay: 0.15s;
}

.abo-four-card:nth-child(4) {
  animation-delay: 0.2s;
}


/* about fourth end */



/* ===========================-----------------footer section start ----------=============================== */


/* responsive */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-inner {
    padding: 2.5rem 1.8rem;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col h3 {
    display: block;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-line {
    justify-content: center;
  }

  .footer-bar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }

  .science-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .toast-notify {
    white-space: normal;
    text-align: center;
    max-width: 85%;
  }
}

/* =====================================-------footer section end --------==================================== */





/* ====contact page ==== */

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:1000px) {

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    width: 100%;
  }
}

@media(max-width:768px) {

  .contact-form h2 {
    font-size: 35px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 35px;
  }

  .contact-section {
    padding: 80px 20px;
  }
}

/* =====contact page end ==== */