/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Fixed Colors */
:root {
    --primary-green: #16a34a;
    --dark-green: #15803d;
    --light-green: #f0fff0;
    --white: #ffffff;
    --gray-600: #4b5563;
    --gray-200: #e5e7eb;
    --text-dark: #1f2a44;
    --backdrop: rgba(0, 0, 0, 0.6);
}

/* Global Font Settings - Poppins Only */
* {
    font-family: 'Poppins', sans-serif !important;
}

body {
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.6;
}

html {
    font-family: 'Poppins', sans-serif !important;
}

/* Ensure Poppins is applied to all text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
select,
textarea,
label {
    font-family: 'Poppins', sans-serif !important;
}

/* Specific font weights for different elements */
.hero-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}

.job-card h3 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

.nav-link {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
}

/* Reset default styles */
header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

.mobile-menu-open {
    display: block !important;
    transform: translateY(0);
    opacity: 1;
    max-height: 500px;
}

.mobile-nav-link {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-open .mobile-nav-link {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-open .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-open .mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-open .mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-open .mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-open .mobile-nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu-open .mobile-nav-link:nth-child(6) {
    transition-delay: 0.35s;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* Container */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
header h1 {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif !important;
}

/* Mobile-specific styles */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

header nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    padding: 5rem 1.5rem 2rem;
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1999;
}

header nav.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--backdrop);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

header nav.active {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
}

header nav.active::before {
    opacity: 1;
}

header nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    list-style: none;
}

