* {
  font-family: 'cabin';
}

.malayalam-text {
  font-family: 'Noto Sans Malayalam';
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

    .navbar {
      padding: 2rem 2rem;
      position: fixed;
      top: 50px;
      width: 100%;
      z-index: 1000;
    }

    .navbar-nav .nav-link {
      font-weight: 500;
      color: #000;
      margin-left: 15px;
     margin-bottom: 2rem;
          
    }
    
    .navbar-nav .nav-link.active {
      color: #fff !important;
      background-color:#FF0000;
      padding: 12px 12px;
      
    }  

    /* Hero Section */
    .hero-section {
      background: url("images/Image_3_optimized.png") no-repeat center center;
      background-size: cover;
      min-height: 95vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .heart-img {
      display:none;
      max-width: 350px;
      width: 100%;
      animation: heartbeat 3s ease-in-out infinite;
    }

    @keyframes heartbeat {
      50%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }

     .heart-img-main {
      max-width: 350px;
      width: 100%;
      animation: heartbeatmain 3s ease-in-out infinite;
    }

    @keyframes heartbeatmain {
      50%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }

    .tagline {
      margin-top: 20px;
      font-size: 25px;
      font-weight: 500;
      color: #041B3A;
    }
    .tagline p{
      margin-top: 30px;
    }
    .hero-right {      
      min-height: 400px;
      border-radius: 10px;
    }
    .tm-headline {
      font-size: 1.55rem;
      font-weight: 700;
      color: #2c3e50; 
      margin-top: 20px;     
      line-height: 1.4;
    }

    .tm-headline i {
  font-style: normal;   
  display: inline-block;
  opacity: 0;
  transform: rotateX(90deg);
  animation: rotateIn 1s forwards;
}

/* Animate each letter with delay */
.tm-headline i:nth-child(1) { animation-delay: 0.05s; }
.tm-headline i:nth-child(2) { animation-delay: 0.1s; }
.tm-headline i:nth-child(3) { animation-delay: 0.15s; }
/* … continue, or use JS for auto-delay */

@keyframes rotateIn {
  0%   { opacity: 0; transform: rotateX(90deg); }
  50%  { opacity: 1; transform: rotateX(0deg); }
  100% { opacity: 1; transform: rotateX(0deg); }
}
   /* Section background */
  .trust-section {
    background-color: #E0001A; 
    color: #fff;
  }
  .trust-section h5 {   
    margin-bottom: 50px;
    text-align: center;
    font-size: 28px;
  }
 

  /* Small feature boxes */
  .trust-box {
    background: #fff;
    text-align: center;
    color: #000;
    border-radius: 20px;
    width: 250px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  
  /* Right side number */
  .big-number {
    font-size: 20rem;
    color: #FF0303; 
    position: relative;
    z-index: 1;
  }

  .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size:40px;
    font-weight: 600;
    z-index: 2;
    color: #F9FBFF;
    text-align: center;
  }

  @media (max-width: 768px) {
    .big-number {
      font-size: 20rem;
    }
    .overlay-text {
      font-size: 40px;
    }
  }
  /* Section background */
  .services-section {
    background-color: #004B8A;
    position: relative;
    color: #fff;
  }
 

  /* Service List */
  .services-section .col-md-6:first-child {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
  }
  .services-section .col-md-6:first-child.animate {
    opacity: 1;
    transform: translateX(0);
  }
  .services-section .col-md-6:last-child {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
    animation: serviceBlink 5s infinite;
  }
  .services-section .col-md-6:last-child.animate {
    opacity: 0;
    transform: scale(1);
  }
  @keyframes serviceBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
  }
  .services-section h6 {
    font-weight: 600;
    font-size: 28px;
    margin-top: 30px;
  }

  .services-section p {
    font-size: 25px;
    color: #ddd;
  }

  /* Images */
  .service-img img {
    border-radius: 5px;
  }

  /* Heart icon overlay */
  .heart-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
  }

  /* Center Logo in image grid */
  .center-logo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  @media (max-width: 768px) {
    .center-logo {
      position: relative;
      margin-top: 15px;
      
    }
  }
  /* About Section Animations */
.about-section {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}
.about-section.animate {
  opacity: 1;
  transform: translateX(0);
}
#about-text {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-out;
}
#about-text.animate {
  opacity: 1;
  transform: translateX(0);
}

