/* Custom Styles for Wheelocity Hiring Landing Page */

/* ============================================
   TAILWIND CSS FALLBACK (if CDN fails)
   Essential utility classes used in this page
   ============================================ */

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
}

/* Prevent horizontal scroll on all devices */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Safe area insets for modern mobile devices */
@supports (padding: max(0px)) {
    .fixed-navbar {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    @media (max-width: 767px) {
        .fixed-navbar .container {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
    }
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Spacing Utilities */
.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Padding Utilities */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .md\:p-8 {
        padding: 2rem;
    }
}

/* Margin Utilities */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-24 {
    margin-top: 6rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Width Utilities */
.w-full {
    width: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

/* Height Utilities */
.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-none {
    max-width: none;
}

/* Height Utilities */
.h-full {
    height: 100%;
}

/* Typography */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

@media (min-width: 768px) {
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-center {
    text-align: center;
}

/* Colors */
.text-white {
    color: rgb(255 255 255);
}

.text-gray-400 {
    color: rgb(156 163 175);
}

.text-gray-600 {
    color: rgb(75 85 99);
}

.text-gray-700 {
    color: rgb(55 65 81);
}

.text-gray-800 {
    color: rgb(31 41 55);
}

.text-gray-900 {
    color: rgb(17 24 39);
}

.text-green-100 {
    color: rgb(220 252 231);
}

.text-green-400 {
    color: rgb(74 222 128);
}

.text-green-600 {
    color: rgb(22 163 74);
}

.text-green-700 {
    color: rgb(21 128 61);
}

.text-red-500 {
    color: rgb(239 68 68);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.bg-gray-50 {
    background-color: rgb(249 250 251);
}

.bg-gray-900 {
    background-color: rgb(17 24 39);
}

.bg-green-50 {
    background-color: rgb(240 253 244);
}

.bg-green-100 {
    background-color: rgb(220 252 231);
}

.bg-green-600 {
    background-color: rgb(22 163 74);
}

.bg-green-800 {
    background-color: rgb(22 101 52);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-green-50 {
    --tw-gradient-from: rgb(240 253 244);
    --tw-gradient-to: rgb(240 253 244 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-green-100 {
    --tw-gradient-to: rgb(220 252 231);
}

.from-green-600 {
    --tw-gradient-from: rgb(22 163 74);
    --tw-gradient-to: rgb(22 163 74 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-green-800 {
    --tw-gradient-to: rgb(22 101 52);
}

/* Borders */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-300 {
    border-color: rgb(209 213 219);
}

.border-gray-800 {
    border-color: rgb(31 41 55);
}

.border-green-500 {
    border-color: rgb(22 163 74);
}

.border-green-600 {
    border-color: rgb(22 163 74);
}

.border-red-500 {
    border-color: rgb(239 68 68);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-r-lg {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Display */
.hidden {
    display: none !important;
}

/* Tailwind Responsive Classes Fallback for Navbar - Enhanced */
@media (min-width: 768px) {
    .md\:flex {
        display: flex !important;
    }
    
    .md\:hidden {
        display: none !important;
    }
    
    .md\:px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .md\:h-20 {
        height: 5rem !important;
    }
}

@media (max-width: 767px) {
    .md\:flex {
        display: none !important;
    }
    
    .md\:hidden {
        display: block !important;
    }
    
    .md\:px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .md\:h-20 {
        height: 4rem !important;
    }
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Transitions */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-green-50:hover {
    background-color: rgb(240 253 244);
}

.hover\:bg-green-300:hover {
    color: rgb(134 239 172);
}

.hover\:bg-green-400:hover {
    color: rgb(74 222 128);
}

.hover\:bg-green-700:hover {
    background-color: rgb(21 128 61);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Focus States */
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgb(22 163 74);
}

.focus\:ring-green-500:focus {
    --tw-ring-color: rgb(22 163 74);
}

.focus\:border-green-500:focus {
    border-color: rgb(22 163 74);
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Disabled States */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

/* List Styles */
ul {
    list-style-type: none;
}

/* ============================================
   END TAILWIND FALLBACK
   ============================================ */

/* Smooth scrolling */

/* Custom font family */
body {
    font-family: 'Inter', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Tamil text support */
.tamil-text {
    font-family: 'Noto Sans Tamil', sans-serif;
}

/* Custom container max-width */
.container {
    max-width: 1200px;
}

/* Smooth transitions for links */
a {
    transition: all 0.3s ease;
}

/* Form input focus styles */
input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Error message styling */
.error-message {
    display: block;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

/* Form message styling */
#form-message {
    display: none;
}

#form-message.show {
    display: block;
}

#form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Loading state for submit button */
#submit-btn.loading {
    position: relative;
    color: transparent;
}

#submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    /* Ensure touch-friendly tap targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Larger text on mobile for readability */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Video container responsive */
.aspect-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Smooth scroll offset for anchor links */
section {
    scroll-margin-top: 80px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Print styles */
@media print {
    #hero,
    #application-form,
    footer {
        display: none;
    }
}

/* ============================================
   ENHANCED DESIGN - MODERN UI IMPROVEMENTS
   ============================================ */

/* Modern Color Palette */
:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --accent-yellow: #fbbf24;
    --accent-orange: #f97316;
    --gradient-start: #10b981;
    --gradient-mid: #059669;
    --gradient-end: #047857;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

/* Fixed Navbar - Clean Color Logic */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.25s ease;
    backdrop-filter: blur(0px);
    box-shadow: none;
    height: auto;
    width: 100%;
    max-width: 100vw;
    overflow: visible;
    box-sizing: border-box;
}

/* Mobile: Navbar must allow menu to show below */
@media (max-width: 767px) {
    .fixed-navbar {
        overflow: visible !important;
        height: auto;
    }
}

@media (min-width: 768px) {
    .fixed-navbar {
        height: 5rem;
    }
}

/* Container - Ensure proper width and no overflow */
.fixed-navbar .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    height: auto;
}

/* Ensure navbar inner container doesn't cause scrolling issues */
.fixed-navbar .container > div {
    position: relative;
    overflow: visible;
    width: 100%;
    height: auto;
}

/* Mobile: Container should not clip menu or dropdowns */
@media (max-width: 767px) {
    .fixed-navbar .container {
        overflow: visible; /* Allow menu to show below */
    }
    
    /* Ensure language switcher dropdown works on mobile */
    .fixed-navbar .container > div > div:last-child {
        overflow: visible !important;
    }
}

/* ============================================
   DESKTOP LAYOUT (>= 768px) - CSS Grid
   ============================================ */
@media (min-width: 768px) {
    .fixed-navbar .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Desktop: Use CSS Grid */
    .fixed-navbar .container > div {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center;
        gap: 1rem;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Logo - Left (Column 1) */
    .fixed-navbar .container > div > div:first-child {
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* Navigation - Center (Column 2) */
    .fixed-navbar .container > div > div:nth-child(2) {
        grid-column: 2;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
    
    /* Right Container - Language Switcher (Desktop) + Language Switcher & Hamburger (Mobile) (Column 3) */
    .fixed-navbar .container > div > div:last-child {
        grid-column: 3;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
    }
    
    /* Mobile Menu - Hidden on Desktop */
    .fixed-navbar .mobile-menu {
        display: none !important;
    }
}

/* ============================================
   FORCE NAVBAR VISIBILITY RULES (Production Fix)
   ============================================ */

/* MOBILE: Hide desktop navigation, show hamburger */
@media (max-width: 767px) {
    /* CRITICAL: Hide desktop navigation links on mobile */
    .fixed-navbar .container > div > div:nth-child(2) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* CRITICAL: Show right container with language switcher and hamburger on mobile */
    .fixed-navbar .container > div > div:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        overflow: visible !important;
        position: relative;
        height: auto;
    }
    
    /* Ensure mobile menu is hidden by default */
    .mobile-menu:not(.active) {
        display: none !important;
        visibility: hidden !important;
    }
}

/* DESKTOP: Show desktop navigation, show language switcher, hide hamburger */
@media (min-width: 768px) {
    /* CRITICAL: Show desktop navigation links */
    .fixed-navbar .container > div > div:nth-child(2) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* CRITICAL: Show right container with language switcher on desktop, hide mobile hamburger */
    .fixed-navbar .container > div > div:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        /* Ensure dropdown can overflow */
        overflow: visible !important;
        position: relative;
    }
    
    /* Ensure desktop language switcher is visible - override hidden class */
    .fixed-navbar .container > div > div:last-child .hidden.md\:block,
    .fixed-navbar .container > div > div:last-child .md\:block {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide mobile language switcher and hamburger on desktop */
    .fixed-navbar .container > div > div:last-child .md\:hidden {
        display: none !important;
    }
    
    /* Hide mobile menu on desktop */
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ============================================
   MOBILE LAYOUT (< 768px) - Flexbox
   ============================================ */
@media (max-width: 767px) {
    .fixed-navbar {
        height: auto;
        min-height: 4rem;
        background: rgba(1, 71, 55, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        overflow: visible;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }
    
    .fixed-navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        height: auto;
        min-height: 4rem;
        display: flex;
        align-items: center;
        width: 100% !important;
        overflow: visible;
    }
    
    /* Mobile: Use Flexbox - Logo left, Language Switcher & Hamburger right */
    .fixed-navbar .container > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: auto !important;
        min-height: 4rem !important;
        gap: 0 !important;
        box-sizing: border-box;
        overflow: visible !important;
    }
    
    /* Logo - Left */
    .fixed-navbar .container > div > div:first-child {
        flex: 0 0 auto !important;
        order: 1 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start;
        height: 100%;
    }
    
    /* Logo image - Proper vertical centering */
    .fixed-navbar .container > div > div:first-child .navbar-logo {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0;
    }
    
    .fixed-navbar .container > div > div:first-child .logo-image {
        height: 2rem;
        max-width: 140px;
    }
    
    /* Desktop nav - Hidden on mobile */
    .fixed-navbar .container > div > div:nth-child(2) {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Right Container - Language Switcher & Hamburger - Right */
    .fixed-navbar .container > div > div:last-child {
        flex: 0 0 auto !important;
        order: 2 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end;
        height: auto;
        gap: 0.75rem;
        overflow: visible !important;
        position: relative;
    }
    
    /* Hamburger button - Vertically centered with proper alignment */
    .fixed-navbar .container > div > div:last-child .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem; /* Ensure consistent spacing */
    }
    
    /* Hamburger lines - Mobile specific sizing */
    .mobile-menu-button .hamburger-line {
        width: 1.5rem;
        height: 2px;
    }
}

/* STATE 2 - On scroll: Pure white background */
.fixed-navbar.scrolled {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Logo Image Styling */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
    padding: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.logo-image {
    height: 2.5rem;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.25s ease;
    display: block;
}

/* Mobile logo sizing */
@media (max-width: 767px) {
    .logo-image {
        height: 2rem;
        max-width: 140px;
    }
}

/* STATE 1 - At top: White logo (using CSS filter) */
.fixed-navbar .logo-image {
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* STATE 2 - On scroll: Dark logo */
.fixed-navbar.scrolled .logo-image {
    filter: brightness(0) invert(0); /* Makes logo dark */
}

/* Navigation Links */
.nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.25s ease;
    padding: 0.5rem 0;
    display: inline-block;
    color: white; /* White on transparent navbar */
}

/* Nav links on scrolled navbar (white background) */
.fixed-navbar.scrolled .nav-link {
    color: #000000 !important; /* Black color */
}

.nav-link:hover,
.nav-link:focus {
    outline: none;
}

/* Nav link hover states */
.fixed-navbar .nav-link:hover {
    color: #fbbf24; /* Yellow on transparent navbar */
}

.fixed-navbar.scrolled .nav-link:hover {
    color: #10b981 !important; /* Green on scrolled navbar */
}

/* Focus states for accessibility */
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-menu-button:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile Menu Button - Rebuilt with Proper Alignment */
.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    flex-shrink: 0;
    box-sizing: border-box;
    gap: 0.375rem; /* Equal spacing between bars (6px) */
}

.hamburger-line {
    width: 1.5rem; /* Consistent width (24px) */
    height: 2px; /* Consistent height (2px) */
    background: white;
    border-radius: 9999px; /* Full rounded */
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
    display: block;
    margin: 0;
}

.fixed-navbar.scrolled .hamburger-line {
    background: #1f2937; /* gray-800 */
}

/* Hamburger → X Transformation - Perfect Centered X */
.mobile-menu-button.active .hamburger-line:first-child {
    transform: rotate(45deg) translateY(0.5rem);
    transform-origin: center;
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-0.5rem);
    transform-origin: center;
}

/* Ensure hamburger is hidden on desktop (consolidated with main desktop rules above) */
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none !important;
    }
}

/* Mobile Menu - Standard Dropdown (No Internal Scrolling) */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(1, 71, 55, 0.98);
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    box-sizing: border-box;
    max-width: 100vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    /* NO max-height, NO overflow restrictions */
}

/* Mobile Menu - Active State (Open) */
.mobile-menu.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 1.5rem 1rem !important;
    transform: translateY(0);
    /* NO max-height, NO overflow-y */
}

/* Mobile Menu Background on Scroll */
.fixed-navbar.scrolled .mobile-menu {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu - Standard Dropdown on Mobile */
@media (max-width: 767px) {
    /* Navbar - Fixed, no scrolling */
    .fixed-navbar {
        overflow: visible !important; /* Allow menu to show below */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Mobile menu - Absolute positioning below navbar, normal flow */
    .mobile-menu {
        position: absolute !important;
        top: 100% !important; /* Below navbar */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1001 !important;
        /* NO max-height, NO overflow restrictions */
    }
    
    .mobile-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 1.5rem 1rem !important;
        transform: translateY(0);
        /* NO max-height, NO overflow-y */
    }
    
    /* Menu items - Rounded card style */
    .mobile-menu.active .mobile-nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #1f2937 !important; /* Dark text */
        background: white !important; /* Light card background */
        width: 100% !important;
        padding: 1.25rem 1.5rem !important;
        min-height: 56px !important; /* Large touch target */
        line-height: 1.5 !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        position: relative !important;
        z-index: 1002 !important;
        border-radius: 0.75rem !important; /* Rounded corners */
        margin-bottom: 0.75rem !important; /* Spacing between items */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.2s ease !important;
    }
    
    .mobile-menu.active .mobile-nav-link:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Menu item hover/active states */
    .mobile-menu.active .mobile-nav-link:hover,
    .mobile-menu.active .mobile-nav-link:active,
    .mobile-menu.active .mobile-nav-link:focus {
        background: #f0fdf4 !important; /* Light green on hover */
        color: #047857 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Add padding to body when menu is open to prevent content jump */
    body.mobile-menu-open {
        padding-top: 0; /* Menu is in normal flow, no padding needed */
    }
}

/* Hide Mobile Menu on Desktop */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
    }
}

.mobile-nav-link {
    text-decoration: none;
    transition: all 0.25s ease;
    display: block !important;
    width: 100%;
    text-align: left;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 1.5 !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    /* Base styles - will be overridden by mobile active state */
    color: white;
    background: transparent;
    padding: 1rem 1.5rem;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.fixed-navbar.scrolled .mobile-nav-link {
    color: #1f2937; /* gray-800 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.fixed-navbar.scrolled .mobile-nav-link:hover,
.fixed-navbar.scrolled .mobile-nav-link:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: #10b981;
}

/* Hero Section - Rebuilt with Strong Visual Structure */
.hero-with-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    /* Ensure clean break at bottom */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Layer 1: Base Background Image - Perfect Alignment & Layout */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* Fruits and vegetables - rural commerce background image */
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    /* Prevent layout shifts */
    will-change: transform;
    transform: translateZ(0);
    /* Ensure no gaps */
    min-width: 100%;
    min-height: 100%;
    /* Smooth image loading */
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Ensure image is visible */
    display: block;
}

/* Fallback gradient - only shows if image fails to load */
.hero-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    z-index: -1;
    opacity: 0.3; /* Very subtle fallback, image should be visible above */
}

/* Fix for mobile devices - remove fixed attachment */
@media (max-width: 768px) {
    .hero-background-image {
        background-attachment: scroll;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .hero-primary-overlay {
        bottom: 25%;
    }
    
    .hero-exit-fade {
        height: 60px;
    }
}

/* Layer 2: Primary Overlay - Strong gradient, stops cleanly before bottom 25% */
.hero-primary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 25%;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(1, 71, 55, 0.92) 0%,
        rgba(5, 150, 105, 0.75) 70%,
        rgba(5, 150, 105, 0.5) 85%,
        transparent 100%
    );
    z-index: 2;
    /* Ensure no gaps */
    min-width: 100%;
    /* Clean stop - no green residue */
    mask-image: linear-gradient(to bottom, black 0%, black 100%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 100%, transparent 100%);
}

/* Layer 3: Clean Exit Fade - Pure white transition, reduced height */
.hero-exit-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    max-height: 80px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.5) 70%,
        rgba(255, 255, 255, 0.85) 90%,
        white 100%
    );
    z-index: 2;
    pointer-events: none;
    /* Ensure no gaps */
    min-width: 100%;
    /* Ensure it covers any green tint completely */
    box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.2);
}

/* Hero Content Wrapper - Perfect Alignment */
.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

/* Hero content padding - accounts for navbar height */
.hero-content-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
}

/* Mobile Hero Padding Fixes */
@media (max-width: 767px) {
    .hero-content-padding {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
        min-height: calc(100vh - 4rem);
        align-items: flex-start;
        padding-top: 6rem;
    }
    
    .hero-content-wrapper {
        width: 100%;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .hero-content-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
        min-height: calc(100vh - 5rem);
    }
}

/* Ensure container doesn't cause layout issues */
.hero-with-background .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .hero-with-background .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hero Badge - Clean Spacing */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 767px) {
    .hero-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Hero Headline - Perfect Typography */
.hero-headline {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
        padding: 0 0.25rem;
    }
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 3.75rem;
        margin-bottom: 2rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4.5rem;
    }
}

