/* Apply Inter font */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/*
========================================
1. Page Load Animations
========================================
*/
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Top bar animation */
.top-bar-animate {
    animation: slideDown 0.6s ease-out 0.3s forwards;
    opacity: 0;
    /* Start hidden */
}

/* Main nav animation */
.main-nav-animate {
    animation: slideDown 0.7s ease-out 0.5s forwards;
    opacity: 0;
    /* Start hidden */
}


/*
========================================
2. Sticky Nav Shrink
========================================
*/
/* The nav itself has transition-all duration-300 already */
nav.nav-scrolled .h-20 {
    height: 4rem;
    /* h-16 */
}

nav.nav-scrolled .h-8.w-8 {
    height: 1.75rem;
    /* h-7 */
    width: 1.75rem;
    /* w-7 */
}

nav.nav-scrolled .text-xl {
    font-size: 1.125rem;
    /* text-lg */
}

@media (min-width: 640px) {
    nav.nav-scrolled .sm:text-2xl {
        font-size: 1.25rem;
        /* sm:text-xl */
    }
}


/* --- NAVBAR CSS (Unchanged) --- */
.nav-links {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.nav-link {
    position: relative;
    color: #4b5563;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1d4ed8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link-button {
    color: #4b5563;
}

.nav-link-button:hover {
    color: #1d4ed8;
}

.nav-link-button::after {
    display: none;
}

.group:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-menu {
    opacity: 0;
    transform: translateY(5px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* --- HERO SECTION CSS --- */

/* Responsive Hero Background Image */
#hero-section {
    /* Mobile-first: Default (vertical) image */
    background-image: url('assets/img/hero-mobile.jpeg');
}

@media (min-width: 768px) {

    /* md breakpoint */
    /* Desktop (landscape) image */
    #hero-section {
        background-image: url('assets/img/hero-img.jpeg');
    }
}

#hero-globe-area {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#hero-globe-area.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.slide-up-delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.slide-up-delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.globe {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateGlobe 20s linear infinite;
    animation-play-state: paused;
}

.is-visible .globe {
    animation-play-state: running;
}

@keyframes rotateGlobe {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

.globe-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.globe-ring:nth-child(1) {
    transform: rotateY(30deg) rotateX(60deg);
}

.globe-ring:nth-child(2) {
    transform: rotateY(60deg) rotateX(30deg);
}

.globe-ring:nth-child(3) {
    transform: rotateY(90deg) rotateX(120deg);
}

.globe-ring:nth-child(4) {
    transform: rotateY(120deg) rotateX(150deg);
}

.globe-ring:nth-child(5) {
    transform: rotateY(150deg) rotateX(180deg);
}

.globe-ring:nth-child(6) {
    transform: rotateY(180deg) rotateX(210deg);
}

.globe-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.2);
    animation: pulse 3s infinite ease-in-out;
    animation-play-state: paused;
}

.is-visible .globe-center {
    animation-play-state: running;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.3);
    }
}

.service-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    animation-play-state: paused;
}

.is-visible #service-1 {
    animation-play-state: running;
    animation-delay: 0.5s;
}

.is-visible #service-2 {
    animation-play-state: running;
    animation-delay: 0.7s;
}

.is-visible #service-3 {
    animation-play-state: running;
    animation-delay: 0.9s;
}

.is-visible #service-4 {
    animation-play-state: running;
    animation-delay: 1.1s;
}