.home-collection {
  background: #EFEFEE;
}
.home-collection .col-md-6:first-child {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}
.home-collection .col-md-6:first-child.animate {
  opacity: 1;
  transform: translateX(0);
}
.home-collection .col-md-6:last-child {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}
.home-collection .col-md-6:last-child.animate {
  opacity: 1;
  transform: translateX(0);
}
.home-collection .house-img {
  max-width: 90%;
  border-radius: 10px;
}
.home-collection h3 {
  color: #014a97;
}
.home-collection h4 {
  font-size: 1.3rem;
  line-height: 1.8;
}
.home-collection p{
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
}
.contact-us .col-md-8 {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.contact-us .col-md-8.animate {
  opacity: 1;
  transform: translateY(0);
}
.contact-title {
  font-size: 2rem;
  margin-top: 10px;
}
.contact-title span {
  color: #d00000;
}
.contact-form .form-control {
  background: #f7f7f7;
  border: none;
  border-radius: 0;
  padding: 12px 15px;
}
.contact-form textarea.form-control {
  resize: none;
}

h2 {
    color: #004B8A;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
h5 {
    color: #004B8A;
    font-size: 1.25rem; 
    font-weight: bold;
    margin-bottom: 10px;
}
p {
    margin-bottom: 5px; 
    line-height: 1.4;
}

.branches-section {
  opacity: 0;
  padding: 30px;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.branches-section.animate {
  opacity: 1;
  transform: translateY(0);
}
.branches-section .col-md-4 {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.branches-section .col-md-4.animate {
  opacity: 1;
  transform: translateY(0);
}
.footer-section {
    background-color: #E0001A; 
    color: white;
    padding: 30px 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    text-decoration: none;
}
.footer-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.footer-section .container-fluid {    
    padding: 30px 5px;
}

.footer-logo {
    height: 40px; 
    margin-right: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.company-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 10px;
}

.slogan {
    font-size: 0.9rem;
    line-height: 1.4
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.list-unstyled {
    padding-left: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f8f9fa; 
    text-decoration: underline;
}

.contact-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.phone-number {
    background-color: rgba(255, 255, 255, 0.2); 
    padding: 10px 15px;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #ff6666; 
}

.email-address {
    font-size: 1rem;
    opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #E0001A;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.back-to-top::before {
  content: "⇮";
  font-size: 30px;
  line-height: 1;
  display: block;
}
.back-to-top:hover {
  background-color: #c00016;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.location-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.location-name {
  color: #004B8A;
  font-weight: bold;
  margin-bottom: 15px;
}

.contact-info i {
  width: 20px;
  margin-right: 8px;
}

.address i {
  width: 20px;
  margin-right: 8px;
}

/* Responsive adjustments */
.mobile-headline-part-2 {
    display: none;
}


@media (min-width: 300px) and (max-width: 600px) {
    .hero-section {
        background: url("images/banner-2.jpg") no-repeat center center;
        background-size: contain;

        background-attachment: scroll;
        align-items: center;
    }
    .tm-headline-box {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column-reverse;
        gap:5rem;
    }
    .heart-img {
        display: block;
        max-width: 200px;
        margin: 0 10px;
        order: 2;
    }
    .heart-img-main {
        display: none;
    }
    .tm-headline {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    .desktop-headlines {
        display: none;
    }
    .mobile-headline-part-2 {
        display: block;
        text-align: left;
        order: 1;
    }
    
}
@media (min-width: 601px) and (max-width: 800px) {
    .hero-section {
        min-height: 70vh;
        padding: 20px 0;
    }
    .hero-section .col-md-6 {
        text-align:center;
    }
    .heart-img {
        max-width: 300px;
        display: block;
    }
     .heart-img-main {
        display: none;
    }
    .tm-headline {
        font-size: 1.3rem;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .navbar { 
        padding: 0.5rem 1rem;
        top: 0;
        padding-bottom: 2rem !important;
    }
    .navbar-brand img {
        padding-left: 30px;
    }
    .tagline { font-size: 18px; }
    .tm-headline { font-size: 1.2rem; }
    .about-heading { font-size: 2rem; }
    .about-text { width: 100%; }
    .about-left-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
        display: block;
    }
    .about-us .row {
        justify-content: center !important;
    }
    .big-number { font-size: 25rem; left: 0; }
    .overlay-text { font-size: 40px; }
    .container-fluid { padding: 0px 20px; }
    .branches-section { padding: 50px 20px !important; }
    .footer-section .container-fluid {
        border-left: none;
        border-right: none;
        padding: 1px;
        text-align: left;
    }
    .about-section {
        min-height: 50vh;
        padding: 20px 0;
    }
    #about-text {
        margin-top: 0;
    }
}
@media (min-width: 900px) {
    .big-number {
        font-size: 25rem;
    }
}
@media (max-width: 576px) {
    .heart-img { max-width: 250px; display: block;}
     .heart-img-main {
        display: none;
    }
    .tagline { font-size: 16px; }
    .about-heading { font-size: 1.5rem; }
    h2 { font-size: 1.8rem; }
    .big-number { font-size: 19rem; }
    .trust-box { height: 120px; }
}
    .tm-headline { font-size: 1.2rem; }
    .about-heading { font-size: 2rem; }
    .about-text { width: 100%; }
    .about-left-image {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
        display: block;
    }
    .about-us .row {
        justify-content: center !important;
    }
    .big-number { font-size: 25rem; left: 0; }
    .overlay-text { font-size: 40px; }
    
    .branches-section { padding: 50px 20px !important; }
    .footer-section .container-fluid {

        padding: 15px;
    }


@media (min-width: 1024px) {
    .trust-box {
        width: 221px;
        height: 233px;
    }
}

@media (max-width: 576px) {
    .heart-img { max-width: 200px;display: block; }
     .heart-img-main {
        display: none;
    }
    .tagline { font-size: 16px; }
    .about-heading { font-size: 1.5rem; }
    h2 { font-size: 1.8rem; }
    .big-number { font-size: 19rem;
     }
    .trust-box { height: 170px;width: 150px;}
    .tm-headline-box {gap: 3rem;}
    .tm-headline { font-size: 1.1rem;}
}
.navbar-toggler {
  border: 2px solid #004B8A;
  border-radius: 8px;
  padding: 8px 10px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: #004B8A;
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 75, 138, 0.25);
}

.navbar-toggler i {
  color: #004B8A;
  font-size: 20px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover i {
  color: #fff;
}