/* Services Page Specific Styles */

/* Header */
.services-header {
    background: white;
    border-bottom: 1px solid #f4f0f0;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.services-header .logo-img {
    width: 40px;
    height: 40px;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.services-header .nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
}

/* Hero Section */
.services-hero {
    position: relative;
    height: 250px;
    background-color: var(--color-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-hero .hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://www.figma.com/api/mcp/asset/259596af-46a5-411f-ab93-f179b1240d60');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.services-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.services-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 576px;
}

.services-hero .hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    margin-bottom: 16px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.services-hero .hero-badge span {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.services-hero .hero-title {
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.9px;
}

.services-hero .hero-description {
    font-size: 16px;
    line-height: 24px;
    color: #d1d5db;
}

/* Services Section */
.services-section {
    background-color: #f8f6f6;
    padding: 80px 0;
}

.section-header-services {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.section-badge-small {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2.4px;
    margin-bottom: 8px;
}

.section-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.section-title-services {
    font-size: 36px;
    font-weight: 900;
    color: #181111;
    letter-spacing: -0.9px;
    line-height: 40px;
    margin-bottom: 8px;
}

.section-description-services {
    font-size: 16px;
    line-height: 24px;
    color: #896161;
    max-width: 446px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 18px;
    border: 1px solid #d8ddda;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f6f8f7;
    color: #4a5e53;
}

.filter-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0px 4px 6px -1px rgba(236, 19, 19, 0.2), 0px 2px 4px -2px rgba(236, 19, 19, 0.2);
}

.filter-btn:hover:not(.active) {
    background-color: #e8ece9;
    border-color: #cdd5d0;
    color: #243129;
}

/* Services Grid */
.services-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.service-card-large {
    position: relative;
    min-height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #f4f6f8 100%);
    border: 1px solid #dde3e8;
    box-shadow: 0px 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

.service-card-large::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    width: 78px;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #ec1313 0%, rgba(236, 19, 19, 0.12) 100%);
    z-index: 12;
}

.service-card-large:hover {
    transform: translateY(-4px);
    border-color: #c9d2db;
    box-shadow: 0px 16px 28px rgba(17, 24, 39, 0.12);
}

.service-card-large::after {
    content: '';
    position: absolute;
    right: -42px;
    top: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 19, 19, 0.12) 0%, rgba(236, 19, 19, 0) 72%);
    pointer-events: none;
}

.service-card-bg {
    display: none;
}

.service-card-large:hover .service-card-bg {
    transform: none;
}

.service-card-overlay {
    display: none;
}

.service-card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 72px 22px 22px;
}

.service-card-large[data-category="road"] .service-card-content::before,
.service-card-large[data-category="project"] .service-card-content::before,
.service-card-large[data-category="storage"] .service-card-content::before,
.service-card-large[data-category="special"] .service-card-content::before {
    position: absolute;
    right: 22px;
    top: 22px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid #d9dee3;
    background: #f8fafb;
    color: #5b6874;
}

.service-card-large[data-category="road"] .service-card-content::before {
    content: 'Karayolu';
}

.service-card-large[data-category="project"] .service-card-content::before {
    content: 'Proje';
}

.service-card-large[data-category="storage"] .service-card-content::before {
    content: 'Depolama';
}

.service-card-large[data-category="special"] .service-card-content::before {
    content: 'Ozel Cozum';
}

.service-icon-large {
    display: none;
}

.service-title-large {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.service-description-large {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 0;
    text-shadow: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.service-link {
    display: none;
}

/* CTA Section */
.services-cta {
    background-color: #f8f6f6;
    padding: 128px 0;
}

.cta-box-services {
    background-color: #221010;
    border: 1px solid #1f2937;
    border-radius: 24px;
    padding: 128px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-box-services::before {
    content: '';
    position: absolute;
    width: 384px;
    height: 384px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.2;
    right: -192px;
    top: -192px;
}

.cta-box-services::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: #5a7060;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
    bottom: -160px;
    left: -160px;
}

.cta-title-services {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 48px;
    margin-bottom: 24px;
    letter-spacing: -1.2px;
    position: relative;
    z-index: 10;
}

.cta-description-services {
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
    color: #d1d5db;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.cta-buttons-services {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.btn-outline-services {
    background: transparent;
    border: 1px solid #6b7280;
    color: white;
}

.btn-outline-services:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #9ca3af;
}

/* Footer */
.services-footer {
    background: white;
    border-top: 1px solid #f4f0f0;
    padding: 80px 0 0;
}

.footer-content-services {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-logo-img {
    height: auto;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    height: 40px;
    margin-bottom: 24px;
}

.footer-description-services {
    font-size: 14px;
    line-height: 22.75px;
    color: #896161;
}

.footer-title-services {
    font-size: 18px;
    font-weight: 700;
    color: #181111;
    margin-bottom: 24px;
}

.footer-links-services {
    list-style: none;
}

.footer-links-services li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-services li::before {
    content: '→';
    color: #896161;
    font-size: 16px;
}

.footer-links-services a {
    color: #896161;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-services a:hover {
    color: var(--color-primary);
}

.footer-contact-services {
    list-style: none;
}

.footer-contact-services li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.footer-contact-services .footer-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background-color: #edf2ee;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-contact-services span {
    color: #896161;
    font-size: 14px;
    line-height: 20px;
}

.footer-bottom-services {
    border-top: 1px solid #f4f0f0;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-services {
    font-size: 12px;
    color: #896161;
}

.footer-bottom-links-services {
    display: flex;
    gap: 24px;
}

.footer-bottom-links-services a {
    font-size: 12px;
    color: #896161;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links-services a:hover {
    color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .services-grid-large {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .services-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-title-large {
        font-size: 24px;
    }
    
    .section-header-services {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-header-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-content-services {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-grid-large {
        grid-template-columns: 1fr;
    }

    .service-title-large {
        font-size: 22px;
    }

    .service-description-large {
        font-size: 14px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .cta-box-services {
        padding: 64px 32px;
    }
    
    .cta-title-services {
        font-size: 36px;
        line-height: 40px;
    }
    
    .cta-description-services {
        font-size: 16px;
    }
    
    .cta-buttons-services {
        flex-direction: column;
    }
    
    .footer-content-services {
        grid-template-columns: 1fr;
    }
    
    .services-header .nav {
        display: none;
    }
}

/* Service Card Background Images - Using different images for variety */
.service-card-large:nth-child(1) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/259596af-46a5-411f-ab93-f179b1240d60');
}

.service-card-large:nth-child(2) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/4c611513-4b56-4513-bb53-d5fa82b88181');
}

.service-card-large:nth-child(3) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/5dde8552-d950-4013-87d7-1de4877d5e06');
}

.service-card-large:nth-child(4) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/41bcafa7-fe7e-474c-8a2e-add967b450f5');
}

.service-card-large:nth-child(5) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/e9630e08-982c-4e2a-9ae4-49c4f87bcc7c');
}

.service-card-large:nth-child(6) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/ed1434ba-c27c-4736-9526-6aee09481a83');
}

/* For remaining cards, cycle through available images */
.service-card-large:nth-child(n+7) .service-card-bg {
    background-image: url('https://www.figma.com/api/mcp/asset/259596af-46a5-411f-ab93-f179b1240d60');
}
