/* Responsive Styles for melihozkas.com */

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px to 1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nav-menu {
        position: static;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .mobile-cta-btn {
        display: none;
    }
}

/* Mobile Large (640px to 767px) */
@media (max-width: 767px) and (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 4px 30px rgba(0, 255, 255, 0.2);
        z-index: 1199;
    }
    
    .nav-menu.active {
        display: flex !important;
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-link { 
        color: #f9fafb; 
        font-size: 1.25rem; 
        font-weight: 500;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .nav-link:hover { 
        color: var(--primary-cyan); 
        background: rgba(0, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1201;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--primary-cyan);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background-color: var(--primary-cyan);
    }
    
    .nav-cta {
        display: none !important;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-technologies {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Technology */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Mobile Medium (480px to 639px) */
@media (max-width: 639px) and (min-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 4px 30px rgba(0, 255, 255, 0.2);
        z-index: 1199;
    }
    .nav-menu.active { 
        display: flex !important; 
        left: 0; 
    }
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }
    .nav-link {
        color: #f9fafb;
        font-size: 1.15rem;
        font-weight: 500;
        padding: 0.7rem 1.25rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .nav-link:hover {
        color: var(--primary-cyan);
        background: rgba(0, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    .nav-toggle { display: flex; z-index: 1201; }
    .nav-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background-color: var(--primary-cyan); }
    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); background-color: var(--primary-cyan); }
    .nav-cta { display: none; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tech-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Mobile Small (320px to 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 1.5rem 0.5rem;
    }
    
    .tech-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Services */
    .services-section {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
    
    /* Technology */
    .tech-section {
        padding: 3rem 0;
    }
    
    .tech-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 1rem;
    }
    
    .close {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
    
    /* Form */
    input, select, textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .mobile-sticky-cta { 
        display: flex;
        bottom: 20px;
        left: 16px;
        right: 16px;
    }
    
    /* Responsive Improvements */
    .section-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-text {
        font-size: 1.25rem;
    }
    
    .nav-menu { top: 70px; height: calc(100vh - 70px); padding-top: 2rem; }
    .nav-toggle { display: flex; z-index: 1201; }
    .nav-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background-color: var(--primary-cyan); }
    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); background-color: var(--primary-cyan); }
    .nav-cta { display: none; }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }
    
    .hero-container {
        padding: 1rem;
    }
    
    .tech-stack-visual {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .tech-node {
        width: 60px;
        height: 60px;
    }
    
    .node-label {
        font-size: 0.7rem;
        bottom: -25px;
    }
    
    .tech-connection {
        display: none;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .packages-grid, .projects-grid, .faq-grid, .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer {
        padding-bottom: 4rem;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .tech-badge {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .modal-content {
        padding: 0.75rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-technologies {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('../images/hero-bg@2x.jpg');
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .btn,
    .modal,
    .whatsapp-btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-overlay {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #374151;
    }
    
    .header {
        background-color: rgba(31, 41, 55, 0.95);
    }
    
    .service-card {
        background-color: #374151;
        color: var(--text-primary);
    }
    
    .modal-content {
        background-color: #374151;
        color: var(--text-primary);
    }
    
    input, select, textarea {
        background-color: #4b5563;
        color: var(--text-primary);
        border-color: #6b7280;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}