/* ===============================================
   RESPONSIVE DESIGN IMPROVEMENTS
   Mobile-First, Perfect on All Devices
   =============================================== */

/* ===============================================
   HAMBURGER MENU - Görünür ve Modern
   =============================================== */
.navbar-toggler {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background: rgba(239, 125, 0, 0.9) !important;
    border-color: #EF7D00 !important;
    box-shadow: 0 4px 20px rgba(239, 125, 0, 0.4) !important;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(239, 125, 0, 0.3) !important;
}

.navbar-toggler-icon {
    width: 26px !important;
    height: 26px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Scrolled durumda hamburger */
.navbar.scrolled .navbar-toggler {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar.scrolled .navbar-toggler:hover {
    background: #EF7D00 !important;
    border-color: #EF7D00 !important;
}

/* ===============================================
   MOBILE OPTIMIZATIONS (< 768px)
   =============================================== */

@media (max-width: 767px) {
  /* Typography Adjustments */
  html {
    font-size: 15px;
  }
  
  body {
    padding-top: 0 !important;
  }
  
  h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.35rem !important;
  }
  
  /* Navbar Mobile */
  .navbar {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  
  .navbar .navbar-brand img {
    height: 45px !important;
  }
  
  .navbar.scrolled .navbar-brand img {
    height: 40px !important;
  }
  
  .navbar .nav-link {
    padding: 14px 20px !important;
    margin: 4px 0 !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    border: none !important;
  }
  
  .navbar .nav-link:hover {
    background: rgba(239, 125, 0, 0.15) !important;
  }
  
  .navbar .nav-link::before {
    display: none !important;
  }
  
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.98) !important;
    margin-top: 16px;
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  /* Mobile Dropdown */
  .navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-radius: 12px !important;
    margin: 8px 0 !important;
    padding: 8px !important;
  }
  
  .navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
  }
  
  .navbar .dropdown-item:hover {
    background: rgba(239, 125, 0, 0.2) !important;
    color: #EF7D00 !important;
  }
  
  /* Online Collection Button Mobile */
  .navbar .online-collection-link {
    margin-top: 16px !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: 70vh !important;
    height: auto !important;
    padding: 100px 20px 60px !important;
  }
  
  .hero-section h1 {
    font-size: 2.25rem !important;
    margin-bottom: 16px !important;
  }
  
  .hero-section .lead {
    font-size: 1.05rem !important;
  }
  
  .hero-section .btn {
    min-width: 100% !important;
    padding: 16px 24px !important;
  }
  
  /* Page Hero Mobile */
  .page-hero {
    min-height: 350px !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
  }
  
  .page-hero h1 {
    font-size: 2rem !important;
  }
  
  /* Sections Spacing */
  section {
    padding: 50px 0 !important;
  }
  
  .py-5 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  /* Cards Mobile */
  .card {
    margin-bottom: 24px;
  }
  
  .card-body {
    padding: 1.25rem !important;
  }
  
  .card .card-img-top {
    height: 200px !important;
  }
  
  /* Production Cards Mobile */
  .production-card {
    margin-bottom: 20px;
    padding: 30px 20px !important;
  }
  
  .production-icon {
    width: 65px !important;
    height: 65px !important;
    margin-bottom: 20px !important;
  }
  
  .production-icon i {
    font-size: 26px !important;
  }
  
  /* Value Cards Mobile */
  .value-card {
    margin-bottom: 20px;
    padding: 30px 20px !important;
  }
  
  .value-icon {
    width: 65px !important;
    height: 65px !important;
    margin: 0 auto 20px !important;
  }
  
  .value-icon i {
    font-size: 2.25rem !important;
  }
  
  /* Certificate Cards Mobile */
  .certificate-card {
    height: 90px !important;
    padding: 15px !important;
    margin-bottom: 16px;
  }
  
  .certificate-card img {
    max-height: 55px !important;
  }
  
  /* About Section Mobile */
  .about-section {
    padding: 40px 0 !important;
  }
  
  .about-title {
    font-size: 2rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .about-text {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .about-image {
    height: 280px !important;
    margin-top: 30px;
  }
  
  /* Collection Section Mobile */
  .collections-section {
    padding: 50px 0 60px !important;
  }
  
  .collection-slide-card {
    height: 450px !important;
  }
  
  .collection-content {
    padding: 30px 20px !important;
  }
  
  .collection-content h3 {
    font-size: 2rem !important;
  }
  
  .collection-content p {
    font-size: 0.95rem !important;
  }
  
  /* Buttons Mobile */
  .btn {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
  }
  
  .btn-lg {
    padding: 16px 32px !important;
  }
  
  /* Section Headings Mobile */
  .section-heading {
    margin-bottom: 40px !important;
  }
  
  .section-heading h2,
  .section-heading h1 {
    font-size: 1.85rem !important;
  }
  
  .section-heading p {
    font-size: 1rem !important;
  }
  
  /* ========================================
     FOOTER MOBILE - TAM MOBİL UYUMLU
     ======================================== */
  .site-footer {
    padding: 0 !important;
  }
  
  .site-footer .footer-top {
    padding: 30px 15px !important;
  }
  
  .site-footer .footer-top .row {
    text-align: center;
  }
  
  /* Footer logo ve açıklama ortalama */
  .site-footer .footer-brand-block {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .site-footer .footer-brand {
    display: inline-block;
  }
  
  .site-footer .footer-logo {
    max-width: 160px !important;
    margin: 0 auto 15px;
  }
  
  .site-footer .footer-desc {
    text-align: center;
    font-size: 0.9rem !important;
    line-height: 1.6;
    max-width: 100% !important;
  }
  
  .site-footer .footer-checklist {
    text-align: left;
    display: inline-block;
    margin-top: 15px;
  }
  
  .site-footer .footer-checklist li {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  /* Footer başlıklar - çizgi ortalama */
  .site-footer .footer-heading {
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    padding-bottom: 12px !important;
  }
  
  .site-footer .footer-heading::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }
  
  /* Footer links block içindeki heading de */
  .footer-links-block .footer-heading::after,
  .footer-contact-card .footer-heading::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  /* Site haritası linkleri */
  .site-footer .footer-links-block {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .site-footer .footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
  }
  
  .site-footer .footer-links-grid a {
    font-size: 0.9rem;
  }
  
  .site-footer .footer-links-grid a::before {
    display: none !important;
  }
  
  /* İletişim kartı - TAM ORTALAMA */
  .site-footer .footer-contact-card {
    text-align: center !important;
    padding: 20px 15px !important;
    background: transparent !important;
    border: none !important;
  }
  
  .site-footer .footer-contact-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    gap: 10px !important;
  }
  
  .site-footer .footer-contact-item > i {
    margin: 0 auto !important;
  }
  
  .site-footer .footer-contact-item > div {
    text-align: center !important;
    width: 100% !important;
  }
  
  .site-footer .footer-contact-item > div span {
    text-align: center !important;
    display: block !important;
  }
  
  .site-footer .footer-contact-item > div a,
  .site-footer .footer-contact-item > div p {
    text-align: center !important;
    display: block !important;
    font-size: 0.95rem !important;
  }
  
  /* WhatsApp butonu tam genişlik */
  .site-footer .footer-contact-card .btn {
    margin-top: 20px !important;
  }
  
  /* Footer bottom */
  .site-footer .footer-bottom {
    padding: 20px 15px !important;
    text-align: center;
  }
  
  .site-footer .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .site-footer .footer-social {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }
  
  .site-footer .footer-social-links {
    justify-content: center;
  }
  
  .site-footer .social-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
  }
  
  .site-footer .copyright,
  .site-footer .small {
    font-size: 0.8rem !important;
    text-align: center;
  }
  
  /* WhatsApp & Scroll Buttons Mobile */
  .whatsapp-float,
  .scroll-top-btn {
    width: 54px !important;
    height: 54px !important;
    bottom: 16px !important;
  }
  
  .whatsapp-float {
    left: 16px !important;
  }
  
  .scroll-top-btn {
    right: 16px !important;
  }
  
  /* Disable hover effects on touch devices */
  .hover-lift:hover,
  .hover-zoom:hover {
    transform: none;
  }
  
  /* Scroll reveal - instant on mobile */
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===============================================
   TABLET OPTIMIZATIONS (768px - 991px)
   =============================================== */

@media (min-width: 768px) and (max-width: 991px) {
  /* Hero adjustments */
  .hero-section {
    min-height: 75vh;
  }
  
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  /* Cards 2-column layout */
  .col-md-6 .card {
    height: 100%;
  }
  
  /* Production cards - 2 columns */
  .production-card {
    margin-bottom: 24px;
  }
  
  /* Value cards - 2 columns */
  .value-card {
    margin-bottom: 24px;
  }
  
  /* Certificate cards */
  .certificate-card {
    margin-bottom: 20px;
  }
  
  /* Section spacing */
  section {
    padding: 70px 0;
  }
  
  /* Navbar tablet */
  .navbar .navbar-brand img {
    height: 60px !important;
  }
}

/* ===============================================
   DESKTOP OPTIMIZATIONS (992px+)
   =============================================== */

@media (min-width: 992px) {
  /* Container max-width for better readability */
  .container {
    max-width: 1200px;
  }
  
  /* Large screens - wider container */
  @media (min-width: 1400px) {
    .container {
      max-width: 1320px;
    }
  }
  
  /* Hero section perfect centering */
  .hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Card hover effects enhanced */
  .card:hover {
    transform: translateY(-12px);
  }
  
  .production-card:hover {
    transform: translateY(-15px);
  }
  
  .value-card:hover {
    transform: translateY(-10px);
  }
}

/* ===============================================
   ULTRA-WIDE SCREENS (1600px+)
   =============================================== */

@media (min-width: 1600px) {
  /* Slightly larger typography */
  html {
    font-size: 17px;
  }
  
  /* Better spacing */
  section {
    padding: 120px 0;
  }
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
  /* Hide non-essential elements */
  .navbar,
  .whatsapp-float,
  .scroll-top-btn,
  .btn {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    background: white;
    color: black;
  }
  
  .card,
  .production-card,
  .value-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===============================================
   LANDSCAPE MODE MOBILE
   =============================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto !important;
    padding: 80px 20px 40px !important;
  }
  
  .navbar {
    padding: 8px 0 !important;
  }
  
  .navbar .navbar-brand img {
    height: 35px !important;
  }
}

