/* Site CSS - Ana Sayfa İçerik Stilleri */

/* Ana Sayfa Bölümleri */
.kahraman {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('/img/anasayfa.jpg');
    background-size: cover; /* Ensure background image covers the area */
    background-position: center; /* Center the background image */
    overflow: hidden;
    padding-top: 80px; /* Header yüksekliği için */
    padding: 80px 20px; /* Add horizontal padding for smaller screens */
    box-sizing: border-box; /* Include padding in element's total width and height */
}


.kahraman-içerik {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    background-color: rgba(73, 73, 73, 0.596);
    border-radius: 20px;
    padding: 30px 20px; /* Adjust padding for content on small screens */
}

.kahraman-başlık {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: yukarıBelir 0.8s ease-out 0.2s both;
}

.vurgu {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: parla 0.8s ease-in-out infinite alternate;
}

@keyframes parla {
    0% { filter: brightness(0.5); }
    100% { filter: brightness(0.8); }
}

.kahraman-alt-başlık {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: yukarıBelir 0.8s ease-out 0.4s both;
    line-height: 1.6;
}

.kahraman-butonlar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: yukarıBelir 1s ease-out 0.6s both;
}

@keyframes yukarıBelir {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buton Stilleri */
.buton {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping inside buttons */
}

.buton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.buton:hover::before {
    left: 100%;
}

.buton-ikon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.buton:hover .buton-ikon {
    transform: scale(1.1);
}

.birincil-buton {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.birincil-buton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.ikincil-buton {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.ikincil-buton:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hizmetler Bölümü */
.hizmetler {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden; /* Ensure nothing spills out */
}

.hizmetler::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f8fafc 100%); /* Adjusted for better blending */
    clip-path: ellipse(100% 100% at 50% 0%);
    z-index: 1; /* Ensure it's behind content */
}

.bölüm-başlık {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
    position: relative;
    z-index: 2;
}

.bölüm-başlık::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #f59e0b, #fbbf24); /* Add color for clarity */
    border-radius: 2px;
}

.hizmetler-akış {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 20px; /* Add horizontal padding */
}

.hizmet-öğe {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hizmet-öğe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1)); /* Add a subtle hover background */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hizmet-öğe:hover::before {
    opacity: 1;
}

