/* =============================================
   General Styles
   ============================================= */

   @font-face {
    font-family: 'Baligo';
    src: url('./fonts/Baligodemo-owPyx.otf') format('truetype');
    }

    @font-face {
        font-family: 'Cairo-play';
        src: url('./fonts/CairoPlay-VariableFont.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Belligan';
        src: url('./fonts/Belligan-K77yp.otf') format('truetype');
    }
    
    @font-face {
        font-family: 'Tangerine';
        src: url('./fonts/tangerine.otf') format('truetype');
    }

body {
    margin: 0;
    font-family: 'Baligo', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    animation: fadeIn 1.5s ease-in-out;
    opacity: 0; /* Start fully transparent */
    animation-fill-mode: forwards; /* Ensure opacity stays at 1 after animation ends */
}

/* Keyframes for fade-in */
@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

/* =============================================
   Loading Styles
   ============================================= */
   #loadingScreen {   /* Fullscreen loading overlay */
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spinner {   /* Spinner animation replaced with image */
    width: 50px;
    height: 50px;
    background-image: url('./images/opening/loading.png');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    animation: spin 5s linear infinite;
  }
  
  #loadingScreen {
    transition: opacity 0.9s ease;
  }
  
  #loadingScreen.fade-out {
    opacity: 0;
    pointer-events: none;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* =============================================
    Section0 Styles (Welcome Section)
    ============================================= */
body.no-scroll { /* Disable scrolling globally for the opening section */
    overflow: hidden;
}

.section0 {
    background-image: url('./images/BG/cute0.jpg');
    background-size: cover;       /* Ensures the image covers the entire section */
    background-position: center;  /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    text-align: center;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-in-out; /* Fade-out effect */
}

.section0.hidden {
    opacity: 0;
    pointer-events: none;
}

.section0 .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically within the wrapper */
    gap: 20px;
}

.section0 .welcome-text {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.section0 .welcome-image img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border: 10px solid #fff;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 55px solid #fff;
}

.section0 .welcome-image .caption {
    margin-top: -50px;
    font-size: 1rem;
    color: #555;
}

.section0 .welcome-image .caption .first-line {
    font-weight: bold;
}

.section0 .welcome-image .caption .second-line {
    font-size: 1rem;
    color: #333;
    margin-top: 5px;
}

.section0 .welcome-button {
    margin-top: 20px; /* Adjust as needed for spacing */
}

.section0 .button {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Belligan', sans-serif; /* Add this line */
}

.section0 .button .fas {
    margin-right: 12px;
}

.section0 .button:hover {
    background-color: #0056b3;
}

/* =============================================
   Section1 Styles
   ============================================= */

.section1 {
    width: 100%;
    height: 100vh; /* Full screen height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('./images/BG/cute1.jpg');
    background-size: cover;       /* Ensures the image covers the entire section */
    background-position: center;  /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in-out; /* Fade-in effect */
}

.section1.visible {
    opacity: 1; /* Fade in */
}

.section1 .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.section1 .text-container {
    font-size: 30px;
    color: #333;
    text-align: left;
    margin-left: 20px;
}

.top-container, .middle-container, .bottom-container {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.middle-container {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: visible; /* Allow shadow to be visible */
}

.base-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    display: block;  /* Ensures image space is pre-allocated */
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Add shadow effect */
}

.popup-image {
    position: absolute;
    transform: translateX(-50%);
    width: 100px;
    height: auto;
    object-fit: cover;
    z-index: 1;
    transition: transform 1s ease-in-out;
}

.popup-image.top {
    top: 100%;
}

.popup-image.bottom {
    top: -50%;
}

.section1 .wrapper.active .top-container .popup-image.top {
    left: 70%;
    transform: translateX(-50%) translateY(-100%);
}

.section1 .wrapper.active .bottom-container .popup-image.bottom {
    left: 30%;
    transform: translateX(-50%) translateY(100%);
}

/* =============================================
   Section2 Styles
   ============================================= */

   .section2 {
    background-image: url('./images/BG/cute2.jpg');
    background-size: cover;       /* Ensures the image covers the entire section */
    background-position: center;  /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Allow content to grow without overlapping */
    height: auto;
    padding: 6vh 0;
}

.section2 .wrapper {
    display: grid;
    grid-template-columns: 1fr; /* 1 column for the whole section */
    grid-template-rows: auto auto auto; /* 3 rows for each section */
    width: 80%;
    gap: clamp(12px, 3vh, 24px);
}

.section2 .column1, .section2 .column3 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section2 .column1 .text-container{
    font-size: clamp(25px, 8vw, 60px); /* Adaptive font size */
    font-weight: bold; /* Make it bold */
    color: #333;
    text-align: center;
    font-family: 'Cairo-play', sans-serif; /* Use the same font for consistency */
    margin-bottom: 0;
    line-height: 1.1;
}

