body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 80px; /* Set a fixed height */
}

.logo a {
    color: #000000;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #f0f0f0; /* Lighter grey hover */
    border-color: #f0f0f0;
}

.nav-links a.login-btn {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a.login-btn:hover {
    background-color: #ffffff;
    color: #007bff;
    border-color: #007bff;
}

main {
    padding-top: 80px; /* Match navbar height */
}

.hero {
    position: relative;
    height: calc(100vh - 80px); /* Adjust height for the navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-text h1 {
    font-size: 4rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
}

section {
    padding: 4rem 2rem;
}

.facts {
    background-color: #f4f4f4;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.simulation-container {
    flex: 1;
}

.fact-text {
    flex: 1;
    text-align: center;
}

.fact-image {
    flex: 1;
}

.fact-image img {
    max-width: 100%;
    border-radius: 10px;
}

.interactive-code {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.booking {
    background-color: #eef5ff; /* Light blue background */
}

.booking h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.booking-form input,
.booking-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: none;
    width: 100%;
}

.full-width {
    width: 100%;
}

.booking-form button {
    padding: 1rem;
    background-color: #007bff; /* Blue button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-form button:hover {
    background-color: #0056b3; /* Darker blue hover */
}

footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff; /* Blue hover */
}

/* Conveyor Belt Styles */
.conveyor-belt-container {
    position: relative;
}

.belt-track {
    position: relative;
    height: 6rem;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.belt-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 20px, #666 20px, #666 40px);
    transition: transform 0.1s linear;
}

.belt-pattern.animated {
    animation: moveBelt 2.5s linear infinite;
}

@keyframes moveBelt {
    from { transform: translateX(0); }
    to { transform: translateX(40px); }
}

.stage-markers {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.stage-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stage-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stage-dot.red {
    background-color: #ef4444;
}

.stage-dot.blue {
    background-color: #3b82f6;
}

.stage-dot.green {
    background-color: #22c55e;
}

.stage-dot.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: scale(1.1);
}

.stage-label {
    font-size: 0.75rem;
    color: #374151;
}

/* Moving Booking Items */
.booking-items-container {
    position: relative;
    height: 0;
}

.booking-card {
    position: absolute;
    top: -2rem;
    width: 13rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: left 2s ease-in-out;
    z-index: 10;
}

.booking-card-content {
    padding: 0.75rem;
}

.booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-badge.raw {
    background-color: #fef2f2;
    color: #991b1b;
}

.status-badge.refined {
    background-color: #eff6ff;
    color: #1e40af;
}

.status-badge.complete {
    background-color: #f0fdf4;
    color: #166534;
}

.loading-icon {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.booking-details {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.booking-details.raw {
    color: #6b7280;
}

.booking-details.refined .detail-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.booking-details.complete .final-details {
    background-color: #f0fdf4;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    margin-top: 0.5rem;
}

.user-icon, .calendar-icon {
    width: 0.75rem;
    height: 0.75rem;
    display: inline-block;
}

.user-icon::before {
    content: "👤";
}

.calendar-icon::before {
    content: "📅";
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.customer-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stages Grid */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 4rem;
}

.stage-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stage-card.active {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.stage-card.active.red {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.stage-card.active.blue {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.stage-card.active.green {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.stage-card-header {
    padding: 1rem 1rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stage-card-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stage-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
}

.stage-card-content {
    padding: 0 1rem 1rem;
}

.stage-card-content ul {
    list-style: none;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    padding: 0;
}

.stage-card-content li {
    margin-bottom: 0.25rem;
}

/* Button Styles */
.button-container {
    text-align: center;
    padding-top: 2rem;
}

.simulate-button {
    width: 100%;
    max-width: 28rem;
    padding: 1.5rem 3rem;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.simulate-button:hover:not(:disabled) {
    background-color: #15803d;
}

.simulate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .stages-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .stage-markers {
        padding: 0 1rem;
    }

    .booking-card {
        width: 11rem;
    }

    .simulate-button {
        padding: 1rem 2rem;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Contact Page Styles */
/* Responsive grid styles */
@media (max-width: 1024px) {
    .contact-grid, .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info, .location-info {
        text-align: center;
    }

    .contact-info {
        order: 0;
    }

    .location-info {
        order: 0;
    }

    .contact-heading, .location-heading {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 80px;
    }

    .contact-section, .location-section {
        padding: 2rem 1rem;
    }

    .contact-info, .location-info {
        text-align: center;
    }

    .max-w-7xl {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .location-grid, .contact-grid {
        gap: 1.5rem;
    }

    .contact-heading, .location-heading {
        font-size: 2rem;
    }

    .contact-description, .location-description {
        font-size: 1rem;
    }

    .map-container {
        height: 300px;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

    .contact-form-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .contact-details > div {
        margin-bottom: 1.5rem;
    }

    .contact-details h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-heading, .location-heading {
        font-size: 1.75rem;
    }

    .contact-description, .location-description {
        font-size: 0.95rem;
    }

    /* Stack form elements in narrow screens */
    .contact-details > div {
        margin-bottom: 1rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 0.5rem;
    }

    .map-container {
        height: 250px;
    }

    .contact-form-card {
        padding: 1rem;
    }

    .booking-form input,
    .booking-form textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* Typography and spacing adjustments */
.contact-description, .location-description {
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Form placeholder styling */
.form-placeholder {
    max-width: 100%;
}

.form-icon {
    font-size: 2rem;
}

/* Improved map responsiveness */
.map-container iframe {
    border-radius: inherit;
}

/* Navigation link improvements for contact page */
.nav-links a {
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Ensures consistent spacing in contact sections */
.contact-info h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

/* Better focus styles for accessibility */
.contact-form-card:focus-within {
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15), 0 6px 10px -2px rgba(0, 0, 0, 0.1);
}

/* Smooth scroll for internal links */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .navbar, footer {
        display: none;
    }

    .contact-section, .location-section {
        page-break-inside: avoid;
    }

    .contact-info, .location-info {
        color: black;
    }
}
