/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background-color: #8B4513; /* Chocolate brown */
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

/* Toggle Button */
.toggle-btn {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.toggle-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.3s;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    list-style: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #8B4513;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    text-align: center;
    padding: 0.5rem 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f0f0f0;
}
.nav-menu li a {
    display: inline-block;
    padding: 0.5rem 1rem; 
    border-radius: 8px;
}

.nav-menu li:nth-child(1) a:hover { /* Refer */
    background-color: orange;
    color: #8B4513;
}

.nav-menu li:nth-child(2) a:hover,   /* Chat Us */
.nav-menu li:nth-child(3) a:hover {  /* Call Us */
    background-color: green;
}


/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Camera Section */
.camera-section {
    width: 100%;
    margin-bottom: 2rem;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.camera-placeholder {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.camera-feed, .photo-canvas {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: none;
}

/* Scanned Photo Label */
.scanned-label {
    position: absolute;
    top: 25%;
    left: 70%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease-in;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.camera-controls {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    align-items: center;
}

.camera-label {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.upload-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.capture-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.capture-btn:hover {
    background-color: #45a049;
}

/* Suggestions Section */
.suggestions-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.suggestions-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #555;
    font-weight: 600;
}

.suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
    font-weight: 500;
}

.suggestion:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suggestion:nth-child(1) {
    animation-delay: 0.2s;
}

.suggestion:nth-child(2) {
    animation-delay: 0.4s;
}

.suggestion:nth-child(3) {
    animation-delay: 0.6s;
}

/* Input Section */
.input-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.type-in-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.type-in-btn:hover {
    background-color: #45a049;
}

.input-container {
    width: 100%;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.text-input-wrapper {
    margin-bottom: 1rem;
}

#jobDescription {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#jobDescription:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.location-input, .phone-input {
    margin-bottom: 1rem;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-bold {
    font-weight: 600;
}

.retry-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
    color: #666;
    transition: color 0.3s;
}

.retry-btn:hover {
    color: #333;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-code-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.country-code-selector select {
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.phone-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.phone-input input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Feedback Message */
.feedback-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.feedback-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}

.feedback-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    display: block;
}

.post-job-btn {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.post-job-btn:hover {
    background-color: #45a049;
}

.post-job-btn.error {
    background-color: #f44336;
}

.post-job-btn.error:hover {
    background-color: #d32f2f;
}

/* Footer */
.footer {
    width: 100%;
    margin-top: auto;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .toggle-btn {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-menu li {
        padding: 0 1rem;
    }
    
    .suggestions-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .suggestion {
        flex: 1;
        margin: 0 0.5rem;
    }
}
/* Fix for navbar and footer width */
.navbar, .footer {
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    max-width: 100% !important;
    padding: 0 15px;
}

.container {
    max-width: 100%;
    padding: 2rem 15px;
}

/* Ensure body doesn't have horizontal scroll */
body {
    overflow-x: hidden;
}
/* Floating Learn More Button */
.floating-learn-more {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.floating-learn-more:hover {
    opacity: 1;
}

.learn-more-btn {
    background: rgba(139, 69, 19, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-block;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
/* Smooth page transitions */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide transition for match page */
.slide-in {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}