/* ============================================
   Kaya Oto Bakım Servisi - CSS Stil Dosyası
   Renk Paleti:
   - Koyu Gri: #1A1A1A
   - Kırmızı: #E63946
   - Metalik Gri: #A9A9A9
   - Beyaz: #FFFFFF
============================================ */

/* ============================================
   GENEL AYARLAR
============================================ */

:root {
    --dark-bg: #1A1A1A;
    --red-accent: #E63946;
    --metallic-grey: #A9A9A9;
    --white: #FFFFFF;
    --darker-bg: #0F0F0F;
    --light-grey: #2A2A2A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
}

/* Başlıklar için Poppins fontu */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Link stilleri */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Scroll bar özelleştirme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--red-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* ============================================
   NAVIGASYON MENÜSÜ
============================================ */

.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.1);
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 1);
    box-shadow: 0 2px 20px rgba(230, 57, 70, 0.2);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--red-accent);
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(360deg);
}

.brand-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--metallic-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--metallic-grey) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--red-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover::before {
    width: 70%;
}

.navbar .btn-danger {
    background-color: var(--red-accent);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.navbar .btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

/* ============================================
   HERO SECTION (ÜST KISIM)
============================================ */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
    background-image: 
        linear-gradient(rgba(26, 26, 26, 0.85), rgba(15, 15, 15, 0.9)),
        url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow: hidden;
}

/* Hero arka plan animasyonu */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--metallic-grey);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-section .btn-danger {
    background-color: var(--red-accent);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.hero-section .btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

.hero-section .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Scroll indikatörü */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--red-accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* ============================================
   SECTION GENEL STİLLER
============================================ */

.services-section,
.gallery-section,
.contact-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
}

.services-section {
    background: linear-gradient(180deg, #1f1f1f 0%, #252525 50%, #1f1f1f 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(230, 57, 70, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(169, 169, 169, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-section {
    background-color: var(--darker-bg);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
}

.section-subtitle {
    color: var(--metallic-grey);
    font-size: 1.1rem;
}

/* ============================================
   HİZMETLER BÖLÜMÜ
============================================ */

.service-card {
    background: rgba(42, 42, 42, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(169, 169, 169, 0.15);
    position: relative;
    overflow: hidden;
}

/* Kart hover efekti - kırmızı parıltı animasyonu */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, -10px) scale(1.1); }
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(42, 42, 42, 0.7);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
    border-color: var(--red-accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--red-accent), #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--metallic-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--red-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--white);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   GALERİ BÖLÜMÜ
============================================ */

.gallerySwiper {
    padding: 20px 0 60px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.8), rgba(26, 26, 26, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0);
    transition: transform 0.4s ease;
}

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Swiper özelleştirme */
.swiper-button-next,
.swiper-button-prev {
    color: var(--red-accent);
    background: rgba(26, 26, 26, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}

.swiper-pagination-bullet {
    background: var(--metallic-grey);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--red-accent);
    opacity: 1;
}

/* ============================================
   İLETİŞİM BÖLÜMÜ
============================================ */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red-accent), #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--metallic-grey);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--metallic-grey);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--red-accent);
}

/* Harita */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(230, 57, 70, 0.2);
}

.map-container iframe {
    filter: grayscale(1) invert(0.9) contrast(0.9);
}

/* ============================================
   FOOTER
============================================ */

.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(230, 57, 70, 0.2);
}

.footer p {
    color: var(--metallic-grey);
    margin: 0;
}

.footer strong {
    color: var(--red-accent);
}

/* Admin butonu artık sol alt köşede sabit */
.admin-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6C63FF, #5A52D5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-admin 2s infinite;
}

@keyframes pulse-admin {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(108, 99, 255, 0.8);
        transform: scale(1.05);
    }
}

.admin-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(108, 99, 255, 0.7);
}

/* ============================================
   SABİT WHATSAPP VE KONUM BUTONLARI
============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
        transform: scale(1.05);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.location-float {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red-accent), #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-location 2s infinite;
}

@keyframes pulse-location {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(230, 57, 70, 0.8);
        transform: scale(1.05);
    }
}

.location-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.7);
}

/* ============================================
   YUKARI ÇIK BUTONU
============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 190px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--metallic-grey), #888);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #888, #666);
}

/* ============================================
   RESPONSİVE TASARIM
============================================ */

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: rgba(26, 26, 26, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .admin-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 1.6rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
    
    .location-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 90px;
        font-size: 1.6rem;
    }
    
    .scroll-to-top {
        right: 160px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================================
   YÜKLEME ANİMASYONU
============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
