/* ========================================
   Services Page Styles
   Modern, Professional, and Responsive
   ======================================== */

:root {
    --primary-color: #F1A128;
    --secondary-color: #053c23;
    --text-color: #1c2734;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --accent: #F1A128;
}

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

.services-page {
    overflow-x: hidden;
    width: 100%;
}

/* ========================================
   Hero Banner Section
   ======================================== */
.services-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 600px;
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%
    );
    background-image: url("/assets/images/Slider6.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.services-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    font-family: "Aptos", sans-serif;
}

.services-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    font-family: "Aptos", sans-serif;
}

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

/* ========================================
   Services Container
   ======================================== */
.services-main {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0;
    background: var(--light-bg);
}

.services-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 100%;
}

/* ========================================
   Service Section
   ======================================== */
.service-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.service-section:last-child {
    margin-bottom: 0;
}

/* ========================================
   Main Service Card
   ======================================== */
.service-main-card {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.service-main-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-main-image {
    flex: 0 0 300px;
   
    overflow: hidden;
    position: relative;
}

.service-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-main-content {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-main-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f1a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    transition: all 0.3s ease;
}

.service-main-card:hover .service-main-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.service-main-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 15px;
    font-family: "Aptos", sans-serif;
    line-height: 1.2;
}

.service-main-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
    font-family: "Aptos", sans-serif;
}

/* ========================================
   Service Subtitle
   ======================================== */
.service-subtitle {
    margin: 40px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.service-subtitle h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
    font-family: "Aptos", sans-serif;
}

/* ========================================
   Service Subcards Grid
   ======================================== */
.service-subcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-subcard {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-subcard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff8f1a 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-subcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 122, 0, 0.2);
}

.service-subcard:hover::before {
    transform: scaleX(1);
}

.service-subcard-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f1a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(255, 122, 0, 0.25);
    transition: all 0.3s ease;
}

.service-subcard:hover .service-subcard-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 5px 18px rgba(255, 122, 0, 0.35);
}

.service-subcard-icon i {
    font-size: 24px;
    color: var(--white);
}

.service-subcard-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px;
    font-family: "Aptos", sans-serif;
    line-height: 1.3;
}

.service-subcard-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
    font-family: "Aptos", sans-serif;
}

/* ========================================
   Service CTA Button
   ======================================== */
.service-cta {
    text-align: center;
    margin-top: 40px;
}

.service-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f1a 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: "Aptos", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.service-cta-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.service-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 122, 0, 0.4);
    background: linear-gradient(135deg, #ff8f1a 0%, var(--primary-color) 100%);
}

.service-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.service-cta-button:hover i {
    transform: translateX(5px);
}

.service-cta-button i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-cta-button span {
    position: relative;
    z-index: 1;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* desktop */
@media (min-width: 1200px) {
    .services-container {
        max-width: 1280px;
    }
}

/* large desktop */
@media (min-width: 1400px) {
    .services-container {
        max-width: 1440px;
    }
}

/* 2K */
@media (min-width: 1600px) {
    .services-container {
        max-width: 1600px;
    }
}

/* 4K */
@media (min-width: 2000px) {
    .services-container {
        max-width: 1800px;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .services-hero {
        height: 350px;
    }

    .services-hero-title {
        font-size: 2.5rem;
    }

    .services-hero-subtitle {
        font-size: 1.2rem;
    }

    .services-main {
        padding: 50px 0;
    }

    .service-main-image {
        flex: 0 0 250px;
        height: 220px;
    }

    .service-main-content {
        padding: 35px 40px;
    }

    .service-main-title {
        font-size: 2rem;
    }

    .service-subcards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .services-hero {
        height: 300px;
        background-attachment: scroll;
    }

    .services-hero-title {
        font-size: 2.2rem;
    }

    .services-hero-subtitle {
        font-size: 1.1rem;
    }

    .services-main {
        padding: 40px 0;
    }

    .services-container {
        padding: 0 16px;
    }

    .service-section {
        margin-bottom: 60px;
    }

    .service-main-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .service-main-image {
        flex: 0 0 200px;
        height: 200px;
        width: 100%;
    }

    .service-main-content {
        padding: 30px 25px;
    }

    .service-main-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .service-main-icon i {
        font-size: 28px;
    }

    .service-main-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .service-main-description {
        font-size: 1.05rem;
    }

    .service-subtitle {
        margin: 30px 0 25px;
    }

    .service-subtitle h3 {
        font-size: 1.5rem;
    }

    .service-subcards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        margin-bottom: 30px;
    }

    .service-subcard {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .service-subcard-icon {
        width: 55px;
        height: 55px;
        border-radius: 10px;
        margin-bottom: 18px;
    }

    .service-subcard-icon i {
        font-size: 22px;
    }

    .service-subcard-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .service-subcard-description {
        font-size: 0.9rem;
    }

    .service-cta {
        margin-top: 30px;
    }

    .service-cta-button {
        padding: 16px 32px;
        font-size: 1.05rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .services-hero {
        height: 250px;
    }

    .services-hero-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .services-hero-subtitle {
        font-size: 1rem;
    }

    .services-main {
        padding: 30px 0;
    }

    .services-container {
        padding: 0 12px;
    }

    .service-section {
        margin-bottom: 50px;
    }

    .service-main-card {
        border-radius: 14px;
        margin-bottom: 30px;
    }

    .service-main-image {
        flex: 0 0 180px;
        height: 180px;
    }

    .service-main-content {
        padding: 25px 20px;
    }

    .service-main-icon {
        width: 55px;
        height: 55px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .service-main-icon i {
        font-size: 24px;
    }

    .service-main-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .service-main-description {
        font-size: 1rem;
    }

    .service-subtitle {
        margin: 25px 0 20px;
        padding-bottom: 12px;
    }

    .service-subtitle h3 {
        font-size: 1.3rem;
    }

    .service-subcards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 25px;
    }

    .service-subcard {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .service-subcard-icon {
        width: 50px;
        height: 50px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .service-subcard-icon i {
        font-size: 20px;
    }

    .service-subcard-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .service-subcard-description {
        font-size: 0.85rem;
    }

    .service-cta {
        margin-top: 25px;
    }

    .service-cta-button {
        padding: 14px 28px;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }
}

/* Custom breakpoint fix: 967-769px */
@media (max-width: 967px) and (min-width: 769px) {
    .service-main-card {
        flex-direction: column;
    }

    .service-main-image {
        width: 100%;
        height: auto;
        min-height: 240px;
    }

    .service-main-image img {
        height: 100%;
        object-fit: cover;
    }

    .service-main-content {
        padding-top: 25px;
    }
}

/* Very Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .services-hero-title {
        font-size: 1.6rem;
    }

    .services-hero-subtitle {
        font-size: 0.95rem;
    }

    .service-main-content {
        padding: 20px 16px;
    }

    .service-main-title {
        font-size: 1.4rem;
    }

    .service-main-description {
        font-size: 0.95rem;
    }

    .service-subtitle h3 {
        font-size: 1.2rem;
    }

    .service-subcard {
        padding: 20px 16px;
    }

    .service-subcard-title {
        font-size: 1.05rem;
    }

    .service-subcard-description {
        font-size: 0.8rem;
    }
}
