body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.banner {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.banner .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 1200px;
    z-index: 2;
    pointer-events: auto;
    padding: 20px;
}

.banner .navbar {
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

.banner .content h1 {
    /* Fluid typography: scale from 32px on mobile to 70px on desktop */
    font-size: clamp(32px, 8vw, 70px);
    font-weight: 700;
    margin-bottom: 20px;
}

.banner .content p {
    margin: 20px auto;
    font-weight: 100;
    line-height: 1.6;
    /* Fluid font size: scale from 14px on mobile to 20px on desktop */
    font-size: clamp(14px, 3vw, 20px);
    width: 90%;
    max-width: 90%;
}

.services-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 60px) clamp(15px, 4vw, 20px) 0;
}

.intro-section {
    text-align: center;
    margin-bottom: clamp(40px, 10vw, 80px);
}

.intro-section h2 {
    /* Fluid typography for responsive heading */
    font-size: clamp(28px, 6vw, 42px);
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.intro-section p {
    font-size: clamp(14px, 3vw, 18px);
    color: #666;
    line-height: 1.8;
    max-width: 1200px;
    margin: 30px auto 0;
}

.service-section {
    margin-bottom: clamp(30px, 5vw, 50px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-header {
    background: rgba(255, 255, 255, 0.65);
    padding: clamp(12px, 3vw, 15px) clamp(20px, 4vw, 40px);
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-header:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-header h2 {
    font-size: clamp(20px, 4vw, 32px);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    transition: color 0.3s ease;
    flex-wrap: wrap;
}

.service-header:hover h2 {
    color: #0689ce;
}

.status-badge {
    font-size: clamp(11px, 2vw, 14px);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.running {
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.slideshow-container {
    position: relative;
    width: 100%;
    /* Responsive height: maintains aspect ratio */
    height: clamp(250px, 60vw, 610px);
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 0;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    /* Maintains aspect ratio without distortion */
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: clamp(15px, 3vw, 30px) clamp(20px, 4vw, 40px);
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 500;
}

.fade {
    animation-name: fadeEffect;
    animation-duration: 1s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.service-description {
    display: none;
}

.service-description p {
    font-size: clamp(14px, 3vw, 18px);
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.cta-section {
    text-align: center;
    padding: clamp(30px, 8vw, 80px) clamp(20px, 4vw, 50px);
    background: 
        linear-gradient(135deg, rgba(248, 249, 250, 0.50) 0%, rgba(233, 236, 239, 0.50) 100%),
        url('source/cta-background.jpg') center/cover no-repeat;
    margin-top: 0;
    margin-bottom: 0;
    min-height: 50vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-section h2 {
    font-size: clamp(28px, 6vw, 46px);
    color: #000000;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: clamp(16px, 4vw, 20px);
    color: #063F88;
    margin-bottom: 30px;
    font-weight: bold;
}

.cta-button {
    background: linear-gradient(135deg, #0689ce 0%, #054084 100%);
    color: white;
    border: none;
    padding: clamp(12px, 2vw, 16px) clamp(25px, 5vw, 40px);
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.cta-button:active {
    transform: translateY(0);
}

.thumbnails-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 20px);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    overflow-x: auto;
    flex-wrap: wrap;
    z-index: 10;
    max-height: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-container:hover .thumbnails-container {
    opacity: 1;
}

.thumbnail {
    width: clamp(45px, 10vw, 60px);
    height: clamp(45px, 10vw, 60px);
    border: 2px solid rgba(100, 100, 100, 0.5);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 100, 100, 0.9);
}

.thumbnail.active {
    border: 3px solid #0689ce;
    opacity: 1;
    box-shadow: 0 0 12px rgba(6, 137, 206, 0.6);
}

.m-last {
    background: linear-gradient(135deg, rgba(6, 137, 206, 0.1) 0%, rgba(5, 64, 132, 0.05) 100%), url('source/cta-background.jpg?v=1') center/cover no-repeat;
    min-height: clamp(400px, 60vh, 600px);
    display: flex;
    align-items: center;
    position: relative;
    padding: clamp(20px, 4vw, 50px);
}

.m-last::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
}

.m-last .last {
    position: relative;
    z-index: 2;
}

.m-last h1 {
    color: #333;
    font-size: clamp(28px, 6vw, 42px);
    margin-bottom: 20px;
}

footer {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ========== MOBILE-FIRST RESPONSIVE MEDIA QUERIES ========== */

/* Tablets and small devices (600px - 767px) */
@media (min-width: 600px) {
    .services-container {
        padding-top: 60px;
    }
    
    .slideshow-container {
        height: clamp(300px, 60vw, 500px);
    }
}

/* Tablets and medium devices (768px - 991px) */
@media (min-width: 768px) {
    .services-container {
        padding: 60px 20px 0 20px;
    }
    
    .cta-section {
        min-width: auto;
        margin-left: 0;
    }
}

/* Large devices (992px - 1199px) */
@media (min-width: 992px) {
    .slideshow-container {
        height: 550px;
    }
    
    .cta-section {
        min-height: 100vh;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .slideshow-container {
        height: 610px;
    }
    
    .cta-section {
        min-height: 100vh;
    }
}