/* ===============================================
   TOUCH DEVICE OPTIMIZATIONS
   =============================================== */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover-dependent effects */
  .hover-lift:hover,
  .hover-zoom:hover img,
  .hover-shine:hover::before {
    transform: none;
  }
  
  /* Instant transitions on touch */
  * {
    transition-duration: 0.1s !important;
  }
}

/* ===============================================
   HIGH DPI / RETINA DISPLAYS
   =============================================== */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Sharper borders and shadows */
  .card,
  .production-card,
  .value-card {
    border: 0.5px solid rgba(0, 0, 0, 0.04);
  }
}

/* ===============================================
   DARK MODE SUPPORT (Future-ready)
   =============================================== */

@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles here in the future */
  /* Currently maintaining light theme for brand consistency */
}

/* ===============================================
   MOBILE DROPDOWN MENU FIX
   =============================================== */

@media (max-width: 991px) {
  /* Reset hover-based dropdown for mobile */
  .navbar .dropdown-menu {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    background: rgba(30, 30, 30, 0.95) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
  }
  
  /* Show dropdown when .show class is added by Bootstrap */
  .navbar .dropdown-menu.show {
    display: block !important;
  }
  
  /* Dropdown items styling for mobile */
  .navbar .dropdown-item {
    color: #ffffff !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
  }
  
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus,
  .navbar .dropdown-item:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }
  
  /* Dropdown toggle arrow */
  .navbar .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
  }
  
  /* Disable hover effect on mobile */
  .navbar .dropdown:hover .dropdown-menu {
    display: none !important;
  }
  
  /* Only show when .show class is present */
  .navbar .dropdown.show .dropdown-menu {
    display: block !important;
  }
}

