/* ===================================
   SERVICES SECTION - PIXEL PERFECT
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #FFFFFF;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Services Section Container */
.services-section-premium {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Heading */
.services-main-heading {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid Layout */
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Service Card */
.service-card-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

/* Wide Cards (Second Row) */
.service-card-wide {
    grid-column: span 1;
}

/* Adjust grid for second row */
.service-card-box:nth-child(4),
.service-card-box:nth-child(5) {
    grid-column: span 1.5;
}

/* Service Card Content */
.service-card-content {
    padding: 32px 32px 24px 32px;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-card-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Service Card Image */
.service-card-image {
    width: 100%;
    overflow: hidden;
    margin-top: auto;
}

.service-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 0 0 18px 18px;
}

/* Wide card images slightly taller */
.service-card-wide .service-card-image img {
    height: 260px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .services-container {
        max-width: 1600px;
    }

    .services-main-heading {
        font-size: 56px;
        margin-bottom: 100px;
    }

    .service-card-title {
        font-size: 22px;
    }

    .service-card-description {
        font-size: 16px;
    }

    .service-card-image img {
        height: 280px;
    }

    .service-card-wide .service-card-image img {
        height: 300px;
    }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .services-container {
        max-width: 1340px;
    }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .services-container {
        max-width: 980px;
        padding: 0 30px;
    }

    .services-main-heading {
        font-size: 42px;
        margin-bottom: 60px;
    }

    .service-card-content {
        padding: 28px 28px 20px 28px;
    }

    .service-card-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .service-card-description {
        font-size: 14px;
    }

    .service-card-image img {
        height: 220px;
    }

    .service-card-wide .service-card-image img {
        height: 240px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-section-premium {
        padding: 80px 0;
    }

    .services-container {
        padding: 0 24px;
    }

    .services-main-heading {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .services-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card-box:nth-child(4),
    .service-card-box:nth-child(5) {
        grid-column: span 1;
    }

    .service-card-content {
        padding: 26px 26px 18px 26px;
    }

    .service-card-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .service-card-description {
        font-size: 14px;
    }

    .service-card-image img {
        height: 200px;
    }

    .service-card-wide .service-card-image img {
        height: 200px;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .services-section-premium {
        padding: 60px 0;
    }

    .services-container {
        padding: 0 20px;
    }

    .services-main-heading {
        font-size: 28px;
        margin-bottom: 40px;
        line-height: 1.3;
    }

    .services-grid-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card-box:nth-child(4),
    .service-card-box:nth-child(5) {
        grid-column: span 1;
    }

    .service-card-content {
        padding: 24px 24px 16px 24px;
    }

    .service-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-card-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .service-card-image img {
        height: 180px;
    }

    .service-card-wide .service-card-image img {
        height: 180px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .services-section-premium {
        padding: 50px 0;
    }

    .services-container {
        padding: 0 16px;
    }

    .services-main-heading {
        font-size: 24px;
        margin-bottom: 35px;
        line-height: 1.3;
    }

    .services-grid-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card-box:nth-child(4),
    .service-card-box:nth-child(5) {
        grid-column: span 1;
    }

    .service-card-content {
        padding: 22px 22px 14px 22px;
    }

    .service-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .service-card-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .service-card-image img {
        height: 160px;
    }

    .service-card-wide .service-card-image img {
        height: 160px;
    }
}

/* Extra Small Mobile (< 320px) */
@media (max-width: 319px) {
    .services-main-heading {
        font-size: 20px;
    }

    .service-card-content {
        padding: 20px 20px 12px 20px;
    }

    .service-card-title {
        font-size: 14px;
    }

    .service-card-description {
        font-size: 12px;
    }

    .service-card-image img {
        height: 140px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-box {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.service-card-box:nth-child(1) { animation-delay: 0.1s; }
.service-card-box:nth-child(2) { animation-delay: 0.2s; }
.service-card-box:nth-child(3) { animation-delay: 0.3s; }
.service-card-box:nth-child(4) { animation-delay: 0.4s; }
.service-card-box:nth-child(5) { animation-delay: 0.5s; }
