/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #374151;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --gray-800: #1f2937;
    --gray-300: #d1d5db;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
            --accent: #f97316; /* Orange accent color */
            --accent-hover: #ea580c; /* Darker orange for hover */
            --black: #000000;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f9fafb;
    font-size: 16px; /* Base font size for mobile */
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Navigation - Mobile First */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Reduced height for mobile */
    padding: 0 1rem;
}

        .logo {
            display: flex;
            align-items: center;
            height: 100%; /* Make logo vertically centered in header */
        }

        .logo img {
            height: 60px;   /* adjust depending on how tall your header is */
            width: auto;    /* keep aspect ratio */
            display: block;
        }

.nav-menu {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.nav-menu.active {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0.75rem 0; /* Increased spacing for touch targets */
     list-style: none;
}
.nav-item::marker {
    content: none; /* hides the marker */
}


.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem; /* Larger font for mobile */
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem; /* Larger touch targets */
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    font-size: 1rem; /* Larger font for mobile */
    min-height: 44px; /* Minimum touch target size */
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

        .btn-outline {
            border: 1px solid var(--accent);
            color: var(--accent);
            background: transparent;
        }
        
        .btn-outline:hover {
            background-color: var(--accent-hover);
            color: var(--white);
        }

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.mobile-menu-btn {
    display: block; /* Always visible on mobile */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Styles */
.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.75rem; /* Smaller for mobile */
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-800);
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    max-width: 100%; /* Full width on mobile */
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1rem;
    padding: 0 1rem;
}

        /* Hero Section */
        .hero {
            position: relative;
            background: linear-gradient(to right, #2563eb, #1e40af);
            color: white;
            padding: 5rem 0;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('../assets/team.png') center/cover no-repeat;
            opacity: 0.4;
        }
        
        .hero-content {
            position: relative;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }
        
        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

.hero .section-title {
    font-size: 2rem; /* Slightly smaller for mobile */
    margin-bottom: 1rem;
}

/* Why Join Us */
.values-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: var(--blue-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.value-icon {
    width: 2.5rem; /* Smaller icons for mobile */
    height: 2.5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-100);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.25rem;
}

.value-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.75rem;
    color: var(--gray-800);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
}

.benefit-category {
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefit-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.benefit-icon {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.benefit-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--blue-100);
    color: var(--primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Open Positions */
.position-card {
    background-color: var(--blue-50);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.position-content {
    padding: 1.25rem;
}

.position-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.position-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.position-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-department {
    background-color: var(--blue-100);
    color: var(--blue-800);
}

.tag-type {
    background-color: var(--bg-light);
    color: var(--gray-800);
}

/* Application Form */
.form-container {
    max-width: 100%; /* Full width on mobile */
    margin: 0 auto;
    padding: 0 1rem;
}

.form-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    min-height: 48px; /* Larger touch targets */
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.25rem;
}

.success-message {
    background-color: #f0fdf4;
    color: #166534;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Team Culture */
.culture-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    align-items: center;
}

.culture-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    order: -1; /* Image first on mobile */
}

.culture-image img {
    width: 100%;
    height: auto;
    display: block;
}

.culture-list {
    list-style: none;
}

.culture-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.culture-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--blue-100);
    color: var(--primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.25rem;
}

.faq-card {
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    line-height: 1.4;
}

/* CTA Section */
.cta {
    background-color: var(--blue-700);
    color: white;
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1rem;
}

.cta .btn-outline {
    border-color: white;
    color: white;
    background: transparent;
    margin-top: 1rem;
}

.cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Newsletter */
.newsletter {
    background-color: var(--blue-50);
    padding: 2rem 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    max-width: 100%;
    margin: 1.25rem auto 0;
    gap: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    min-height: 48px;
}

/* Footer */
footer {
    background-color: var(--gray-800);
    color: white;
    padding: 2rem 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #d1d5db;
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--accent);
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #d1d5db;
    transition: color 0.3s;
    font-size: 1.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 1.5rem 1rem 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1020;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 100%; /* Full width on mobile */
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--primary);
}

.job-card {
    background-color: var(--blue-50);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.job-card h2 {
    color: var(--blue-800);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.job-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.job-meta span {
    font-weight: 600;
    color: var(--text);
}

.modal-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.field-item {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.field-item input {
    width: 100%;
}

.add-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    min-height: 44px;
}

.add-btn:hover {
    text-decoration: underline;
}

.file-input {
    margin-top: 0.5rem;
    padding: 0.75rem 0;
}

.info-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.privacy-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 1.5rem 0;
    line-height: 1.4;
}

.privacy-text a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    min-height: 48px;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    body {
        font-size: 17px; /* Slightly larger base font size */
    }
    
    .nav-container {
        height: 80px;
        padding: 0 2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    .nav-item {
        margin: 0 0 0 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero .section-title {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .culture-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }
    
    .culture-image {
        order: 0; /* Reset order */
    }
    
    .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: row;
        max-width: 500px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .modal-content {
        max-width: 600px;
        padding: 2rem;
    }
    
    .field-item {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero {
        padding: 5rem 2rem;
    }
    
    .hero .section-title {
        font-size: 3rem;
    }
    
    .modal-content {
        max-width: 700px;
    }
}

/* Large desktop screens */
@media (min-width: 1280px) {
    .modal-content {
        max-width: 800px;
    }
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Improve touch scrolling */
.modal-content {
    -webkit-overflow-scrolling: touch;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}