:root {
    --primary-color: #04164a;
    --secondary-color: #050533;
    --accent-color: #2196f3;
    --text-light: #ffffff;
    --text-dark: #04164a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-light);
    margin-top: 52px; /* Height of fixed navbar on mobile */
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    body {
        margin-top: 0px; 
    }
}

/* Style for individual images inside the carousel */

.carousel-image-group img {
    height: 100%; /* Ensure images fill the height of the flex item */
    object-fit: cover; /* This will crop the image to fit the container without distortion */
    border-radius: 15px; /* Adjust this value (e.g., 5px, 10px, 15px) for more or less rounding */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
}

/* Also ensure the carousel inner container has a defined height */
.carousel-inner {
    overflow: hidden; /* Important to clip content if it overflows */
    border-radius: 15px; /* Optional: Apply rounded corners to the carousel itself for a cohesive look */
    padding: 2em;
}

/* You might already have these, but including for context */
.carousel-image-group {
    height: 100%; /* Make sure the flex container fills its parent's height */
    padding: 10px 0; /* Add vertical padding if images look too cramped */
}

/* Responsive adjustments for different screen sizes (ensure border-radius is kept) */
@media (max-width: 992px) {
    .carousel-image-group img {
        width: 32% !important;
        /* border-radius: 8px; /* Keep consistent rounding */
    }
    .carousel-inner { height: 150px; }
}

@media (max-width: 768px) {
    .carousel-image-group img {
        width: 48% !important;
        height: 120px;
        /* border-radius: 8px; /* Keep consistent rounding */
    }
    .carousel-inner { height: 150px; }
}

@media (max-width: 576px) {
    .carousel-image-group img {
        width: 95% !important;
        height: 180px;
        /* border-radius: 8px; /* Keep consistent rounding */
    }
    .carousel-inner { height: 200px; }
}



/* --- Hero Section Entry Animations --- */

/* Keyframes for the fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Starts 20px below its final position */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ends at its final position */
    }
}

/* Keyframes for the main image, which ends at a specific opacity */
@keyframes fadeInUpImage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8; /* Adjust this to your desired final opacity for the logo */
        transform: translateY(0);
    }
}


/* Base styles for elements that will animate */
.animate-on-load {
    opacity: 0; /* Hidden by default */
    transform: translateY(20px); /* Initial slight downward shift */
    animation-fill-mode: forwards; /* Stays in its final state after animation */
    animation-name: fadeInUp; /* Apply the default fade-in-up animation */
    animation-duration: 0.7s; /* Duration of the animation */
    animation-timing-function: ease-out; /* Smooth deceleration */
}

/* Specific animation delays for a staggered effect */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Special animation for the main logo image */
.main-image.animate-on-load.delay-5 {
    animation-name: fadeInUpImage; /* Use the specific image animation */
    animation-duration: 1.0s; /* Make the image animation slightly longer */
    animation-delay: 1.0s; /* Specific delay for the image */
}

/* --- Optional: Improve the look of the existing image grid for visual appeal --- */
/* This can help the grid blend better with the hero section */




/* General Filter Button Styling */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.filter-btn.active-filter {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.filter-btn:not(.active-filter):hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Layout for Buttons */
.text-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem; /* Ensure spacing between rows and columns */
}

/* Media Queries for Better Spacing */
@media (max-width: 768px) {
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.navbar {
    background-color: rgba(4, 22, 74, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.3rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}









/* Hero styles */

.hero-section .image-grid {
    /* Ensure the grid is positioned correctly */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Add a subtle overlay or reduce opacity for less distraction */
    background: rgba(0, 0, 0, 0.2); /* A very subtle dark overlay */
    border-radius: 3px; /* Match the main image border-radius */
    overflow: hidden; /* Ensure images don't spill out */
}

.hero-section .image-grid .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Adjust columns as needed */
    gap: 5px; /* Smaller gap for the grid images */
    width: 100%;
    height: 100%;
    opacity: 0.6; /* Subtly reduce overall grid opacity */
}

.hero-section .image-grid .grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px; /* Slight roundness for individual grid images */
}

/* Reduce the opacity of the main image's background grid on small screens */
@media (max-width: 768px) {
    .hero-section .image-grid .grid-container {
        opacity: 0.3; /* Make grid even more subtle on mobile */
    }
}

.hero-section {
    position: relative;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1;
    opacity: 0.3; /* Transparency effect */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    height: 100%;
}

.grid-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.main-image {
    position: relative;
    z-index: 2;
}

