/* ============================================================
   MOBILE FIX - Nexo Web Studio
   Tüm mobil sorunları çözen kapsamlı responsive CSS
============================================================ */

/* ── GENEL MOBİL DÜZELTMELER ── */
@media (max-width: 768px) {
  
  /* Yatay kaydırmayı tamamen engelle */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Sadece blok elementleri sınırla, buton/inline elementleri değil */
  img, iframe, table, pre {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* SVG ikonları koru */
  svg {
    max-width: none !important;
    overflow: visible !important;
  }
  
  .csocial-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    display: block !important;
  }
  
  /* Video elementini modal dışında sınırla */
  video:not(#siteVideo) {
    max-width: 100% !important;
  }
  
  /* Modal video — dokunma */
  #siteVideo {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  div:not(.btn-video-play):not([class*="btn"]),
  section, article, aside, header, footer, main, nav, figure {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Butonların şeklini koru */
  button, a.btn, .btn-video-play, .btn-cta, .btn-header-cta {
    max-width: none !important;
    border-radius: inherit;
  }
  
  .btn-video-play {
    border-radius: 999px !important;
    -webkit-border-radius: 999px !important;
  }
  
  /* Container genişliği */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
  }
  
  /* Section padding'leri küçült */
  .section {
    padding: 48px 0 !important;
  }
  
  /* Tüm başlıkları küçült */
  h1 { font-size: 1.8rem !important; line-height: 1.3 !important; }
  h2 { font-size: 1.6rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.3rem !important; line-height: 1.4 !important; }
  h4 { font-size: 1.1rem !important; }
  
  .section-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }
  
  .section-sub {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  /* Tüm resimleri sınırla */
  img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* ── HEADER / NAV ── */
  .header {
    padding: 14px 20px !important;
  }
  
  .header-inner {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  
  .logo {
    font-size: 1.1rem !important;
  }
  
  .logo-img {
    width: 28px !important;
    height: 28px !important;
  }
  
  /* Desktop nav gizle */
  .nav {
    display: none !important;
  }
  
  .btn-header-cta {
    display: none !important;
  }
  
  /* Mobile drawer tam genişlik */
  .mobile-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .mobile-nav-list {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .mobile-nav-link {
    width: 100% !important;
    padding: 16px 20px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  
  /* ── HERO ── */
  .hero {
    min-height: auto !important;
    padding: 32px 0 24px !important;
  }
  
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 24px 32px !important;
  }
  
  /* Görsel küçük ve üstte */
  .hero-visual {
    height: 220px !important;
    order: -1 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 320px !important;
  }
  
  .hv-browser--main {
    width: 180px !important;
  }
  
  /* Toast ve terminal gizle */
  .hv-terminal,
  .hv-toast--1,
  .hv-toast--2,
  .hv-analytics {
    display: none !important;
  }
  
  /* Başlık */
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.5px !important;
  }
  
  /* Açıklama */
  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }
  
  /* Pills — küçük etiket, buton değil */
  .hero-pills {
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
  }
  
  .pill {
    font-size: 0.7rem !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
  }
  
  /* CTA butonu tam genişlik */
  .hero-cta-group {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 32px !important;
  }
  
  .btn-hero-primary,
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
  }
  
  /* Video butonu da tam genişlik */
  .btn-video-play {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }
  
  /* Stats yatay, kompakt */
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(64,224,208,0.06) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    border: 1px solid rgba(64,224,208,0.15) !important;
  }
  
  .hstat {
    flex: 1 !important;
    text-align: center !important;
  }
  
  .hstat-sep {
    width: 1px !important;
    height: 32px !important;
    background: rgba(64,224,208,0.2) !important;
    display: block !important;
  }
  
  .hstat-num {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
  }
  
  .hstat-label {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
  }
  
  /* Eyebrow */
  .hero-eyebrow {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
    margin-bottom: 16px !important;
  }
  
  /* ── SERVICES ── */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .svc-card {
    padding: 24px 20px !important;
  }
  
  .svc-card h3 {
    font-size: 1.15rem !important;
  }
  
  .svc-card p {
    font-size: 0.9rem !important;
  }
  
  /* ── PROCESS ── */
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .process-step {
    padding: 24px 18px !important;
  }
  
  .step-connector {
    display: none !important;
  }
  
  .process-step h3 {
    font-size: 1.1rem !important;
  }
  
  .process-step p {
    font-size: 0.88rem !important;
  }
  
  /* ── PORTFOLIO ── */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .pcard {
    width: 100% !important;
  }
  
  .pcard--featured {
    grid-column: span 1 !important;
  }
  
  .pcard-visual {
    height: 180px !important;
  }
  
  .pcard-body {
    padding: 18px !important;
  }
  
  .pcard-body h3 {
    font-size: 1.05rem !important;
  }
  
  .pcard-body p {
    font-size: 0.88rem !important;
  }
  
  .pcard-meta {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
  }
  
  .portfolio-filters {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  
  .pf-btn {
    font-size: 0.78rem !important;
    padding: 7px 14px !important;
  }
  
  /* ── PRICING ── */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
  }
  
  .price-card {
    padding: 28px 20px !important;
    width: 100% !important;
  }
  
  .price-card--featured {
    transform: scale(1) !important;
  }
  
  .price-val {
    font-size: 2.6rem !important;
  }
  
  .price-feats {
    gap: 8px !important;
  }
  
  .price-feats li {
    font-size: 0.84rem !important;
  }
  
  /* ── TESTIMONIALS ── */
  .tcard {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    padding: 24px 20px !important;
  }
  
  .tcard blockquote {
    font-size: 0.92rem !important;
  }
  
  .tslider-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }
  
  /* ── HAKKIMIZDA ── */
  #hakkimizda .reveal-up[style*="grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  #hakkimizda img {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  #hakkimizda h3 {
    font-size: 1.4rem !important;
  }
  
  #hakkimizda p {
    font-size: 0.9rem !important;
  }
  
  #hakkimizda h4 {
    font-size: 0.95rem !important;
  }
  
  #hakkimizda > .container > .reveal-up:first-of-type > div:first-child {
    order: 2 !important;
  }
  
  #hakkimizda > .container > .reveal-up:first-of-type > div:last-child {
    order: 1 !important;
  }
  
  /* ── BLOG ── */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .blog-card--featured .blog-img img {
    height: 200px !important;
  }
  
  .blog-card:not(.blog-card--featured) .blog-img img {
    height: 180px !important;
  }
  
  .blog-body {
    padding: 18px !important;
  }
  
  .blog-body h3 {
    font-size: 1rem !important;
  }
  
  .blog-card--featured .blog-body h3 {
    font-size: 1.15rem !important;
  }
  
  .blog-body p {
    font-size: 0.84rem !important;
  }
  
  /* ── FAQ ── */
  .faq-list {
    max-width: 100% !important;
  }
  
  .faq-q {
    font-size: 0.95rem !important;
    padding: 16px 0 !important;
  }
  
  .faq-a p {
    font-size: 0.88rem !important;
  }
  
  /* ── CONTACT ── */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .contact-sidebar {
    order: 2 !important;
  }
  
  .contact-form {
    order: 1 !important;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
  }
  
  /* ── FOOTER ── */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 48px 20px 32px !important;
  }
  
  .footer-nav-cols {
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  .footer-bottom-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 0 20px !important;
  }
  
  .footer-legal {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  /* ── BUTTONS ── */
  .btn {
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
  }
  
  .btn-cta {
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* ── TRUST BAR ── */
  .trust-strip {
    padding: 12px 0 !important;
  }
  
  .trust-item {
    font-size: 0.8rem !important;
  }
  
  /* ── CTA BANNER ── */
  .cta-banner {
    padding: 40px 20px !important;
  }
  
  .cta-banner h2 {
    font-size: 1.5rem !important;
  }
  
  .cta-banner p {
    font-size: 0.9rem !important;
  }
  
  /* ── SECURITY SECTION ── */
  .security-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .sec-card {
    padding: 20px 18px !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .sec-card-icon {
    margin: 0 auto 12px !important;
  }
  
  .sec-card h3 {
    font-size: 0.95rem !important;
  }
  
  .sec-card p {
    font-size: 0.82rem !important;
  }
  
  .sec-cta-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  }
  
  .security-cta {
    padding: 24px 20px !important;
  }
  
  /* ── MODALS ── */
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    margin: 20px auto !important;
    padding: 24px 20px !important;
  }
  
  .modal-header h2 {
    font-size: 1.3rem !important;
  }
  
  .modal-body {
    padding: 20px 0 !important;
  }
  
  /* ── GENEL FLEX/GRID DÜZELTMELER ── */
  [style*="display: grid"],
  [style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="display: flex"],
  [style*="display:flex"] {
    flex-wrap: wrap !important;
  }
  
  /* Taşan elementleri engelle */
  .hero-orb,
  .pricing-bg-orb,
  .sec-orb {
    display: none !important;
  }
  
  /* Animasyonları hafiflet */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }
}

/* ── EKSTRA KÜÇÜK EKRANLAR (480px altı) ── */
@media (max-width: 480px) {
  
  .container {
    padding: 0 16px !important;
  }
  
  .section {
    padding: 40px 0 !important;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  .hero-title {
    font-size: 1.6rem !important;
  }
  
  .hero-desc {
    font-size: 0.88rem !important;
  }
  
  .hero-visual {
    height: 240px !important;
  }
  
  .price-val {
    font-size: 2.2rem !important;
  }
  
  .svc-card,
  .price-card,
  .tcard {
    padding: 20px 16px !important;
  }
  
  .btn {
    padding: 11px 18px !important;
    font-size: 0.85rem !important;
  }
  
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }
}
