/* ==========================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   Mobile-First Approach - Add this after style.css
   ========================================== */

/* ==========================================
   1. GLOBAL RESPONSIVE FIXES
   ========================================== */

/* Prevent horizontal scrolling on all devices */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

* {
  box-sizing: border-box;
}

/* Fix images and media */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix containers */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

/* Responsive sections */
.section {
  width: 100%;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* ==========================================
   2. NAVIGATION RESPONSIVE FIXES
   ========================================== */

/* Desktop Navigation (1200px+) */
@media (min-width: 1200px) {
  .navbar {
    padding: 1rem 0;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 2rem;
  }

  .nav-logo {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .logo-icon {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    background: transparent;
    backdrop-filter: none;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
    z-index: auto;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    min-height: auto;
    min-width: auto;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    width: auto;
  }

  .nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.2);
  }

  .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
  }
}

/* Laptop/Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-container {
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
  }

  .nav-logo {
    font-size: 1.125rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.375rem;
    background: transparent;
    backdrop-filter: none;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    z-index: auto;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0.625rem;
    min-height: auto;
    min-width: auto;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    width: auto;
  }

  .nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
  }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-container {
    padding: 0.75rem 1.25rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 32px;
    height: 24px;
    z-index: 70;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 400px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 60;
    transition: right 0.3s ease;
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
    min-height: 52px;
    border-radius: 0.875rem;
    background: rgba(124, 58, 237, 0.08);
    border: 2px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
  }
}

/* Mobile Landscape and Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .nav-container {
    padding: 0.625rem 1rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 30px;
    height: 22px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4.5rem 1.5rem 2rem;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 60;
    transition: right 0.3s ease;
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 1.0625rem;
    min-height: 50px;
    border-radius: 0.75rem;
    background: rgba(124, 58, 237, 0.08);
  }
}

/* Small Mobile (480px - 575px) */
@media (max-width: 575px) {
  .nav-container {
    padding: 0.5rem 0.875rem;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 28px;
    height: 21px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4rem 1.25rem 2rem;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 60;
    transition: right 0.3s ease;
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 0.75rem;
    background: rgba(124, 58, 237, 0.08);
  }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479px) {
  .nav-container {
    padding: 0.5rem 0.75rem;
  }

  .nav-logo {
    font-size: 0.9rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .nav-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    min-height: 46px;
  }
}

/* ==========================================
   3. HERO SECTION RESPONSIVE FIXES
   ========================================== */

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-section {
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
    min-height: 85vh;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-content {
    order: 1;
    text-align: left;
  }

  .hero-visual {
    order: 2;
    max-width: 500px;
    margin-left: auto;
  }

  .hero-badge {
    margin: 0;
  }

  .hero-title {
    font-size: clamp(3rem, 5vw, 4rem);
    max-width: 600px;
  }

  .hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    max-width: 550px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    max-width: none;
    min-width: 180px;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
  }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-section {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    min-height: 80vh;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-content {
    order: 1;
    text-align: left;
  }

  .hero-visual {
    order: 2;
    max-width: 450px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  }

  .hero-description {
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    min-height: 75vh;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-badge {
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    margin: 0 auto;
  }

  .hero-description {
    font-size: clamp(1rem, 1.6vw, 1.1875rem);
    margin: 0 auto;
    max-width: 90%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
    min-height: 70vh;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }

  .hero-description {
    font-size: clamp(0.95rem, 3vw, 1.125rem);
    max-width: 95%;
  }

  .hero-visual {
    max-width: 350px;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 300px;
  }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
  .hero-section {
    padding: 2.5rem 0 2rem;
    min-height: 65vh;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.15;
  }

  .hero-description {
    font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
    line-height: 1.5;
  }

  .hero-visual {
    max-width: 300px;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    min-width: 100px;
  }

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

  .stat-label {
    font-size: 0.8125rem;
  }
}

/* ==========================================
   4. HERO FEATURE CARDS RESPONSIVE FIXES
   (Premium Templates, Easy Customization, Mobile Ready, 100% Free)
   ========================================== */

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 550px;
    margin: 0;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 1.25rem;
    padding: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .hero-feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.35);
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(255, 255, 255, 1);
  }

  .feature-icon-hero {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .hero-feature-card:hover .feature-icon-hero {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.45);
  }

  .hero-feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
  }

  .hero-feature-card p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
  }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 480px;
    margin: 0;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 1.125rem;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .feature-icon-hero {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 1rem;
  }

  .hero-feature-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
  }

  .hero-feature-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 1.125rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .feature-icon-hero {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 1rem;
  }

  .hero-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
  }

  .hero-feature-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 160px;
  }

  .feature-icon-hero {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 0.875rem;
    margin-bottom: 0.25rem;
  }

  .hero-feature-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
  }

  .hero-feature-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
  }
}

