/**
 * Reklab - Responsive Stiller
 * Mobil uyumlu tasarım
 */

/* =============================================
   TABLET (max 1024px)
============================================= */
@media screen and (max-width: 1024px) {
    :root {
        --fs-6xl: 3.5rem;
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
    }

    .container {
        --container-padding: 2rem;
    }

    /* Grid adjustments */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-float-card.card-1 {
        right: 0;
    }

    .hero-float-card.card-2 {
        left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .blog-grid,
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   MOBİL LANDSCAPE (max 768px)
============================================= */
@media screen and (max-width: 768px) {
    :root {
        --fs-6xl: 2.5rem;
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
        --space-5xl: 5rem;
        --space-4xl: 4rem;
    }

    /* Header - Mobile Layout */
    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo on left */
    .logo {
        order: 1;
        flex-shrink: 0;
    }

    /* CTA Button in center (mobile) */
    .nav-cta {
        order: 2;
        margin: 0 auto;
        padding: var(--space-xs) var(--space-md);
        font-size: var(--fs-sm);
    }

    /* Menu toggle on right */
    .nav-toggle {
        order: 3;
        display: flex;
        z-index: 1001;
        flex-shrink: 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--fs-lg);
        width: 100%;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Mobile menu overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-3xl));
        padding-bottom: var(--space-3xl);
    }

    .hero-float-card {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-number {
        font-size: var(--fs-4xl);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--space-xl);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* References */
    .references-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Partners */
    .partners-grid {
        gap: var(--space-2xl);
    }

    .partner-logo {
        height: 30px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* About features */
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   MOBİL PORTRAIT (max 480px)
============================================= */
@media screen and (max-width: 480px) {
    :root {
        --fs-6xl: 2rem;
        --fs-5xl: 1.75rem;
        --fs-4xl: 1.5rem;
        --container-padding: 1rem;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    /* Buttons */
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--fs-sm);
    }

    .btn-lg {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--fs-base);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: var(--space-md) var(--space-sm);
    }

    .stat-number {
        font-size: var(--fs-3xl);
    }

    .stat-label {
        font-size: var(--fs-sm);
    }

    /* Cards */
    .card,
    .service-card {
        padding: var(--space-lg);
    }

    /* References */
    .references-grid {
        grid-template-columns: 1fr;
    }

    .reference-card {
        aspect-ratio: 16/9;
    }

    /* Contact */
    .contact-form {
        padding: var(--space-lg);
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
        text-align: left;
    }

    .team-image {
        width: 80px;
        height: 80px;
        margin: 0;
    }

    /* CTA */
    .cta-title {
        font-size: var(--fs-3xl);
    }

    /* Scroll top button */
    .scroll-top {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    /* Page header */
    .page-title {
        font-size: var(--fs-3xl);
    }

    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================
   ÇOKLU SMALL MOBILE (max 360px)
============================================= */
@media screen and (max-width: 360px) {
    :root {
        --fs-6xl: 1.75rem;
        --fs-5xl: 1.5rem;
        --fs-4xl: 1.25rem;
        --fs-3xl: 1.125rem;
    }

    .logo-text {
        font-size: var(--fs-lg);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   BÜYÜK EKRANLAR (min 1400px)
============================================= */
@media screen and (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .hero-content {
        gap: var(--space-5xl);
    }
}

/* =============================================
   ÇOK BÜYÜK EKRANLAR (min 1920px)
============================================= */
@media screen and (min-width: 1920px) {
    :root {
        --container-max: 1440px;
        --fs-6xl: 5rem;
        --fs-5xl: 4rem;
    }
}

/* =============================================
   PRINT STILLER
============================================= */
@media print {

    .header,
    .footer,
    .nav-toggle,
    .scroll-top,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    a {
        text-decoration: underline;
    }
}

/* =============================================
   LANDSCAPE ORIENTATION
============================================= */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }
}

/* =============================================
   TOUCH DEVİCES
============================================= */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .card:hover,
    .service-card:hover,
    .blog-card:hover,
    .reference-card:hover {
        transform: none;
    }

    .card:active,
    .service-card:active,
    .blog-card:active {
        transform: scale(0.98);
    }

    .nav-link::after {
        display: none;
    }

    /* Show overlay on tap for reference cards */
    .reference-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    }
}

/* =============================================
   HIGH CONTRAST MODE
============================================= */
@media (prefers-contrast: high) {
    :root {
        --text-body: #000000;
        --text-muted: #333333;
        --border-color: #000000;
    }

    .btn-primary,
    .btn-gradient {
        border: 2px solid #000000;
    }
}

/* =============================================
   DARK MODE SUPPORT (Gelecek için)
============================================= */
@media (prefers-color-scheme: dark) {
    /* 
    Dark mode stiller burada eklenebilir
    Şu an için light mode kullanılıyor
    */
}