/**
 * Nova Yapı İnşaat - Responsive Stil Dosyası
 * Ek responsive düzenlemeler
 */

/* ============================================
   MOBİL ÖZEL DÜZENLEMELER
   ============================================ */
/* ============================================
   MOBİL ÖZEL DÜZENLEMELER
   ============================================ */
@media (max-width: 767px) {

    /* General Container */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

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

    /* Header Mobile Adjustments */
    .header-top {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }

    .header-cta {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .header-main-inner {
        height: 70px !important;
    }

    .logo-text {
        font-size: 1.5rem !important;
    }

    .logo-tagline {
        font-size: 0.5rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 0.875rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 1rem !important;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem !important;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Grids to Single Column */
    .stats-grid,
    .services-grid,
    .projects-grid,
    .blog-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Stats Section */
    .stats-grid {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

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

    /* Cards */
    .service-card,
    .project-card,
    .blog-card {
        margin: 0;
        width: 100% !important;
    }

    /* Project Card Specifics */
    .project-image {
        height: 250px;
        /* Smaller height for mobile */
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-overlay {
        padding: 1.5rem;
    }

    .project-status {
        top: 1rem;
        right: 1rem;
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-image-wrapper {
        height: 200px;
    }

    .service-icon-wrapper {
        margin-top: -25px;
        width: 50px;
        height: 50px;
    }

    .service-icon-wrapper i {
        font-size: 1.25rem;
    }

    /* About Section */
    .about-image {
        margin-bottom: 2rem;
    }

    .about-image-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -2rem;
        margin-left: auto;
        margin-right: auto;
        width: max-content;
        transform: none;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.75rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Page Header */
    .page-header {
        padding: 7rem 0 3rem;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    /* Forms */
    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Mobile Menu */
    .mobile-nav-inner {
        padding-top: 6rem;
    }
}

/* ============================================
   TABLET DÜZENLEMELERİ
   ============================================ */
@media (min-width: 640px) and (max-width: 1023px) {

    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }

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

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about {
        grid-column: span 2;
    }
}

/* ============================================
   MOBİL YATAY MOD
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .mobile-nav {
        padding-top: 4rem;
    }

    .mobile-nav-inner {
        padding-top: 4rem;
    }

    .mobile-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mobile-nav-menu li {
        width: calc(50% - 0.25rem);
    }

    .mobile-nav-menu a {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   BÜYÜK EKRAN DÜZENLEMELERİ
   ============================================ */
@media (min-width: 1440px) {
    :root {
        --container-max-width: 1400px;
    }

    .section {
        padding: 6rem 0;
    }

    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1920px) {
    :root {
        --container-max-width: 1600px;
    }

    .section {
        padding: 8rem 0;
    }
}

/* ============================================
   DARK MODE DESTEĞİ (İLERİDE KULLANILABİLİR)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Şu an için kullanılmıyor, ileride eklenebilir */
}

/* ============================================
   REDUCED MOTION DESTEĞİ
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    #preloader {
        display: none;
    }

    .whatsapp-pulse {
        animation: none;
    }
}

/* ============================================
   YAZDIRMA STİLLERİ
   ============================================ */
@media print {

    .header,
    .footer,
    .whatsapp-float,
    .scroll-to-top,
    .hero-dots,
    .mobile-menu-toggle,
    .mobile-nav,
    .header-cta {
        display: none !important;
    }

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

    .hero-overlay {
        background: none;
    }

    .hero-content {
        color: #000;
        padding: 0;
    }

    .hero-title,
    .hero-description {
        color: #000;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
    }
}

/* ============================================
   SAFARI ÖZEL DÜZENLEMELERİ
   ============================================ */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .header-main {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
}

/* ============================================
   IE11 DESTEĞİ (FLEXBOX FALLBACK)
   ============================================ */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {

    .services-grid,
    .projects-grid,
    .blog-grid,
    .stats-grid,
    .footer-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .service-card,
    .project-card,
    .blog-card,
    .stat-item,
    .footer-col {
        width: 100%;
        margin-bottom: 2rem;
    }

    @media (min-width: 640px) {

        .service-card,
        .project-card,
        .blog-card,
        .stat-item {
            width: calc(50% - 1rem);
            margin-right: 1rem;
        }
    }

    @media (min-width: 1024px) {
        .service-card {
            width: calc(25% - 1.5rem);
        }

        .project-card,
        .blog-card {
            width: calc(33.333% - 1.333rem);
        }
    }
}