/* Mobile Small (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
  .hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.875rem;
    padding: 1.125rem 0.875rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 150px;
  }

  .feature-icon-hero {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .hero-feature-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
  }

  .hero-feature-card p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
  }
}

/* Mobile Extra Small (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
  .hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 140px;
  }

  .feature-icon-hero {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.75rem;
  }

  .hero-feature-card h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
  }

  .hero-feature-card p {
    font-size: 0.6875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
  }
}

/* Mobile Very Small (< 360px) */
@media (max-width: 359px) {
  .hero-features-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .hero-feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.875rem;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
  }

  .feature-icon-hero {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 0.75rem;
    flex-shrink: 0;
  }

  .hero-feature-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    text-align: left;
  }

  .hero-feature-card p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    text-align: left;
  }

  .hero-feature-card > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }
}

/* Touch device hover fix */
@media (hover: none) and (pointer: coarse) {
  .hero-feature-card:hover {
    transform: none;
  }

  .hero-feature-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* ==========================================
   5. CARD GRIDS RESPONSIVE FIXES
   ========================================== */

/* Quick Links Grid */
@media (min-width: 1200px) {
  .quick-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .quick-link-card {
    max-width: 100%;
  }
}

/* Features Grid */
@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Templates Grid */
@media (min-width: 1200px) {
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
  }

  .template-card {
    max-width: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .template-card {
    max-width: 100%;
  }
}

/* Pricing Grid */
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Services Grid */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Team Grid */
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 575px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================
   6. FOOTER RESPONSIVE FIXES
   ========================================== */

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .footer-discord-section {
    align-items: flex-end;
  }

  .simple-footer-content {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }

  .simple-footer-right {
    align-items: flex-end;
  }
}

