@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    min-height: 100vh;
}

/* Header / Navbar CSS  */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffbc00, #ff0058);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(192, 11, 11), transparent);
    transition: .5s ease;
}

.header:hover::after{
    left: 100%;
}


.logo {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 100px; /* Adjust this value to make the logo smaller or larger */
    max-height: 60px; /* Adjust this value to make the logo smaller or larger */
    margin-right: 0.5rem;
}

.navbar a{
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2.5rem;
}

.apply-btn {
    padding: 0.5rem 1rem;
    background-color: #a80d0d;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
    text-align: center;
}

.apply-btn:hover {
    background-color: #850808;
}

#check{
    display: none;
}

.icons{
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.7rem 2.5rem;
    background-color: #ffbc00;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}


.hero .btn:hover {
    background-color: #e6a800;
}

.hero .apply-btn {
    background-color: #a80d0d;
    margin-top: 1rem;
    padding: 0.7rem 2.5rem; /* Same padding as the "Learn More" button */
}

.hero .apply-btn:hover {
    background-color: #850808;
}

.loading-icon {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Adjust the width and height according to your logo size */
    height: 100px;
    background-image: url('../images/wings.png'); /* Replace 'company_logo.png' with the path to your company logo image */
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.7; /* Adjust the opacity as needed */
    z-index: 9999; /* Ensure the loading icon appears on top of other content */
    animation: rotate 2s linear infinite; /* Add rotation animation */
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Add a semi-transparent overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    z-index: 9998; /* Ensure the overlay appears below the loading icon */
}

/* About Section */
.about-us{
    padding: 80px 0px;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row{
    display: flex;
    flex-wrap: wrap;
}

.flex{
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 20px;
}

.about-us h2{
    font-size: 45px;
    margin-bottom: 20px;
    color: #333;
}

.about-us h3{
    font-size: 22px;
    color: #888;
    margin-bottom: 8px;
}

.about-us p{
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

.about-us img{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.social-links{
    margin-bottom: 20px;
}

.social-links a{
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    background-color: #850808;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    transition: all 0.4s ease;
}

.social-links a:hover{
    transform: translateY(-3px);
}

.about-btn{
    text-decoration: none;
    color: #fff;
    display: inline-block;
    padding: 10px 20px;
    background-color: #850808;
    border-radius: 5px;
    transition: all 0.4s ease;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.about-btn:hover{
    transform: translateY(-3px);
}

/* Policies Section */
.services {
    background-color: #f9f9f9;
    padding: 3rem 0;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.services-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.policy {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem 0;
    flex: 1 1 calc(50% - 2rem); /* Adjusts for responsive design */
    max-width: calc(50% - 2rem);
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Ensure extra card slides in from behind */
    transition: transform 0.3s, box-shadow 0.3s;
}

.policy:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.policy-header {
    margin-bottom: 1rem;
    position: relative;
}

.policy-header::after {
    content: "Click to see more";
    font-size: 0.9rem;
    color: #a80d0d;
    position: absolute;
    bottom: -1rem;
    right: 0;
    transform: translateY(-50%);
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s;
}

.policy:hover .policy-header::after {
    opacity: 1;
}

.policy-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.policy-header p {
    font-size: 1.2rem;
    color: #666;
}

.policy-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.policy-details ul, li {
    list-style-type: none; /* Remove list dots */
    padding: 0;
    margin: 0;
}

.policy-details ul li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.extra-details {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: -1; /* Positioned behind the main card */
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.5s;
}

.extra-details.active {
    z-index: 10; /* Bring to front when active */
    transform: translateY(0); /* Slide in */
}

.extra-details h4 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.extra-content {
    display: flex;
    justify-content: space-between;
}

.extra-content div {
    flex: 1;
    margin: 0 1rem;
}

.extra-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.extra-content ul {
    list-style-type: none; /* Remove list dots */
    padding: 0;
    margin: 0;
}

.extra-content ul li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Top-Up Products Section */
.top-up-products {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.top-up-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.top-up-products ul {
    list-style-type: none; /* Remove list dots */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.top-up-products ul li {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
    flex: 1 1 45%;
    text-align: center;
}

@media (max-width: 768px) {
    .services-content {
        flex-direction: column;
    }
    
    .policy {
        max-width: 100%;
    }

    .extra-content {
        flex-direction: column;
    }

    .extra-content div {
        margin: 0;
        margin-bottom: 1rem;
    }

    .top-up-products ul {
        flex-direction: column;
    }

    .top-up-products ul li {
        text-align: left;
    }
}

/* Gallery Section */
.gallery-heading {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.gallery-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider {
    position: absolute;
    inset: 80px 200px 80px 80px;
    background: #ccc;
    border-radius: 20px;
}

.slider .slides {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 320px;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.slider .slides:nth-child(1),
.slider .slides:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.slider .slides:nth-child(3) {
    left: calc(50% + 240px);
}

.slider .slides:nth-child(4) {
    left: calc(50% + 500px);
}

.slider .slides:nth-child(5) {
    left: calc(50% + 760px);
}

.slider .slides:nth-child(6) {
    left: calc(50% + 1020px);
    opacity: 0;
}

.gallery-buttons {
    position: absolute;
    bottom: 15px;
    display: flex;
    gap: 20px;
}

.gallery-buttons span {
    position: relative;
    width: 50px;
    height: 50px;
    background: #111;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.gallery-buttons span::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-top: 4px solid #fff;
    border-left: 4px solid #fff;
    transform: rotate(315deg) translate(2px, 2px);
}

.gallery-buttons span:nth-child(2)::before {
    transform: rotate(135deg) translate(2px, 2px);
}

.gallery-buttons span:active {
    opacity: 0.5;
}

.gallery-content {
    position: relative;
    padding: 40px;
    max-width: 600px;
    transition: 0.25s;
    transition-delay: 0s;
    transform: translateY(40px);
    z-index: 10000;
    opacity: 0;
}

.gallery-content h2 {
    font-size: 4em;
    color: #fff;
}

.gallery-content p {
    font-size: 1.1em;
    color: #fff;
    font-weight: 300;
}

.slider .slides:nth-child(1) .gallery-content,
.slider .slides:nth-child(2) .gallery-content {
    transform: translateY(0px);
    opacity: 1;
    transition-delay: 0.3s;
}


/* Contact Section */
.contact-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

 .contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}
  
  .form {
    width: 100%;
    max-width: 820px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    background-color: #1abc9c;
    position: relative;
  }
  
  .circle {
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 20%, #149279);
    position: absolute;
  }
  
  .circle.one {
    width: 130px;
    height: 130px;
    top: 130px;
    right: -40px;
  }
  
  .circle.two {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 30px;
  }
  
  .contact-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #1abc9c;
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
  }
  
  form {
    padding: 2.3rem 2.2rem;
    z-index: 10;
    overflow: hidden;
    position: relative;
  }
  
  .title {
    color: #fff;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
  }
  
  .input-container {
    position: relative;
    margin: 1rem 0;
  }
  
  .input {
    width: 100%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: 0.3s;
  }
  
  textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 22px;
    resize: none;
    overflow-y: auto;
  }
  
  .input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
  }
  
  .input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
  }
  
  .btn {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: #1abc9c;
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
  }
  
  .btn:hover {
    background-color: transparent;
    color: #fff;
  }
  
  .input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
  }
  
  .input-container span:before,
  .input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color: #1abc9c;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .input-container span:before {
    left: 50%;
  }
  
  .input-container span:after {
    right: 50%;
  }
  
  .input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
  }
  
  .input-container.focus span:before,
  .input-container.focus span:after {
    width: 50%;
    opacity: 1;
  }
  
  .contact-info {
    padding: 2.3rem 2.2rem;
    position: relative;
  }
  
  .contact-info .title {
    color: #1abc9c;
  }
  
  .text {
    color: #333;
    margin: 1.5rem 0 2rem 0;
  }
  
  .information {
    display: flex;
    color: #555;
    margin: 0.7rem 0;
    align-items: center;
    font-size: 0.95rem;
  }
  
  .icon {
    width: 28px;
    margin-right: 0.7rem;
  }
  
  .social-media {
    padding: 2rem 0 0 0;
  }
  
  .social-media p {
    color: #333;
  }
  
  .social-icons {
    display: flex;
    margin-top: 0.5rem;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: linear-gradient(45deg, #1abc9c, #149279);
    color: #fff;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    transition: 0.3s;
  }
  
  .social-icons a:hover {
    transform: scale(1.05);
  }
  
  .contact-info:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 100px;
    border: 22px solid #1abc9c;
    border-radius: 50%;
    bottom: -77px;
    right: 50px;
    opacity: 0.3;
  }
  
  .big-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #1cd4af, #159b80);
    bottom: 50%;
    right: 50%;
    transform: translate(-40%, 38%);
  }
  
  .big-circle:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background-color: #fafafa;
    border-radius: 50%;
    top: calc(50% - 180px);
    left: calc(50% - 180px);
  }
  
  .square {
    position: absolute;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(181%, 11%);
    opacity: 0.2;
  }
  
  @media (max-width: 850px) {
    .form {
      grid-template-columns: 1fr;
    }
  
    .contact-info:before {
      bottom: initial;
      top: -75px;
      right: 65px;
      transform: scale(0.95);
    }
  
    .contact-form:before {
      top: -13px;
      left: initial;
      right: 70px;
    }
  
    .square {
      transform: translate(140%, 43%);
      height: 350px;
    }
  
    .big-circle {
      bottom: 75%;
      transform: scale(0.9) translate(-40%, 30%);
      right: 50%;
    }
  
    .text {
      margin: 1rem 0 1.5rem 0;
    }
  
    .social-media {
      padding: 1.5rem 0 0 0;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 1.5rem;
    }
  
    .contact-info:before {
      display: none;
    }
  
    .square,
    .big-circle {
      display: none;
    }
  
    form,
    .contact-info {
      padding: 1.7rem 1.6rem;
    }
  
    .text,
    .information,
    .social-media p {
      font-size: 0.8rem;
    }
  
    .title {
      font-size: 1.15rem;
    }
  
    .social-icons a {
      width: 30px;
      height: 30px;
      line-height: 30px;
    }
  
    .icon {
      width: 23px;
    }
  
    .input {
      padding: 0.45rem 1.2rem;
    }
  
    .btn {
      padding: 0.45rem 1.2rem;
    }
  }

  /* Footer Section */
