*, *::before, *::after {
  box-sizing: border-box;
}

.menu, .menu-btn, .footer-social img {
  will-change: transform;
}

/* General Styles for Larger Screens */
.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px;
}

header, footer {
  padding: 20px;
  text-align: left;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

header {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    color: white;
}

header .logo img {
    width: 20vw;
    height: auto;
    background-color: #f4f4f4;
    margin-left: 1vw;
}

.menu-btn {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: #007acc;
  display: block; /* Always visible by default (mobile first) */
  z-index: 1100;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.menu-btn:focus,
.menu-btn:hover {
  background: #e0f7fa;
  color: #f39c12;
  outline: 2px solid #007acc;
}

/* Default: Mobile First (menu hidden, button visible) */
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #E0FFFF;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left;
  z-index: 1000;
  min-width: 50vw;
  margin-right: 0;
  overflow: visible;
}
.menu.active {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 10px;
  gap: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu ul li {
  margin: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #00008B;
  display: block;
  padding: 5px;
  font-size: 1.2rem;
}

.menu ul li a:hover {
  text-decoration: underline;
  color: #f39c12;
}

/* Large and Tablet Screens: Menu always visible, flexible, button hidden */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    box-shadow: 2px 2px 10px rgba(4, 40, 105, 0.5);    
    min-width: 0;
    width: auto;
    max-width: 100vw;
    margin-right: 0;
    overflow: visible !important;
  }
  .menu ul {
    flex-direction: row;
    gap: 2vw;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    justify-content: flex-end;
  }
  .menu ul li {
    margin: 0 0.5vw;
    flex: 0 1 auto;
  }
  .menu ul li a {
    padding: 8px 1vw;
    font-size: 1rem;
    min-width: 60px;
    word-break: keep-all;
  }
  .menu-btn {
    display: none !important;
  }
}

/* As screen shrinks, menu items wrap and shrink spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu ul {
    gap: 1vw;
  }
  .menu ul li a {
    padding: 8px 0.5vw;
    font-size: 0.95rem;
  }
}

/* At exactly 768px and below, switch to button menu */
@media (max-width: 767px) {
  .menu {
    display: none;
    background-color: #15317E;
    border-radius: 10px;
  }
  .menu-btn {
    display: block;
  }

  .menu ul li a {
    color: #fff;
    text-align: center;
  }
}

