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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* PWA Update Notification Styles */
.pwa-update-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: bottom 0.3s ease;
    max-width: 90%;
}

.pwa-update-notification.show {
    bottom: 20px;
}

.pwa-update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-update-content i.fa-sync-alt {
    font-size: 1.5rem;
}

.pwa-update-button {
    background: white;
    color: #2d5016;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.pwa-update-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-update-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pwa-update-dismiss {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.pwa-update-dismiss:hover {
    opacity: 1;
}

/* PWA Install Button Styles */
.pwa-install-button {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pwa-install-button.show {
    bottom: 20px;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .pwa-update-notification {
        max-width: calc(100% - 40px);
    }
    
    .pwa-update-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pwa-install-button {
        right: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: #2d5016;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3610;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: #2d5016;
    border: 2px solid #2d5016;
}

.btn-secondary:hover {
    background-color: #2d5016;
    color: white;
}

.btn-white {
    background-color: white;
    color: #2d5016;
}

.btn-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-dropdown {
    position: relative;
    text-align: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    justify-content: center;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

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

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #2d5016;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2d5016;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
}

.parallax-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    will-change: transform;
    z-index: 1;
    filter: none !important;
    image-rendering: auto;
    image-rendering: high-quality;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2d5016 0%, #1e3610 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Services */
.services-preview, .services-detail {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.service-price {
    font-weight: 600;
    color: #2d5016;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.service-card.clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card.clickable:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card.clickable:hover .service-price {
    color: #4a7c59;
}

.service-card.detailed {
    text-align: left;
}

.service-card.detailed .service-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card.detailed .service-content p {
    flex-grow: 1; /* Allow description to grow and fill space */
    margin-bottom: 0; /* Remove bottom margin since we have padding-top on pricing */
}

.service-price-detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto; /* Push to bottom of flex container */
}

.service-price-detailed .btn {
    white-space: nowrap; /* Prevent button text from wrapping */
    flex-shrink: 0; /* Prevent button from shrinking */
}

.price {
    font-weight: 600;
    color: #2d5016;
    font-size: 1.1rem;
    flex: 1; /* Allow price to take available space */
    margin-right: 1rem; /* Add space between price and button */
    word-wrap: break-word; /* Allow long prices to wrap */
}

/* Process Steps */
.service-process {
    background-color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Why Choose Us */
.why-choose-us {
    background-color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background-color: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Projects */
.recent-projects, .projects-gallery {
    background-color: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: stretch;
    align-items: stretch;
}

.projects-grid > .project-card:only-child {
    grid-column: 2 / 3;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
}

.project-category {
    background-color: #2d5016;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

/* Gallery Styles */
.project-image-gallery {
    position: relative;
}

.main-project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-indicator {
    background-color: rgba(45, 80, 22, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.gallery-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.gallery-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    position: relative;
}

.gallery-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.gallery-close:hover {
    color: #2d5016;
}

.gallery-modal-content h3 {
    color: #2d5016;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item img.loading {
    opacity: 0.5;
}

.gallery-item img.loaded {
    opacity: 1;
}

/* General image loading states (exclude hero background) */
img.loading:not(.hero-bg) {
    opacity: 0.7;
    filter: blur(1px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

img.loaded:not(.hero-bg) {
    opacity: 1;
    filter: none;
}

.gallery-stats {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Testimonials */
.project-testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #2d5016;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author strong {
    color: #2d5016;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* About Page */
.our-values {
    background-color: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

/* Team Section */
.team-section {
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 1rem;
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: #2d5016;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2d5016 0%, #1e3610 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2d5016 0%, #1e3610 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Contact Page */
.contact-section {
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5016;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.map-section {
    background-color: white;
}

.map-placeholder {
    background-color: #f8f9fa;
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

.map-content {
    text-align: center;
    padding: 2rem;
}

.map-info {
    margin-top: 1rem;
    color: #666;
}

/* Emergency Contact */
.emergency-contact {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-align: center;
}

.emergency-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Error Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.error-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: #2d5016;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

.footer-bottom p {
    color: rgba(255,255,255,0.8);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    /* Disable hover behavior on mobile */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.5rem;
        border-radius: 5px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    /* Only show dropdown on .active class for mobile */
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
    }

    .dropdown-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .parallax-bg {
        background-attachment: scroll !important;
        width: 100%;
        height: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    /* Grids */
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn,
    .error-actions .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.project-card,
.value-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2d5016;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta {
        display: none;
    }
}

/* Authentication Styles */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #2d5016;
    font-weight: 500;
}

.nav-login-btn {
    margin-left: 1rem;
}

.auth-section {
    background-color: #f8f9fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auth-form h2 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auth-info h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.auth-info ul {
    list-style-type: none;
    padding: 0;
}

.auth-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.auth-info li:before {
    content: "✓";
    color: #2d5016;
    font-weight: bold;
    margin-right: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Account Styles */
.account-section, .admin-section {
    background-color: #f8f9fa;
}

.account-overview {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.account-info h2 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.services-section h2 {
    color: #2d5016;
    margin-bottom: 2rem;
}

.user-service {
    background: white;
    border-left: 4px solid #2d5016;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.service-meta p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.no-services {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Admin Dashboard Styles */
.admin-stats {
    margin-bottom: 3rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d5016;
}

.services-management h2 {
    color: #2d5016;
    margin-bottom: 2rem;
}

.services-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.services-table table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th,
.services-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.services-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2d5016;
}

.customer-info strong {
    color: #2d5016;
}

.customer-info small {
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

/* Mobile responsiveness for auth and admin */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-table {
        font-size: 0.9rem;
    }
    
    .services-table th,
    .services-table td {
        padding: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}

/* Careers Page Styles */
.company-culture {
    background-color: white;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.benefit-content h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.open-positions {
    background-color: #f8f9fa;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.position-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.position-card:hover {
    transform: translateY(-5px);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.position-header h3 {
    color: #2d5016;
    margin-bottom: 0;
    flex: 1;
}

.position-type {
    background-color: #2d5016;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.position-details {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.position-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.position-details strong {
    color: #2d5016;
}

.position-description p {
    margin-bottom: 1rem;
}

.position-description ul {
    margin: 0;
    padding-left: 1.5rem;
}

.position-description li {
    margin-bottom: 0.5rem;
    color: #666;
}

.application-section {
    background-color: white;
}

.application-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.application-info {
    position: sticky;
    top: 100px;
}

.application-info h2 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.application-info .contact-info,
.contact-grid .contact-info {
    padding-left: 1.5rem;
}

.application-process {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.application-process h4 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.application-process ol {
    margin: 0;
    padding-left: 1.5rem;
}

.application-process li {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-info {
    border-radius: 10px;
    border-left: 4px solid #2d5016;
}

.contact-info h4 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    width: 16px;
}

.application-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.application-form h3 {
    color: #2d5016;
    margin-bottom: 2rem;
    text-align: center;
}

.application-form .form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #2d5016;
    background-color: white;
    border-radius: 5px;
}

.application-form .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #2d5016;
}

.no-openings {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

/* Mobile responsiveness for careers */
@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .application-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .application-info {
        position: static;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .position-card {
        padding: 1.5rem;
    }
    
    .application-form {
        padding: 1.5rem;
    }
}

/* Admin Project Management Styles */
.admin-controls {
    margin-top: 1rem;
}

.project-card {
    position: relative;
}

.admin-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 1;
    z-index: 5;
}

.admin-btn {
    background: rgba(45, 80, 22, 0.9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.admin-btn:hover {
    background: rgba(45, 80, 22, 1);
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal {
    z-index: 1000;
}

.project-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.project-modal-close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Admin Image Upload Styles */
.admin-image-upload {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: #f8f9fa;
}

.upload-area {
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #e9ecef;
    border-color: #2d5016;
}

.upload-area.dragover {
    background: #e8f5e8;
    border-color: #2d5016;
}

.upload-content i {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.social-media-prompt {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.social-media-prompt h4 {
    margin-bottom: 1rem;
    color: #2d5016;
}

.images-section {
    margin-top: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.section-header h5 {
    margin: 0;
    color: #666;
}

.add-more-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.add-more-dropzone {
    padding: 0.5rem 1rem;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.add-more-dropzone:hover {
    border-color: #2d5016;
    background: #e8f5e8;
    color: #2d5016;
}

.add-more-dropzone.dragover {
    border-color: #2d5016;
    background: #e8f5e8;
    color: #2d5016;
    transform: scale(1.02);
}

.add-more-dropzone i {
    font-size: 0.8rem;
}

#main-social-description {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    min-height: 80px;
}

.social-description-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #f9f9f9;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.social-description-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.image-details {
    flex: 1;
}

.image-details .filename {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.social-description-item textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    min-height: 60px;
}

.remove-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.remove-image-btn:hover {
    background: #c82333;
}

.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 0%;
    height: 4px;
    background: #2d5016;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gallery-item {
    position: relative;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.delete-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-image-btn:hover {
    background: rgba(220, 53, 69, 1);
}

@media (max-width: 768px) {
    .project-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .admin-image-upload {
        margin: 0.5rem 0;
    }
    
    .upload-area {
        padding: 1rem;
    }
    
    .gallery-item-overlay {
        padding: 0.5rem;
    }
    
    .social-description {
        height: 50px;
    }
    
    .add-more-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .add-more-dropzone {
        justify-content: center;
        padding: 1rem;
    }
    
    .social-description-item {
        flex-direction: column;
        text-align: center;
    }
    
    .social-description-item img {
        align-self: center;
        margin-bottom: 1rem;
    }
}

/* Always show admin-indicator (eye icon) and make it white */
.admin-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 1.1rem;
    color: #fff !important;
    background: rgba(45, 80, 22, 0.85);
    border-radius: 50%;
    width: 2em;
    height: 2em;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border: 2px solid #fff2;
    position: relative;
    z-index: 2;
}

.admin-indicator i {
    color: #fff !important;
    font-size: 1.1em;
    vertical-align: middle;
}

.admin-indicator-hidden {
    background: #b22222;
    border-color: #fff3;
}

.admin-indicator-nophotos {
    background: #888;
    border-color: #fff3;
}

.admin-overlay {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Admin Navigation */
.admin-nav {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-nav .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Dashboard Enhancements */
.admin-section {
    padding: 2rem 0;
}

/* Responsive admin navigation */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
    }
    
    .admin-nav .btn {
        text-align: center;
        justify-content: center;
    }
}

/* Drag and Drop Reordering Styles */
.admin-reorder-controls {
    text-align: center;
    margin-bottom: 1rem;
}

.projects-grid.reorder-mode {
    cursor: move;
}

.projects-grid.reorder-mode .project-card {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: white;
}

.projects-grid.reorder-mode .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.projects-grid.reorder-mode .project-card.dragging {
    cursor: grabbing;
    opacity: 0.8;
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 1000;
    background: #f8f9fa;
}

.projects-grid.reorder-mode .project-card.drag-over {
    transform: translateY(-5px);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.3);
    background: rgba(45, 80, 22, 0.05);
}

.drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(45, 80, 22, 0.9);
    color: white;
    padding: 8px;
    border-radius: 5px;
    cursor: grab;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.drag-handle:hover {
    background: rgba(45, 80, 22, 1);
}

.drag-handle:active {
    cursor: grabbing;
}

.reorder-instructions {
    background: #e8f5e8;
    color: #2d5016;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(45, 80, 22, 0.2);
    font-size: 0.9rem;
}

.reorder-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Disable gallery click during reorder mode */
.projects-grid.reorder-mode .main-project-image {
    pointer-events: none;
}

.projects-grid.reorder-mode .admin-overlay {
    pointer-events: none;
}

/* Sortable animation */
.projects-grid .project-card.sortable-chosen {
    opacity: 0.8;
}

.projects-grid .project-card.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
}

/* Mobile responsiveness for drag and drop */
@media (max-width: 768px) {
    .projects-grid.reorder-mode .project-card {
        margin-bottom: 1rem;
    }
    
    .drag-handle {
        font-size: 1rem;
        padding: 6px;
    }
    
    .reorder-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .reorder-actions .btn {
        width: 200px;
    }
}

/* Service Management Styles */
.services-management {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f4f4f4;
}

.services-header h2 {
    margin: 0;
    color: #2d5016;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-service-card {
    position: relative;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.admin-service-card:hover {
    border-color: #2d5016;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.1);
}

.admin-service-card .drag-handle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2d5016;
    color: white;
    border-radius: 4px;
    padding: 8px;
    cursor: move;
    font-size: 0.9rem;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.admin-service-card .drag-handle:hover {
    opacity: 1;
}

.service-icon-large {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info h3 {
    color: #2d5016;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.service-price {
    color: #2d5016;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(45, 80, 22, 0.1);
    border-radius: 4px;
    text-align: center;
}

.service-admin-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.service-admin-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Service Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.service-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.service-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.service-modal-close:hover {
    color: #333;
}

.service-modal h3 {
    margin-bottom: 1.5rem;
    color: #2d5016;
}

.service-modal .form-group {
    margin-bottom: 1.5rem;
}

.service-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.service-modal input,
.service-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.service-modal input:focus,
.service-modal textarea:focus {
    outline: none;
    border-color: #2d5016;
}

.service-modal .form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.service-modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Empty state */
.no-services {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Service reordering */
.services-grid.reorder-mode .admin-service-card {
    cursor: move;
    border-style: dashed;
}

.services-grid.reorder-mode .admin-service-card:hover {
    border-color: #2d5016;
    background: rgba(45, 80, 22, 0.05);
}

.services-grid.reorder-mode .admin-service-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.services-grid.reorder-mode .admin-service-card.drag-over {
    border-color: #2d5016;
    background: rgba(45, 80, 22, 0.1);
    transform: scale(1.02);
}

/* Mobile responsiveness for service management */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .service-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .service-modal .form-actions {
        flex-direction: column;
    }
    
    .service-admin-controls {
        flex-direction: column;
    }
    
    .service-admin-controls .btn {
        width: 100%;
    }
    
    .admin-service-card .drag-handle {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 1rem;
        display: inline-block;
    }
}

/* ============================================
   CREW MANAGEMENT STYLES
   ============================================ */

/* Admin Navigation */
.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-nav .nav-link {
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-nav .nav-link:hover {
    background: #f5f5f5;
}

.admin-nav .nav-link.active {
    background: #2d5016;
    color: white;
}

/* Admin Actions */
.admin-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Users Table */
.users-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #2d5016;
    color: white;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.users-table tbody tr:hover {
    background: #f9f9f9;
}

.users-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: #e74c3c;
    color: white;
}

.badge-crewmate {
    background: #3498db;
    color: white;
}

.badge-active {
    background: #27ae60;
    color: white;
}

.badge-inactive {
    background: #95a5a6;
    color: white;
}

.badge-pending {
    background: #f39c12;
    color: white;
}

.badge-in-progress {
    background: #3498db;
    color: white;
}

.badge-completed {
    background: #27ae60;
    color: white;
}

.badge-skipped {
    background: #e67e22;
    color: white;
}

.badge-primary {
    background: #2d5016;
    color: white;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s;
}

.modal-large {
    max-width: 900px;
}

.modal-image {
    max-width: 90%;
    padding: 1rem;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Crews Grid */
.crews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.crew-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.crew-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.crew-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.crew-header h3 {
    margin: 0;
    color: #2d5016;
}

.crew-stats {
    margin-bottom: 1rem;
}

.crew-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.crew-members {
    margin-bottom: 1rem;
}

.crew-members h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.crew-members ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crew-members li {
    padding: 0.25rem 0;
    color: #333;
}

.crew-members .no-members {
    color: #999;
    font-style: italic;
}

.crew-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Schedule Management */
.schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-selector input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.schedule-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.schedule-header h3 {
    margin: 0;
    color: #2d5016;
}

.schedule-entries table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-entries th,
.schedule-entries td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-entries thead {
    background: #f5f5f5;
}

.schedule-entries tbody tr:hover {
    background: #f9f9f9;
}

.entry-pending {
    background: rgba(243, 156, 18, 0.1);
}

.entry-in-progress {
    background: rgba(52, 152, 219, 0.1);
}

.entry-completed {
    background: rgba(39, 174, 96, 0.1);
}

.entry-skipped {
    background: rgba(230, 126, 34, 0.1);
}

/* Schedule Form - Entries Section */
.entries-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.entries-section h3 {
    margin-bottom: 1rem;
    color: #2d5016;
}

#entriesContainer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.entry-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 0.5rem;
    align-items: center;
}

.entry-row input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Crew Dashboard */
.crew-dashboard-section {
    padding: 2rem 0;
}

.crew-schedule-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.crew-schedule-card.user-crew {
    border: 3px solid #2d5016;
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.2);
}

.crew-schedule-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #e0e0e0;
}

.crew-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.crew-info h2 {
    margin: 0;
    color: #2d5016;
}

.crew-members-list {
    color: #666;
    font-size: 0.95rem;
}

.schedule-entries-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.current-entry h3,
.upcoming-entries h3,
.completed-entries h3,
.skipped-entries h3 {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.entry-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.entry-card.current {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.entry-card.upcoming {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.entry-card.completed {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.entry-card.skipped {
    border-color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
}

.entry-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.entry-number {
    background: #2d5016;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.entry-info {
    flex: 1;
}

.entry-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d5016;
    font-size: 1.2rem;
}

.entry-info .address {
    color: #666;
    margin: 0.25rem 0;
}

.entry-info .address i {
    color: #e74c3c;
}

.entry-info .notes {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f9f9f9;
    border-left: 3px solid #2d5016;
    font-size: 0.9rem;
}

.entry-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.entry-actions .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.entry-time {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.entry-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.entry-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #e0e0e0;
}

.entry-thumbnail:hover {
    transform: scale(1.1);
    border-color: #2d5016;
}

.entries-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upcoming-entries .entry-card {
    padding: 1rem;
}

.upcoming-entries .entry-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.upcoming-entries .entry-info h4 {
    font-size: 1rem;
}

.schedule-complete {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-radius: 12px;
}

.schedule-complete i {
    color: #27ae60;
    margin-bottom: 1rem;
}

.schedule-complete h3 {
    color: #27ae60;
    margin: 1rem 0;
}

.no-schedule {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state i {
    color: #ccc;
    margin-bottom: 1rem;
}

/* Button Sizes */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-nav .nav-link {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .crews-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .entry-row {
        grid-template-columns: 1fr;
    }
    
    .entry-header {
        flex-direction: column;
    }
    
    .entry-actions {
        flex-direction: column;
    }
    
    .entry-actions .btn {
        width: 100%;
    }
    
    .users-table {
        overflow-x: auto;
    }
    
    .schedule-entries {
        overflow-x: auto;
    }
}

