/* Aloevera Font Faces */
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

    /* Base styles */
    body {
        font-family: 'Aloevera', 'Montserrat', sans-serif;
        background-color: #FFFFFF;
        color: #1a1a1a;
    }
    .text-primary { color: #5E55F3; }
    .text-accent { color: #0099ff; } /* Blue for the hero title */
    .bg-primary { background-color: #5E55F3; }
    .border-primary { border-color: #5E55F3; }
    .btn-primary {
        background-color: #5E55F3;
        color: #FFFFFF;
        transition: background-color 0.3s ease;
    }
    .btn-primary:hover { background-color: #4a44c4; }
    .card {
        background-color: #FFFFFF;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    }
    .section-title {
        font-weight: 900;
        font-size: 2.5rem;
    }
    .hero-title {
        font-size: 3.5rem;
        font-weight: 900;
        line-height: 1.1;
    }
    
    /* Scroll Snapping Implementation */
    html, body {
        overflow: hidden; /* Prevent double scrollbars */
    }
    #scroll-container {
        height: 100vh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth; /* Enables smooth scrolling for nav links */

        scrollbar-width: none;         /* Firefox */
        -ms-overflow-style: none;      /* IE and Edge */
    }

    #scroll-container::-webkit-scrollbar {
        display: none;                 /* Chrome, Safari, Opera */
    }

    #scroll-container > section {
        scroll-snap-align: start;
        min-height: 100vh; 
        display: flex;
        flex-direction: column;
        justify-content: center; /* Vertically center content */
        padding-bottom: 5rem; /* Space for next button */
        position: relative; /* Needed for absolute positioning of next button */
        overflow: hidden; /* Hide overflowing decorative elements */
    }
    

    .logo-svg {
            height: 3.2rem; /* 4x */
    }

    .logo-text {
    
    font-size: 2rem; /* 3x */
    margin-left: -1.2rem; /* 1x gap */
    font-weight: bold;
    position: relative;
    top: 0.3rem; /* adjust this value to control how much lower */
    }
    
    /* Home section specific styles for dark theme */
    #home {
        padding-top: 0;
        justify-content: flex-start;
        background-color: #000000;
        color: #FFFFFF;
    }

    #home .header-light {
        background-color: transparent;
    }
    #home .nav-header-link {
        color: #FFFFFF;
    }
    #home .nav-header-link:hover {
        color: #0099ff;
    }

    #home .next-section-btn {
        color: #FFFFFF;
        border-color: #FFFFFF;
    }
    #home .next-section-btn:hover {
        background-color: #FFFFFF;
        color: #000000;
    }

    @media (max-width: 768px) {
        .section-title { font-size: 2.5rem; }
        .hero-title { font-size: 3.5rem; }
        #about .flex-col, #mission .flex-col {
            align-items: center;
            text-align: center;
        }
    }
    
    /* Animation utility class */
    .animate-on-scroll {
        opacity: 0; /* Hidden by default */
    }

    /* The path that will be animated */
    #animated-logo-path {
        stroke: #2563EB;
        stroke-width: 8;
        fill: transparent;
        stroke-dasharray: 1688;
        stroke-dashoffset: 1688;
        animation: draw-and-pause 10s ease-in-out infinite;
    }

    #animated-logo-path_white {
        stroke: #ffffff;
        stroke-width: 8;
        fill: transparent;
        stroke-dasharray: 1688;
        stroke-dashoffset: 1688;
        animation: draw-and-pause 10s ease-in-out infinite;
    }

    @keyframes draw-and-pause {
        0% {
            stroke-dashoffset: 1688; /* Path is not drawn */
            fill: transparent;
        }
        30% {
            stroke-dashoffset: 0; /* Path is fully drawn */
            fill: transparent;
        }
        50% {
            stroke-dashoffset: 0; /* Path is fully drawn */
            fill:rgba(37, 100, 235, 0.7);
        }
        70% {
            stroke-dashoffset: 0; /* Path is fully drawn */
            fill: #2563EB;  
        }
        100% {
            stroke-dashoffset: 0; /* Path remains drawn */
            fill: #2563EB;      /* Fill the logo with color */
        }
    }

    /* Loader and Modal styles */
    .loader {
        border: 4px solid #f3f3f3;
        border-radius: 50%;
        border-top: 4px solid #5E55F3;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .modal-content {
        background-color: #ffffff;
        color: #1a1a1a;
        padding: 2rem;
        border-radius: 0.5rem;
        max-width: 500px;
        width: 90%;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    .next-section-btn {
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }
    .next-section-btn:hover {
            background-color: #5E55F3;
            color: white;
            border-color: #5E55F3;
    }
    .styled-title {
        background-color: #12379E; /* A nice blue */
        color: white;
        padding: 0.5rem 1.5rem;
        border-radius: 9999px;
        display: inline-block;
        font-weight: bold;
        font-size: 2rem;
    }

    @media (max-width: 768px) {
    /* Mission & Ambition: stack image below text on mobile */
    #mission .mission-block, #mission .ambition-block {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    #mission .mission-block .mission-content, #mission .ambition-block .ambition-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 0.5rem !important;
    }
    #mission .mission-block img, #mission .ambition-block img {
        order: 2;
        margin-top: 1rem;
        margin-bottom: 0;
        align-self: flex-start;
    }
    #mission .mission-block p, #mission .ambition-block p {
        order: 1;
        margin-bottom: 0;
    }
    }

    /* Testimonial Section Styles */
    .testimonial-item h3 {
            transition: color 0.3s ease;
    }
    .testimonial-item:hover h3, .testimonial-item.active h3 {
        color: #5E55F3;
    }
    .testimonial-item.active {
        font-weight: 700;
        background-color: #EFF6FF; /* bg-blue-50 */
    }
    #testimonial-image, #testimonial-text-wrapper {
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }
    .testimonial-content-exit {
        transform: translateY(20px);
        opacity: 0;
    }
    
    #testimonial-scroll-container {
        max-height: 22rem; /* Approx height of 4 items */
        overflow-y: auto;
        padding-right: 0.5rem; /* Space for scrollbar */
    }

    /* Custom scrollbar for Webkit browsers (Chrome, Safari) */
    #testimonial-scroll-container::-webkit-scrollbar {
        width: 6px;
    }
    #testimonial-scroll-container::-webkit-scrollbar-track {
        background: #EFF6FF; /* bg-blue-50 to match the active item bg */
        border-radius: 6px;
    }
    #testimonial-scroll-container::-webkit-scrollbar-thumb {
        background: #93C5FD; /* bg-blue-300 */
        border-radius: 6px;
    }
    #testimonial-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #60A5FA; /* bg-blue-400 */
    }

    /* New styles for testimonial quote box */
    .testimonial-quote-box {
        background-color: #4A90E2; /* Fallback color */
        border-radius: 2rem;
        padding: 0.5rem;
        color: white;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
        min-height: 200px;
        display: flex;
        justify-content: flex-start; /* Move content to the top */
    }

    .testimonial-quote-box .background-waves {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .testimonial-quote-box .quote-icon {
        position: absolute;
        top: 1rem;
        left: 1.5rem;
        font-size: 6rem;
        color: rgba(255, 255, 255, 0.15);
        z-index: 1;
    }

    .testimonial-quote-box p {
        position: relative;
        z-index: 2;
        font-size: 1rem; /* Smaller font size */
        line-height: 1.6;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    .no-scrollbar {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    /* --- ADD THIS NEW RULE --- */
    #partners-carousel > a {
        /* This calculation sets each logo link to be 1/6th of the container's width,
        while accounting for the 5 gaps between the 6 visible items.
        (gap-8 = 2rem) */
        width: calc((100% - (5 * 2rem)) / 6);

        /* This prevents the items from shrinking if the window is resized */
        flex-shrink: 0;
    }
    /* --- END OF NEW RULE --- */

    .lang-flag.active {
        opacity: 1 !important;
        border-color: #2563eb !important;
    }
    .lang-flag {
        transition: opacity 0.2s, border-color 0.2s;
    }

    #lang-dropdown-desktop, #lang-dropdown-mobile {
    min-width: 110px;
    background: rgba(0,0,0,0.85) !important;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.25rem 0;
    position: absolute;
    right: 0;
    z-index: 50;
}
    #lang-dropdown-desktop.show, #lang-dropdown-mobile.show {
        display: flex;
    }
    #lang-dropdown-desktop .lang-option, #lang-dropdown-mobile .lang-option {
        background: transparent !important;
        color: #fff;
        justify-content: center;
        width: 100%;
        border-radius: 0.375rem;
        transition: background 0.2s, color 0.2s;
    }
    #lang-dropdown-desktop .lang-option:hover, #lang-dropdown-mobile .lang-option:hover {
        background: rgba(255,255,255,0.08) !important;
        color: #3b82f6;
    }
    #lang-dropdown-desktop img, #lang-dropdown-mobile img {
        box-shadow: none;
        border: 2px solid #fff;
    }


    /* Projects Section Styles */
    /* Hide scrollbar for the container */
    #projects-container::-webkit-scrollbar {
        display: none; /* For Chrome, Safari, and Opera */
    }
    #projects-container {
        -ms-overflow-style: none;  /* For Internet Explorer and Edge */
        scrollbar-width: none;  /* For Firefox */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    .no-scrollbar {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    /* Animation styles for filtering */
    .project-card {
        /* Added transition for smooth filtering */
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }

    .project-card-hidden {
        transform: scale(0.8);
        opacity: 0;
        display: none;
    }

    /* Active filter state - more prominent */
    .hashtag-filter.active {
        background-color: #3b82f6; /* bg-blue-500 */
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px 0 rgb(0 118 255 / 39%);
    }

    /* Keyframes for go-and-return animation */
    @keyframes goAndReturn {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
    }
    .go-and-return {
    animation: goAndReturn 1.5s infinite ease-in-out;
    }

    /* Testimonial text area scrollbar styles */
    .custom-scrollbar::-webkit-scrollbar {
    height: 8px;
    width: 8px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 4px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
    background: #e0e7ef;
    border-radius: 4px;
    }

    .testimonial-quote-box {
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.08);
    min-height: 160px;
    max-height: 220px;
    overflow-y: auto;
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Move content to the top */
    }
    .background-waves svg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    }
    .quote-icon {
    z-index: 1;
    }
    #testimonial-text {
    z-index: 2;
    }
    #testimonial-text-wrapper {
        box-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.18), 0 1.5px 6px 0 rgba(59, 130, 246, 0.10);
    }

    /* contact style*/
    .form-input {
        background-color: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 0;
        padding-top: 1.5rem;
        padding-bottom: 0.5rem;
        color: white;
        width: 100%;
        outline: none;
        transition: border-bottom-color 0.3s;
    }
    .form-input:focus {
        outline: none;
        border-bottom-color: white;
    }
    .form-label {
        position: absolute;
        top: 1.5rem;
        left: 0;
        color: rgba(255, 255, 255, 0.7);
        pointer-events: none;
        transition: all 0.3s ease;
    }
    .contact-page-dot {
        cursor: pointer;
        height: 12px;
        width: 12px;
        background-color: #D1D5DB; /* Tailwind gray-300 */
        border-radius: 9999px;
        display: inline-block;
        transition: background-color 0.3s ease-in-out;
    }
    .contact-page-dot.active-dot,
    .contact-page-dot:hover {
        background-color: #2563EB; /* Your primary blue color */
    }

    /* footer style*/
    .contact-dot {
        cursor: pointer;
        height: 12px;
        width: 12px;
        background-color: #4B5563; /* Corresponds to Tailwind's gray-600 */
        border-radius: 9999px; /* full */
        display: inline-block;
        transition: background-color 0.3s ease-in-out;
    }

    .contact-dot.active-dot,
    .contact-dot:hover {
        background-color: #3B82F6; /* Corresponds to Tailwind's blue-500 */
    }

    /* Add a simple fade transition for the contact info blocks */
    .contact-info-item {
        transition: opacity 0.5s ease-in-out;
    }
    .contact-info-item.hidden {
        /* We use JS to add/remove 'hidden', but opacity can be used for transitions if not using a framework */
    }

    /* Floating label effect */
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        top: 0;
        font-size: 0.75rem;
        color: white;
    }