.section2 .column3 .text-container {
    font-size: 25px;
    color: #333;
    text-align: center;
    font-family: 'Tangerine', sans-serif; /* Add this line */
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.1;
}

.section2 .column4 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two side-by-side columns */
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.section2 .column4 .sub-column {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 25px;
    color: #333;
    text-align: center;
    font-family: 'Tangerine', sans-serif; /* Add specific font */
    height: auto;
    padding: 8px 0;
}

.section2 .column4 .sub-column:first-child {
    border-right: 2px solid #333; /* Vertical line between the columns */
}

.section2 .column4 .sub-column .material-symbols-outlined {
    font-size: 55px; /* Adjust the font size as needed */
}

.section2 .text-container {
    font-size: clamp(20px, 8vw, 60px); /* Adaptive font size */
    text-align: center;
    color: #333;
}

.section2 .column2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 sub-columns (side by side) */
    gap: 10px;
}

.section2 .sub-column {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section2 .image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 200px;
    max-height: 200px;
    border: 10px solid #fff;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 55px solid #fff;
}

.section2 .caption {
    color: #000000;
    text-align: center;
    margin-top: -45px;
    font-size: clamp(15px, 8vw, 40px); /* Adaptive font size */
    line-height: 1.1;
}

/* =============================================
   Section3 Styles
   ============================================= */

   .section3 {
    background-image: url('./images/BG/cute3.jpg');
    background-size: cover;       /* Ensures the image covers the entire section */
    background-position: center;  /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.section3 .wrapper {
    display: grid;
    grid-template-columns: 1fr; /* 1 column for the whole section */
    grid-template-rows: auto auto auto auto; /* 4 rows for each container */
    width: 80%;
    gap: 20px;
}

.section3 .container1, 
.section3 .container4 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #333;
    text-align: center;
    margin-top: -3%;
}

.section3 .container1 .text-container {
    font-size: clamp(45px, 8vw, 60px); /* Adaptive font size */
    font-weight: bold; /* Make it bold */

}

.section3 .container4 .text-container {
    font-size: 20px;
    font-family: 'Tangerine', sans-serif; /* Add this line */
}

.section3 .container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section3 .container2 figure {
    margin: 0;
    text-align: center;
}

.section3 .container2 .image {
    width: 200px;
    height: auto;
    border: 10px solid #fff;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 55px solid #fff;
}

.section3 .container2 .caption {
    font-size: 30px;
    margin-top: -22%;
    color: #000000;
    font-style: italic;
}

.section3 .container3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section3 .container3 .button {
    padding: 10px 20px;
    font-size: 18px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Belligan', sans-serif; /* Add this line */
}

.section3 .button .fa-solid {
    margin-right: 10px;
}

/* Styling for the logos */
.logo {
    width: 80px;  /* Adjust the size as needed */
    height: auto;
    display: block;
    margin: 0 auto;
  }
  

.section3 .container3 .button:hover {
    background-color: #0056b3;
}

/* =============================================
   Section4 Styles
   ============================================= */

/* Section4 Styles */
.section4 {
    background-image: url('./images/BG/cute4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .section4 .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 80%;
  }
  
  .section4 .container1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }
  
  .section4 .container1 .image-container {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border: 10px solid #fff;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 55px solid #fff;
  }
  
  .section4 .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 10px solid #fff;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 55px solid #fff;
  }
  
  .section4 .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .section4 .image.active {
    opacity: 1;
  }
  
  
  .section4 .container1 .caption {
    color: #000000;
    text-align: center;
    margin-top: -45px;
    font-size: 40px;
    z-index: 9;
  }
  
  .section4 .container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }
  
  .section4 .container2 .text-container {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    text-align: center;
  }

  .section4 .container3 {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .section4 .container3 .button {
    padding: 10px 20px;
    font-size: 18px;
    color: #000000;
    background-color: #feb343;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Belligan', sans-serif; /* Add this line */
  }

  .section4 .button .fa-solid {
    margin-right: 10px;
  }

  /* Styling for the logos */
.logo {
    width: 80px;  /* Adjust the size as needed */
    height: auto;
    display: block;
    margin: 0 auto;
  }
  

.section4 .container3 .button:hover {
    background-color: #e6a33e;
}

/* =============================================
   Responsive Styles
   ============================================= */

@media (max-width: 572px) {
    .section2 .column1 .text-container {
        margin-top: 20%;
    }
    
    .section2 .wrapper {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

    .section2 .column2 {
        grid-template-columns: 1fr 1fr 1fr; /* Keep 3 sub-columns */
    }

    .section2 .image {
        max-width: 150px; /* Smaller max width for images */
        max-height: 150px; /* Smaller max height for images */
    }

    .section3 .wrapper {
        width: 90%;
    }
    
    .section3 .container4 .text-container {
        font-size: 15px;
    }
    
    .section3 .container3 .button {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .section3 .container2 .caption {
        font-size: 25px;
        margin-top: -20%;
    }

    .section1 .text-container {
        margin-top: -20%;
    }
}
