/**
 * Professional Video Editor Portfolio - Responsive Breakpoints
 * Mobile, Tablet & Desktop Layouts
 */

/* Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .hero-subtitle-tag {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: max-content;
  }

  .hero-name,
  .hero-heading,
  .hero-desc {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-video-card {
    max-width: 540px;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-info-card,
  .contact-form-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Tablets & Mobile: Navbar becomes compact with hamburger drawer */
  .navbar {
    padding: 0.75rem 0 !important;
  }

  .nav-links {
    display: none !important;
  }

  .navbar-container {
    gap: 0.5rem !important;
    justify-content: space-between !important;
  }

  .brand-logo {
    gap: 0.5rem !important;
    max-width: calc(100% - 125px) !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .brand-icon {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .brand-title {
    font-size: 1.1rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .brand-badge {
    display: none !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  .nav-actions .lang-toggle-btn {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.76rem !important;
    flex-shrink: 0 !important;
  }

  .hamburger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 9px 8px !important;
    background: rgba(1, 101, 252, 0.12) !important;
    border: 1px solid rgba(1, 101, 252, 0.35) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 12px rgba(1, 101, 252, 0.25) !important;
    transition: all 0.25s ease !important;
    z-index: 1002 !important;
  }

  .hamburger-btn span {
    width: 100% !important;
    height: 2.5px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all var(--transition-normal) !important;
  }

  html.light-theme .hamburger-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
  }

  html.light-theme .hamburger-btn span {
    background-color: #0f172a !important;
  }

  .nav-actions .user-profile-group,
  .nav-actions .btn-client-login,
  .nav-actions .nav-hire-btn,
  .nav-actions .theme-toggle-btn {
    display: none !important;
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-section {
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
    text-align: center;
  }

  .hero-name {
    font-size: 2.65rem;
    line-height: 1.15;
  }

  .hero-heading {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-video-card {
    max-width: 100% !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 2.3rem;
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .features-grid,
  .process-timeline,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 1.75rem 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    gap: 1.75rem !important;
  }

  .contact-form-box {
    padding: 1.75rem 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .contact-channel-item {
    gap: 1rem !important;
  }

  .channel-value {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .contact-info-card .section-title {
    font-size: 1.65rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.25 !important;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .ba-before img {
    min-width: 100%;
  }

  .brand-logos-grid {
    gap: 1.5rem 2rem !important;
  }

  .brand-logo-item {
    font-size: 1rem !important;
  }

  .production-suite-box {
    padding: 1.75rem 1.25rem !important;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .brand-logo {
    max-width: calc(100% - 105px) !important;
  }

  .brand-title {
    font-size: 0.98rem !important;
  }

  .brand-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .hamburger-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 8px 7px !important;
  }

  .hero-name {
    font-size: 2.15rem;
  }

  .hero-heading {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .brand-logos-grid {
    gap: 1.25rem 1.5rem !important;
  }

  .brand-logo-item {
    font-size: 0.95rem !important;
  }

  .portfolio-filter {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  .video-modal {
    padding: 0.5rem;
  }

  .production-suite-box {
    padding: 1.25rem 0.85rem !important;
  }

  /* Contact Section Extra Small Screens */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-info-card {
    padding: 1.35rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .contact-form-box {
    padding: 1.35rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .form-control {
    padding: 0.75rem 0.95rem !important;
    font-size: 0.9rem !important;
  }

  .file-upload-box {
    padding: 1.15rem 0.75rem !important;
  }

  .social-buttons-pills {
    gap: 0.45rem !important;
  }

  .social-pill-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
  }

  .contact-info-card .section-title {
    font-size: 1.45rem !important;
  }
}

/* Global Contact Section Overflow & Centering Guard */
#contact, .contact-section {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}


