/* Custom styles for the site */
body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    /* Adds padding for fixed header when scrolling to anchors */
    scroll-padding-top: 80px; 
}

/* Fullscreen Slider (Home, Services, Rental) */
.slider-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark overlay for better text readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    color: white;
    text-align: center;
    width: 90%;
}

/* Custom Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Half-Height Hero (About, Case Studies, Blog, Contact) */
.hero-half {
    position: relative;
    width: 100%;
    height: 50vh; /* 50% height as requested */
    background-size: cover;
    background-position: center;
}

.hero-half .slide-overlay { /* Re-using overlay style */
    z-index: 1;
}

.hero-half .hero-content { /* Similar to slide-content */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    width: 90%;
}

/* --- New Timeline Styles --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* The central vertical line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e5e7eb; /* gray-200 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 1;
}

/* Each timeline item */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0; /* Hidden by default for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* The dot on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: #4f46e5; /* indigo-600 */
    border: 4px solid #f3f4f6; /* gray-100 */
    top: 24px;
    border-radius: 50%;
    z-index: 2;
}

/* Left-side item */
.timeline-item.left {
    left: 0;
    transform: translateX(-50px); /* Start off-screen */
}

/* Right-side item */
.timeline-item.right {
    left: 50%;
    transform: translateX(50px); /* Start off-screen */
}

/* Fix the dot position for right-side item */
.timeline-item.right::after {
    left: -12px;
}

/* The content card */
.timeline-content {
    padding: 24px;
    background-color: white;
    position: relative;
    border-radius: 16px; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

/* Animation: when item is visible */
.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments for timeline */
@media screen and (max-width: 768px) {
    /* Place all items on the right side */
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Adjust starting position for mobile animation */
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        transform: translateX(50px); /* All start from right */
    }

    /* Align all dots to the left line */
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 19px; /* (31px - 12px) */
    }
}

/* --- NEW: Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem; /* 24px */
}

.modal-content {
    background-color: white;
    padding: 2.5rem; /* 40px */
    border-radius: 1rem; /* 16px */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 48rem; /* 768px */
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1rem; /* 16px */
    right: 1rem; /* 16px */
    color: #9ca3af; /* gray-400 */
    transition: color 0.3s;
}
.modal-close-btn:hover {
    color: #1f2937; /* gray-800 */
}

.modal-body ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-left: 0.5rem; /* 8px */
    space-y: 0.5rem; /* 8px */
}

