/* Products & Services Page Specific Styles */

/* Hero Section - Clean rebuild */
.contact-hero {
    position: relative;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent !important;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent !important;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 1 !important;
    display: block;
    z-index: 1;
}

.contact-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 90vw;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-hero {
        height: 24vh;
    }
    
    .contact-hero-title {
        font-size: 2rem;
        margin-top: 30px;
    }
    
    .contact-hero-content {
        width: 95vw;
    }
    
    .services-section {
        padding-top: 50px !important;
        padding-bottom: 2rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-category {
        margin-bottom: 2rem;
    }
    
    .service-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-content-wrapper {
        padding: 0;
        width: 100%;
    }
    
    .process .container {
        max-width: 90% !important;
    }
}

.services-section {
    padding: 6rem 0 4rem;
}

.services-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;

}

.service-grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.home-service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.service-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-grid-item:hover .service-overlay img {
    transform: scale(1.1);
}

.service-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 2rem 2rem;
    color: white;
}

.service-grid-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.service-grid-description {
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    margin: 0;
}

/* Service Detail Pages */
.service-detail {
    padding: 6rem 0 4rem;
}

.service-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.service-content-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.service-content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Service Gallery */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-gallery-item:hover {
    transform: translateY(-5px);
}

.service-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-gallery-item:hover img {
    transform: scale(1.05);
}

/* Service Categories */
.service-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-category {
    background: var(--accent-color);
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-content {
    padding: 2rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-item {
    padding: 0.5rem 0;
    color: var(--secondary-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.category-cta {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.category-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


/* Section Title - Global Style */
.section-title {
    font-size: 5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
    color: #000;
}

/* Process Section - Match Home Page Styling */
.process {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.process .container {
    max-width: 95%;
    margin: 0 auto;
}

.process .section-title {
    margin-bottom: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.process-step {
    text-align: left;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(64, 52, 115, 0.1);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(64, 52, 115, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #403473;
    background: white;
    border: 3px solid #403473;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(64, 52, 115, 0.2);
}

.step-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.step-icon svg {
    color: #333333;
    width: 28px;
    height: 28px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #403473;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.step-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555555;
    text-align: left;
    position: relative;
    z-index: 2;
}


/* Mobile Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .service-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 4rem;
    }
    
    .service-grid-item {
        aspect-ratio: 16/10;
    }
    
    .service-overlay-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .service-grid-title {
        font-size: 1.3rem;
    }
    
    .service-grid-description {
        font-size: 0.9rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    /* Service Detail Mobile */
    .service-detail {
       padding:0;
    }
    
    .service-content-wrapper {
        padding: 0;
        width: 100%;
    }
    
    .service-content-wrapper h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .service-content-wrapper p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .service-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process {
        padding: 60px 0;
    }
    
    .process .section-title {
        margin-bottom: 3rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-step {
        padding: 2rem 1.5rem;
    }
    
    .step-number {
        font-size: 8rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .quality-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        font-size: 6rem;
    }
}

/* Service Page Layout */
.service-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    
}

.service-content-main {
    min-width: 0; /* Prevent grid overflow */
}

/* Service Sidebar */
.service-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #403473;
    padding-bottom: 10px;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
    color: #555;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
}

.service-link:hover {
    background: #e9ecef;
    color: #403473;
    transform: translateX(5px);
    border-color: #403473;
}

.service-link.active {
    background: linear-gradient(135deg, #403473 0%, #2d2456 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(64, 52, 115, 0.3);
}

.service-link.active:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(64, 52, 115, 0.4);
}

.service-icon {
    font-size: 18px;
    display: inline-block;
    width: 24px;
    text-align: center;
}

/* Responsive Design for Service Layout */
@media (max-width: 1024px) {
    .service-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .service-sidebar {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-sidebar {
        order: -1;
        position: static;
        margin-bottom: 30px;
    }
    
    .service-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    
    .service-link {
        padding: 12px 15px;
        text-align: center;
        justify-content: center;
    }
    
    .service-link:hover {
        transform: translateY(-2px);
    }
    
    .service-link.active:hover {
        transform: translateY(-2px);
    }
}

/* Alternating Feature Layout */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.feature-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-content {
    padding: 0;
}

.feature-group {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-section .feature-item {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.feature-section .feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-section .feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 0;
}

.feature-image {
    position: relative;
    overflow: hidden;
   
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Mobile Responsive for Feature Sections */
@media (max-width: 768px) {
    .feature-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .feature-section.reverse {
        grid-template-columns: 1fr;
    }
    
    .feature-section.reverse .feature-image {
        order: -1;
    }
    
    .feature-group {
        gap: 30px;
    }
    
    .feature-section .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-section .feature-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .feature-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .feature-section {
        gap: 30px;
        margin-bottom: 50px;
        padding: 0px;
    }
    
    .feature-group {
        gap: 25px;
    }
    
    .feature-section .feature-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .feature-image img {
        height: 250px;
    }
}

/* Mobile Service Dropdown - Simple Select like referencie page */
.service-filters-mobile {
    display: none;
    margin-top: 1rem;
    padding: 0 1rem;
}

.service-dropdown {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 50px;
}

.service-dropdown:focus {
    outline: none;
    border-color: #403473;
    box-shadow: 0 0 0 3px rgba(64, 52, 115, 0.1);
}

/* Hide sidebar on mobile and show dropdown */
@media (max-width: 768px) {
    .service-filters-mobile {
        display: block;
    }
    
    .service-sidebar {
        display: none;
    }
    
    .service-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-content-main {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .service-dropdown {
        padding: 12px 15px;
        font-size: 0.9rem;
        padding-right: 40px;
        background-size: 16px;
        background-position: right 15px center;
    }
}