@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav-section,
  .footer-discord-section {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .discord-link {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .simple-footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .simple-footer-right {
    align-items: center;
  }

  .simple-footer-nav {
    justify-content: center;
  }

  .simple-footer-social {
    justify-content: center;
  }

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

/* ==========================================
   7. MODALS AND OVERLAYS RESPONSIVE FIXES
   ========================================== */

/* Upgrade Modal */
@media (min-width: 768px) {
  .upgrade-modal,
  .info-modal-overlay .upgrade-modal {
    max-width: 600px;
    width: 90%;
  }

  .upgrade-modal-content {
    padding: 2.5rem;
  }
}

@media (max-width: 767px) {
  .upgrade-modal-overlay,
  .info-modal-overlay {
    padding: 1rem;
  }

  .upgrade-modal {
    max-width: 100%;
    width: 95%;
    max-height: 92vh;
  }

  .upgrade-modal-content {
    padding: 1.75rem;
  }

  .upgrade-icon {
    width: 64px;
    height: 64px;
  }

  .upgrade-modal-content h2 {
    font-size: 1.75rem;
  }

  .upgrade-main-text {
    font-size: 1rem;
  }

  .upgrade-benefits {
    max-width: 100%;
  }

  .upgrade-pricing {
    padding: 1rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .upgrade-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .upgrade-modal {
    width: 100%;
    max-height: 95vh;
  }

  .upgrade-modal-content {
    padding: 1.5rem;
  }

  .upgrade-icon {
    width: 56px;
    height: 56px;
  }

  .upgrade-modal-content h2 {
    font-size: 1.5rem;
  }

  .upgrade-main-text {
    font-size: 0.9375rem;
  }

  .upgrade-benefit span {
    font-size: 0.875rem;
  }

  .price-amount {
    font-size: 2.25rem;
  }
}

/* Template Modal */
@media (max-width: 767px) {
  .modal-content {
    width: 95vw;
    max-height: 92vh;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-header h3 {
    font-size: 1.125rem;
  }

  .modal-body {
    padding: 1.25rem;
    max-height: calc(92vh - 100px);
  }

  .template-modal .preview-container {
    height: 300px;
  }

  .preview-actions,
  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .preview-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }
}

/* ==========================================
   8. BUTTONS AND FORMS RESPONSIVE FIXES
   ========================================== */

/* Touch-friendly buttons */
@media (max-width: 767px) {
  .btn,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.75rem;
  }

  .btn-large {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }

  /* Forms */
  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
  }

  textarea {
    min-height: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================
   9. TYPOGRAPHY RESPONSIVE FIXES
   ========================================== */

@media (max-width: 767px) {
  h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.5rem, 4.5vw, 1.875rem);
    line-height: 1.25;
  }

  h4 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    line-height: 1.3;
  }

  h5 {
    font-size: clamp(1.125rem, 3.5vw, 1.25rem);
    line-height: 1.35;
  }

  h6 {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.4;
  }

  p, li {
    font-size: clamp(0.9375rem, 3vw, 1rem);
    line-height: 1.6;
  }

  .section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    line-height: 1.6;
  }
}

/* ==========================================
   10. CONTACT PAGE RESPONSIVE FIXES
   ========================================== */

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container,
  .contact-info-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================
   11. FEATURES PAGE RESPONSIVE FIXES
   ========================================== */

