/* Genel Stiller */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --custom-dark: rgb(47, 61, 76); /* Yeni özel renk */
    --light-color: #f8f9fa;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Roboto', sans-serif;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    margin-bottom: 60px;
    padding-top: 76px; /* Navbar'ın fixed-top olması nedeniyle */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease-out;
}

a:hover {
    color: #003d7a;
    text-decoration: none;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out; /* Navbar'ın yukarı/aşağı kayma animasyonu için */
    background: linear-gradient(90deg, #0a2233 0%, #0e3a54 100%) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: opacity 0.2s ease-out;
    color: white !important; /* Yazı rengi beyaz */
}

.nav-link.active {
    color: white !important; /* Aktif link de beyaz olsun */
    font-weight: 700;
    opacity: 0.9; /* Aktif linki hafif farklılaştırmak için */
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-top: -76px; /* Navbar'ın fixed-top olması nedeniyle */
}

.hero-image {
    position: relative;
    background-image: url('/images/content/pm1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/content/pm1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px);
    z-index: 0;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-image > div {
    position: relative;
    z-index: 2;
}

.scroll-down {
    animation: bounce 2s infinite;
    will-change: transform;
}

@@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 60px;
}

/* Cards */
.card {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border-radius: 8px;
    overflow: hidden;
    contain: layout style paint;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Services & Projects */
.service-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: layout style paint;
}

.service-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 400/250;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card .card-text {
    flex-grow: 1;
    margin-bottom: 0;
}

.service-card .text-end {
    margin-top: auto;
    padding-top: 1rem;
}

.project-card {
    margin-bottom: 30px;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Testimonials */
.testimonial-card {
    padding: 30px;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #0a2233 0%, #0e3a54 100%);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-heading {
    color: #fff;
    margin-bottom: 20px;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important; /* Footer'daki muted yazıları beyaza yakın yaptık */
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 992px) {
    body {
        padding-top: 60px;
    }
    .hero-section {
        height: 80vh;
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero-section {
        height: 70vh;
    }
    .display-3 {
        font-size: 2.5rem;
    }
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
    }
    .display-3 {
        font-size: 2rem;
    }
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* İletişim Sayfası Stilleri */
.contact-info i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Navbar Scroll Effekti - Artık kullanılmıyor */
.navbar-scrolled {
    /* Renk değişimi iptal edildi */
    transition: all 0.3s ease-in-out;
}

/* Geri Dönüş Buton */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.9);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: block;
}

/* Teşekkür Sayfası */
.thank-you-card {
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.thank-you-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Reference Companies Slider */
.reference-companies-slider {
    position: relative;
    padding: 0 50px;
}

.reference-companies-slider .swiper-container {
    overflow: hidden;
    padding: 20px 0;
}

.reference-companies-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-companies-slider .swiper-button-next,
.reference-companies-slider .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.reference-companies-slider .swiper-button-next:after,
.reference-companies-slider .swiper-button-prev:after {
    font-size: 18px;
}

.reference-companies-slider .swiper-button-next {
    right: 0;
}

.reference-companies-slider .swiper-button-prev {
    left: 0;
}

.reference-companies-slider .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.reference-companies-slider .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.reference-companies-slider .swiper-pagination-bullet-active {
    opacity: 1;
}