/* Hero Subheadlines - Consistent Spacing */
.hero-subheadline-primary {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

@media (max-width: 480px) {
    .hero-subheadline-primary {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        padding: 0 0.25rem;
    }
}

@media (min-width: 768px) {
    .hero-subheadline-primary {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0;
    }
}

.hero-subheadline-secondary {
    font-size: 1.125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

@media (max-width: 480px) {
    .hero-subheadline-secondary {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
        padding: 0 0.25rem;
    }
}

@media (min-width: 768px) {
    .hero-subheadline-secondary {
        font-size: 1.25rem;
        margin-bottom: 3rem;
        padding: 0;
    }
}

/* Hero CTA Buttons - Perfect Alignment */
.hero-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
    padding: 0 0.5rem;
}

@media (max-width: 480px) {
    .hero-cta-buttons {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        padding: 0 0.25rem;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .hero-cta-buttons {
        flex-direction: row;
        gap: 1.25rem;
        padding: 0;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: auto;
    }
}

/* Trust Indicators - Clean Grid with Enhanced Visibility */
.hero-trust-indicators {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 4;
    padding: 0 0.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #ffffff;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-icon {
    font-size: 1.25rem;
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.5));
}

@media (max-width: 640px) {
    .hero-trust-indicators {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0 0.25rem;
        justify-content: center;
    }
    
    .trust-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        gap: 0.375rem;
    }
    
    .trust-icon {
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .hero-trust-indicators {
        gap: 1rem;
    }
    
    .trust-item {
        font-size: 0.8125rem;
        padding: 0.45rem 0.875rem;
    }
}

