/* ============================================
   BİAN MİMARLIK - Responsive Styles
   ============================================ */

/* Tablet Styles */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    /* Navigation */
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-xl);
        gap: var(--spacing-lg);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm) var(--spacing-lg);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* About */
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-card {
        min-height: 300px;
    }
    
    .projects-filter {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .filter-btn {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Chatbot */
    .chatbot-container {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    .chatbot-window {
        width: calc(100vw - 2rem);
        height: calc(100vh - 100px);
        max-height: 80vh;
        bottom: 70px;
        right: 1rem;
        left: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .hero {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    .service-card,
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .about-content {
        gap: var(--spacing-lg);
    }
    
    .stats {
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    .projects-filter {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .footer-content {
        gap: var(--spacing-lg);
    }
    
    /* Chatbot Mobile */
    .chatbot-container {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    .chatbot-window {
        width: calc(100vw - 2rem);
        height: calc(100vh - 100px);
        max-height: 80vh;
        bottom: 70px;
        right: 0;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .menu-toggle,
    .scroll-indicator,
    .contact-form,
    .footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