/* Tablet-specific Styles */
@media (max-width: 768px) {
  .container {
    padding: 10px;
    max-width: 95vw;
  }
  .menu {
    width: 90%;
  }
  header, footer {
    padding: 15px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Phone-specific Styles */
@media (max-width: 480px) {
  .container {
    padding: 5px;
    max-width: 99vw;
  }
  header, footer {
    font-size: 14px;
  }
  nav ul li {
    margin: 5px 0;
  }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.base-image {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    z-index: 1;
}

.overlay-text {
    top: 50%; 
    left: 70vw; 
    transform: translateY(-80%); 
    display: flex;
    text-align: center;
    font-size: 4vw;
    color: white;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 20px;
    position: absolute;
    animation: slideIn 1s ease-in-out forwards;
    transition: transform 0.3s ease-in-out;
    z-index: 3; 
}

.overlay-image {
    position: absolute;
    width: 60vw;
    height: auto;
    max-height: 90%;
    border-radius: 2vw 8vw 2vw 8vw;
    top: 5%;
    align-items: center;
    left: 3vw;
    transform: translate(-50%, -50%); /* Center the image */
    display: flex;
    justify-content: center;
    animation: slideIn 1s ease-in-out forwards;
    transition: transform 0.3s ease-in-out;
    z-index: 2; /* Ensures text appears above the image */
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        flex-wrap: nowrap; 
        align-items: center;
    }
    .base-image {
        width: 100vw;
        height: 40vh; 
        object-fit: cover;
    }

    .overlay-image  {
        width: 90vw;
        height: auto;
        max-height: 80%;
        border-radius: 8vw 2vw 8vw 2vw;
        top: 5%;
    }
    .overlay-text {
       position: absolute;
       display: flex;
       justify-content: center;
       align-items: center;
       flex-direction: column;
       width: 100%;
       transform: translateY(-50%);
        width: 100%;
       height: 5%;
       top: 85%;
       bottom: 0;
       left: 0%;

 }
}

@media screen and (max-width: 480px) {
    .hero {
        flex-wrap: nowrap; 
        align-items: center;
    }

    .base-image {
        width: 100vw;
        height: 40vh; 
        object-fit: cover;
    }

    .overlay-image  {
        width: 90vw;
        height: auto;
        max-height: 80%;
        border-radius: 8vw 2vw 8vw 2vw;
        top: 5%; 
    }

    .overlay-text {
       position: absolute;
       display: flex;
       justify-content: center;
       align-items: center;
       flex-direction: column;
       width: 100%;
       transform: translateY(-50%);
       height: 5%;
       top: 85%;
       bottom: 0;
       font-size: 8vw;
        left: 0%;
    }     
}

/* focus Section Styling */
.focus {
    text-align: center;
    padding: 0.2vw;
    background: #f0f8ff;
    font-family: Arial, sans-serif;
    color: #007bff;
}
.focus h2 {
    font-size: 4vw;
    color: #4169e1;    
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}

/* Service Section */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 3vw;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center;
    padding: 40px 20px;
    background: #f0f8ff;
    max-width: 100%;
    overflow: hidden;
}

.service-card {
    width: 40vw;
    max-width: 50vw;
    height: 50vh;
    background: #ffffff;
    padding: 1vh;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-wrap: break-word;
}

.service-icon {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
}

.service-icon img { 
    width: 4vw;
    padding-top:10px;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-description {
    font-size: 16px;
    color: #555;
}

.image-card {
    background: #ebf5fb;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 30vw;
    text-align: center;
}

.c-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.image-card p {
    padding: 0;
    margin: 0;
    font-size: 1.5vw;
    color: #15317E;
}

.learn-more {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.learn-more:hover {
    background-color: #0056b3;
}

/* Balloon Styling */
.balloon {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background-color: #e9f7ef;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    max-height: 80vh; /* Maximum height of 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling when content overflows */
}

.balloon.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.back-arrow {
    position: absolute;
    top: 0.05vh;
    left: 2vh;
    cursor: pointer;
    font-size: 2vw;
    color: #007bff;
}

@media screen and (max-width: 768px) {
    .services {
        flex-direction: column;
        padding: 20px;
    }

    .service-card {
        width: 90%;
        max-width: 100%;
        overflow: hidden;
    }

    .service-title {
        font-size: 18px;
    }

    .service-description {
        font-size: 14px;
    }

.c-image {
    width: 100%;
    height: auto;
}

    .balloon {
        width: 90%;
        font-size: 14px;
        padding: 15px;
    }
}
 
@media screen and (max-width: 480px) {
    .services {
        flex-direction: column;
        padding: 20px;
    }

    .service-card {
        width: 90%;
        max-width: 100%;
        overflow: hidden;
    }

    .service-title {
        font-size: 18px;
    }

    .service-description {
        font-size: 14px;
    }

.c-image {
    width: 100%;
    height: auto;
}

    .balloon {
        width: 90%;
        font-size: 14px;
        padding: 15px;
    }
}

/* Belt Section Styling */
.belt {
    text-align: center;
    padding: 0.2vw;
    background: url('star5a.png') center/cover no-repeat; /* Stretched image */
    font-family: Arial, sans-serif;
}
.belt h2 {
    font-size: 3vw;
    color: #15317E; 
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);   
}

/* Footer */
footer {
    background-color: #15317E;
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 100vw;
    flex-wrap: wrap;
    font-size: 1rem;
}

.footer-logo img {
    max-width: 10vw;
    height: auto;
    padding: 0;
    margin-left: 1vw;
    margin-top: 3vh;
    margin-right: 1vw;
    border-radius: 5%;
    transition: transform 0.3s ease;
 
}

.footer-contact {
  flex: 2;
  text-align: left;
  padding: 0;
  margin-left: 5vw;
}

.footer-contact p {
  color: #fff;
  margin-left: 1vw;
  padding: 0;
  text-align: left;
  margin-top: 1vw;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #f39c12;
}

.footer-social {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.footer-social img {
    width: 3vw;
    height: auto;
    transition: transform 0.3s ease;
    margin: 5px;
}

.footer-social img:hover {
    transform: scale(1.1);
    filter: brightness(2);
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 5px;
 }

/* Footer Links */
.footer-links {
    flex: 1;
    text-align: left;
    padding: 2px;
    margin-left: 5vw;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
    margin-left: 5px;
    padding: 5px;
    display: inline-block;
}

.footer-links a:hover {
    color: #f39c12;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px;
}

.footer-links ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #f39c12;
}


.footer-copyright {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    text-align: center;
    font-size: small;
    color: #fff;
}

.footer-copyright p {
    margin: 0;
    padding: 0;
    color: #fff;
}
.footer-copyright a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-copyright a:hover {
    text-decoration: underline;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {

    .menu-btn {
        display: block;  
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-contact, .footer-social, .footer-links {
        flex: unset;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer-container h2 {
        font-size: 4vw;
        margin: 2vh;
        padding: 1vw;
        color: #fff;
        text-align: center;
    }

    .footer-container p {
        font-size: 2.5vw;
        margin: 1vh;
        color: #fff;
        padding-top: 0.5vw;
        text-align: center;
    }

    .footer-logo img {
        max-width: 30vw;
        height: auto;
       margin: 5vh;
    } 

    .footer-social img {
       width: 5vw;
       height: auto;
       transition: transform 0.3s ease;
       margin: 5px;
    }

    .footer-links ul li {
        display: block;
    }

    .footer-links ul li a {
        display: block;
        font-size: 2.5vw;
        text-align: center;
        color: #fff;
        transition: color 0.3s ease;
    }
}

/* Responsive Design */
@media (max-width: 480px) {

    .menu-btn {
        display: block;  
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-contact, .footer-social, .footer-links {
        flex: unset;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer-container h2 {
        font-size: 4vw;
        margin: 2vh;
        padding: 1vw;
        color: #fff;
        text-align: center;
    }

    .footer-container p {
        font-size: 2.5vw;
        margin: 1vh;
        color: #fff;
        padding-top: 0.5vw;
        text-align: center;
    }

    .footer-logo img {
        max-width: 30vw;
        height: auto;
       margin: 5vh;
    } 

    .footer-social img {
       width: 5vw;
       height: auto;
       transition: transform 0.3s ease;
       margin: 5px;
    }

    .footer-links ul li {
        display: block;
    }

    .footer-links ul li a {
        display: block;
        font-size: 2.5vw;
        text-align: center;
        color: #fff;
        transition: color 0.3s ease;
    }
}
/* End of services.css */