@media (min-width: 768px) {
    .hero-trust-indicators {
        padding: 0;
    }
    
    .trust-item {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    .trust-icon {
        font-size: 1.5rem;
    }
}

/* Ensure Who We Are section has pure white background - no green tint */
#who-we-are {
    background-color: #ffffff !important;
    position: relative;
    z-index: 1;
    /* Clean start - no overlap from hero */
    margin-top: 0;
    padding-top: 4rem;
}

@media (min-width: 768px) {
    #who-we-are {
        padding-top: 5rem;
    }
}

/* Responsive image positioning */
@media (min-width: 1920px) {
    .hero-background-image {
        background-size: cover;
        background-position: center top;
    }
}

/* Fix for very small screens */
@media (max-width: 480px) {
    .hero-background-image {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .hero-with-background {
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS fix */
    }
}

/* Responsive adjustments for navbar */
@media (max-width: 767px) {
    .fixed-navbar {
        background: rgba(1, 71, 55, 0.95);
        backdrop-filter: blur(10px);
        height: 4rem;
    }
    
    .fixed-navbar.scrolled {
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .fixed-navbar.scrolled .logo-image {
        filter: brightness(0) invert(0); /* Dark logo on scroll */
    }
    
    .fixed-navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure mobile menu doesn't overlap content */
    /* Removed max-height and overflow restrictions for normal page scroll */
}

/* Modern CTA Buttons */
.cta-button-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    color: #047857;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Touch target size */
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-button-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4), 0 5px 15px rgba(16, 185, 129, 0.2);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px; /* Touch target size */
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-button-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* CTA Button for "How It Works" Section */
.cta-button-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    gap: 0.5rem;
    margin: 0 auto;
}

