/* Responsive CSS Dosyası */

.nav-logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

/* Header sabit olduğu için body'ye boşluk veriyoruz */
body {
    padding-top: 90px; 
}


/* Tablet Boyut (768px ve altı) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Tipografi */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    
    /* Bölümler */
    .services,
    .projects,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    /* Hizmetler */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Projeler */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .project-card {
        height: 250px;
    }
    
    /* Hakkımızda */
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* İletişim */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    

}

/* Telefon Boyut (480px ve altı) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Tipografi */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-brand .logo {
        font-size: 1.3rem;
    }
    
    .nav-brand .logo i {
        font-size: 1.5rem;
    }
    
    /* Bölümler */
    .services,
    .projects,
    .about,
    .contact {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Hizmetler */
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    /* Projeler */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        height: 200px;
    }
    
    .project-overlay {
        padding: 1rem;
    }
    
    .project-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Hakkımızda */
    .about-text p {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* İletişim */
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    

}

/* Çok Küçük Ekranlar (360px ve altı) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    /* Tipografi */
    h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Header */
    .nav-brand .logo {
        font-size: 1.2rem;
    }
    
    /* Bölümler */
    .services,
    .projects,
    .about,
    .contact {
        padding: 30px 0;
    }
    
    /* Hizmetler */
    .service-card {
        padding: 1rem;
    }
    
    /* İletişim */
    .contact-form {
        padding: 0.8rem;
    }
    
    /* Footer */
    .footer-content {
        gap: 0.8rem;
    }
    
    /* Stats */
    .stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.5);
        border-radius: var(--border-radius);
    }
}



/* Büyük Ekranlar (1200px ve üstü) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 30px;
    }
    
    /* Hizmetler */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Projeler */
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Slider */
    .slide-title {
        font-size: 4.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.8rem;
    }
}

/* Çok Büyük Ekranlar (1600px ve üstü) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .slide-title {
        font-size: 5rem;
    }
    
    .slide-subtitle {
        font-size: 2rem;
    }
}

/* Yüksek DPI Ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .contact-icon,
    .tech-icon,
    .cloud-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Stilleri */
@media print {
    .header,
    .slider-controls,
    .nav-toggle,
    .social-links {
        display: none;
    }
    
    .hero-slider {
        height: auto;
        page-break-inside: avoid;
    }
    
    .slide {
        position: static;
        opacity: 1;
        visibility: visible;
        background: white;
        color: black;
        page-break-after: always;
    }
    
    .slide-content::before {
        display: none;
    }
    
    .slide-text {
        color: black;
    }
    
    .btn {
        border: 1px solid black;
        color: black;
        background: white;
    }
}

/* HAMBURGER BUTONU EN ÜSTTE OLSUN */
.nav-toggle {
    z-index: 10002 !important; /* Slider'dan ve her şeyden yüksek olsun */
    position: relative; /* Z-index'in çalışması için gerekli */
    cursor: pointer; /* Tıklanabilir olduğu belli olsun */
}

/* Navbar'ın kendisi de yüksekte olsun */
.navbar {
    z-index: 10001 !important;
}

/* ====================================================
   TEMİZLENMİŞ RESPONSIVE MENÜ KODLARI
   ==================================================== */

/* 1. BİLGİSAYARDA (992px ve Üstü) BUTONU GİZLE */
@media (min-width: 992px) {
    .nav-toggle {
        display: none !important;
    }
}

/* 2. MOBİL VE TABLET (991px ve Altı) AYARLARI */
@media (max-width: 991px) {
    
    /* Body padding'i sıfırla, boşluğu margin ile vereceğiz */
    body { padding-top: 0 !important; }
    
    /* Logo boyutunu sabitle */
    .nav-logo-img { height: 40px !important; }

    /* Header yüksekliğini mobilde 70px'e sabitle */
    .navbar .container {
        height: 70px !important;
        min-height: 70px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* --- İÇERİK BOŞLUĞU AYARI (BEYAZ ÇİZGİYİ YOK EDEN KISIM) --- */
    /* Mobilde header 70px olduğu için içerikleri 70px aşağı itiyoruz */
    .page-header,
    .hero-section,
    .contact,
    .about-section {
        margin-top: 70px !important;
        padding-top: 0 !important;
    }

    /* --- HAMBURGER BUTONU AYARLARI --- */
    .nav-toggle {
        display: flex;       /* Mobilde görünür yap */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;        /* Çizgiler toplamı kadar yükseklik */
        cursor: pointer;
        z-index: 2000;       /* Menünün üstünde kalsın */
        margin-left: auto;   /* Sağa yasla */
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* ÇARPI (X) OLMA ANİMASYONU */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* --- MENÜ KUTUSU (DİKDÖRTGEN ÇEKMECE) --- */
    .nav-menu {
        position: fixed;
        /* Header yüksekliği (70px) kadar aşağıdan başla */
        top: 70px !important; 
        right: -320px;      /* Ekran dışında gizli */
        width: 280px;       /* Kibar bir genişlik */
        
        /* Yükseklik: Ekran boyu eksi header boyu (70px) */
        height: calc(100vh - 70px) !important;
        max-height: calc(100vh - 70px) !important;
        
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* Hafif gölge */
        border: 1px solid #f0f0f0;
        
        padding: 20px;
        display: flex;
        flex-direction: column;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 15px; /* Ekranın sağ kenarından 15px içeride dur */
    }

    /* Menü Linkleri */
    .nav-list {
        display: flex; /* Flex ekledik */
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f9f9f9;
    }
    .nav-item:last-child { border-bottom: none; }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px;
        color: #333;
        font-weight: 500;
        font-size: 0.95rem;
    }

    /* Dropdown (Alt Menü) */
    .dropdown-menu {
        display: none;
        background-color: #fafafa;
        border-radius: 8px;
        margin: 5px 0 10px 0;
        padding: 5px;
        border: none;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
        position: static; /* Mobilde static olmalı */
        width: 100%;
        transform: none !important;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 0.9rem;
        color: #666;
        display: block;
    }
    
    /* Ok İşareti */
    .dropdown-toggle i {
        transition: transform 0.3s;
    }
    .nav-item.dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
        color: #d31212;
    }
}