/**
 * Salkon Mühendislik - Responsive CSS
 * Mobile-First Responsive Design
 */

/* ============================================
   Tablet - max-width: 1024px
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 15px;
        --spacing-xxl: 48px;
        --spacing-xl: 36px;
    }
    
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .stats-grid {
        gap: var(--spacing-md);
    }
    
    .about-preview-content {
        padding-left: var(--spacing-md);
    }
}

/* ============================================
   Mobile - max-width: 768px
   ============================================ */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --spacing-xxl: 40px;
        --spacing-xl: 32px;
        --spacing-lg: 24px;
    }
    
    /* Header */
    .top-bar {
        display: none;
    }
    
    .main-header {
        padding: 12px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Language Switcher - Mobile */
    .language-switcher .lang-dropdown {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .language-switcher.active .lang-dropdown,
    .language-switcher:hover .lang-dropdown {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-header-actions {
        display: flex;
    }

    .mobile-lang-switcher {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* Mobile Dropdown */
    .nav-menu .has-dropdown {
        flex-wrap: wrap;
    }
    
    .nav-menu .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu .has-dropdown > a i.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .nav-menu .has-dropdown.open > a i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
        background: var(--bg-light);
        border-radius: 0;
    }
    
    .nav-menu .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 8px 0;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 12px 20px 12px 30px;
        font-size: 14px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 0;
    }
    
    .hero-section .container {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    .hero-content {
        padding-top: 0;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-badge {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .badge-icon {
        font-size: 16px;
    }
    
    .badge-text {
        font-size: 11px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    
    .hero-title {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .hero-controls {
        margin-top: 15px;
        justify-content: center;
    }
    
    .hero-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-stats {
        padding: 20px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .stat-content h3 {
        font-size: 22px;
    }
    
    .stat-content p {
        font-size: 10px;
    }
    
    /* Layout */
    .row {
        margin: 0;
    }
    
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    /* About Preview */
    .about-preview-image {
        margin-bottom: var(--spacing-lg);
    }
    
    .about-experience-badge {
        width: 100px;
        height: 100px;
        bottom: 20px;
        right: 20px;
    }
    
    .experience-years {
        font-size: 40px;
    }
    
    .experience-label {
        font-size: 12px;
    }
    
    .about-preview-content {
        padding-left: 0;
        text-align: justify;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-card {
        aspect-ratio: 16/10;
    }
    
    .project-overlay {
        padding: var(--spacing-md);
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-xl) 0;
        background-attachment: scroll;
    }
    
    .cta-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-main {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-col {
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .footer-col:last-child {
        border-bottom: none;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
    }
    
    .footer-links a {
        display: inline-block;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-contact {
        display: inline-block;
        text-align: left;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-map {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto var(--spacing-md);
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-bottom {
        padding: var(--spacing-sm) 0;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Section Spacing */
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .section-description {
        font-size: 16px;
    }
}

/* ============================================
   Small Mobile - max-width: 480px
   ============================================ */
@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --spacing-xxl: 32px;
        --spacing-xl: 24px;
        --spacing-lg: 20px;
        --spacing-md: 16px;
        --spacing-sm: 12px;
    }
    
    .hero-title {
        font-size: clamp(20px, 7vw, 26px);
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .stat-content h3 {
        font-size: 18px;
    }
    
    .stat-content p {
        font-size: 9px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-category {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .cta-title {
        font-size: clamp(20px, 7vw, 28px);
    }
    
    .cta-description {
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ============================================
   Large Desktop - min-width: 1400px
   ============================================ */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .hero-buttons,
    .cta-section,
    .site-footer,
    .scroll-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066CC;
        --text-dark: #000000;
        --border-color: #000000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .service-card {
        border: 2px solid #000;
    }
}
