/* ============================================
   SERAMIK USTASI - MOBILE STYLES
   Sadece mobil cihazlar için (max-width: 768px & 480px)
   Masaüstü stillerine DOKUNULMAZ
   ============================================ */

/* ============================================
   GLOBAL MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    /* GPU Acceleration & Performance */
    *,
    *::before,
    *::after {
        -webkit-tap-highlight-color: transparent;
    }

    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Safe Area Support (Notch phones) */
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    /* Responsive Typography */
    h1 { font-size: 1.8rem; line-height: 1.2; }
    h2 { font-size: 1.5rem; line-height: 1.3; }
    h3 { font-size: 1.2rem; line-height: 1.4; }
    p { font-size: 0.95rem; line-height: 1.6; }

    /* Touch-friendly targets (min 44px) */
    a, button, input[type="submit"], .btn-primary, .btn-hero, .btn-hero-secondary {
        min-height: 44px;
        min-width: 44px;
    }

    /* ============================================
       RED TOP STRIP - MOBILE
       ============================================ */
    .red-top-strip {
        height: 50px;
    }

    .red-strip-content {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .red-strip-logo {
        gap: 8px;
    }

    .red-strip-logo svg {
        width: 30px;
        height: 30px;
    }

    .red-strip-logo-text {
        font-size: 14px;
    }

    .red-strip-slogan {
        font-size: 13px;
        font-weight: 600;
    }

    .red-strip-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* ============================================
       TOP BAR
       ============================================ */
    .top-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0; display: none;
        display: none;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ============================================
       HEADER & NAVIGATION
       ============================================ */
    .header {
        padding: 0.8rem 0;
        z-index: 10001 !important;
        position: relative;
    }

    .header-content {
        position: relative;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    /* Desktop nav hidden */
    .nav {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 10002 !important;
        padding: 2rem;
        overflow-y: auto;
        transform: translateX(100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden !important;
    }

    .nav.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .nav .nav-link {
        font-size: 1.3rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--dark);
        text-decoration: none;
        min-height: 56px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav .nav-link:last-child {
        border-bottom: none;
    }

    .nav .btn-primary {
        margin-top: 1.5rem;
        padding: 1rem 3rem;
        border-radius: 50px;
        font-size: 1.1rem;
        width: 80%;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Dropdown in mobile */
    .nav-item.dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-item.dropdown .dropdown-menu {
        position: relative;
        display: none;
        background: #f8fafc;
        box-shadow: none;
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        opacity: 1;
        visibility: visible !important;
        transform: none;
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        font-size: 1.6rem;
        cursor: pointer;
        color: var(--dark);
        z-index: 10000;
        position: relative;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .mobile-menu-btn:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-btn.active {
        position: fixed !important;
        top: 1rem;
        right: 1rem;
    }

    /* ============================================
       HERO SLIDER
       ============================================ */
    .hero-slider {
        height: 85vh;
        min-height: 500px;
        max-height: 700px;
    }

    .slide-content {
        padding: 0 1rem;
        text-align: center;
    }

    .slide-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .slide-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }

    .slide-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .btn-hero,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 50px;
        min-height: 52px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        opacity: 0.7;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }

    /* ============================================
       SECTIONS GENERAL
       ============================================ */
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* ============================================
       SERVICES GRID
       ============================================ */
    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .service-card {
        border-radius: 16px;
        overflow: hidden;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }

    .service-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .service-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.8rem 1.5rem;
    }

    .service-image {
        height: 200px;
    }

    /* ============================================
       FEATURES GRID
       ============================================ */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .feature-text {
        text-align: center;
    }

    .feature-number {
        font-size: 2.5rem;
    }

    /* ============================================
       PROJECTS GRID
       ============================================ */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .projects-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-card-large {
        height: 280px;
    }

    /* ============================================
       ABOUT SECTION
       ============================================ */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* About Page Specific */
    .about-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-content h2,
    .about-values h2,
    .about-why h2,
    .about-cta h2 {
        font-size: 1.8rem;
    }

    .story-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-why {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .about-cta {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        min-height: 52px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* ============================================
       CONTACT SECTION
       ============================================ */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-section {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    /* Form inputs touch-friendly */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        min-height: 48px;
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }

    textarea {
        min-height: 120px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .method-icon {
        margin: 0 auto;
    }

    /* ============================================
       TESTIMONIALS
       ============================================ */
    .testimonials {
        padding: 3rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* ============================================
       REFERENCES
       ============================================ */
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .reference-card {
        padding: 1.5rem 1rem;
        min-height: 130px;
        border-radius: 12px;
    }

    .reference-card-new {
        padding: 1.5rem;
    }

    .reference-logo h3 {
        font-size: 1.1rem;
    }

    .reference-icon {
        width: 60px;
        height: 60px;
    }

    .reference-company {
        font-size: 1.2rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 0.95rem;
    }

    .feature-item {
        width: 100%;
    }

    /* ============================================
       CTA SECTION
       ============================================ */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-text h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .cta-text p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* ============================================
       BLOG
       ============================================ */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        border-radius: 16px;
    }

    /* ============================================
       PAGE HEADER
       ============================================ */
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* ============================================
       SERVICE PAGES
       ============================================ */
    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero-features {
        flex-direction: column;
        gap: 0.8rem;
    }

    .service-intro h2,
    .service-why h2,
    .service-process h2,
    .service-pricing h2,
    .service-faq h2,
    .service-cta h2 {
        font-size: 1.6rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-process {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .process-step::after {
        display: none;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .service-cta {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    /* ============================================
       FILTER BUTTONS
       ============================================ */
    .filter-buttons {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* ============================================
       FOOTER
       ============================================ */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section a {
        padding: 0.4rem 0;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* ============================================
       FLOATING BUTTONS & WHATSAPP
       ============================================ */
    .floating-buttons {
        bottom: 20px;
        right: 16px;
        gap: 12px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .float-btn {
        width: 52px;
        height: 52px;
    }

    .float-btn svg {
        width: 22px;
        height: 22px;
    }

    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }

    /* WhatsApp Chat Widget - Full width on mobile */
    .whatsapp-chat {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
        height: auto;
        border-radius: 16px 16px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .whatsapp-chat.active {
        display: flex;
        flex-direction: column;
    }

    .chat-body {
        flex: 1;
        max-height: none;
        min-height: 200px;
        overflow-y: auto;
    }

    .chat-footer {
        padding: 1rem;
        padding-bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.5rem));
        flex-shrink: 0;
        background: white;
        border-top: 1px solid #e9edef;
    }

    #chatInput {
        font-size: 16px;
        min-height: 44px;
    }

    .send-btn {
        width: 44px;
        height: 44px;
    }

    /* ============================================
       GRADIENT STRIP
       ============================================ */
    .gradient-strip {
        height: 3px; background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%); box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }
}

/* ============================================
   EXTRA SMALL DEVICES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Even smaller typography */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Hero adjustments */
    .hero-slider {
        height: 75vh;
        min-height: 420px;
    }

    .slide-title {
        font-size: 1.6rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
    }

    .slide-buttons {
        padding: 0;
    }

    /* Single column everything */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid-large {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-number {
        font-size: 2rem;
    }

    /* Page header */
    .page-header {
        padding: 2.5rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Contact form */
    .contact-form-section {
        padding: 1.5rem 1rem;
    }

    /* Slider arrows smaller */
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Top bar - hide location on very small */
    .top-bar-left .top-bar-item:nth-child(2) {
        display: none;
    }

    /* CTA */
    .cta-text h2 {
        font-size: 1.4rem;
    }

    .cta-btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }

    /* Project cards */
    .project-card-large {
        height: 220px;
    }

    /* Service cards */
    .service-image {
        height: 180px;
    }
}

/* ============================================
   SCROLL PERFORMANCE
   ============================================ */
@media (max-width: 768px) {
    .hero-slider,
    .slide-bg,
    .nav,
    .whatsapp-chat,
    .floating-buttons,
    .header {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Smooth scrolling sections */
    .services,
    .testimonials,
    .footer,
    section {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }

        .nav {
            transition: none;
        }
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 300px;
    }

    .slide-title {
        font-size: 1.6rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
    }

    .slide-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }

    .btn-hero,
    .btn-hero-secondary {
        width: auto;
        flex: 1;
    }
}

/* ============================================
   ANIMATIONS MOBILE (from style-animations.css)
   ============================================ */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        min-height: 45px;
    }

    .parallax {
        background-attachment: scroll;
    }
}

/* ============================================
   PROJECTS CTA MOBILE (from style-projects-cta.css)
   ============================================ */
@media (max-width: 768px) {
    .projects-cta {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-feature {
        width: 100%;
        justify-content: center;
    }
}
















