/* ========================================
   Services Page Styles
   ======================================== */

/* Page Header */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: transform var(--transition-normal);
}

.page-header .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Services Hero */
.services-hero {
    position: relative;
    padding: 10rem 0 5rem;
    overflow: hidden;
}

.services-hero .bg-glow-blue {
    position: absolute;
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background: rgba(0, 136, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.services-hero .bg-glow-orange {
    position: absolute;
    bottom: 0;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.services-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.services-hero-content .badge {
    margin-bottom: 1.5rem;
}

.services-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Services Grid Section */
.services-grid-section {
    padding: 3rem 0 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Service Card */
.service-card {
    background: linear-gradient(145deg, rgba(20, 28, 45, 0.9) 0%, rgba(13, 19, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 136, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:target {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px var(--brand-blue), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-header {
    padding: 1.5rem;
}

.service-blue {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.2) 0%, rgba(0, 136, 255, 0.05) 100%);
}

.service-orange {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.2) 0%, rgba(255, 102, 0, 0.05) 100%);
}

.service-cyan {
    background: linear-gradient(135deg, rgba(0, 221, 255, 0.2) 0%, rgba(0, 221, 255, 0.05) 100%);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid;
}

.service-blue .service-icon {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.2) 0%, rgba(0, 136, 255, 0.05) 100%);
    border-color: rgba(0, 136, 255, 0.3);
    color: var(--brand-blue);
}

.service-orange .service-icon {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.2) 0%, rgba(255, 102, 0, 0.05) 100%);
    border-color: rgba(255, 102, 0, 0.3);
    color: var(--brand-orange);
}

.service-cyan .service-icon {
    background: linear-gradient(135deg, rgba(0, 221, 255, 0.2) 0%, rgba(0, 221, 255, 0.05) 100%);
    border-color: rgba(0, 221, 255, 0.3);
    color: var(--brand-cyan);
}

.service-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-short {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.service-body {
    padding: 1.5rem;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-body h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.service-features li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.service-blue .service-features li svg {
    color: var(--brand-blue);
}

.service-orange .service-features li svg {
    color: var(--brand-orange);
}

.service-cyan .service-features li svg {
    color: var(--brand-cyan);
}

/* Service Buttons */
.btn-orange {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
    color: white;
    box-shadow: 0 0 20px -5px rgba(255, 102, 0, 0.5);
}

.btn-orange:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
    color: white;
    box-shadow: 0 0 20px -5px rgba(0, 221, 255, 0.5);
}

.btn-cyan:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Why Us Section */
.why-us {
    padding: 3rem 0 5rem;
}

.why-us-card {
    background: linear-gradient(145deg, rgba(20, 28, 45, 0.9) 0%, rgba(13, 19, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-us-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.why-us-content>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.why-us-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-us-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-us-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-us-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.why-us-feature p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.why-us-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.3) 0%, rgba(255, 102, 0, 0.3) 100%);
    border-radius: 1rem;
    filter: blur(40px);
}

.why-us-image img {
    position: relative;
    max-width: 280px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Services CTA */
.services-cta {
    padding: 3rem 0 5rem;
}

.cta-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 28, 45, 0.9) 0%, rgba(13, 19, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 136, 255, 0.1) 0%, transparent 50%, rgba(255, 102, 0, 0.1) 100%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content>p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Simple Footer */
.footer-bottom.simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
}

.footer-logo-link {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        order: -1;
    }

    .why-us-image img {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 8rem 0 3rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-us-card {
        padding: 2rem;
    }

    .why-us-features {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-bottom.simple {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 2rem;
    }

    .why-us-card {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

/* Card Slider */
.card-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md, 8px);
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.card-slider-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: slideLoop 20s linear infinite;
}

.card-slider-container:hover .card-slider-track {
    animation-play-state: paused;
}

.card-slider-track img {
    width: 260px;
    height: 100%;
    object-fit: cover;
    margin-right: 15px;
    border-radius: var(--radius-md, 8px);
}

@keyframes slideLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-275px * 3));
    }
}

/* Finished Projects */
.finished-projects {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-blank-card {
    background: linear-gradient(145deg, rgba(20, 28, 45, 0.9) 0%, rgba(13, 19, 33, 0.9) 100%);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-blank-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 136, 255, 0.1);
}

.project-blank-card h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.project-blank-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Base Popup Styles */
.project-popup {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-popup.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--bg-secondary, #0d1321);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-popup.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10001;
}

.popup-close:hover {
    color: var(--brand-orange);
}

.popup-content h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.popup-content {
    background: var(--bg-secondary, #0d1321);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 90%;
    max-width: 800px;
    /* Genişletildi */
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* Scrollable Popup Body */
.popup-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1rem;
}

.popup-body::-webkit-scrollbar {
    width: 6px;
}

.popup-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.popup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.popup-section-title {
    color: white;
    font-size: 1.125rem;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.popup-body .popup-section-title:first-child {
    margin-top: 0;
}

.popup-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.popup-gallery-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.9;
}

.popup-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 136, 255, 0.3);
    opacity: 1;
}