/* ==========================================
   Responsive Design
   ========================================== */

/* Large Tablets */
@media screen and (max-width: 1024px) {
    .mat-overview-grid {
        grid-template-columns: 1fr;
    }

    .mat-advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mat-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mat-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-machines-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-machines-gallery {
        align-items: center;
    }

    .machines-figure-main {
        max-width: 320px;
    }

    .machines-figure-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .machines-figure-side {
        height: auto;
        max-width: 50%;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-feed {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 2rem;
    }

    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .blog-article-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .blog-article-sidebar-section {
        flex: 1 1 280px;
    }

    /* Header & Navigation */
    .header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        padding: 0.65rem 0;
        background: transparent;
    }

    .navbar {
        gap: 0.75rem;
    }

    .btn-header {
        display: none;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(9, 16, 24, 0.25);
        backdrop-filter: blur(10px);
        margin-left: auto;
        cursor: pointer;
        transition: border-color 0.3s ease, background-color 0.3s ease;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .hamburger:hover {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(9, 16, 24, 0.35);
    }

    .nav-menu {
        flex: none;
        position: fixed;
        inset: 0;
        padding: 2rem clamp(1.5rem, 5vw, 3rem);
        padding-top: clamp(4rem, 12vw, 5.5rem);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: rgba(10, 17, 26, 0.96);
        backdrop-filter: blur(16px);
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        height: 100vh;
        overscroll-behavior: contain;
        z-index: 1150;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-menu > li {
        width: 100%;
        list-style: none;
    }

    .nav-menu > li > a {
        color: rgba(244, 247, 250, 0.95) !important;
        font-size: 1.25rem;
        letter-spacing: 0.12em;
        padding: 0.65rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li > a:focus {
        color: var(--primary-color) !important;
    }

    .nav-menu .dropdown > a::after {
        content: '\u203A';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1rem;
        display: none;
    }

    .nav-menu .dropdown-menu {
        width: 100%;
        padding: 0.35rem 0 0.75rem 1.35rem;
        margin-top: 0.35rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
    }

    .nav-menu .dropdown-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu .dropdown-menu li a {
        color: #ffffff !important;
        font-size: 1.05rem;
        padding: 0.4rem 0;
        letter-spacing: 0.06em;
        display: block;
    }

    .nav-menu .dropdown-menu a {
        color: #ffffff !important;
    }

    .nav-menu .dropdown-menu .dropdown > a {
        color: #ffffff !important;
    }

    .nav-menu .dropdown-menu a:hover,
    .nav-menu .dropdown-menu a:focus {
        color: var(--primary-color) !important;
    }

    .nav-menu .dropdown-menu .dropdown-menu {
        padding-left: 1.35rem;
        margin-top: 0.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-mobile-close {
        margin-bottom: 1.5rem;
        position: sticky;
        top: 0;
        padding-bottom: 0.5rem;
        background: rgba(10, 17, 26, 0.96);
        z-index: 5;
    }

    .nav-mobile-social {
        width: 100%;
        margin-top: auto;
        padding-top: 2rem;
    }

    .nav-mobile-cta {
        width: 100%;
        padding-top: 1.25rem;
    }

    .nav-mobile-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-social-links a {
        color: #ffffff;
    }

    .mobile-social-links a:hover {
        color: var(--primary-color);
    }

    .process-grid {
        gap: 1.25rem;
    }

    .process-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 1.6rem 1.4rem;
    }

    .nav-menu .dropdown-menu,
    .nav-menu .dropdown-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1.35rem;
        display: none;
    }
    
    .nav-menu .dropdown.open > .dropdown-menu {
        display: block;
        margin-top: 0.35rem;
    }
    
    .nav-menu .dropdown-menu .dropdown.open > .dropdown-menu {
        display: block;
        padding-left: 1.35rem;
    }
    
    .nav-menu .dropdown > a {
        position: relative;
        padding-right: 1.5rem;
    }
    
    .nav-menu .dropdown > a::after {
        display: none;
    }
    
    .nav-menu .dropdown-menu li a {
        color: #ffffff !important;
        font-size: 1.05rem;
        padding: 0.4rem 0;
        font-family: var(--font-heading);
        letter-spacing: 0.06em;
        text-transform: none;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -5px);
    }
    
    .nav-mobile-close,
    .nav-mobile-social,
    .nav-mobile-cta {
        display: block;
    }
    
    .nav-mobile-close {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .nav-close-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        background-color: #ffffff;
        color: #1c1f21;
        font-size: 1.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .nav-close-btn:hover {
        border-color: rgba(0, 0, 0, 0.35);
        transform: translateY(-1px);
    }
    
    .nav-mobile-social {
        margin-top: auto;
        padding-top: 1.5rem;
    }
    
    .nav-mobile-cta {
        width: 100%;
        padding-top: 1.5rem;
    }
    
    .nav-mobile-btn {
        width: 100%;
        text-align: center;
        font-family: var(--font-heading);
        letter-spacing: 0.14em;
        padding: 0.85rem 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 0;
        min-height: 500px;
        text-align: left;
    }
    
    .hero h1 {
        font-size: 4rem;
        letter-spacing: 1px;
    }
    
    .hero h1.hero-title-slider {
        font-size: 4rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    /* Hero Section with Slider */
    .hero.hero-with-slider {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-slider-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero-slider-slide img {
        object-position: center center !important;
        object-fit: cover;
    }
    
    .hero-slider-dots {
        bottom: 30px;
        gap: 10px;
    }
    
    .hero-slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-slider-dot.active {
        width: 24px;
        height: 8px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    /* Subpage Hero */
    .subpage-hero {
        padding: 6rem 0 4rem;
        text-align: center;
    }

    .subpage-hero h1 {
        font-size: 2.4rem;
        letter-spacing: 0.12em;
    }

    .subpage-hero p {
        margin: 0 auto 2rem;
    }

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

    /* Beton Silim Slider (standalone) */
    .slider-slide {
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .slider-slide img {
        object-position: center center !important;
        object-fit: cover;
        width: 100%;
        height: 100%;
        margin: 0 auto;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    /* Mat Beton Parlatma */
    .mat-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .mat-stat {
        width: calc(50% - 1rem);
    }

    .mat-advantages-grid {
        grid-template-columns: 1fr;
    }

    .mat-advantage-card {
        text-align: center;
    }

    .mat-advantage-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .mat-cta .container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mat-cta-actions {
        justify-content: center;
        width: 100%;
    }

    .mat-cta .btn-outline,
    .mat-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .mat-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mat-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mat-intro-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .mat-intro-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .mat-intro-note {
        text-align: center;
        width: 100%;
    }

    /* Solutions Section */
    .solutions-title {
        font-size: 2.3rem;
    }
    
    .divider-line {
        width: 100px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .solutions-grid-single {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .solution-card {
        height: 350px;
    }
    
    .solution-content h3 {
        font-size: 1.5rem;
    }

    /* Company Highlight */
    .company-highlight {
        padding: 4rem 0;
    }
    
    .company-highlight-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 2.25rem;
        gap: 2.5rem;
        text-align: center;
    }
    
    .company-highlight-text {
        align-items: center;
        text-align: center;
    }
    
    .highlight-cta {
        margin-inline: auto;
    }
    
    .company-highlight-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    .highlight-stats {
        flex-direction: row;
        width: 100%;
        gap: 1.5rem;
        justify-content: space-between;
        text-align: center;
    }
    
    .highlight-stat {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        flex: 1;
    }
    
    .highlight-stat-value {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }
    
    .highlight-stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.18em;
    }
    
    .mat-steps-track {
        gap: 1.25rem;
    }
    
    .mat-step-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
    
    /* About Section */
    .layout-row {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-box {
        width: 100%;
        min-height: 150px;
        padding: 40px 30px;
        align-self: flex-start;
        text-align: left;
    }
    
    .stat-box > * {
        text-align: left;
    }
    
    .stat-number {
        font-size: 110px;
    }
    
    .content-box {
        width: 100%;
    }
    
    .content-title {
        font-size: 52px;
        line-height: 1;
    }
    
    .content-text {
        font-size: 15px;
    }
    
    .layout-inner {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Choose Us */
    .why-choose-title-banner {
        margin-bottom: 2rem;
    }
    
    .why-choose-title-banner h2 {
        font-size: 1.2rem;
        padding: 10px 25px;
    }
    
    .layout-row.why-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .why-feature-card {
        padding: 25px 15px;
        gap: 12px;
    }
    
    .why-feature-title {
        font-size: 1.2rem;
    }
    
    .why-feature-text p {
        font-size: 0.9rem;
    }
    
    .why-icon.why-feature-icon {
        padding-top: 10px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .why-icon.why-feature-icon svg {
        width: 50px;
        height: 50px;
    }
    
    /* Color Palette */
    .color-palette-container {
        gap: 1.5rem;
    }
    
    .color-main-image {
        border-radius: 10px;
        aspect-ratio: 4/3;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }
    
    .color-swatches {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.75rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        justify-items: center;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
        min-width: 0;
        border-radius: 6px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        text-align: left;
    }
    
    .color-swatch.active::after {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: 3px;
        right: 3px;
    }
    
    @media screen and (max-width: 480px) {
        .color-swatches {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.5rem;
        }
        
        .color-swatch {
            width: 40px;
            height: 40px;
        }
        
        .color-swatch.active::after {
            width: 14px;
            height: 14px;
            font-size: 9px;
        }
        
        .company-highlight-card {
            padding: 2rem 1.5rem;
        }

        .company-highlight-stats {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
            align-items: stretch;
        }

        .company-highlight-text {
            align-items: center;
        }
        
        .process-card {
            padding: 1.5rem 1.3rem;
        }

        .highlight-stats {
            flex-direction: row;
            gap: 1rem;
            justify-content: center;
            align-items: stretch;
        }
        
        .highlight-stat-value {
            font-size: 2.3rem;
        }
        
        .highlight-cta {
            font-size: 0.95rem;
        }
        
        .mat-step-card {
            flex: 0 0 calc((100% - 1.25rem) / 2);
        }

        .mat-stats {
            flex-direction: column;
        }

        .mat-stat {
            width: 100%;
        }

        .mat-process-grid,
        .mat-gallery-grid {
            grid-template-columns: 1fr;
        }
        
        .layout-row.why-feature-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        
        .why-feature-card {
            padding: 20px 12px;
        }
    }
    
    /* References Carousel */
    .carousel-slide {
        min-width: 50% !important;
        width: 50% !important;
        height: 280px;
        overflow: hidden;
    }
    
    .carousel-slide img {
        object-position: center center !important;
        object-fit: cover;
    }
    
    /* Tablet (481px - 768px) için 2 sütun */
    @media screen and (min-width: 481px) and (max-width: 768px) {
        .carousel-slide {
            min-width: 50% !important;
            width: 50% !important;
        }
    }
    
    .reference-logo {
        padding: 20px 18px;
        max-width: 100%;
    }
    
    .reference-logo img {
        max-width: 100%;
        max-height: 120px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    @media screen and (max-width: 480px) {
        .carousel-slide {
            min-width: 100% !important;
            width: 100% !important;
            height: 240px;
            overflow: hidden;
        }
        
        .carousel-slide img {
            object-position: center center !important;
            object-fit: cover;
        }
        
        .reference-logo {
            padding: 18px 14px;
            max-width: 100%;
        }
        
        .reference-logo img {
            max-width: 100%;
            max-height: 100px;
        }
        
        .certificates-strip {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        
        .certificate-card {
            max-width: 100%;
            padding: 1rem;
        }
    }
    
    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1.5rem 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map iframe {
        height: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

    @media screen and (max-width: 480px) {
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .about-section .container {
        padding: 40px 15px;
    }
    
    .stat-number {
        font-size: 60px;
    }
    
    .stat-text {
        font-size: 14px;
    }
    
    .content-title {
        font-size: 24px;
    }
}

/* Tablet Landscape */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .layout-row {
        width: 100%;
    }
    
    .stat-box {
        width: 33.3333%;
        min-height: 400px;
    }
    
    .stat-number {
        font-size: 100px;
    }
    
    .content-box {
        width: 66.6666%;
    }
    
    .content-title {
        font-size: 36px;
    }
    
    /* Why Choose Us - Tablet */
    .why-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .why-feature-card {
        padding: 25px 15px;
    }
    
    .why-feature-title {
        font-size: 1.2rem;
    }
    
    .why-choose-title-banner h2 {
        font-size: 1.3rem;
        padding: 10px 30px;
    }
    
    .company-highlight-content {
        gap: 3rem;
    }
    
    .highlight-stats {
        gap: 2rem;
    }
    
    .highlight-stat-value {
        font-size: 3.1rem;
    }
    
    .mat-step-card {
        flex: 0 0 calc((100% - 3.5rem) / 4);
    }
    
    .certificates-strip {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
        gap: 1.25rem;
    }
    
    .certificate-card {
        max-width: 160px;
        padding: 1.1rem;
    }
    
    /* References Carousel - Tablet Landscape */
    .carousel-slide {
        min-width: 33.3333% !important;
        width: 33.3333% !important;
    }
}

@media screen and (max-width: 1024px) {
     .references-grid {
        gap: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .reference-card {
        padding: 1.6rem 1.2rem;
    }

    .reference-card-gallery img {
        height: 95px;
    }

    .reference-card-title {
        font-size: 1.5rem;
    }

    .reference-card-logo img {
        max-height: 60px;
    }
}

@media screen and (max-width: 600px) {
    .references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .reference-card-gallery img {
        height: 80px;
    }

    .reference-card-title {
        font-size: 1.35rem;
    }

    .blog-category-list {
        flex-direction: column;
        gap: 0.6rem;
    }

    .blog-category {
        width: 100%;
        display: inline-flex;
        justify-content: center;
    }

    .blog-feed {
        grid-template-columns: 1fr;
    }

    .blog-card-body {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 640px) {
    .mat-steps-track {
        gap: 1rem;
    }
    
    .mat-step-card {
        flex: 0 0 100%;
    }
}

/* Large Screens */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .btn {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

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