header nav ul li {
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

header nav.active ul li {
    transform: translateX(0);
    opacity: 1;
}

header nav.active ul li:nth-child(1) {
    transition-delay: 0.15s;
}

header nav.active ul li:nth-child(2) {
    transition-delay: 0.3s;
}

header nav.active ul li:nth-child(3) {
    transition-delay: 0.45s;
}

header nav.active ul li:nth-child(4) {
    transition-delay: 0.6s;
}

header nav.active ul li:nth-child(5) {
    transition-delay: 0.75s;
}

header nav.active ul li:nth-child(6) {
    transition-delay: 0.9s;
}

header nav ul li a,
header nav ul li button.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

header nav ul li a:hover,
header nav ul li button.nav-link:hover {
    background: var(--light-green);
    color: var(--primary-green);
    transform: scale(1.03);
}

header .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

header .hover-effect {
    display: block;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

header .hover-effect:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

header .btn-primary {
    display: block;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

header .btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
}

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

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

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

/* Job Listings Styling */
.jobs-section {
    background: var(--white);
    padding: 2rem 0;
}

.job-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.job-card.featured {
    background: var(--light-green);
    border: 2px solid var(--primary-green);
}

/* Force perfect circles for job card company logos */
.job-card .company-logo,
.job-card .w-12.h-12.company-logo.rounded-full.flex.items-center.justify-center {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    aspect-ratio: 1 / 1 !important;
}

.job-card h3 {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif !important;
}

.job-card p {
    color: var(--gray-600);
    font-family: 'Poppins', sans-serif !important;
}

.tag {
    background: rgba(22, 163, 74, 0.1);
    color: var(--primary-green);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.tag:hover {
    background: var(--primary-green);
    color: var(--white);
}

.jobs-section .filter-btn {
    background: var(--white);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.jobs-section .filter-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.jobs-section .promo-text {
    font-family: 'Poppins', sans-serif !important;
}

.jobs-section .promo-text a {
    color: var(--primary-green);
    font-weight: 500;
    font-family: 'Poppins', sans-serif !important;
}

.jobs-section .promo-text a:hover {
    text-decoration: underline;
}

/* Footer Styling */
.footer-section {
    background: var(--light-green);
    color: var(--gray-600);
    border-top: 1px solid rgba(22, 163, 74, 0.1);
}

.footer-section h3 {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif !important;
}

.footer-section h4 {
    color: #1f2937;
    font-family: 'Poppins', sans-serif !important;
}

.footer-section a {
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.footer-section .social-icon:hover svg {
    color: var(--primary-green);
}

.footer-input {
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.footer-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.footer-btn {
    background: var(--primary-green);
    transition: background 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.footer-btn:hover {
    background: var(--dark-green);
}

@media (max-width: 768px) {
    .footer-section .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section .flex {
        justify-content: center;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--dark-green);
    transform: scale(1.1);
}

#back-to-top.visible {
    display: flex;
}

/* Job Details Styling */
.job-details-section {
    background: var(--white);
    padding: 4rem 0;
}

.job-header {
    background: var(--light-green);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.job-title {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif !important;
}

/* General company logo - for job details page */
.company-logo:not(.logo-slider .company-logo) {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    font-family: 'Poppins', sans-serif !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
}

.apply-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.apply-btn:hover {
    background: var(--dark-green);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.description-area {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Related Jobs Styling */
.related-jobs-section {
    background: var(--light-green);
    padding: 4rem 0;
}

/* Ensure all text uses Poppins */
* {
    font-family: 'Poppins', sans-serif !important;
}

/* Desktop-specific styles */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    header nav {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        opacity: 1;
        transform: none;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        z-index: auto;
        transition: none;
    }

    header nav::before {
        display: none;
    }

    header nav.active {
        display: flex;
    }

    header nav ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    header nav ul li {
        transform: none;
        opacity: 1;
        transition: none;
    }

    header nav ul li a,
    header nav ul li button.nav-link {
        padding: 0.5rem 0;
        font-size: 1rem;
        background: transparent;
        border-radius: 0;
    }

    header nav ul li a:hover,
    header nav ul li button.nav-link:hover {
        background: transparent;
        transform: none;
        color: var(--primary-green);
    }

    header .nav-actions {
        flex-direction: row;
        gap: 1rem;
        margin-top: 0;
    }

    header .hover-effect,
    header .btn-primary {
        padding: 0.5rem 1.25rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 10;
    padding: 4rem 1rem;
    background: #ffffff;
}

/* Remove gradient animations */
.hero-section::before {
    display: none;
}

@keyframes pulse {
    /* Remove this animation */
}

.hero-title {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif !important;
}

.hero-title span {
    color: var(--primary-green);
}

.hero-btn {
    background: var(--primary-green);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--dark-green);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-form {
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-input,
.hero-select {
    transition: all 0.3s ease;
}

.hero-input:focus,
.hero-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Trusted By Section - Clean Green Theme */
.trusted-by-section {
    background: var(--light-green);
    border: 2px solid var(--primary-green);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem auto;
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.1);
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    padding: 0;
}

/* Sliding Logo Container */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: transparent;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch; /* Safari smooth scrolling */
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--light-green), transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--light-green), transparent);
}

.logo-track {
    display: -webkit-box; /* Safari */
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -webkit-animation: slide 40s linear infinite; /* Safari */
    animation: slide 40s linear infinite;
    width: -webkit-fit-content; /* Safari */
    width: -moz-fit-content; /* Firefox */
    width: fit-content;
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    transform: translateZ(0);
}

@-webkit-keyframes slide {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes slide {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

.company-logo {
    display: -webkit-box; /* Safari */
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -webkit-box-align: center; /* Safari */
    -ms-flex-align: center; /* IE10 */
    align-items: center;
    -webkit-box-pack: center; /* Safari */
    -ms-flex-pack: center; /* IE10 */
    justify-content: center;
    min-width: 200px;
    padding: 1rem 2rem;
    -webkit-transition: all 0.3s ease; /* Safari */
    transition: all 0.3s ease;
    opacity: 0.7;
    border-radius: 8px;
}

.company-logo:hover {
    -webkit-transform: scale(1.05); /* Safari */
    transform: scale(1.05);
    opacity: 1;
    background: rgba(22, 163, 74, 0.05);
}

.logo-text {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    -webkit-transition: all 0.3s ease; /* Safari */
    transition: all 0.3s ease;
    text-align: center;
}

.company-logo:hover .logo-text {
    color: var(--primary-green);
    -webkit-text-shadow: 0 0 10px rgba(22, 163, 74, 0.3); /* Safari */
    text-shadow: 0 0 10px rgba(22, 163, 74, 0.3);
}

/* Pause animation on hover */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

/* Alternative: Static Grid Layout (6 per row) */
/* Uncomment this section if you prefer static grid instead of sliding
.logo-slider {
    display: none;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 100%;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
*/

/* Mobile responsive for slider */
@media (max-width: 768px) {
    .trusted-by-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }

    .company-logo {
        min-width: 150px;
        padding: 0.75rem 1.5rem;
    }

    .logo-text {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .trusted-by-section {
        padding: 1.5rem 0.5rem;
        margin: 1rem 0.5rem;
}

.company-logo {
        min-width: 120px;
        padding: 0.5rem 1rem;
    }

    .logo-text {
        font-size: 0.75rem !important;
    }
}

/* Cross-browser compatibility fixes */
@supports (-webkit-appearance: none) {
    /* Safari-specific fixes */
    .logo-track {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
}

@supports not (-webkit-appearance: none) {
    /* Non-Safari browsers */
    .logo-track {
        will-change: transform;
    }
}

/* Ensure smooth animation across all browsers */
.logo-track {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    will-change: transform;
}

/* Pause animation on hover - cross-browser */
.logo-slider:hover .logo-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}