/* ============================================
   MOBILE.CSS - Mobil Optimizasyon Dosyası
   Destimal Medikal - Responsive Design
   ============================================ */

/* Tablet Landscape (1024px ve altı) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 80px;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 0 60px;
    }
    
    .hero-content h1 {
        font-size: 42px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 18px;
        max-width: 500px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    /* Slider Container */
    .service-slider-container {
        grid-template-columns: 1fr;
    }
    
    .slider-image-section {
        height: 450px;
        border-radius: 20px 20px 0 0;
    }
    
    .slider-content-section {
        padding: 40px 30px;
        max-height: 600px;
        border-radius: 0 0 20px 20px;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
    }
    
    .slider-arrow i {
        font-size: 18px;
    }
    
    .slider-prev {
        left: 20px;
    }
    
    .slider-next {
        right: 20px;
    }
    
    /* Page Content */
    .page-content,
    .overview-sections {
        padding: 120px 60px 80px;
    }
    
    .page-header h1 {
        font-size: 42px;
    }
    
    .page-header p {
        font-size: 17px;
    }
    
    /* Section Content */
    .section-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    /* Contact Container */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 60px 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Menu */
    .menu-nav {
        padding: 60px 60px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablet Portrait (768px ve altı) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 70px;
    }
    
    /* Sidebar */
    .sidebar {
        padding: 20px 0;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .menu-icon {
        width: 45px;
        height: 45px;
        gap: 5px;
    }
    
    .menu-icon-bar {
        height: 2.5px;
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .hero-stat {
        text-align: left;
    }
    
    .hero-stat h3 {
        font-size: 36px;
    }
    
    .hero-stat p {
        font-size: 13px;
    }
    
    /* Slider Container */
    .service-slider-container {
        grid-template-columns: 1fr;
        border-radius: 15px;
        margin-top: 30px;
    }
    
    .slider-image-section {
        height: 350px;
        border-radius: 15px 15px 0 0;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow i {
        font-size: 16px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        transform: scale(1.5);
    }
    
    .slider-content-section {
        padding: 30px 20px;
        border-radius: 0 0 15px 15px;
        max-height: none;
    }
    
    .slider-content-section .page-text h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .slider-content-section .page-text h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .slider-content-section .page-text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    .slider-content-section .page-text ul li {
        padding: 8px 0;
        padding-left: 20px;
        font-size: 13px;
    }
    
    /* Page Content */
    .page-content,
    .overview-sections {
        padding: 100px 20px 60px;
    }
    
    .page-header {
        margin-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .page-header p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Overview Sections */
    .overview-section {
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .content-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .content-card p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Contact Page */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .submit-button {
        padding: 15px;
        font-size: 16px;
    }
    
    .contact-info-card {
        padding: 25px;
    }
    
    .contact-info-card i {
        font-size: 24px;
    }
    
    .contact-info-card h3 {
        font-size: 16px;
    }
    
    .contact-info-card p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 12px;
    }
    
    /* Menu */
    .fullscreen-menu {
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
    
    .menu-close {
        top: 25px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .menu-close i {
        font-size: 20px;
    }
    
    .menu-nav {
        padding: 40px 20px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .menu-section-title {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .menu-nav ul li a {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .dropdown-toggle {
        font-size: 17px;
    }
    
    .dropdown-menu li a {
        font-size: 15px;
    }
    
    .menu-contact-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .menu-contact-item {
        font-size: 13px;
        margin: 8px 0;
    }
}

/* Mobile Phones (480px ve altı) */
@media (max-width: 480px) {
    :root {
        --sidebar-width: 60px;
    }
    
    /* Sidebar */
    .sidebar {
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 30px;
    }
    
    .logo svg {
        width: 35px;
        height: 35px;
    }
    
    .menu-icon {
        width: 42px;
        height: 42px;
        gap: 4px;
        padding: 10px;
    }
    
    .menu-icon-bar {
        height: 2px;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat h3 {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .hero-stat p {
        font-size: 12px;
    }
    
    /* Slider Container */
    .slider-image-section {
        height: 280px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-arrow i {
        font-size: 14px;
    }
    
    .slider-prev {
        left: 8px;
    }
    
    .slider-next {
        right: 8px;
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 6px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
    
    .dot.active {
        transform: scale(1.6);
    }
    
    .slider-content-section {
        padding: 25px 15px;
    }
    
    .slider-content-section .page-text h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .slider-content-section .page-text h3 {
        font-size: 16px;
        margin: 15px 0 8px;
    }
    
    .slider-content-section .page-text p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .slider-content-section .page-text ul li {
        font-size: 12px;
        padding: 6px 0;
        padding-left: 18px;
    }
    
    .slider-content-section .page-text ul li::before {
        font-size: 12px;
    }
    
    /* Page Content */
    .page-content,
    .overview-sections {
        padding: 80px 15px 40px;
    }
    
    .page-header {
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .page-header p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Overview Sections */
    .overview-section {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .section-content {
        gap: 15px;
    }
    
    .content-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .content-card h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .content-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Contact Page */
    .contact-container {
        gap: 25px;
    }
    
    .contact-form {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .submit-button {
        padding: 13px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .contact-info-card {
        padding: 20px;
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-info-card i {
        font-size: 22px;
        min-width: auto;
    }
    
    .contact-info-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .contact-info-card p {
        font-size: 13px;
    }
    
    /* Footer */
    .footer {
        padding: 35px 15px 15px;
    }
    
    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footer-section ul li {
        margin: 8px 0;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 11px;
    }
    
    .furkatech-logo {
        height: 16px;
    }
    
    /* Menu */
    .menu-close {
        top: 20px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
    
    .menu-close i {
        font-size: 18px;
    }
    
    .menu-nav {
        padding: 30px 15px;
    }
    
    .menu-grid {
        gap: 25px;
    }
    
    .menu-section-title {
        font-size: 12px;
        margin-bottom: 12px;
        letter-spacing: 1.5px;
    }
    
    .menu-nav ul li {
        margin: 12px 0;
    }
    
    .menu-nav ul li a {
        font-size: 15px;
        padding: 6px 0;
    }
    
    .dropdown-toggle {
        font-size: 16px;
    }
    
    .dropdown-toggle i {
        font-size: 12px;
    }
    
    .dropdown-menu {
        padding-left: 15px;
    }
    
    .dropdown-menu li a {
        font-size: 14px;
    }
    
    .menu-contact-info {
        padding: 12px;
        margin-top: 15px;
        border-radius: 8px;
    }
    
    .menu-contact-item {
        font-size: 12px;
        margin: 6px 0;
    }
    
    /* Page Text */
    .page-text {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .page-text h2 {
        font-size: 24px;
        margin: 30px 0 15px;
    }
    
    .page-text h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .page-text ul,
    .page-text ol {
        padding-left: 20px;
    }
    
    .page-text ul li,
    .page-text ol li {
        margin: 8px 0;
        font-size: 13px;
    }
}

/* Landscape Mode - Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0 40px;
    }
    
    .slider-image-section {
        height: 400px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .hero-stat {
        min-width: 120px;
    }
    
    .page-content,
    .overview-sections {
        padding: 80px 30px 50px;
    }
}

/* Tablet Portrait - Specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .service-slider-container {
        grid-template-columns: 1fr;
    }
    
    .slider-image-section {
        height: 500px;
    }
    
    .slider-content-section {
        padding: 40px 35px;
    }
    
    .section-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Daha büyük dokunma alanları */
    .slider-arrow {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .slider-arrow:active {
        background: var(--primary-color);
        transform: translateY(-50%) scale(0.95);
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .dot:active {
        transform: scale(1.5);
        background: white;
    }
    
    .content-card:active {
        transform: translateY(-3px);
        border-color: var(--primary-color);
    }
    
    .menu-icon:active {
        transform: translateY(-2px);
        background: var(--primary-color);
    }
    
    .menu-icon:active .menu-icon-bar {
        background: white;
    }
    
    .submit-button:active {
        transform: translateY(-2px);
    }
    
    /* Link ve butonlar için daha iyi feedback */
    .menu-nav ul li a:active {
        color: var(--accent-color);
    }
    
    .footer-section ul li a:active {
        color: var(--primary-color);
    }
}

/* Smooth Scrolling - Mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Custom Scrollbar */
    .slider-content-section {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #f1f1f1;
    }
    
    .slider-content-section::-webkit-scrollbar {
        width: 4px;
    }
    
    .slider-content-section::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .slider-content-section::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .slider-content-section::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }
    
    .fullscreen-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    /* GPU acceleration */
    .slider-slide,
    .slider-arrow,
    .content-card,
    .menu-icon {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    /* Burayı ihtiyaç olursa dark mode için kullanabilirsin */
}

/* Accessibility - Larger Text */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles - Mobile */
@media print {
    .sidebar,
    .menu-icon,
    .fullscreen-menu,
    .slider-arrow,
    .slider-dots,
    .footer {
        display: none !important;
    }
    
    main {
        margin-left: 0;
    }
    
    .service-slider-container {
        grid-template-columns: 1fr;
        page-break-inside: avoid;
    }
}

/* ============================================
   LOADER EKRANI ÇOK YAVAŞ MOBİL OPTİMİZASYONU
   ============================================ */

/* Tablet için */
@media (max-width: 1024px) {
    .logo-loader {
        animation: pulse 4s ease-in-out infinite;
    }
    
    .logo-square {
        animation: drawSquare 4s ease-in-out forwards;
    }
    
    .logo-text {
        animation: fadeInText 2s ease-in-out 2s forwards;
    }
    
    .loading-progress {
        animation: loading 4s ease-in-out infinite;
    }
}

/* Mobil için - ÇOK YAVAŞ */
@media (max-width: 768px) {
    #loader {
        transition: opacity 1.5s ease, visibility 1.5s ease;
    }
    
    .logo-loader {
        animation: pulse 5s ease-in-out infinite;
        margin-bottom: 25px;
    }
    
    .logo-square {
        stroke-dasharray: 400;
        stroke-dashoffset: 400;
        animation: drawSquare 5s ease-in-out forwards;
    }
    
    .logo-text {
        opacity: 0;
        animation: fadeInText 2.5s ease-in-out 2.5s forwards;
    }
    
    .loading-bar {
        width: 180px;
        height: 3px;
    }
    
    .loading-progress {
        animation: mobileLoading 5s ease-in-out infinite;
    }
    
    @keyframes mobileLoading {
        0% { width: 0; }
        30% { width: 30%; }
        60% { width: 60%; }
        100% { width: 100%; }
    }
}

/* Küçük mobil - EN YAVAŞ */
@media (max-width: 480px) {
    #loader {
        transition: opacity 2s ease, visibility 2s ease;
    }
    
    .logo-loader {
        animation: pulse 6s ease-in-out infinite;
        margin-bottom: 20px;
    }
    
    .logo-square {
        animation: drawSquare 6s ease-in-out forwards;
    }
    
    .logo-text {
        animation: fadeInText 3s ease-in-out 3s forwards;
    }
    
    .loading-bar {
        width: 160px;
        height: 3px;
    }
    
    .loading-progress {
        animation: smallMobileLoading 6s ease-in-out infinite;
    }
    
    @keyframes smallMobileLoading {
        0% { width: 0; }
        25% { width: 25%; }
        50% { width: 50%; }
        75% { width: 75%; }
        100% { width: 100%; }
    }
}

/* Apple/Safari Link Renk Düzeltmesi */
a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: inherit;
}

/* Safari için özel ayarlar */
@supports (-webkit-touch-callout: none) {
    a {
        color: inherit;
        -webkit-appearance: none;
    }
}

/* iOS Safari için tel ve email linkleri */
a[href^="tel"],
a[href^="mailto"] {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.phone-item {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
}

.contact-buttons {
    color: white;
    gap: 8px;
}

.contact-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
}