@media (min-width: 992px) {
  .feature-highlight {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  .feature-highlight {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .feature-demo {
    max-width: 100%;
    margin: 0 auto;
  }

  .feature-info {
    text-align: center;
  }

  .feature-benefits {
    text-align: left;
    max-width: 100%;
  }
}

/* ==========================================
   12. CTA SECTION RESPONSIVE FIXES
   ========================================== */

@media (max-width: 767px) {
  .cta-section {
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
  }

  .cta-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .cta-content p {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .cta-features {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }

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

  .stat-label {
    font-size: 0.8125rem;
  }
}

/* ==========================================
   13. EDITOR PAGE RESPONSIVE FIXES
   ========================================== */

@media (min-width: 1024px) {
  .editor-layout {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
  }

  .editor-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

@media (max-width: 1023px) {
  .editor-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .editor-sidebar {
    position: static;
    order: 2;
  }

  .editor-main {
    order: 1;
  }

  .editor-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  .editor-header h2 {
    margin-left: 0;
  }

  .editor-controls {
    margin-right: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .editor-controls {
    flex-direction: column;
    width: 100%;
  }

  .editor-controls .btn {
    width: 100%;
  }

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

  .preview-frame.tablet,
  .preview-frame.mobile {
    width: 100%;
  }
}

/* ==========================================
   14. SAFE AREA SUPPORT FOR NOTCHED DEVICES
   ========================================== */

@supports (padding: max(0px)) {
  .navbar,
  .nav-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .footer-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ==========================================
   15. LANDSCAPE ORIENTATION FIXES
   ========================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .nav-links {
    padding: 3rem 1.5rem 1.5rem;
    justify-content: flex-start;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    min-height: 40px;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================
   16. PRINT STYLES
   ========================================== */

@media print {
  .navbar,
  .mobile-menu-toggle,
  .hero-actions,
  .cta-actions,
  .btn,
  button,
  .footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* ==========================================
   17. ACCESSIBILITY - REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   18. HIGH CONTRAST MODE
   ========================================== */

@media (prefers-contrast: high) {
  .btn,
  .nav-link {
    border-width: 2px;
  }

  .card,
  .template-card,
  .feature-card,
  .pricing-card {
    border-width: 2px;
  }
}

/* ==========================================
   19. FEATURES PAGE ADDITIONAL RESPONSIVE FIXES
   ========================================== */

/* Features Header */
@media (max-width: 991px) {
  .features-header {
    text-align: center;
    padding: 0 1rem;
  }

  .features-header h1,
  .features-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .features-subtitle,
  .features-header p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Feature Highlight Section */
@media (min-width: 992px) {
  .feature-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .feature-demo {
    order: 1;
  }

  .feature-info {
    order: 2;
  }
}

@media (max-width: 991px) {
  .feature-highlight {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .feature-demo {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .feature-info {
    text-align: center;
    padding: 0 1rem;
  }

  .feature-info h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
  }

  .feature-info p {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.6;
  }

  .feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
  }

  .feature-benefits li {
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  }
}

/* Feature Items Grid */
@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .feature-item {
    padding: 2rem 1.5rem;
  }

  .feature-item h4 {
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
  }

  .feature-item p {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
  }
}

/* ==========================================
   20. PRICING PAGE ADDITIONAL RESPONSIVE FIXES
   ========================================== */

/* Pricing Header */
@media (max-width: 991px) {
  .pricing-header {
    text-align: center;
    padding: 0 1rem;
  }

  .pricing-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 100%;
  }
}

/* Pricing Grid */
@media (min-width: 992px) {
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .pricing-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .pricing-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Pricing Card Responsive */
@media (max-width: 575px) {
  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-header h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .price {
    margin: 1.25rem 0;
  }

  .price .amount {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .pricing-features ul {
    gap: 0.75rem;
  }

  .pricing-features li {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    padding: 0.75rem 0;
  }

  .btn-primary.full-width {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Featured Pricing Card */
@media (max-width: 991px) {
  .pricing-card.featured {
    transform: none;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
  }
}

/* ==========================================
   21. CONTACT PAGE ADDITIONAL RESPONSIVE FIXES
   ========================================== */

/* Contact Header */
@media (max-width: 991px) {
  .contact-header {
    text-align: center;
    padding: 0 1rem;
  }

  .contact-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 100%;
  }
}

/* Contact Grid */
@media (min-width: 992px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (max-width: 991px) {
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  .contact-grid {
    padding: 0 1rem;
    gap: 2rem;
  }
}

/* Contact Form */
@media (min-width: 768px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .form-group {
    width: 100%;
  }

  .contact-form-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .contact-form-header p {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
  }
}

/* Contact Info Cards */
@media (min-width: 768px) {
  .contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 767px) {
  .contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-info-card h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
  }

  .contact-info-card p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }
}

/* ==========================================
   22. ABOUT PAGE ADDITIONAL RESPONSIVE FIXES
   ========================================== */

/* About Header */
@media (max-width: 991px) {
  .about-header {
    text-align: center;
    padding: 0 1.5rem !important;
    max-width: 100% !important;
  }

  .about-subtitle {
    font-size: clamp(1.0625rem, 3vw, 1.3rem) !important;
    line-height: 1.6 !important;
  }
}

/* Modern Card Grid */
.modern-card-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .modern-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .modern-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .modern-card-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .feature-card {
    padding: 2rem 1.5rem !important;
  }

  .card-icon {
    width: 56px !important;
    height: 56px !important;
  }

  .feature-card h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.4rem) !important;
  }

  .feature-card p {
    font-size: clamp(0.9375rem, 2.5vw, 1rem) !important;
  }
}

/* What We Do Content */
@media (max-width: 767px) {
  .wwd-intro {
    margin-bottom: 2rem !important;
  }

  .lead-text {
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
    padding: 1.5rem !important;
  }
}

/* Team Grid */
.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

/* ==========================================
   23. TEMPLATES & PRO-TEMPLATES PAGE FIXES
   ========================================== */

/* Template Stats Grid */
@media (min-width: 768px) {
  .template-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .template-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .stat-box {
    padding: 1.5rem 1rem;
  }

  .stat-box h3 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .stat-box p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }
}

/* Template Categories */
@media (max-width: 767px) {
  .template-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0 1rem;
  }

  .category-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-width: auto;
  }
}

/* ==========================================
   24. CREATE PAGE RESPONSIVE FIXES
   ========================================== */

/* Create Page Steps */
@media (min-width: 992px) {
  .steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
  }

  .step-arrow {
    display: flex;
  }
}

@media (max-width: 991px) {
  .steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .step-arrow {
    display: none;
  }

  .step-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .steps-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .step-icon {
    width: 56px;
    height: 56px;
  }

  .step-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }

  .step-card p {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
  }
}

/* ==========================================
   25. TESTIMONIALS RESPONSIVE FIXES
   ========================================== */

/* Testimonials Grid */
@media (min-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .testimonial-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .testimonial-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .testimonial-card {
    padding: 1.75rem 1.5rem;
  }

  .testimonial-text {
    font-size: clamp(0.9375rem, 2.8vw, 1rem);
    line-height: 1.6;
  }

  .testimonial-rating {
    gap: 0.375rem;
    margin-bottom: 1.25rem;
  }

  .testimonial-author {
    gap: 0.875rem;
  }

  .author-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .author-info h4 {
    font-size: clamp(1rem, 3vw, 1.125rem);
  }

  .author-info p {
    font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
  }
}

/* ==========================================
   26. HOW IT WORKS SECTION RESPONSIVE FIXES
   ========================================== */

@media (max-width: 767px) {
  .how-it-works-section {
    padding: 3rem 0;
  }

  .section-header {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .section-subtitle {
    font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  }
}

/* ==========================================
   27. SHOWCASE SECTION RESPONSIVE FIXES
   ========================================== */

/* Features Showcase Grid */
@media (min-width: 1200px) {
  .features-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .features-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .features-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .features-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .showcase-card {
    padding: 2rem 1.5rem;
  }

  .showcase-icon {
    width: 56px;
    height: 56px;
  }

  .showcase-card h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
  }

  .showcase-card p {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
  }
}

/* ==========================================
   28. SERVICES GRID RESPONSIVE FIXES
   ========================================== */

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
  }

  .service-card h3 {
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
  }

  .service-card p {
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
  }
}