/* ===============================================
   ALL PAGES - COMPREHENSIVE RESPONSIVE STYLES
   =============================================== */

/* QR Sistem Page Mobile */
@media (max-width: 991px) {
  .qr-hero {
    min-height: auto !important;
    padding: 120px 0 60px !important;
  }
  
  .qr-hero h1 {
    font-size: 2.2rem !important;
    text-align: center;
  }
  
  .qr-hero .lead {
    text-align: center;
    margin: 0 auto 2rem;
  }
  
  .qr-hero-content {
    text-align: center;
  }
  
  .qr-hero-visual {
    margin-top: 40px;
  }
  
  .qr-phone-mockup {
    max-width: 260px;
  }
  
  .floating-badge {
    display: none !important;
  }
  
  .gallery-section,
  .features-section,
  .how-it-works,
  .detail-section {
    padding: 60px 0 !important;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .gallery-card img {
    height: 280px !important;
    padding: 20px !important;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .step-connector {
    display: none !important;
  }
  
  .step-card {
    margin-bottom: 30px;
  }
  
  .detail-content {
    padding: 30px 20px !important;
  }
}

/* Contact Page Mobile */
@media (max-width: 767px) {
  .contact-section {
    padding: 40px 0 !important;
  }
  
  .contact-card {
    padding: 25px 20px !important;
    margin-bottom: 20px;
  }
  
  .contact-form {
    padding: 25px 20px !important;
  }
  
  .map-container {
    height: 300px !important;
    margin-top: 30px;
  }
}

/* About Page Mobile */
@media (max-width: 767px) {
  .about-page-content {
    padding: 40px 0 !important;
  }
  
  .about-page-content h2 {
    font-size: 1.75rem !important;
  }
  
  .about-page-content p {
    font-size: 1rem !important;
  }
  
  .team-card {
    margin-bottom: 20px;
  }
  
  .timeline-item {
    padding-left: 30px !important;
  }
  
  .timeline-item::before {
    left: 0 !important;
  }
}

/* Products/Urunler Page Mobile */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  
  .product-card {
    margin-bottom: 20px;
  }
  
  .product-card img {
    height: 220px !important;
  }
  
  .product-filters {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
}

/* Blog Page Mobile */
@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  
  .blog-card {
    margin-bottom: 24px;
  }
  
  .blog-card img {
    height: 200px !important;
  }
  
  .blog-content {
    padding: 20px !important;
  }
  
  .blog-post-content {
    padding: 20px !important;
  }
  
  .blog-post-content h1 {
    font-size: 1.75rem !important;
  }
}

/* Sertifikalar Page Mobile */
@media (max-width: 767px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  
  .certificate-item {
    padding: 15px !important;
  }
  
  .certificate-item img {
    max-height: 80px !important;
  }
}

/* Koleksiyonlar Page Mobile */
@media (max-width: 767px) {
  .collection-grid {
    grid-template-columns: 1fr !important;
  }
  
  .collection-item {
    height: 350px !important;
  }
  
  .collection-overlay {
    padding: 20px !important;
  }
  
  .collection-overlay h3 {
    font-size: 1.5rem !important;
  }
}

/* Uretim Page Mobile */
@media (max-width: 767px) {
  .production-section {
    padding: 50px 0 !important;
  }
  
  .production-card {
    padding: 25px 20px !important;
    margin-bottom: 20px;
  }
  
  .production-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-item {
    text-align: center;
    padding: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem !important;
  }
}

/* Acenteliklerimiz Page Mobile */
@media (max-width: 767px) {
  .agencies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  
  .agency-card {
    padding: 15px !important;
  }
  
  .agency-card img {
    max-height: 60px !important;
  }
}

/* Kalite Politikası & Çevre Bilinci Pages Mobile */
@media (max-width: 767px) {
  .policy-content {
    padding: 30px 20px !important;
  }
  
  .policy-content h2 {
    font-size: 1.5rem !important;
  }
  
  .policy-list li {
    padding-left: 25px !important;
    font-size: 0.95rem !important;
  }
  
  .env-card {
    padding: 25px 20px !important;
    margin-bottom: 20px;
  }
}

/* İnovasyon Page Mobile */
@media (max-width: 767px) {
  .innovation-section {
    padding: 50px 0 !important;
  }
  
  .innovation-card {
    padding: 25px 20px !important;
    margin-bottom: 20px;
  }
  
  .innovation-icon {
    width: 60px !important;
    height: 60px !important;
  }
}

/* Page Headers/Banners Mobile */
@media (max-width: 767px) {
  .page-header,
  .page-banner,
  .page-hero {
    min-height: 300px !important;
    padding: 100px 20px 50px !important;
  }
  
  .page-header h1,
  .page-banner h1,
  .page-hero h1 {
    font-size: 2rem !important;
  }
  
  .page-header p,
  .page-banner p,
  .page-hero p {
    font-size: 1rem !important;
  }
  
  .breadcrumb {
    font-size: 0.85rem !important;
  }
}

/* Section Headers Mobile */
@media (max-width: 767px) {
  .section-badge {
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
  }
  
  .section-title {
    font-size: 1.75rem !important;
  }
  
  .section-subtitle {
    font-size: 1rem !important;
    padding: 0 10px;
  }
}

/* Form Elements Mobile */
@media (max-width: 767px) {
  .form-control,
  .form-select {
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  
  .form-label {
    font-size: 0.95rem !important;
  }
  
  textarea.form-control {
    min-height: 120px !important;
  }
}

/* Tables Mobile */
@media (max-width: 767px) {
  .table-responsive {
    font-size: 0.9rem;
  }
  
  .table th,
  .table td {
    padding: 10px 8px !important;
    white-space: nowrap;
  }
}

/* Modals Mobile */
@media (max-width: 767px) {
  .modal-dialog {
    margin: 10px !important;
  }
  
  .modal-content {
    border-radius: 16px !important;
  }
  
  .modal-header,
  .modal-footer {
    padding: 15px 20px !important;
  }
  
  .modal-body {
    padding: 20px !important;
  }
}

/* Swiper/Slider Mobile */
@media (max-width: 767px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 40px !important;
    height: 40px !important;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 18px !important;
  }
  
  .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
  }
}