.hizmet-öğe:hover {
    transform: translateX(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hizmet-öğe:nth-child(even) {
    flex-direction: row-reverse;
}

.hizmet-öğe:nth-child(even):hover {
    transform: translateX(-15px);
}

.hizmet-ikon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.hizmet-ikon svg {
    width: 32px;
    height: 32px;
}

.hizmet-öğe:hover .hizmet-ikon {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.hizmet-içerik {
    position: relative;
    z-index: 2;
}

.hizmet-içerik h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.hizmet-içerik p {
    color: #64748b;
    line-height: 1.6;
}

/* Hakkımızda Bölümü */
.hakkımızda {
    padding: 6rem 0;
    background: white;
    position: relative;
    padding: 6rem 20px; /* Add horizontal padding */
}

.hakkımızda-içerik {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hakkımızda-metin h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hakkımızda-metin p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.istatistik-akış {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center; /* Center items when they wrap */
}

.istatistik-öğe {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    border-radius: 50px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    max-width: 180px; /* Add a max-width to prevent stretching too much */
    border: 2px solid transparent;
}

.istatistik-öğe:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

.istatistik-sayı {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.5rem;
    animation: sayaçAnimasyon 1s ease-out;
}

@keyframes sayaçAnimasyon {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.istatistik-etiket {
    color: #64748b;
    font-weight: 500;
}

.hakkımızda-özellikler {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.özellik-akış {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.özellik-öğe {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.özellik-öğe:hover {
    transform: translateX(15px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

.özellik-ikon {
    width: 24px;
    height: 24px;
    color: #1e40af;
    transition: transform 0.3s ease;
}

.özellik-öğe:hover .özellik-ikon {
    transform: scale(1.2) rotate(10deg);
}

.özellik-öğe span {
    font-weight: 600;
    color: #1e293b;
}

/* Galeri Bölümü */
.galeri {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden; /* Ensure nothing spills out */
}

.galeri::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f8fafc 100%); /* Adjusted for better blending */
    clip-path: ellipse(100% 100% at 50% 0%);
    z-index: 1; /* Ensure it's behind content */
}

.galeri-akış {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 20px; /* Add horizontal padding */
}

.galeri-öğe {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.galeri-öğe:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.galeri-resim {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.galeri-öğe:hover .galeri-resim {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* İletişim Bölümü */
.iletişim {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    padding: 6rem 20px; /* Add horizontal padding */
}

.iletişim .bölüm-başlık {
    color: white;
}

.iletişim-akış {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.iletişim-bilgi h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.iletişim-bilgi p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.iletişim-öğeler {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.iletişim-öğe {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iletişim-öğe:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.iletişim-ikon {
    width: 24px;
    height: 24px;
    color: #fbbf24;
    transition: transform 0.3s ease;
}

.iletişim-öğe:hover .iletişim-ikon {
    transform: scale(1.2);
}

.iletişim-öğe strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.whatsapp-bölüm {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-bölüm h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.whatsapp-bölüm p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.whatsapp-buton {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping inside buttons */
}

.whatsapp-buton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-buton:hover::before {
    left: 100%;
}

.whatsapp-buton svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.whatsapp-buton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-buton:hover svg {
    transform: scale(1.1);
}

/* Mobil Responsive Tasarım */
@media (max-width: 768px) {
    .kahraman {
        padding-top: 100px;
        padding-bottom: 40px; /* Add some bottom padding for smaller screens */
    }
    
    .kahraman-başlık {
        font-size: 2.5rem;
    }
    
    .tır-resim { /* Assuming this class is for an image that needs scaling */
        width: 250px;
        height: auto; /* Maintain aspect ratio */
        max-width: 100%; /* Ensure it doesn't overflow */
    }
    
    .kahraman-butonlar {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem; /* Reduce gap on smaller screens */
    }

    .buton {
        width: 100%; /* Make buttons full width */
        max-width: 280px; /* Limit button width for better appearance */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }
    
    .hakkımızda-içerik {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .istatistik-akış {
        flex-direction: row; /* Keep it as row for smaller screens to save vertical space */
        justify-content: center;
        gap: 1rem; /* Adjust gap for smaller screens */
    }

    .istatistik-öğe {
        flex: 1 1 auto; /* Allow items to grow and shrink, but maintain minimum width */
        min-width: 100px; /* Ensure a reasonable minimum width */
        max-width: 160px; /* Adjust max-width for better fit on small screens */
        padding: 1rem; /* Reduce padding */
    }
    
    .iletişim-akış {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hizmetler-akış {
        gap: 1.5rem;
    }
    
    .hizmet-öğe {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        border-radius: 30px; /* Slightly smaller border radius for compact look */
    }
    
    .hizmet-öğe:nth-child(even) {
        flex-direction: column;
    }
    
    .hizmet-öğe:hover,
    .hizmet-öğe:nth-child(even):hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
    }

    .hizmet-ikon {
        margin-bottom: 1rem; /* Add space between icon and text */
    }
    
    .galeri-akış {
        grid-template-columns: 1fr;
        padding: 0 15px; /* Adjust padding for gallery */
    }
    
    .bölüm-başlık {
        font-size: 2rem;
    }

    .whatsapp-buton {
        width: 100%;
        max-width: 280px; /* Consistent button sizing */
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .kahraman-başlık {
        font-size: 2rem;
    }
    
    .bölüm-başlık {
        font-size: 1.75rem;
    }
    
    .tır-resim {
        width: 200px;
        height: auto; /* Ensure aspect ratio is maintained */
    }
    
    .istatistik-sayı {
        font-size: 2rem;
    }
    
    .hizmet-öğe {
        padding: 1rem;
        border-radius: 20px; /* Further reduced border radius */
    }
    
    .galeri-resim {
        height: 200px;
    }
    
    .kahraman-alt-başlık {
        font-size: 1.1rem;
    }
    
    .buton {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .whatsapp-bölüm {
        padding: 1.5rem; /* Reduce padding for smaller screens */
    }

    .whatsapp-bölüm h3 {
        font-size: 1.5rem; /* Adjust heading size */
    }

    .iletişim-öğe {
        padding: 1rem; /* Reduce padding */
        border-radius: 20px; /* Consistent border radius */
    }

    .iletişim-öğe strong {
        font-size: 1rem; /* Adjust font size */
    }

    .istatistik-öğe {
        min-width: unset; /* Let it adapt more freely */
        max-width: 100px; /* Further adjust max-width if needed */
        flex-basis: auto; /* Allow flex items to shrink/grow as needed */
    }
}

/* Smooth animations for scroll */
@media (prefers-reduced-motion: no-preference) {
    .hizmet-öğe,
    .özellik-öğe,
    .iletişim-öğe,
    .galeri-öğe {
        animation: yukarıBelir 0.3s ease-out;
    }
    
    .hizmet-öğe:nth-child(1) { animation-delay: 0.1s; }
    .hizmet-öğe:nth-child(2) { animation-delay: 0.2s; }
    .hizmet-öğe:nth-child(3) { animation-delay: 0.3s; }
    .hizmet-öğe:nth-child(4) { animation-delay: 0.4s; }
}