:root {
    --primary-color: #c8a97e;
    --secondary-color: #192638;
    --text-color: #555;
    --light-bg: #f9f9f9;
    --dark-bg: #192638;
    --white: #fff;
    --border-color: #e5e5e5;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --burgundy-color: #8b0000; /* Added burgundy color */
}

/* Hero Background için Arka Plan Görseli */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/services.png");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.hero .hero-content {
    padding-top: 80px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        25,
        38,
        56,
        0.75
    ); /* Karartma oranını ayarlayabilirsiniz */
    z-index: 2;
}

/* Header Sabitleme ve Açık Tema */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95) !important; /* Açık arka plan */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header:hover nav ul li a {
    color: var(
        --burgundy-color
    ) !important; /* Changed from #b69468 to burgundy color */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Yeniden Tasarlanmış Hero Action Bölümü */
.hero-action {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Yeniden Tasarlanmış Hero Action Bölümü - Kontrast Sorunu Çözüldü */
.explore-services-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    text-decoration: none;
    color: #fff; /* Metin beyaz */
    font-family: "Montserrat", sans-serif;
    font-size: 17px; /* Font boyutu büyütüldü */
    font-weight: 700; /* Font kalınlığı artırıldı */
    letter-spacing: 0.8px; /* Harfler arası boşluk artırıldı */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Metine gölge eklendi */
    border: 2px solid rgba(255, 255, 255, 0.5); /* Daha belirgin kenarlık */
    background-color: rgba(200, 169, 126, 0.75); /* Belirgin arka plan rengi */
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(200, 169, 126, 0.2);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    text-transform: uppercase; /* Büyük harfler */
}

/* Hover renk değişimi */
.btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #c8a97e,
        #9b7c50
    ); /* Daha koyu gradient */
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.explore-services-btn:hover {
    border-color: rgba(
        255,
        255,
        255,
        0.7
    ); /* Hover durumunda daha belirgin kenarlık */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(200, 169, 126, 0.4);
    transform: translateY(-3px);
    color: #ffffff; /* Hover durumunda metin rengini saf beyaz yap */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Daha belirgin metin gölgesi */
}

.explore-services-btn:hover .btn-text {
    color: #ffffff; /* Hover durumunda metin rengi */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Daha güçlü gölge */
}

.explore-services-btn:hover .btn-hover-effect {
    transform: scaleX(1);
}

/* İkon için özel parlaklık efekti */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Biraz daha büyük */
    height: 30px; /* Biraz daha büyük */
    margin-left: 15px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    background-color: rgba(
        255,
        255,
        255,
        0.25
    ); /* İkona daha belirgin arka plan */
    border-radius: 50%; /* Yuvarlak arka plan */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* İkon için daha güçlü parlaklık */
}

.btn-icon i {
    font-size: 16px; /* Biraz daha büyük */
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    color: #fff; /* İkon rengi beyaz */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* İkon metni gölge */
}

/* Scroll efekti için smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Düğmenin tıklanma anı için stil */
.explore-services-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive tasarım için düzenlemeler */
@media screen and (max-width: 768px) {
    .hero-action {
        margin-top: 30px;
    }

    .explore-services-btn {
        padding: 16px 28px;
        font-size: 15px;
    }
}