.footer {
    background-color: maroon;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 0.5rem;
}

.footer-logo .slogan {
    font-size: 1.2rem;
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}

.footer-links div {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-links h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ccc;
}

.social-media .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-media .social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-media .social-icons a:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links div {
        text-align: center;
    }
}

  


/* Media Queries */
@media (max-width: 992px){
    .header{
        padding: 1.3rem 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero .btn {
        padding: 0.5rem 1.5rem;
    }
}

@media (max-width: 768px){
    .icons{
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon{
        display: none;
    }

    .icons #close-icon{
        display: none;
    }

    #check:checked~.icons #close-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, .1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar{
        height: 20rem; /* Increased height to accommodate button */
    }

    .navbar a{
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: .3s ease;
    }

    #check:checked~.navbar a{
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }

    .apply-btn {
        width: 100%;
        margin: 1rem auto;
        display: block;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .row{
        flex-direction: column;
    }

    .flex{
        max-width: 100%;
    }

    .about-us h2{
        font-size: 31px;
    }

    .about-us p{
        font-size: 16px;
    }

    .social-links a{
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        margin-right: 5px;
    }

    .about-btn{
        font-size: 16px;
        padding: 8px 16px;
        margin-bottom: 30px;
    }
}

/* Gallery Responsiveness */
@media (max-width: 900px){
    .slider{
        position: absolute;
        inset: 40px 40px 200px 40px;
    }

    .slider .slides{
        width: 100px;
        height: 100px;
        top: initial;
        bottom: -170px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    }

    .slider .slides:nth-child(1),
    .slider .slides:nth-child(2){
        top: initial;
        bottom: 0px;
    }

    .slider .slides:nth-child(3){
        left: 0;
    }

    .slider .slides:nth-child(4){
        left: 120px;
    }

    .slider .slides:nth-child(5){
        left: 240px;
    }

    .slider .slides:nth-child(6){
        left: 360px;
    }
}