/* Genel Stil ve Modern Resetleme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00A8FF; /* Canlı Mavi */
    --secondary-color: #0077B6; /* Koyu Mavi */
    --dark-color: #2C3E50; /* Koyu Gri-Mavi */
    --light-color: #F8F9FA; /* Çok Açık Gri */
    --white-color: #FFFFFF;
    --whatsapp-color: #25D366;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.5s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* --- Sabit Mobil Butonlar --- */
.phone-float,
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white-color);
    display: none; /* Varsayılan olarak gizli, sadece mobilde aktif olacak */
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    text-decoration: none;
    transition: transform 0.3s;
}

.phone-float:hover, 
.whatsapp-float:hover { 
    transform: scale(1.1); 
}

.phone-float {
    left: 20px;
    background-color: var(--secondary-color);
}

.whatsapp-float {
    right: 20px;
    background-color: var(--whatsapp-color);
}

/* --- NİHAİ ve KESİN ÇÖZÜMLÜ MENÜ --- */
body.menu-is-open {
    overflow: hidden;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark-color);
    z-index: 1050;
    position: relative;
}

.menu-toggle .fa-times { display: none; }
body.menu-is-open .menu-toggle .fa-bars { display: none; }
body.menu-is-open .menu-toggle .fa-times {
    display: block;
    color: var(--white-color);
}

/* Masaüstü Navigasyon */
header nav ul li a {
    text-decoration: none; 
    color: var(--dark-color);
    font-weight: 600; 
    position: relative; 
    padding-bottom: 5px;
}
header nav ul { 
    list-style: none; 
    display: flex; 
}
header nav ul li { margin-left: 30px; }
header nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--primary-color); transition: width 0.4s ease; }
header nav ul li a:hover::after, header nav ul li a.active::after { width: 100%; }

.mobile-menu-footer { display: none; }

/* KIRILMA NOKTASI: Mobil Görünüme Geçiş (< 992px) */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .btn-service { display: none; }
    header nav ul { display: none; }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark-color);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1), visibility 0s var(--transition-speed);
    }

    body.menu-is-open nav {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    body.menu-is-open nav ul {
        display: block; 
        text-align: center;
    }

    nav ul li {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    body.menu-is-open nav ul li a {
        color: var(--white-color);
        font-size: 28px;
        font-weight: 400;
    }
     body.menu-is-open nav ul li a::after { display: none; }


    body.menu-is-open nav ul li {
        opacity: 1;
        transform: translateY(0);
    }
    body.menu-is-open nav ul li:nth-child(1) { transition-delay: calc(var(--transition-speed) * 0.4); }
    body.menu-is-open nav ul li:nth-child(2) { transition-delay: calc(var(--transition-speed) * 0.5); }
    body.menu-is-open nav ul li:nth-child(3) { transition-delay: calc(var(--transition-speed) * 0.6); }
    body.menu-is-open nav ul li:nth-child(4) { transition-delay: calc(var(--transition-speed) * 0.7); }

    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(var(--transition-speed) * 0.8);
    }
    body.menu-is-open .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }
    
    .social-media-mobile a { color: var(--white-color); font-size: 24px; margin: 0 15px; transition: color 0.3s; }
    .social-media-mobile a:hover { color: var(--primary-color); }
    .btn-service-mobile { margin-top: 30px; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
    .btn-service-mobile:hover { background-color: var(--primary-color); color: var(--white-color); }

    /* SABİT MOBİL BUTONLARI GÖSTER */
    .whatsapp-float, .phone-float { 
        display: flex; 
    }
}

/* --- Product Carousel Styles (Robust Fix) --- */
.product-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background-color: var(--white-color);
    padding: 10px; /* Padding for the container */
}

.product-carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-carousel-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole image is visible */
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.product-carousel-wrapper img.active {
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white-color);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-button:hover { 
    background: rgba(0, 0, 0, 0.7); 
}

.carousel-button.prev { 
    left: 15px; 
}

.carousel-button.next { 
    right: 15px; 
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    background: rgba(255, 255, 255, 0.6);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dots .dot.active {
    background: var(--white-color);
    transform: scale(1.2);
}


/* --- DİĞER TÜM STİLLER --- */
header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 999; }
header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; padding: 0 20px;}

