/*
    Bu dosya, sitenizin ilk açılışından sonra yüklenen tüm stilleri içerir.
    Kritik CSS kodları, sayfa yükleme hızını artırmak için header.php dosyasına taşınmıştır.
*/

/*==================================
    Genel Ayarlar ve Bileşenler
==================================*/

:root {
    --color-primary: #5271ff;
    --color-secondary: #007bff;
    --color-dark: #1a1a2e;
    --color-text: #e0e0e0;
    --color-light: #f4f4f4;
    --font-family: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

 .blog, .services-hero, .contact-hero, .detail-hero {
    background-image: url('../img/iletisim-arkaplan.jpg');
}

nav a:hover,
nav a.active {
    color: #007bff;
    transform: translateY(-2px);
}

.contact-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Hamburger menü başlangıçta gizli */
#menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer stilleri */
footer {
    background: linear-gradient(135deg, #080428, rgb(11, 10, 82));
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

#socialfooter h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

#socialfooter a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

#socialfooter a:hover,
#socialfooter a:focus {
    color: #007bff;
    outline: none;
}

#copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
}

#scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    background-color: #0056b3;
}
.hero hr {
    width: 25rem;
    border: 5px solid #fff;
    margin: 0 auto 0 auto;
}
@media (max-width: 768px) {
    .call-button {
        /* Küçük ekranlarda buton boyutu daha kompakt hale gelir */
        padding: 0.75rem 1.5rem;
    }
}
.marquee span {
    display: inline-block;
    padding-left: 100%;
    font-size: 1.8rem;
    font-weight: bold;
    animation: marquee-animation 15s linear infinite;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--color-primary), #4363E6);
}

.service-card article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.service-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
/*==================================
    Blog Bölümü - Yenilenmiş
==================================*/

.blog {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 3rem 1.5rem;
    text-align: center;
}

.blog-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.blog-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-light);
    margin-bottom: 2.5rem;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.blog-card {
    position: relative;
    display: block;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    position: relative;
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}


.blog-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    color: var(--color-text);
}

.blog-card-content h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.blog-card-content p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: #ddd;
}

@media (max-width: 768px) {
    .blog-card {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 480px) {
    .blog-card {
        width: 100%;
    }
}
/*==================================
    Hizmetler - Yenilenmiş CSS
==================================*/

.services-hero {
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 4rem 1rem;
    position: relative;
    z-index: 1;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    padding: 1rem 0 2rem 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.swiper {
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-button-prev, .swiper-button-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.swiper-pagination-bullet-active {
    background-color: #fff;
}

.services-details {
    background-image: url('../img/iletisim-arkaplan.jpg');
    background-attachment: fixed;
    position: relative;
    padding: 4rem 1.5rem;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.services-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 4, 40, 0.8);
    z-index: -1;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.services-card-detail {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1A1A2E, #2B2B48);
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    height: 100%;
    cursor: default;
}

.services-card-detail:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.card-content p {
    font-size: 1rem;
    color: var(--color-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/*==================================
    İletişim Formu
==================================*/

.contact-h1 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    padding: 2rem 1rem;
    color: var(--color-primary);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input, textarea {
    padding: 0.9rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 113, 255, 0.2);
}

.contact-button {
    padding: 0.9rem;
    background-color: #4363E6;
    color: var(--color-text);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    background-color: #4363E6;
    transform: translateY(-2px);
}

.contact-info {
    color: var(--color-text);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    background: var(--color-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.contact-info p, .contact-info a {
    font-size: 1rem;
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.contact-info a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    form, .contact-info {
        flex: 1;
        max-width: 48%;
    }
}


/* Detay Galeri */
.detail-gallery {
    padding: 2rem 1rem;
    text-align: center;
}

.detail-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.detail-images img {
    width: calc(25% - 1rem);
    max-width: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.detail-description {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.detail-card {
    background: linear-gradient(135deg, #080428, rgb(11, 10, 82));
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 70%;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.detail-card h1 {
    margin-top: 0;
    font-size: 2rem;
}

.detail-card p {
    margin: 1rem 0 2rem;
    line-height: 1.6;
    color: #ddd;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover,
.back-button:focus {
    background-color: #0056b3;
    outline: none;
}

@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    form, .contact-info {
        flex: 1;
        max-width: 48%;
    }
}

/* Responsive stiller */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
    }
    
    #nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #080428, rgb(11, 10, 82));
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-bottom-left-radius: 15px;
        width: 200px;
        z-index: 1000;

        opacity: 0;
        transform: scale(0.8) translateY(-10px);
        transform-origin: top right;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #nav-links.show {
        display: flex !important;
        flex-direction: column;
        opacity: 1;
        transform: scale(1) translateY(0);
        visibility: visible;
    }

    #nav-links.closing {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
        visibility: visible;
    }
    
    #menu-toggle {
        display: block;
    }
    
    nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #ddd;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
    
    #nav-links a:last-child {
        border-bottom: none;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }

    a.service-card {
        width: calc(50% - 0.5rem);
    }

    .blog-card {
        width: calc(50% - 0.5rem);
    }

    .services-hero {
        text-align: center;
        height: 100vh;
    }

    .services-hero h1 {
        font-size: 2rem;
        padding: 1rem 0 1rem 0;
        color: #fff;
    }

    .swiper {
        height: 85%;
    }

    .swiper-slide img {
        height: 100%;
    }

    .detail-images img {
        width: calc(50% - 0.5rem);
        max-width: none;
    }

    .detail-card {
        max-width: 100%;
        width: 100%;
    }

    #socialfooter h4 {
        font-size: 0.9rem;
    }

    #copyright {
        font-size: 0.8rem;
    }
}
