/* Comprehensive Responsive Design
 * Desktop: 1400px+
 * Tablet: 900px - 1399px
 * Mobile: 767px and below
 */

/* ============================================
   DESKTOP (1400px+) - Default Styles
   ============================================ */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Mobile Portrait Visibility Classes */
.hide-mobile-portrait {
  display: block;
}

.show-mobile-portrait {
  display: none;
}

@media (max-width: 767px) {
  .hide-mobile-portrait {
    display: none !important;
  }
  
  .show-mobile-portrait {
    display: block !important;
  }
}

/* ============================================
   TABLET (900px - 1399px)
   ============================================ */
@media (min-width: 900px) and (max-width: 1399px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.375rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .nav-menu {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-dropdown-list {
    min-width: 250px;
  }
  
  /* Adjust font sizes */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  /* Two column layouts become single column */
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Reduce padding */
  .card-3d {
    padding: 1.5rem;
  }
}

/* ============================================
   MOBILE (767px and below)
   ============================================ */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  /* Header & Navigation */
  .header {
    padding: 1rem 0;
  }
  
  .header .container {
    padding: 0 1rem;
  }
  
  .logo-wrapper {
    font-size: 1.25rem;
  }
  
  .logo {
    width: 32px;
    height: 32px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }
  
  .nav-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-dropdown-list {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(20, 27, 45, 0.5);
    margin-top: 0.5rem;
    padding-left: 1rem;
    min-width: auto;
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: block !important;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }
  
  /* Hero Section */
  .hero {
    padding: 4rem 0 3rem !important;
  }
  
  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0 !important;
  }
  
  .section-dark {
    padding: 3rem 0 !important;
  }
  
  /* Typography */
  h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
  
  h3 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Cards & Grids */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-3d {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .btn-primary,
  .btn-secondary {
    display: block;
    text-align: center;
  }
  
  /* Images & GIFs */
  img {
    max-width: 100%;
    height: auto;
  }
  
  .gif-container img {
    width: 100%;
    border-radius: 12px;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Blog Cards */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Service Cards */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Pricing Cards */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Forms */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  /* Tables */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }
  
  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }
  
  /* Spacing adjustments */
  .mb-4 {
    margin-bottom: 1.5rem;
  }
  
  .mt-4 {
    margin-top: 1.5rem;
  }
  
  .py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   SMALL MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .card-3d {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .section {
    padding: 2rem 0 !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
}

/* Responsive Images */
.responsive-img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Responsive Videos */
.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.responsive-video iframe,
.responsive-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Tables */
@media (max-width: 767px) {
  .responsive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .responsive-table table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .responsive-table th,
  .responsive-table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Prevent Horizontal Scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 767px) {
  button,
  .btn,
  a.btn {
    min-height: 44px;
    min-width: 44px;
  }
}
/* ENHANCED RESPONSIVE DESIGN - COMPLETE COVERAGE
 * Ensures full responsiveness across all devices
 */

/* ============================================
   MOBILE FIRST (320px - 767px)
   ============================================ */
@media (max-width: 767px) {
  /* Typography */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  h3 { font-size: 1.5rem !important; }
  p { font-size: 1rem !important; }
  
  /* Container */
  .container {
    padding: 0 1rem !important;
    max-width: 100% !important;
  }
  
  /* Navigation */
  .nav-menu {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .nav-dropdown-list {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    background: rgba(20, 27, 45, 0.95) !important;
    border: none !important;
    padding: 0.5rem 0 !important;
  }
  
  /* Hero Sections */
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .hero p {
    font-size: 1rem !important;
  }
  
  /* Grids */
  .card-grid,
  .service-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0 !important;
  }
  
  /* Cards */
  .card-3d,
  .service-card,
  .blog-card,
  .pricing-card {
    padding: 1.5rem !important;
  }
  
  /* Buttons */
  .btn {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1rem !important;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Videos */
  video {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Hide desktop elements */
  .hide-mobile {
    display: none !important;
  }
  
  /* Show mobile elements */
  .show-mobile {
    display: block !important;
  }
}

/* ============================================
   TABLET (768px - 899px)
   ============================================ */
@media (min-width: 768px) and (max-width: 899px) {
  .container {
    max-width: 100% !important;
    padding: 0 2rem !important;
  }
  
  .card-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .hero h1 {
    font-size: 3rem !important;
  }
  
  .section {
    padding: 4rem 0 !important;
  }
}

/* ============================================
   TABLET LANDSCAPE (900px - 1399px)
   ============================================ */
@media (min-width: 900px) and (max-width: 1399px) {
  .container {
    max-width: 1200px !important;
    padding: 0 2rem !important;
  }
  
  .card-grid,
  .service-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .hero h1 {
    font-size: 3.5rem !important;
  }
  
  .section {
    padding: 5rem 0 !important;
  }
}

/* ============================================
   TABLET LANDSCAPE (900px - 1399px)
   ============================================ */
@media (min-width: 900px) and (max-width: 1399px) {
  .container {
    max-width: 1200px !important;
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .hero h1 {
    font-size: 3.5rem !important;
  }
}

/* ============================================
   DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px !important;
  }
  
  .hero h1 {
    font-size: 4rem !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Videos */
video {
  max-width: 100%;
  height: auto;
}

/* Responsive Tables */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* Responsive Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 767px) {
  button,
  .btn,
  a.btn {
    min-height: 44px;
    min-width: 44px;
  }
}

