:root {
    --primary-green: #2D5016;
    --terracotta: #C65D07;
    --cream: #F8F6F0;
    --charcoal: #2C2C2C;
    --light-gray: #f8f9fa;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    padding-top: 76px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cream) !important;
}

.navbar-nav .nav-link {
    color: var(--cream) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--terracotta) !important;
}

/* Varsayılan olarak mobil menü butonu bootstrap tarafından yönetilir
   Ancak rengini beyaz yapmak için özelleştiriyoruz */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.8), rgba(198, 93, 7, 0.6)),
        url('resources/hero-renovation.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -76px;
}

.hero-content {
    color: white;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

/* --- Buttons --- */
.btn-primary-custom {
    background: var(--terracotta);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #a04d06;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 93, 7, 0.3);
    color: white;
}

.btn-secondary-custom {
    background: white;
    color: var(--terracotta);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}

.btn-secondary-custom:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--terracotta);
}

/* --- Page Headers --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--terracotta));
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-top: -76px;
    padding-top: 150px;
}

.page-title {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Common Sections --- */
.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Services Styles --- */
.services-section {
    padding: 100px 0;
    background: var(--cream);
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.service-description {
    color: var(--charcoal);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-price {
    font-weight: 600;
    color: var(--terracotta);
    font-size: 1.1rem;
}

/* Services & Portfolio Filters */
.services-filter,
.portfolio-filter {
    padding: 60px 0 40px;
    background: var(--light-gray);
    margin-top: 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

/* Services Detail */
.service-detail {
    padding: 80px 0;
}

.service-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.service-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-content {
    padding: 40px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

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

.service-pricing {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.btn-service {
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: #a04d06;
    transform: translateY(-2px);
    color: white;
}

/* Quote Calculator */
.quote-calculator {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 60px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-option {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.service-option:hover,
.service-option.selected {
    border-color: var(--terracotta);
    background: rgba(198, 93, 7, 0.1);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.option-title {
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.option-price {
    color: var(--terracotta);
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-container {
    background: var(--light-gray);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    background: var(--terracotta);
    height: 100%;
    width: 25%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.calc-step {
    display: none;
}

.calc-step.active {
    display: block;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-step {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-step:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: var(--terracotta);
}

/* --- Portfolio Styles --- */
.portfolio-preview {
    padding: 100px 0;
    background: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Gallery specific */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.9), rgba(198, 93, 7, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.gallery-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Before & After Slider (Fixed) --- */
.before-after-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.before-after-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-image {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.after-image {
    z-index: 1;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 4px;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.before-after-content {
    padding: 25px;
}

.transformation-details {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 600;
    color: var(--terracotta);
}

/* Project Stats */
.project-stats {
    padding: 80px 0;
    background: var(--primary-green);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-number {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--terracotta);
}

/* --- Modal (Lightbox) Düzeltmesi --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Kapatma (X) Butonu Tasarımı */
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--terracotta);
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Animasyon */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cream);
}

.form-control:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 0.2rem rgba(198, 93, 7, 0.25);
    background: white;
}

.form-control.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.success {
    border-color: #28a745;
    background: #f8fff8;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control.error+.field-error {
    display: block;
}

.btn-submit {
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #a04d06;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 2100;
    padding: 20px 30px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    transform: translateX(150%);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

/* Testimonials & Footer */
.testimonials-section {
    padding: 100px 0;
    background: var(--primary-green);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 0 20px;
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.cta-section {
    padding: 80px 0;
    background: var(--terracotta);
    color: white;
    text-align: center;
}

.footer {
    background: var(--charcoal);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--terracotta);
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--terracotta);
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.accordion-item {
    background: white;
    border: none;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    border: none;
    background: none;
}

.accordion-button {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--primary-green);
    padding: 20px;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(198, 93, 7, 0.1);
    color: var(--terracotta);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 0 20px 20px;
    color: var(--charcoal);
    line-height: 1.7;
}

/* Map Section (Eksikti, eklendi) */
.map-section {
    padding: 80px 0;
}

.map-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 20px;
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDYA SORGULARI (SADELEŞTİRİLMİŞ) --- */

/* Tablet ve Altı (991px) - Mobil Menü İçin Kritik */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(45, 80, 22, 0.98);
        padding: 20px;
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        margin-bottom: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--cream) !important;
        display: block;
    }

    .navbar-toggler {
        display: block !important;
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Mobil (768px ve altı) - Tasarım Ayarlamaları */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid,
    .before-after-grid,
    .service-options {
        grid-template-columns: 1fr;
    }

    .before-after-slider {
        height: 250px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        position: fixed;
        background: rgba(0, 0, 0, 0.5);
    }
}