/* ========================================
   KORTEX & PRODEX - RESPONSIVE STYLES
   ======================================== */

/* ========== DESKTOP & LARGE SCREENS ========== */
/* Desktop: Hide mobile menu elements completely */
@media (min-width: 992px) {
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text-section {
        padding: 2.5rem 2rem;
        min-height: 350px;
    }
}

/* ========== TABLET STYLES ========== */
@media (max-width: 991px) {
    /* Navigation */
    .navbar {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        padding: 0.8rem 1.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-modern {
        padding: 2rem 0;
        padding-top: 140px;
    }
    
    .hero-image-section {
        order: -1;
        padding: 1.5rem;
    }
    
    .hero-text-section {
        padding: 2rem 1.5rem;
        min-height: auto;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* Mobile header alignment fix */
    .navbar .container-fluid {
        align-items: center !important;
        justify-content: space-between !important;
        height: 60px !important;
        min-height: 60px !important;
        padding: 8px 40px !important;
    }
    
    .navbar-brand {
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-menu-toggle {
        height: auto !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }
    
    .mobile-menu-text {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        font-size: 14px !important;
    }
    
    .mobile-menu-toggle .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        filter: brightness(0.75) !important;
    }
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
    /* Body Padding */
    body {
        padding-top: 0px !important;
    }
    
    /* Navigation */
    .navbar {
        left: 5px;
        right: 5px;
        width: calc(100% - 10px);
        padding: 0.5rem 1rem;
        border-radius: 50px;
        margin-top: 5px;
        height: 60px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 30px;
    }
    
    .hero-text-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-image-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-image-section img {
        max-height: 300px;
    }
    
    .hero-section {
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-modern {
        padding-top: 140px;
    }
    
    .hero-stat-card {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .hero-stat-number {
        font-size: 1.3rem;
    }
    
    /* Integration Ecosystem */
    .integration-ecosystem {
        width: 300px;
        height: 300px;
    }
    
    .system-hub {
        width: 60px;
        height: 60px;
    }
    
    .system-hub i {
        font-size: 1.2rem;
    }
    
    .system-hub span {
        font-size: 0.6rem;
    }
    
    .system-node {
        width: 50px;
        height: 50px;
    }
    
    .system-node i {
        font-size: 1rem;
    }
    
    .system-node span {
        font-size: 0.5rem;
    }

    /* Feature Cards */
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Hide decorative elements */
    .tech-grid,
    .particles {
        display: none;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 0;
    }
    
    .footer-section {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }
    
    .footer-bottom-content .row {
        text-align: center;
    }
}

/* ========== SMALL MOBILE STYLES ========== */
@media (max-width: 576px) {
    /* Button Layout */
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        align-items: stretch;
    }
    
    /* Mobile order: "Keşfet" first, "Contact" second */
    .hero-buttons .btn:first-child {
        order: 2; /* Contact button goes second */
        margin: 0;
    }
    
    .hero-buttons .btn:last-child {
        order: 1; /* Learn More (Keşfet) button goes first */
        margin: 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
        flex: none;
        min-width: auto;
        max-width: none;
    }
    
    /* Navigation */
    .navbar {
        border-radius: 40px;
        height: 55px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        border-radius: 25px;
    }
    
    .hero-text-section {
        padding: 1.5rem;
    }
    
    .hero-image-section {
        padding: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-stat-card {
        min-width: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer-section {
        padding: 15px 12px;
    }
    
    .footer-brand {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
        font-size: 0.95rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        padding: 10px;
    }
    
    .contact-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* ========== EXTRA SMALL MOBILE ========== */
@media (max-width: 480px) {
    .navbar {
        left: 3px;
        right: 3px;
        width: calc(100% - 6px);
        height: 50px;
        border-radius: 35px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1.2rem;
        border-radius: 20px;
    }
    
    .feature-card {
        padding: 1.5rem;
        border-radius: 25px;
    }
    
    .footer-section {
        padding: 12px 10px;
        border-radius: 12px;
    }
}

/* ========== MOBILE MENU RESPONSIVE ========== */
@media (max-width: 991px) {
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 9999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
    
    .mobile-menu.show {
        display: flex;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--text-primary);
        cursor: pointer;
    }
    
    .mobile-menu .nav-link {
        font-size: 1.5rem;
        margin: 1rem 0;
        color: var(--text-primary);
        text-decoration: none;
        transition: var(--transition);
    }
    
    .mobile-menu .nav-link:hover {
        color: var(--kortex-primary);
        transform: translateY(-2px);
    }
    
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    /* Show navbar-toggler only on mobile */
    .navbar-collapse {
        display: none !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .scroll-indicator,
    .mobile-menu {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0 !important;
        min-height: auto !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .liquid-glass,
    .feature-card,
    .hero-content,
    .footer-section {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
