/* Services Page Specific Styles */

/* Hero Section (Reused/Adapted from About) */
.services-hero {
    height: 30vh;
    /* min-height: 400px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);
    /* Use a different background or generic one if available, otherwise fallback to color */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../images/services_bg.jpg'); /* Reusing bg for consistency */
    background-size: cover;
    background-position: center;
    border-radius: 0 0 60px 60px;
    margin-bottom: 2rem;
}

.services-hero h1 {
    /* font-size: 10vw; */
    /* margin-top: 1rem; */
    font-size: 5vw;
    color: var(--color-white);
    font-weight: 700;
    /* text-transform: uppercase; */
    text-transform: none;
    font-family: var(--font-heading);
}

/* 60/40 Alternating Grid */
.service-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.2rem; /* Gap between rows */
}

.service-col-60 {
    width: 60%;
    padding: 10px;
}

.service-col-40 {
    width: 40%;
    padding: 10px;
}

.service-card {
    position: relative;
    width: 100%;
    height: 400px; /* Tall cinematic cards */
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-black);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.8s ease;
    /* filter: grayscale(100%); */
}

.service-card:hover .service-bg-img {
    transform: scale(1.1); /* Cinematic zoom */
    /* filter: grayscale(0%); */
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    padding: 2.5rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    transition: background 0.4s ease;
    flex-wrap: wrap;
    align-content: flex-start;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.service-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    /* text-transform: uppercase; */
    text-transform: none;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-excerpt {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

/* Plus Icon */
.service-plus-btn {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.service-card:hover .service-plus-btn {
    background: var(--color-gold);
    color: var(--color-black);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 992px) {
    .service-col-60, .service-col-40 {
        width: 100%; /* Stack on mobile */
        padding: 10px 0;
    }
    
    .services-hero h1 {
        font-size: 10vw;
    }

    .service-title {
        font-size: 2rem;
    }
}

/* Modal Styles */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); /* Glass effect */
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Ensure some spacing on very small screens */
}

.modal-backdrop-custom.active {
    opacity: 1;
    visibility: visible;
}

.service-modal {
    width: 95%; /* Wider on mobile */
    max-width: 800px;
    max-height: 90vh;
    background: var(--color-black);
    border-radius: 20px; /* Slightly reduced radius */
    overflow: hidden;
    position: relative;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border-bottom: 4px solid var(--color-gold);
    display: flex;
    flex-direction: column;
}

.modal-backdrop-custom.active .service-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to bottom, black 50%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent);
    flex-shrink: 0;
}

.modal-content-scroll {
    padding: 2rem 3rem 4rem;
    overflow-y: auto;
    color: var(--color-white);
    margin-top: -80px; /* Pull text up over image fade */
    position: relative;
    z-index: 2;
    flex-grow: 1; /* Allow content to fill space */
}

/* Scrollbar styling */
.modal-content-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-content-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.modal-content-scroll::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 3px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-gold);
    /* text-transform: uppercase; */
    text-transform: none;
    margin-bottom: 1.5rem;
    word-break: break-word; /* Prevent long words from overflowing */
    hyphens: auto;
}

.modal-body-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-weight: 300;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .modal-header-img {
        height: 180px;
    }
    
    .modal-content-scroll {
        padding: 1.5rem 1.5rem 3rem;
        margin-top: -50px;
    }
    
    .modal-title {
        font-size: 1.8rem; /* Significantly smaller for mobile */
        margin-bottom: 1rem;
    }
    
    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: rgba(0,0,0,0.4); /* Darker bg for visibility on image */
    }
}

/* Why Choose Us Section Styles */
.feature-block {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 30px;
    height: 70%;
    /* min-height: 250px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.feature-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background-color: #111; /* Slightly lighter on hover */
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.feature-label {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-weight: 300;
}

.feature-icon-corner {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--color-gold);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.feature-block:hover .feature-icon-corner {
    opacity: 1;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    height: 320px;
    border-radius: 22px;
}

.service-overlay {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.service-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    max-width: 100%;
    margin-bottom: 1.25rem;
}

.service-plus-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

.services-intro-text {
  color: #666;
}