/* Counters/Stats Mobile */
@media (max-width: 767px) {
  .counter-section {
    padding: 40px 0 !important;
  }
  
  .counter-item {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .counter-number {
    font-size: 2.5rem !important;
  }
  
  .counter-label {
    font-size: 0.9rem !important;
  }
}

/* Testimonials Mobile */
@media (max-width: 767px) {
  .testimonial-card {
    padding: 25px 20px !important;
  }
  
  .testimonial-text {
    font-size: 1rem !important;
  }
  
  .testimonial-author img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* References/Logos Mobile */
@media (max-width: 767px) {
  .references-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  
  .reference-logo {
    padding: 15px !important;
    height: 80px !important;
  }
  
  .reference-logo img {
    max-height: 50px !important;
  }
}

/* FAQ Section Mobile */
@media (max-width: 767px) {
  .faq-item {
    margin-bottom: 15px;
  }
  
  .faq-question {
    padding: 16px 20px !important;
    font-size: 1rem !important;
  }
  
  .faq-answer {
    padding: 15px 20px !important;
    font-size: 0.95rem !important;
  }
}

/* Extra Small Devices (< 400px) */
@media (max-width: 400px) {
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  .btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .navbar .navbar-brand img {
    height: 38px !important;
  }
  
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .gallery-card img {
    height: 220px !important;
  }
  
  .certificates-grid,
  .agencies-grid,
  .references-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Orientation Changes */
@media (orientation: landscape) and (max-height: 500px) {
  .qr-hero,
  .hero-section,
  .page-hero {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
  
  .navbar {
    padding: 8px 0 !important;
  }
}