@keyframes pop-out-1 {
    from {
        top: 50%;
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        top: 20%;
        left: 10%;
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes pop-out-2 {
    from {
        top: 50%;
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        top: 25%;
        left: 70%;
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes pop-out-3 {
    from {
        top: 50%;
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        top: 70%;
        left: 5%;
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes pop-out-4 {
    from {
        top: 50%;
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        top: 75%;
        left: 65%;
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

#service-1 {
    animation-name: pop-out-1;
}

#service-2 {
    animation-name: pop-out-2;
}

#service-3 {
    animation-name: pop-out-3;
}

#service-4 {
    animation-name: pop-out-4;
}

@media (max-width: 767px) {
    .absolutetop-6right-6bg-green-500text-whitepx-4py-2rounded-lgtext-smfont-semiboldtext-centershadow-lg {
        margin-top: 29rem;
    }

    .service-popup {
        white-space: normal;
        text-align: center;
        max-width: 100px;
    }

    @keyframes pop-out-1 {
        from {
            top: 50%;
            left: 50%;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }

        to {
            top: 10%;
            left: 0;
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }
    }

    @keyframes pop-out-2 {
        from {
            top: 50%;
            left: 50%;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }

        to {
            top: 15%;
            left: auto;
            right: 0;
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }
    }

    @keyframes pop-out-3 {
        from {
            top: 50%;
            left: 50%;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }

        to {
            top: 65%;
            left: 0;
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }
    }

    @keyframes pop-out-4 {
        from {
            top: 50%;
            left: 50%;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }

        to {
            top: 70%;
            left: auto;
            right: 0;
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }
    }
}

/* hero section ended */

/*
========================================
3. ENHANCED Services Section
========================================
*/

.service-card {
    transition: transform 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* NEW: Hover effect for the icon container inside the card */
.service-card .flex {
    transition: all 0.3s ease;
}

.service-card:hover .flex {
    background-color: #2563EB; /* bg-blue-600 */
    color: #FFFFFF; /* text-white */
    transform: scale(1.1) rotate(-5deg);
}

.service-card-hidden {
    /* Initial state (hidden) */
    opacity: 0;
    transform: translateY(30px);
}

.service-card-visible {
    /* Final state (visible) */
    opacity: 1;
    transform: translateY(0);
}


/*
========================================
4. Trust Section
========================================
*/
.trust-section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.trust-section-visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-stat-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.trust-stat-visible {
    opacity: 1;
    transform: translateY(0);
}


/*
========================================
5. Why Choose Us Section
========================================
*/

/* Initial hidden states */
.why-content-left.why-content-hidden {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.why-content-right.why-content-hidden {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Visible states */
.why-content-left.why-content-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.why-content-right.why-content-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Pillar items - individual animation */
.why-pillar-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-pillar-item.why-pillar-visible {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Graphic Animations */
.why-svg-center {
    animation: pulse-center 2.5s infinite ease-in-out;
}

.why-svg-icon {
    animation: float-icon 3s infinite ease-in-out;
}

@keyframes pulse-center {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
    }
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/*
========================================
6. Services Hub (Dark) Section
========================================
*/
tab-button {
    background-color: #f3f4f6;
    /* bg-gray-100 */
    color: #374151;
    /* text-gray-700 */
}

.tab-button.active-tab {
    background-color: #2563EB;
    /* bg-blue-600 */
    color: #ffffff;
    /* text-white */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active-content {
    display: block;
    opacity: 1;
}

/* Hides all content panels by default */
.service-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Shows the active content panel with a fade-in */
.service-tab-content.active {
    display: block;
    opacity: 1;
}

/* Base state for each service item (hidden) */
.service-list-item {
    opacity: 0;
    transform: translateY(20px);
    /* This transition is what makes it slide up and fade in smoothly */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* The "visible" state that JavaScript will add */
.service-list-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
========================================
7. General Section Scroll-In Animation
========================================
*/
.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
========================================
8. "How It Works" Animations
========================================
*/

/* Base state for the process cards */
.process-card-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect for process cards */
.process-card-hidden:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.08);
}


/* Base state for the CTA card */
.cta-card-hidden {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-card-visible {
    opacity: 1;
    transform: scale(1);
}

/*
========================================
9. "FAQ" Section Animations
========================================
*/

/* --- Sidebar Animation --- */
.faq-sidebar-hidden {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-sidebar-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Accordion Item Animation --- */
.faq-item-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect for accordion items */
.accordion-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover .accordion-button {
    transform: translateX(5px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.07), 0 4px 6px -2px rgba(37, 99, 235, 0.04);
}


/* --- Accordion Content Panel (for smooth open/close) --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* --- Accordion Chevron Icon Rotation --- */
.accordion-button.active i[data-feather="chevron-down"] {
    transform: rotate(180deg);
}

/*
========================================
10. "Contact Us" Section Animations
========================================
*/
.contact-left-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-left-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
========================================
11. "Footer" Social Icons
========================================
*/
.footer-social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-icon:hover {
    transform: scale(1.2) rotate(-10deg);
    color: #3b82f6;
    /* text-blue-500 */
}
/* --- Downloads Section Specific Styles (New Static Grid) --- */
.download-link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem; /* p-6 */
    background-color: #ffffff; /* bg-white */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06); /* shadow-lg */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5e7eb; /* border-gray-100 */
    text-decoration: none;
}

.download-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -4px rgba(37, 99, 235, 0.1);
    border-color: #3b82f6; /* border-blue-500 */
}

/* Ensure text is readable and colored appropriately on hover/default */
.download-link-card h4 {
    color: #1f2937; /* Default gray-900 */
}

.download-link-card:hover h4 {
    color: #2563eb; /* Blue-600 on hover */
}
/* ------------------------------------- */
/* Custom Styles for Location Section */
/* ------------------------------------- */

/* Map Aspect Ratio Container */
.map-container {
    /* Create a responsive container with 16:9 aspect ratio */
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
    overflow: hidden;
    border-bottom: 4px solid #3b82f6; /* Blue border for visual separation */
}

.map-container iframe {
    /* Make the iframe fill the container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove default iframe border */
}

/* Enhancing Shadow and Hover Effects */
.shadow-2xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-3xl:hover {
    box-shadow: 0 30px 40px -8px rgba(0, 0, 0, 0.15), 0 15px 15px -8px rgba(0, 0, 0, 0.08);
}

/* Address Link Hover Effect */
.text-gray-900 a:hover {
    color: #2563eb; /* Tailwind blue-600 */
}

/* Responsive adjustments (Though Tailwind handles most) */
@media (max-width: 768px) {
    .map-container {
        padding-top: 75%; /* On mobile, use a slightly taller 4:3 aspect ratio */
    }
}

/* --- Document Checklist Section Styles (Elegant & Clean Update) --- */

/* Base style for the Document Category Button */
.doc-tab-button {
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    /* Remove all default borders/shadows for clean look */
    border: none !important; 
    box-shadow: none !important;
}

/* Tab Layout Responsiveness (Retained for structure) */
@media (min-width: 640px) and (max-width: 1023px) {
    .document-cat-sidebar-hidden > .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}
@media (min-width: 1024px) {
    .document-cat-sidebar-hidden > .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Inactive button: Clean dark background, muted text */
.doc-tab-button:not(.active) {
    color: #cbd5e1; /* Slate-300 */
    background-color: #334155; /* Slate-700/Slate-800 */
    /* Add subtle hover effect for inactive */
    transform: none; 
}

/* Active state for the selected button: GRADIENT (Matching Service Hub) */
.doc-tab-button.active {
    /* Tailwind: bg-gradient-to-r from-blue-600 to-blue-700 */
    background-image: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 15px -5px rgba(37, 99, 235, 0.7); /* Subtle, elegant shadow */
    transform: scale(1.0); /* Keep scale subtle/default */
    border-radius: 8px; /* Slightly smaller radius for sleekness */
}

/* --- Content Area Styles (Dark and Clean Card) --- */

/* Content Card: Simple slate background, slight elevation */
.doc-content-area {
    background-color: #1e293b; /* Slate-800 */
    border-radius: 12px;
    padding: 2.5rem; /* Increased padding for better spacing */
    border: 1px solid #334155; /* Slate-700 border for definition */
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5); /* Subtle, deep shadow */
    transition: all 0.5s ease-in-out;
}

.doc-content-area.active {
    animation: fadeInSlideUp 0.6s ease-out forwards;
    /* No additional active border/shadow on content area itself */
}


/* Grouping boxes for DoB/PoA/ECR (Lighter slate background) */
.document-proof-group {
    padding: 1.25rem;
    background-color: #334155; /* Slate-700 */
    border-radius: 8px;
    /* Remove redundant inner shadow/border */
    box-shadow: none; 
}

/* Text & Icon colors inside dark content */
.document-proof-group h4 {
    color: #f1f5f9; /* Slate-100 */
}
.document-proof-group ul li {
    color: #cbd5e1; /* Slate-300 */
}
.document-link {
    text-decoration: none;
    font-weight: 600;
    color: #60a5fa; /* Blue-400 - Highlight color on dark BG */
    transition: color 0.2s;
    border-bottom: 1px dashed transparent;
}

.document-link:hover {
    color: #fca5a5; /* Red/Pink highlight on hover */
    border-bottom: 1px dashed #fca5a5;
}

/* Annexure CTA Card */
.annexture-cta-card {
    /* Already styled in HTML for consistency: bg-slate-800, border-slate-700 */
}


/* Custom Animation (Retained) */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* =================================
       CSS for Scrolling Review Banner
       ================================= */

    /* The outer container to clip the content */
    .review-marquee-wrapper {
        width: 100%;
        overflow: hidden;
        /* Hides the overflowing content */
    }

    /* The track that holds all the items and animates */
    .review-marquee-track {
        display: flex;
        /* Aligns items in a row */
        width: calc(350px * 12);
        /* 6 original items + 6 clones = 12. 350px is the item width */
        animation: scroll-left 40s linear infinite;
        /* The magic animation */
    }

    /* Pause the animation on hover */
    .review-marquee-wrapper:hover .review-marquee-track {
        animation-play-state: paused;
    }

    /* Define the scrolling animation */
    @keyframes scroll-left {
        0% {
            transform: translateX(0);
            /* Start at the beginning */
        }

        100% {
            transform: translateX(calc(-350px * 6));
            /* Move left by the width of the *original* 6 items */
        }
    }

    /* Individual review items */
    .review-marquee-item {
        width: 350px;
        /* Fixed width for each card */
        flex-shrink: 0;
        /* Prevents items from shrinking */
        padding: 1.5rem;
        /* 24px */
        margin-right: 1rem;
        /* 16px gap */
        background-color: white;
        border-radius: 0.75rem;
        /* 12px rounded-lg */
        border: 1px solid #e5e7eb;
        /* border-gray-200 */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        /* shadow-md */
    }
/* ==============================================
   ANIMATION FOR PASSPORT TYPE CARDS
   ============================================== */

/* The starting (hidden) state */
.passport-type-card-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* The final (visible) state */
.passport-type-card-visible {
    opacity: 1;
    transform: translateY(0);
}