@media screen and (max-width: 576px) {
    .explore-services-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* Services Overview Section */
.services-overview {
    padding: 100px 0;
    background-color: var(--white);
}

.services-overview h2,
.service-card h3,
.service-detail-item h2,
.feature h4 {
    color: var(--burgundy-color);
}

.service-icon i,
.feature-icon i {
    color: var(--burgundy-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: var(
        --burgundy-color
    ); /* Changed from var(--secondary-color) to burgundy */
    margin-bottom: 20px;
    position: relative;
}

.section-header h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    margin: 20px auto 0;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.service-card-inner {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
}

.service-card:hover .service-icon {
    opacity: 1;
    visibility: visible;
    transform: rotateY(180deg);
    background-color: var(
        --burgundy-color
    ); /* Changed from #c8a97e to burgundy */
}

.service-card:hover .service-icon i {
    color: #fff; /* İkon rengini beyaz yap */
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(
        139,
        0,
        0,
        0.1
    ); /* Changed from rgba(200, 169, 126, 0.1) to burgundy with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--burgundy-color); /* Changed from #c8a97e to burgundy */
    font-size: 28px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-icon i {
    font-size: 2rem;
    color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    transition: all 0.4s ease; /* Renk geçişini yumuşat */
}

.service-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(
        --burgundy-color
    ); /* Changed from var(--secondary-color) to burgundy */
    margin-bottom: 15px;
}

.service-card:hover h3 {
    color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card-link {
    color: var(--burgundy-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Add this to center the link */
    margin-top: auto;
    width: 100%; /* Make link take full width */
    padding: 5px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card-link:before {
    background-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
}

.service-card-link:hover {
    color: var(--secondary-color);
}

.service-card-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card-link:hover i {
    transform: translateX(5px);
}

/* Service Details Section */
.service-details {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-detail-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: var(
        --burgundy-color
    ); /* Changed from var(--secondary-color) to burgundy */
    margin-bottom: 10px;
}

.service-subtitle {
    font-size: 1.1rem;
    color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    margin-bottom: 25px;
    font-style: italic;
}

.service-detail-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.service-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature i {
    color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.feature h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(
        --burgundy-color
    ); /* Changed from var(--secondary-color) to burgundy */
    margin-bottom: 5px;
}

.feature p {
    margin-bottom: 0;
    color: var(--text-color);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Service Process Section */
.service-process {
    padding: 100px 0;
    background-color: var(--white);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--border-color);
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 30px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.2); /* Added burgundy-colored shadow for depth */
}

.step-content {
    flex: 1;
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: var(--box-shadow);
}

.step-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(
        --burgundy-color
    ); /* Changed from var(--secondary-color) to burgundy */
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Yeniden Tasarlanmış FAQ Bölümü */
.faq-section {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: rgba(200, 169, 126, 0.05);
    z-index: 1;
    pointer-events: none;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.faq-item:hover,
.faq-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(200, 169, 126, 0.2);
}

.faq-item:hover::before,
.faq-item.active::before {
    transform: scaleY(1);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(
        --burgundy-color
    ); /* Changed from var(--secondary-color) to burgundy */
    margin: 0;
    transition: color 0.3s ease;
    padding-right: 40px;
}

.faq-item:hover .faq-question h3,
.faq-item.active .faq-question h3 {
    color: var(
        --burgundy-dark
    ); /* Changed from var(--primary-color) to darker burgundy */
}

.faq-toggle {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background-color: rgba(
        139,
        0,
        0,
        0.1
    ); /* Changed from rgba(200, 169, 126, 0.1) to burgundy with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.faq-toggle i {
    color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.faq-item.active .faq-toggle {
    background-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    transform: translateY(-50%) rotate(180deg);
}

.faq-item.active .faq-toggle i {
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(-20px);
    position: relative;
    z-index: 1;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.faq-item.active .faq-answer p {
    padding-left: 15px;
}

.faq-item.active .faq-answer p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white); /* Keep this white for contrast on dark background */
}

/* Specific override for the "Hukuki İhtiyaçlarınız İçin Yanınızdayız" heading */
.cta-content h2.burgundy-heading {
    color: var(--burgundy-color); /* Make this specific heading burgundy */
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.primary-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(
        --burgundy-color
    ); /* Changed from var(--primary-color) to burgundy */
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn:hover {
    background-color: var(
        --burgundy-light
    ); /* Changed from #b69468 to burgundy-light */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.1); /* Changed to burgundy shadow */
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail-image {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .services-overview,
    .service-details,
    .service-process,
    .faq-section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-detail-content h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .process-steps:before {
        left: 19px;
    }
}

@media screen and (max-width: 576px) {
    .service-card {
        padding: 30px 20px;
    }

    .step-content {
        padding: 20px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-answer.active {
        padding: 0 20px 15px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}