.cta-button-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4), 0 5px 15px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.cta-button-form:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .cta-button-form {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-height: 48px;
        width: auto;
        max-width: 100%;
    }
}

/* Enhanced Card Designs */
.enhanced-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.enhanced-card:hover::before {
    transform: scaleX(1);
}

.enhanced-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Step Cards with Icons */
.step-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.step-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, #10b981, #34d399, #fbbf24);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::after {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.step-card:nth-child(2) .step-icon {
    animation-delay: 0.5s;
}

.step-card:nth-child(3) .step-icon {
    animation-delay: 1s;
}

.step-card:nth-child(4) .step-icon {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animated Background Elements */
@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.animate-pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

/* Enhanced Stats/Impact Cards */
.stat-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Enhanced Form Design */
.enhanced-form {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Generate OTP Button - Production Design */
.generate-otp-button {
    width: auto;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    margin-top: 0.5rem;
    display: inline-block;
    text-align: center;
}

.generate-otp-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.generate-otp-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.generate-otp-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Submit Button */
.submit-button {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* Section Backgrounds with Patterns */
.section-pattern {
    position: relative;
}

.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(16, 185, 129, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Footer */
.enhanced-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.enhanced-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399, #fbbf24);
}

/* QR Code Image Styling */
.qr-code-image {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
}

.qr-code-image:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Footer Follow Us Section - Explicit Flex Layout */
.enhanced-footer .flex.items-start {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    width: 100%;
}

/* QR Code Container - Right Alignment */
.enhanced-footer .flex.items-start .flex-shrink-0 {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
}

/* Social Links Container */
.enhanced-footer .flex.items-start .flex-1 {
    flex: 1 1 auto !important;
    min-width: 0;
}

/* Desktop: QR Code aligned to top-right */
@media (min-width: 768px) {
    .enhanced-footer .flex.items-start {
        align-items: flex-start !important;
        justify-content: space-between !important;
    }
    
    .enhanced-footer .flex.items-start .flex-shrink-0 {
        margin-left: auto;
        align-self: flex-start;
    }
    
    .qr-code-image {
        width: 150px;
        height: auto;
    }
}

/* Mobile QR Code - Stack vertically on small screens */
@media (max-width: 767px) {
    .qr-code-image {
        width: 120px;
    }
    
    /* Stack QR code below links on mobile */
    .enhanced-footer .flex.items-start {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: flex-start !important;
    }
    
    .enhanced-footer .flex.items-start .flex-shrink-0 {
        align-self: flex-start !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* Responsive Improvements */
@media (max-width: 640px) {
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .step-card {
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Smooth Scroll Enhancement */
html {
    scroll-padding-top: 80px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        to right,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
}

/* Additional utility classes for backdrop blur support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Flex utilities */
.flex-shrink-0 {
    flex-shrink: 0;
}

.text-left {
    text-align: left;
}

.opacity-90 {
    opacity: 0.9;
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Additional missing utilities */
.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.z-10 {
    z-index: 10;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.group {
    position: relative;
}

.group-hover\:translate-x-1:hover {
    transform: translateX(0.25rem);
}

.inline-block {
    display: inline-block;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* ============================================
   LANGUAGE SWITCHER STYLES
   ============================================ */

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
    height: auto;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    min-height: 36px;
}

.fixed-navbar.scrolled .lang-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.fixed-navbar.scrolled .lang-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.lang-icon {
    font-size: 1rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1002;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    max-height: none;
    height: auto;
}

.lang-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.9375rem;
    display: block;
    visibility: visible;
    opacity: 1;
}

.lang-option:hover {
    background: #f0fdf4;
    color: #047857;
}

.lang-option:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.lang-option:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Ensure both language options are always visible - never hide active language */
.lang-option[data-lang="en"],
.lang-option[data-lang="ta"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile language switcher */
@media (max-width: 767px) {
    .lang-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
        min-height: 32px;
    }
    
    .lang-dropdown {
        right: 0;
        min-width: 120px;
        /* Ensure dropdown appears correctly on mobile */
        position: absolute;
        z-index: 1002;
        max-height: none;
        height: auto;
    }
    
    .lang-icon {
        font-size: 0.875rem;
    }
    
    /* Ensure language switcher container allows dropdown overflow */
    .language-switcher {
        overflow: visible;
        z-index: 1001;
    }
}

/* Tamil-specific styling */
body.tamil-lang {
    font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
}

body.tamil-lang .tamil-text {
    font-family: 'Noto Sans Tamil', sans-serif;
}


