/* ============================
   RESPONSIVE CSS
   Tüm Ekran Boyutları İçin
   ============================ */

/* ============================
   1400px+ (Büyük Ekran)
   ============================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================
   1200px (Masaüstü)
   ============================ */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================
   992px (Tablet - Yatay)
   ============================ */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    /* Navbar */
    .nav-menu {
        gap: 4px;
    }

    .nav-menu>li>a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-icons {
        gap: 30px;
    }

    .hero-icon-item i {
        font-size: 1.8rem;
    }

    /* Hizmetler */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Projeler */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Hakkımda */
    .about-grid {
        gap: 40px;
    }

    /* İletişim */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ============================
   768px (Tablet - Dikey)
   ============================ */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 16px;
    }

    /* Navbar */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 25px 30px;
        transition: var(--transition);
        box-shadow: var(--shadow);
        overflow-y: auto;
        gap: 2px;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu>li {
        width: 100%;
    }

    .nav-menu>li>a {
        display: block;
        padding: 12px 16px;
        width: 100%;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-menu>li>a:hover {
        background: rgba(0, 212, 255, 0.08);
    }

    /* Mobil dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 20px;
        display: none;
        border: none;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .nav-contact-btn {
        display: inline-block;
        margin-top: 8px;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    /* Saat gizle */
    .nav-clock {
        display: none;
    }

    /* Dil dropdown mobilde düzelt */
    .lang-dropdown {
        position: static;
    }

    .lang-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        min-width: 160px;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 80%;
        max-width: 280px;
        text-align: center;
    }

    .hero-icons {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-icon-item i {
        font-size: 1.5rem;
    }

    .hero-icon-item span {
        font-size: 0.75rem;
    }

    /* Section Title */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Hizmetler */
    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: 1.15rem;
    }

    .service-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .service-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Projeler */
    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .project-card img {
        height: 180px;
    }

    .project-info {
        padding: 16px;
    }

    /* Hakkımda */
    .about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image img {
        max-height: 300px;
        object-fit: cover;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content p {
        font-size: 0.95rem;
        text-align: center;
    }

    .about-tags {
        justify-content: center;
    }

    .about-tags span {
        font-size: 0.8rem;
        padding: 4px 14px;
    }

    /* İletişim */
    .contact {
        padding: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-item i {
        font-size: 1.3rem;
        width: 44px;
        height: 44px;
    }

    .contact-form .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 10px;
    }

    .footer-links ul li {
        margin-bottom: 6px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ============================
   576px (Telefon - Büyük)
   ============================ */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 14px;
    }

    .nav-menu {
        width: 280px;
        padding: 70px 20px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-buttons .btn {
        width: 90%;
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .services-grid {
        gap: 16px;
    }

    .service-image {
        height: 160px;
    }

    .service-content {
        padding: 16px;
    }

    .service-content h3 {
        font-size: 1rem;
    }

    .service-content p {
        font-size: 0.85rem;
    }

    .projects-grid {
        gap: 16px;
    }

    .project-card img {
        height: 160px;
    }

    .project-info h4 {
        font-size: 1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .lang-menu {
        min-width: 140px;
    }

    .lang-menu li {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}

/* ============================
   480px (Telefon - Küçük)
   ============================ */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }

    .nav-menu {
        width: 260px;
        padding: 60px 16px 16px;
    }

    .nav-menu>li>a {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .hamburger {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 85vh;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-buttons .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
        width: 95%;
    }

    .hero-icon-item i {
        font-size: 1.3rem;
    }

    .hero-icon-item span {
        font-size: 0.65rem;
    }

    .hero-icons {
        gap: 14px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .service-card {
        max-width: 100%;
    }

    .service-image {
        height: 140px;
    }

    .service-content {
        padding: 14px;
    }

    .service-content h3 {
        font-size: 0.95rem;
    }

    .service-content p {
        font-size: 0.8rem;
    }

    .service-buttons .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-card img {
        height: 140px;
    }

    .project-info {
        padding: 14px;
    }

    .project-info h4 {
        font-size: 0.9rem;
    }

    .project-info p {
        font-size: 0.8rem;
    }

    .about-tags span {
        font-size: 0.75rem;
        padding: 3px 12px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-item i {
        font-size: 1.1rem;
        width: 38px;
        height: 38px;
    }

    .contact-item h4 {
        font-size: 0.85rem;
    }

    .contact-item p {
        font-size: 0.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .btn-whatsapp {
        font-size: 0.85rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .footer-logo span {
        font-size: 1.2rem;
    }

    .footer-logo p {
        font-size: 0.8rem;
    }

    .footer-links h4,
    .footer-social h4 {
        font-size: 0.95rem;
    }

    .footer-links ul li a {
        font-size: 0.85rem;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ============================
   375px (Telefon - Çok Küçük)
   ============================ */
@media (max-width: 374px) {
    .container {
        padding: 0 10px;
    }

    .nav-menu {
        width: 240px;
        padding: 55px 14px 14px;
    }

    .nav-menu>li>a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .hero-buttons .btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .service-content h3 {
        font-size: 0.9rem;
    }

    .service-content p {
        font-size: 0.75rem;
    }

    .project-info h4 {
        font-size: 0.85rem;
    }

    .project-info p {
        font-size: 0.75rem;
    }

    .contact-item i {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .lang-menu {
        min-width: 120px;
    }

    .lang-menu li {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .footer-logo span {
        font-size: 1rem;
    }
}

/* ============================
   ÖZEL: PROJE BADGE FIX
   ============================ */
@media (max-width: 767px) {
    .project-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
        top: 8px;
        right: 8px;
    }
}

/* ============================
   ÖZEL: FORM SELECT MOBİL FIX
   ============================ */
@media (max-width: 767px) {
    .contact-form select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding-right: 40px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892B0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
    }
}

/* ============================
   ÖZEL: TABLET BOYUTUNDA DİL DROPDOWN
   ============================ */
@media (min-width: 768px) and (max-width: 991px) {
    .lang-menu {
        min-width: 140px;
    }

    .lang-menu li {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* ============================
   ÖZEL: BÜYÜK EKRANDA KART HOVER
   ============================ */
@media (min-width: 1200px) {
    .service-card:hover .service-image img {
        transform: scale(1.08);
    }
}

/* ============================
   ÖZEL: YAZICI DOSTU
   ============================ */
@media print {
    #navbar {
        position: static;
        background: white;
        color: black;
        border-bottom: 1px solid #ddd;
    }

    .nav-menu {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: white;
    }

    .hero-overlay {
        display: none;
    }

    .hero-title {
        color: black;
        -webkit-text-fill-color: black;
        background: none;
    }

    .btn {
        border: 1px solid #ddd;
        background: #f5f5f5;
        color: black;
    }

    .service-card {
        border: 1px solid #ddd;
        background: white;
    }

    .project-card {
        border: 1px solid #ddd;
        background: white;
    }

    .footer {
        border-top: 1px solid #ddd;
        background: white;
        color: black;
    }
}

/* ============================
   RESPONSIVE CSS - DETAY SAYFALARI EKLERİ
   ============================ */

/* ============================
   992px (Tablet - Yatay)
   ============================ */
@media (max-width: 991px) {

    /* Sayfa Hero */
    .page-hero-content h1 {
        font-size: 2.6rem;
    }

    /* Modül Grid */
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Özellik Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Galeri */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Proje Detay */
    .project-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================
   768px (Tablet - Dikey)
   ============================ */
@media (max-width: 767px) {

    /* Sayfa Hero */
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero-content h1 {
        font-size: 2.2rem;
    }

    .page-hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .page-hero-icon {
        font-size: 3.5rem;
    }

    .page-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-hero-buttons .btn {
        width: 80%;
        max-width: 250px;
        text-align: center;
    }

    /* Page Section */
    .page-section {
        padding: 50px 0;
    }

    .page-section .section-title {
        font-size: 1.8rem;
    }

    .page-section .section-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    /* Modül Grid */
    .module-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .module-card {
        padding: 20px 16px;
    }

    .module-icon {
        font-size: 2.2rem;
    }

    .module-card h3 {
        font-size: 1rem;
    }

    .module-card p {
        font-size: 0.85rem;
    }

    /* Özellik Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 18px 16px;
        gap: 14px;
    }

    .feature-item i {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .feature-item h4 {
        font-size: 0.95rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* Galeri */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    /* Demo Box */
    .demo-box {
        padding: 30px 24px;
    }

    .demo-box h2 {
        font-size: 1.6rem;
    }

    .demo-box p {
        font-size: 0.95rem;
    }

    .demo-form input,
    .demo-form select,
    .demo-form textarea {
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    .demo-form .btn {
        max-width: 100%;
        width: 100%;
    }

    /* Proje Detay */
    .project-detail-content h2 {
        font-size: 1.6rem;
    }

    .project-detail-content p {
        font-size: 0.95rem;
    }

    .project-status {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .status-badge,
    .status-date {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}

/* ============================
   576px (Telefon - Büyük)
   ============================ */
@media (max-width: 575px) {
    .page-hero-content h1 {
        font-size: 1.8rem;
    }

    .page-hero-content p {
        font-size: 0.9rem;
    }

    .page-hero-icon {
        font-size: 2.8rem;
    }

    .page-hero-buttons .btn {
        width: 90%;
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .module-card {
        padding: 18px 14px;
    }

    .module-card h3 {
        font-size: 0.95rem;
    }

    .module-card p {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .demo-box {
        padding: 24px 16px;
    }

    .demo-box h2 {
        font-size: 1.3rem;
    }

    .demo-box p {
        font-size: 0.85rem;
    }

    .demo-form input,
    .demo-form select,
    .demo-form textarea {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .project-detail-content h2 {
        font-size: 1.3rem;
    }

    .project-detail-content p {
        font-size: 0.9rem;
    }
}

/* ============================
   480px (Telefon - Küçük)
   ============================ */
@media (max-width: 479px) {
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-hero-content h1 {
        font-size: 1.5rem;
    }

    .page-hero-content p {
        font-size: 0.85rem;
    }

    .page-hero-icon {
        font-size: 2.4rem;
    }

    .page-hero-buttons .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
        width: 95%;
    }

    .page-section {
        padding: 40px 0;
    }

    .page-section .section-title {
        font-size: 1.5rem;
    }

    .page-section .section-subtitle {
        font-size: 0.85rem;
    }

    .module-card {
        padding: 16px 12px;
    }

    .module-icon {
        font-size: 1.8rem;
    }

    .module-card h3 {
        font-size: 0.9rem;
    }

    .module-card p {
        font-size: 0.75rem;
    }

    .feature-item {
        padding: 14px 12px;
        gap: 12px;
    }

    .feature-item i {
        font-size: 1.3rem;
        min-width: 34px;
    }

    .feature-item h4 {
        font-size: 0.85rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .demo-box {
        padding: 20px 14px;
    }

    .demo-box h2 {
        font-size: 1.1rem;
    }

    .demo-box p {
        font-size: 0.8rem;
    }

    .demo-form input,
    .demo-form select,
    .demo-form textarea {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .demo-form .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .project-detail-content h2 {
        font-size: 1.1rem;
    }

    .project-detail-content p {
        font-size: 0.85rem;
    }

    .status-badge,
    .status-date {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}

/* ============================
   375px (Telefon - Çok Küçük)
   ============================ */
@media (max-width: 374px) {
    .page-hero-content h1 {
        font-size: 1.3rem;
    }

    .page-hero-content p {
        font-size: 0.75rem;
    }

    .page-hero-icon {
        font-size: 2rem;
    }

    .page-section .section-title {
        font-size: 1.3rem;
    }

    .module-card {
        padding: 14px 10px;
    }

    .module-card h3 {
        font-size: 0.85rem;
    }

    .module-card p {
        font-size: 0.7rem;
    }

    .demo-box {
        padding: 16px 12px;
    }

    .demo-box h2 {
        font-size: 1rem;
    }

    .demo-form input,
    .demo-form select,
    .demo-form textarea {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* ============================
   ÖZEL: LIGHTBOX RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .lightbox-overlay {
        padding: 20px;
    }

    .lightbox-content {
        padding: 12px;
    }

    .lightbox-content img {
        max-height: 60vh;
    }

    .lightbox-close {
        top: -35px;
        right: 5px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        padding: 8px;
    }

    .lightbox-content img {
        max-height: 50vh;
    }

    .lightbox-close {
        font-size: 1.6rem;
        top: -30px;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* ============================
   ÖZEL: DEMO FORM SELECT MOBİL FIX
   ============================ */
@media (max-width: 767px) {
    .demo-form select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding-right: 40px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892B0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
    }
}

/* ============================
   ÖZEL: GALLERY TOUCH FEEDBACK
   ============================ */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:active {
        transform: scale(0.96);
        transition: 0.1s ease;
    }

    .module-card:active {
        transform: scale(0.98);
        transition: 0.1s ease;
    }
}