.logo a { 
    text-decoration: none; 
    display: flex; 
    align-items: center;
}
.logo img {
    height: 40px; /* İkon boyutu */
    margin-right: 12px; /* İkon ve metin arası boşluk */
    transition: transform 0.4s ease;
}
.logo a:hover img { 
    transform: rotate(15deg);
}
.logo .logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.btn-service { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); color: var(--white-color); padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);}
.btn-service:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0, 168, 255, 0.5);}
main { paddingTop: 80px; padding-bottom: 100px; /* Butonların içeriği ezmemesi için */ }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px;}
.page-header { background: var(--dark-color); color: var(--white-color); padding: 60px 0; text-align: center; }
.page-header h1 { font-size: 48px; }
.hero-slider { position: relative; height: 90vh; width: 100%; overflow: hidden; }
.hero-slider .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white-color); opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.hero-slider .slide.active { opacity: 1; z-index: 2; }
.hero-slider .slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.hero-text h1 { font-size: 64px; font-weight: 700; margin-bottom: 10px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-text p { font-size: 24px; font-weight: 300; }
.logo-slider-section { padding: 80px 0; background: var(--light-color); }
.logo-slider-section .section-title { text-align:center; margin-bottom: 40px; color: var(--secondary-color); font-size: 38px; }
.slider-viewport { overflow: hidden; position: relative; width: 100%; }
.slider-viewport::before, .slider-viewport::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.slider-viewport::before { left: 0; background: linear-gradient(to left, rgba(248, 249, 250, 0), var(--light-color)); }
.slider-viewport::after { right: 0; background: linear-gradient(to right, rgba(248, 249, 250, 0), var(--light-color)); }
.slider-track { display: flex; width: calc(200px * 30); animation: scroll 40s linear infinite; }
.slider-viewport:hover .slider-track { animation-play-state: paused; }
.slide-item { width: 200px; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.slide-item img { height: 60px; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.4s ease; }
.slide-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.15); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(calc(-200px * 15)); } }
.products-showcase { padding: 100px 0; }
.section-title { text-align: center; font-size: 38px; margin-bottom: 60px; color: var(--secondary-color); }
.showcase-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin-bottom: 80px; }
.showcase-item:last-child { margin-bottom: 0; }
.showcase-item.reverse .showcase-image { order: 2; }
.showcase-image { transition: transform 0.4s; }
.showcase-content h2 { font-size: 36px; margin-bottom: 20px; color: var(--secondary-color); }
.service-info-creative { padding: 100px 0; position: relative; text-align: center; background: var(--dark-color); color: var(--white-color); overflow: hidden; }
.service-content h2 { font-size: 38px; margin-bottom: 20px; }
.service-gif { margin-top: 40px; }
.service-gif img { max-width: 50%; border-radius: 15px; box-shadow: var(--shadow); }
.features-creative { padding: 100px 0; background: var(--light-color); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { background: var(--white-color); padding: 30px; border-radius: 15px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-item:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }
.feature-icon { font-size: 48px; width: 100px; height: 100px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: transform 0.8s; }
.feature-item:hover .feature-icon { transform: rotateY(360deg); }
.feature-item h3 { font-size: 22px; margin-bottom: 10px; }
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; background: var(--light-color); padding: 50px; border-radius: 15px; }
.contact-info p { margin-bottom: 20px; font-size: 18px; }
.contact-info i { color: var(--primary-color); margin-right: 15px; }
.social-media a { color: var(--dark-color); font-size: 24px; margin-right: 15px; transition: color 0.3s; }
.social-media a:hover { color: var(--primary-color); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Poppins', sans-serif; }
.btn-submit { width: 100%; padding: 15px; background: var(--primary-color); color: var(--white-color); border: none; border-radius: 8px; cursor: pointer; font-size: 18px; transition: background 0.3s; }
.btn-submit:hover { background: var(--secondary-color); }
footer { background: var(--dark-color); color: var(--light-color); text-align: center; padding: 30px 0; }

@media (max-width: 992px) { 
    header .container { height: 70px; }
    main { paddingTop: 70px; }
    .logo .logo-text { font-size: 22px; }
    .logo img { height: 35px; margin-right: 10px;}
}

@media (max-width: 768px) { 
    .hero-text h1 { font-size: 42px; }

    .showcase-item, .showcase-item.reverse {
        grid-template-columns: 1fr;
    }
    .showcase-item.reverse .showcase-image {
        order: initial; 
    }

    .showcase-image { 
        margin-bottom: 30px; 
    }

    .contact-grid { grid-template-columns: 1fr; padding: 30px 20px;}
    .service-gif img { max-width: 80%;}
}