.download-container {
    display: flex; /* Makes the children align horizontally */
    justify-content: left; /* Centers the images horizontally */
    gap: 20px; /* Adds space between images */
    flex-wrap: nowrap; /* Ensures they stay on the same line */
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.download-link {
    text-decoration: none;
    display: inline-block !important;
    text-align: center !important;
}

.download-image {
    max-width: 200px; /* Adjust to desired size */
    height: auto; /* Maintain aspect ratio */
}


/* Desktop Screens (min-width: 992px - Bootstrap's 'lg' breakpoint) */
@media (min-width: 992px) {
    .hero-section .row {
        flex-direction: row;
    }

    /* Left side: Text content */
    .hero-section .col-lg-6:first-of-type {
        order: 1;
        text-align: left;
    }

    /* Right side: Images */
    .hero-section .col-lg-6.hero121 {
        order: 2;
    }

    .download-buttons {
        text-align: left;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

/* Tablet and Phone Screens (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .hero-section .row {
        flex-direction: column;
    }

    /* Images at the top */
    .hero-section .col-lg-6.hero121 {
        order: 1;
        margin-top: 0px;
    }

    .hero121 .image-grid {
        padding: 1.5rem;
    }

    .hero121 .main-image {
        padding: 1.5rem;
    }

    /* Text content below images */
    .hero-section .col-lg-6:first-of-type {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* First comes the title */
    .hero-section .col-lg-6:first-of-type h1 {
        order: 1;
        margin-bottom: 1.5rem;
    }

    /* Download buttons styling */
    .hero-section .col-lg-6:first-of-type .download-buttons {
        order: 2 !important;
        margin-top: 0;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .download-buttons {
        justify-content: center !important;
        width: 100%;
        margin: 1.5rem auto;
        align-items: center !important;
    }

    /* Then all p texts */
    .hero-section .col-lg-6:first-of-type p {
        order: 3 !important;
        margin-top: 1rem;
    }

    /* Reduce the opacity of the grid on small screens */
    .hero-section .image-grid .grid-container {
        opacity: 0.3;
    }
}





 /* End hero styles */





.languages-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    gap: 10px; /* Add space between blocks */
    justify-content: center; /* Center the items */
}

.language-item {
    padding: 10px 15px; /* Add padding */
    background-color: rgba(255, 255, 255, 0.1); /* Optional background color */
    color: #fff; /* Text color */
    border-radius: 5px; /* Rounded corners */
    text-align: center;
    min-width: 100px; /* Set minimum width */
}

.feature-card {
    border: none;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}



.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.language-item {
    text-align: center;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.language-item:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}



.pricing-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}



.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    background: radial-gradient(circle at center, #030F30 0%, #082372 80%, #05164A 100%);
/* Fades from a brighter blue in the center to a darker blue/almost black at the edges */
    border: none;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--text-light);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.download-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: transparent;
    color: var(--text-light);
    transform: translateY(-2px);
}

.section-padding {
    padding: 6rem 0;
}


@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #04164a;
        padding: 10px; /* Add some padding for spacing */
        border-radius: 8px; /* Optional: rounded corners */
    }

    .navbar-nav .nav-link {
        color: #fff; /* Ensure text is visible on dark background */
    }
}


@media (max-width: 768px) {
  /* allow the inner wrapper to expand and not hide overflow */
  #appShowcaseCarouselMobile .carousel-inner {
    height: auto !important;
    overflow: visible !important;
  }

  /* each slide will grow to its content height */
  #appShowcaseCarouselMobile .carousel-item {
    height: auto !important;
  }

  /* make the <img> fill width but keep its natural height */
  #appShowcaseCarouselMobile .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
  }
}



/* Mobile only (up to 767.98px) */
@media (max-width: 768px) {
  /* Center text inside each feature card */
  #features .feature-card {
    text-align: center;
  }

  /* Make the icon a block and center it; add bottom margin */
  #features .feature-card .feature-icon {
    display: block;
    margin: 0 auto 1rem;
  }

  /* Center the showcase image */
  #features .feature-card img.img-fluid {
    display: block;
    margin: 0 auto;
  }

  /* If you still need a uniform gap under headings or paragraphs: */
  #features .feature-card h3,
  #features .feature-card p {
    margin-left: 0;
    margin-right: 0;
  }

  .section-padding {
        padding: 2rem 0;
    }
    .navbar {
        padding: 0.5rem 0;
    }
    .hero-section {
        padding: 1.5rem 0;
        min-height: auto;
  }

}




@media (max-width: 576px) {
    .section-padding {
        padding: 1.25rem 0;
    }
    .hero-section {
        padding: 1.25rem 0;
    }
    .feature-card {
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    .pricing-card {
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem !important;
    }
    .hero121 {
        margin-top: 20px;
    }
    .custom-footer img {
        width: 150px;
        height: auto;
    }
}

html {
    scroll-behavior: smooth;
}

footer {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link121:hover {
    color: #2196f3; /* Optional: Change color on hover */
}
