/**
 * Responsive CSS
 * Yavuz Çelikus Web Sitesi
 * Mobil Görüntüleme Optimizasyonu
 */

/* ===================================
   Viewport ve Genel Mobil Ayarları
====================================== */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobilde yatay kaydırmayı önle */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===================================
   Mobil Navigasyon Düzeltmeleri
====================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        margin-top: 10px;
        border-radius: 8px;
        padding: 20px;
    }
    
    /* Logo kuralları ana CSS'te tanımlandı */
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        color: #fff !important;
        padding: 12px 20px !important;
        margin: 5px 0;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--primary-color);
        color: #000 !important;
    }
    
    /* Logo kuralları ana CSS'te tanımlandı */
}

/* ===================================
   Top Bar Mobil Düzeltmeleri
====================================== */
@media (max-width: 767.98px) {
    .top-bar {
        display: none !important;
    }
    
    .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* ===================================
   Tablet - 992px
====================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-slide {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .hero-content .subtitle {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-slider .owl-prev,
    .hero-slider .owl-next {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .hero-slider .owl-prev {
        left: 15px;
    }
    
    .hero-slider .owl-next {
        right: 15px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
        color: #000;
        font-family: var(--font-primary);
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
    
    .navbar.scrolled .navbar-nav .nav-link {
        color: var(--black-primary);
    }
    
    .navbar.scrolled .navbar-nav .nav-link:hover,
    .navbar.scrolled .navbar-nav .nav-link.active {
        color: var(--primary-color);
    }
    
    .navbar-cta {
        margin-top: 15px;
    }
    
    /* Mobilde logo ortada kalmasın */
    .navbar-brand-center {
        position: static;
        transform: none;
        order: -1;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .logo-center {
        height: 60px;
        max-width: 150px;
    }
    
    .navbar-brand-center object {
        height: 60px;
        max-width: 150px;
    }
    
    .project-card {
        height: 350px;
    }
}

/* ===================================
   Mobile - 768px
====================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-padding-sm {
        padding: 40px 0;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-content .btn {
        padding: 10px 25px;
        font-size: 14px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    .hero-slider .owl-prev,
    .hero-slider .owl-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero-slider .owl-prev {
        left: 10px;
    }
    
    .hero-slider .owl-next {
        right: 10px;
    }
    
    .hero-slider .owl-dots {
        bottom: 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
        color: #000;
        font-family: var(--font-primary);
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-item .stat-number {
        font-size: 2.5rem;
    }
    
    .service-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 30px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .service-card:hover,
    .blog-card:hover,
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .service-card .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--primary-color);
    }
    
    .service-card h4 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: #000;
    }
    
    .service-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        color: #666;
    }
    
    .project-card {
        height: 300px;
    }
    
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
    
    .scroll-to-top,
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        bottom: 75px;
    }
    
    .flash-alert {
        right: 15px;
        left: 15px;
        min-width: auto;
    }
}

/* ===================================
   Small Mobile - 576px
====================================== */
@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .hero-slide {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subtitle {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .hero-content .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-slider .owl-prev,
    .hero-slider .owl-next {
        display: none;
    }
    
    .hero-slider .owl-dots {
        bottom: 15px;
    }
    
    .hero-slider .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
        color: #000;
        font-family: var(--font-primary);
    }
    
    .stat-item .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .stat-item .stat-label {
        font-size: 16px;
    }
    
    .service-card,
    .blog-card,
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .project-card {
        height: 280px;
    }
    
    .project-overlay {
        padding: 20px;
    }
    
    .navbar-brand .logo {
        max-height: 40px;
    }
    
    /* Logo kuralları ana CSS'te tanımlandı */
    
    .top-bar .list-inline-item {
        margin-right: 15px;
        font-size: 13px;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 20px 0;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 10px;
    }
    
    /* CTA Section Mobil */
    .cta-section {
        padding: 40px 0 !important;
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px;
    }
    
    .cta-section p {
        font-size: 14px !important;
        margin-bottom: 20px;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Blog Section Mobil */
    .blog-card-body {
        padding: 20px;
    }
    
    .blog-card-meta {
        margin-bottom: 15px;
    }
    
    .blog-card-meta span {
        font-size: 12px;
        margin-right: 10px;
    }
    
    /* Testimonial Section Mobil */
    .testimonial-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
        font-style: italic;
    }
    
    .testimonial-author {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .testimonial-author img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }
}