/* ==========================================
   29. GENERAL MOBILE OPTIMIZATIONS
   ========================================== */

/* All Section Padding Mobile */
@media (max-width: 767px) {
  section.section,
  .section {
    padding: 3rem 0 !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* All Buttons Mobile */
@media (max-width: 575px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* All Form Inputs Mobile */
@media (max-width: 575px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
  }

  textarea {
    min-height: 120px;
  }

  label {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }
}

/* All Cards Equal Height Fix */
.features-grid,
.pricing-grid,
.templates-grid,
.testimonials-grid,
.services-grid,
.team-grid,
.modern-card-grid,
.quick-links-grid,
.features-showcase-grid {
  display: grid;
}

.feature-item,
.pricing-card,
.template-card,
.testimonial-card,
.service-card,
.team-card,
.feature-card,
.quick-link-card,
.showcase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Text Wrapping */
@media (max-width: 575px) {
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  p, li, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ==========================================
   30. FINAL GLOBAL FIXES
   ========================================== */

/* Prevent Layout Shift */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Fix Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix SVG Responsiveness */
svg {
  max-width: 100%;
  height: auto;
}

/* Prevent Zoom on Input Focus (iOS) */
@media (max-width: 575px) {
  input:focus,
  select:focus,
  textarea:focus {
    font-size: 16px;
  }
}

/* Fix Modal Overflow on Mobile */
@media (max-width: 575px) {
  .modal,
  .overlay,
  .popup {
    width: 95%;
    max-width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.5rem;
  }

  .modal-header h2,
  .modal-header h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }
}

/* End of Responsive Enhancements */
