/* ============================================
   Responsive Design - Media Queries
   ============================================ */

/* Hero Mobile Products - Hidden on Desktop */
.hero-mobile-products {
    display: none;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {

    /* Header & Navigation for Tablets */
    .header-container {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .header-spacer {
        height: 90px;
    }

    .logo img {
        height: 60px;
        margin-right: var(--spacing-xs);
    }

    .nav {
        gap: var(--spacing-xs);
    }

    .nav-list {
        gap: var(--spacing-xs);
    }

    .nav-link {
        padding: var(--spacing-xs) var(--spacing-xs);
        font-size: 0.875rem;
    }

    .whatsapp-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }

    .whatsapp-btn .whatsapp-icon {
        width: 18px;
        height: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .popular-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-layout-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content-wrapper {
        text-align: left;
    }

    .hero-content-wrapper .hero-title {
        text-align: left;
    }

    .hero-content-wrapper .hero-description {
        text-align: left;
    }

    .hero-content-wrapper .hero-actions {
        justify-content: flex-start;
    }

    .hero-products-grid {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-sm);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(66, 153, 225, 0.5) transparent;
        padding-bottom: var(--spacing-xs);
    }

    .hero-products-grid::-webkit-scrollbar {
        height: 6px;
    }

    .hero-products-grid::-webkit-scrollbar-track {
        background: rgba(26, 32, 44, 0.3);
        border-radius: 10px;
    }

    .hero-products-grid::-webkit-scrollbar-thumb {
        background: rgba(66, 153, 225, 0.5);
        border-radius: 10px;
    }

    .hero-product-card-square {
        flex: 0 0 auto;
        width: 220px;
        min-width: 220px;
        scroll-snap-align: start;
    }

    .hero-product-card-square:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .hero-product-card-square:hover::before {
        opacity: 0 !important;
    }

    .hero-product-card-square:hover .hero-product-image-square img {
        transform: none !important;
    }

    .hero-product-card-square:hover .hero-product-title-square {
        color: var(--color-text-primary) !important;
    }

    .hero-mobile-products {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .references-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .reference-logo {
        max-width: 100%;
        height: 100px;
        padding: var(--spacing-md);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    /* Header & Navigation */
    .header-container {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
        min-height: 90px;
        align-items: center;
    }

    .logo {
        font-size: 1.25rem;
        padding: var(--spacing-xs);
        flex-shrink: 0;
    }

    .logo img {
        height: 60px;
        margin-right: var(--spacing-xs);
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        line-height: 1;
        margin: 0;
    }

    .menu-toggle span {
        line-height: 1;
        display: block;
        margin: 0;
        padding: 0;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(26, 32, 44, 0.99) 0%, rgba(45, 55, 72, 0.97) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(66, 153, 225, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        flex: none !important;
    }

    .nav.active {
        max-height: 600px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-md);
        gap: 0;
        width: 100%;
    }

    .whatsapp-btn {
        margin: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
        width: calc(100% - var(--spacing-lg));
        justify-content: center;
        order: -1;
        align-self: center;
    }

    .whatsapp-number {
        display: none;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }

    .nav-item {
        border-bottom: 1px solid rgba(66, 153, 225, 0.1);
        width: 100%;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: var(--spacing-md);
        display: block;
        width: 100%;
        text-align: left;
        border-radius: var(--radius-sm);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link::before {
        opacity: 0;
    }

    .nav-link:hover {
        transform: translateX(5px);
        background: linear-gradient(135deg, rgba(66, 153, 225, 0.2) 0%, rgba(246, 173, 85, 0.15) 100%);
    }

    .nav-link:hover::before {
        opacity: 1;
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(66, 153, 225, 0.25) 0%, rgba(246, 173, 85, 0.2) 100%);
    }

    /* Hero */
    .hero {
        padding: calc(var(--spacing-xl) + 20px) 0 var(--spacing-xl);
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-layout-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-content-wrapper {
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }

    .hero-content-wrapper .hero-title {
        text-align: center;
    }

    .hero-content-wrapper .hero-description {
        text-align: center;
    }

    .hero-content-wrapper .hero-actions {
        justify-content: center;
    }

    .hero-products-grid {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-sm);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(66, 153, 225, 0.5) transparent;
        padding-bottom: var(--spacing-xs);
    }

    .hero-products-grid::-webkit-scrollbar {
        height: 6px;
    }

    .hero-products-grid::-webkit-scrollbar-track {
        background: rgba(26, 32, 44, 0.3);
        border-radius: 10px;
    }

    .hero-products-grid::-webkit-scrollbar-thumb {
        background: rgba(66, 153, 225, 0.5);
        border-radius: 10px;
    }

    .hero-products-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(66, 153, 225, 0.7);
    }

    .hero-product-card-square {
        flex: 0 0 auto;
        width: 200px;
        min-width: 200px;
        scroll-snap-align: start;
        padding: var(--spacing-sm);
        min-height: 120px;
    }

    .hero-product-card-square:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .hero-product-card-square:hover::before {
        opacity: 0 !important;
    }

    .hero-product-card-square:hover .hero-product-image-square img {
        transform: none !important;
    }

    .hero-product-card-square:hover .hero-product-title-square {
        color: var(--color-text-primary) !important;
    }

    .hero-product-image-square {
        min-height: 60px;
    }

    .hero-product-title-square {
        font-size: 0.75rem;
    }

    .hero-product-card {
        max-width: 100%;
    }

    .hero-side-products {
        display: none;
    }

    .hero-content {
        order: 1;
    }

    .hero-mobile-products {
        display: none;
    }

    .hero-mobile-products .hero-product-card {
        margin: 0;
        max-width: 100%;
    }

    .hero-mobile-products .hero-product-image {
        height: 60px;
    }

    .hero-mobile-products .hero-product-title {
        font-size: 0.7rem;
    }

    .projects-hero {
        min-height: auto;
        padding: 2rem 0 1.5rem;
    }

    .projects-hero-title {
        font-size: 2.5rem !important;
    }

    .projects-hero-description {
        font-size: 1rem;
    }

    .projects-filter-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: var(--spacing-md);
    }

    .hero-title-main {
        font-size: 2.25rem !important;
    }

    .hero-title-sub {
        font-size: 1.25rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .projects-hero {
        min-height: auto;
        padding: 1.5rem 0 1rem;
    }

    .projects-hero-title {
        font-size: 2rem !important;
    }

    .projects-hero-description {
        font-size: 0.95rem;
    }

    .projects-filter-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: var(--spacing-md);
    }

    .project-company {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }

    .section-title {
        font-size: 2rem !important;
    }

    /* Grid Systems */
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .popular-products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    /* Header Spacer - Mobilde daha küçük */
    .header-spacer {
        height: 70px !important;
    }

    /* Header adjustments */
    .header {
        border-bottom: 1px solid rgba(66, 153, 225, 0.2);
    }

    .header-container {
        min-height: 70px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    /* Modal */
    .modal-content {
        max-width: 100%;
        margin: var(--spacing-sm);
    }

    /* Contact Page Grid */
    .main-content>.section>.container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .map-container {
        height: 400px;
        margin-bottom: var(--spacing-lg);
    }

    .contact-whatsapp-btn {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .contact-whatsapp-text {
        font-size: 1rem;
    }

    .search-grid {
        grid-template-columns: 1fr !important;
    }

    .search-grid .btn {
        width: 100%;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    .header-container {
        padding: var(--spacing-sm);
    }
}

/* Mobile (max-width: 767px) - 3x2 Grid */
@media (max-width: 767px) {
    .hero-mobile-products {
        display: none;
    }

    .hero-products-grid {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-xs);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(66, 153, 225, 0.5) transparent;
        padding-bottom: var(--spacing-xs);
    }

    .hero-products-grid::-webkit-scrollbar {
        height: 4px;
    }

    .hero-products-grid::-webkit-scrollbar-track {
        background: rgba(26, 32, 44, 0.3);
        border-radius: 10px;
    }

    .hero-products-grid::-webkit-scrollbar-thumb {
        background: rgba(66, 153, 225, 0.5);
        border-radius: 10px;
    }

    .hero-product-card-square {
        flex: 0 0 auto;
        width: 180px;
        min-width: 180px;
        scroll-snap-align: start;
        padding: var(--spacing-xs);
        min-height: 100px;
    }

    .hero-product-card-square:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .hero-product-card-square:hover::before {
        opacity: 0 !important;
    }

    .hero-product-card-square:hover .hero-product-image-square img {
        transform: none !important;
    }

    .hero-product-card-square:hover .hero-product-title-square {
        color: var(--color-text-primary) !important;
    }

    .hero-product-image-square {
        min-height: 50px;
    }

    .hero-product-title-square {
        font-size: 0.7rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 40px;
    }

    .hero-title-main {
        font-size: 1.75rem !important;
    }

    .hero-title-sub {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .product-card-image {
        height: 200px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .hero-mobile-products {
        display: none;
    }

    .hero-product-card-square:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .hero-product-card-square:hover::before {
        opacity: 0 !important;
    }

    .hero-product-card-square:hover .hero-product-image-square img {
        transform: none !important;
    }

    .hero-product-card-square:hover .hero-product-title-square {
        color: var(--color-text-primary) !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .reference-logo {
        height: 90px;
        padding: var(--spacing-sm);
    }

    .cta-title {
        font-size: 2rem !important;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   Hakkımızda Sayfası Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .about-hero-title {
        font-size: 2.5rem;
    }

    .about-hero-description {
        font-size: 1.125rem;
    }

    .mission-vision-grid {
        gap: var(--spacing-lg);
    }

    .values-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-company-card {
        padding: var(--spacing-xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-hero {
        min-height: 300px;
        padding: var(--spacing-2xl) 0;
    }

    .about-hero-title {
        font-size: 2rem;
    }

    .about-hero-description {
        font-size: 1rem;
    }

    .about-company-card {
        padding: var(--spacing-lg);
    }

    .about-company-title {
        font-size: 2rem;
    }

    .about-company-text {
        font-size: 1rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .mission-vision-card {
        padding: var(--spacing-lg);
    }

    .mission-vision-title {
        font-size: 1.75rem;
    }

    .mission-vision-text {
        font-size: 1rem;
    }

    .values-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .value-card,
    .service-card {
        padding: var(--spacing-md);
    }

    .value-title,
    .service-title {
        font-size: 1.25rem;
    }

    .value-text,
    .service-text {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .about-hero {
        min-height: 250px;
        padding: var(--spacing-xl) 0;
    }

    .about-hero-title {
        font-size: 1.75rem;
    }

    .about-hero-description {
        font-size: 0.9rem;
    }

    .about-company-card {
        padding: var(--spacing-md);
    }

    .about-company-icon {
        width: 60px;
        height: 60px;
    }

    .about-company-icon svg {
        width: 30px;
        height: 30px;
    }

    .about-company-title {
        font-size: 1.75rem;
    }

    .mission-vision-card {
        padding: var(--spacing-md);
    }

    .mission-vision-icon {
        width: 60px;
        height: 60px;
    }

    .mission-vision-icon svg {
        width: 28px;
        height: 28px;
    }

    .mission-vision-title {
        font-size: 1.5rem;
    }

    .values-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .value-icon,
    .service-icon {
        width: 50px;
        height: 50px;
    }

    .value-icon svg,
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
}