/* ============================================
   ZERO DEFENCE PRO - RESPONSIVE DESIGN SYSTEM
   Version: 2.0.0 | Mobile First | Breakpoint System
   ============================================ */

/* --------------------------------------------
   TABLE OF CONTENTS
   --------------------------------------------
   1. Breakpoint Variables
   2. Mobile Styles (up to 480px)
   3. Tablet Styles (481px - 768px)
   4. Desktop Styles (769px - 1024px)
   5. Large Desktop (1025px - 1440px)
   6. Ultra Wide (1441px+)
   7. Print Styles
   8. Landscape Orientation
   9. High DPI Screens
   10. Accessibility & Reduced Motion
   11. Touch Device Optimizations
   12. Responsive Components
   13. Responsive Typography Scale
   14. Responsive Spacing Scale
-------------------------------------------- */

/* --------------------------------------------
   1. BREAKPOINT VARIABLES
------------------------------------------- */
:root {
  --breakpoint-xs: 375px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1440px;
  --breakpoint-3xl: 1920px;
  --breakpoint-4xl: 2560px;
}

/* Fluid Typography Base */
:root {
  --fluid-min-width: 320;
  --fluid-max-width: 1920;
  --fluid-min-size: 16;
  --fluid-max-size: 20;
  --fluid-viewport: calc((var(--fluid-max-width) - var(--fluid-min-width)) * 1px);
  
  --fluid-font-size: calc(
    var(--fluid-min-size) * 1px +
    (var(--fluid-max-size) - var(--fluid-min-size)) *
    ((100vw - var(--fluid-min-width) * 1px) / var(--fluid-viewport))
  );
}

/* --------------------------------------------
   2. MOBILE STYLES (up to 480px)
------------------------------------------- */
@media (max-width: 480px) {
  /* Base Typography */
  html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }
  
  body {
    overflow-x: hidden;
    position: relative;
  }
  
  h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.2;
  }
  
  h2 {
    font-size: clamp(1.5rem, 6vw, 1.875rem);
    line-height: 1.25;
  }
  
  h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
  
  h4 {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
  }
  
  /* Container System */
  .container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
  }
  
  .container-fluid {
    padding: 0 12px;
  }
  
  /* Section Spacing */
  section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 35px;
    text-align: center;
  }
  
  .section-header h2 {
    margin-bottom: 10px;
  }
  
  .section-header h2::after {
    width: 50px;
    height: 2px;
    margin: 12px auto 0;
  }
  
  .section-header p {
    font-size: 0.875rem;
    padding: 0 15px;
  }
  
  /* Grid System - Mobile */
  .grid,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5,
  .grid-cols-6 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .grid-gap-sm { gap: 15px; }
  .grid-gap-lg { gap: 25px; }
  
  /* Flex Utilities */
  .flex-row-mobile {
    flex-direction: column;
  }
  
  .flex-wrap-mobile {
    flex-wrap: wrap;
  }
  
  /* Hero Section */
  .hero {
    min-height: 85vh;
    padding: 80px 0 50px;
  }
  
  .hero-content {
    padding: 0 12px;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 6px 14px;
    margin-bottom: 25px;
    gap: 8px;
  }
  
  .badge i {
    font-size: 0.8rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  /* Button System */
  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .btn-xl {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .btn-sm {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
  
  /* Card System */
  .access-card,
  .tool-card,
  .pricing-card,
  .feature-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
  
  .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .access-card h3,
  .tool-card h3,
  .pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  
  .access-card p,
  .tool-card p,
  .pricing-card p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .card-link {
    font-size: 0.8rem;
  }
  
  /* Stats Section */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Navigation - Mobile */
  .navbar {
    padding: 12px 0;
  }
  
  .nav-container {
    padding: 0 16px;
  }
  
  .logo i {
    font-size: 1.4rem;
  }
  
  .logo span {
    font-size: 1rem;
  }
  
  .logo .gradient-text {
    font-size: 1rem;
  }
  
  .nav-actions {
    display: flex;
    margin-left: auto;
  }
  
  .nav-actions .btn-primary {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .nav-actions .btn-primary i {
    font-size: 0.7rem;
  }
  
  .hamburger {
    display: flex;
    margin-left: 10px;
  }
  
  .hamburger span {
    width: 22px;
    height: 2px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-nav-solid);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: var(--z-modal);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 8px 0;
  }
  
  /* Modal & Popup */
  .modal-overlay {
    padding: 15px;
  }
  
  .modal-content {
    width: 100%;
    max-width: calc(100% - 30px);
    padding: 20px;
    border-radius: 20px;
  }
  
  /* Tables */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 600px;
  }
  
  /* Form Elements */
  input,
  select,
  textarea,
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px 14px;
  }
  
  /* Footer */
  .footer {
    padding: 40px 16px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-brand .logo {
    justify-content: center;
  }
  
  .footer-brand p {
    max-width: 100%;
    font-size: 0.85rem;
  }
  
  .footer-links h4 {
    margin-bottom: 15px;
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
  }
  
  .footer-links a {
    margin-bottom: 10px;
  }
  
  .footer-bottom {
    padding-top: 25px;
    margin-top: 25px;
    font-size: 0.7rem;
  }
  
  /* Back to Top Button */
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Notification Toast */
  .notification-toast {
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
    padding: 12px 16px;
    font-size: 0.8rem;
  }
  
  /* Terminal */
  .terminal-container {
    padding: 12px;
    border-radius: 12px;
  }
  
  .terminal-line {
    font-size: 0.7rem;
  }
  
  /* Particle Effects - Disable on mobile for performance */
  .particle-canvas,
  .matrix-bg {
    display: none;
  }
}

/* --------------------------------------------
   3. TABLET STYLES (481px - 768px)
------------------------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
  /* Typography */
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }
  
  h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }
  
  /* Container */
  .container {
    padding: 0 24px;
  }
  
  /* Sections */
  section {
    padding: 70px 0;
  }
  
  .section-header {
    margin-bottom: 50px;
  }
  
  /* Grid - Tablet */
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero Section */
  .hero {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    max-width: 80%;
    margin: 0 auto 35px;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  
  /* Buttons */
  .btn-xl {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  
  /* Cards */
  .access-card,
  .tool-card {
    padding: 25px 20px;
  }
  
  .cards-grid {
    gap: 25px;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* Navigation */
  .nav-menu {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .nav-actions .btn-primary {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
  }
  
  .footer-brand {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-links {
    flex: 0 0 auto;
  }
}

/* --------------------------------------------
   4. DESKTOP STYLES (769px - 1024px)
------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Typography */
  h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
  
  h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
  }
  
  /* Container */
  .container {
    max-width: 960px;
    padding: 0 30px;
  }
  
  /* Grid */
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero Section */
  .hero-title {
    font-size: clamp(3rem, 5vw, 4rem);
  }
  
  /* Cards */
  .access-card {
    padding: 30px 25px;
  }
  
  .access-card h3 {
    font-size: 1.4rem;
  }
  
  .stats-grid {
    gap: 40px;
  }
  
  /* Navigation */
  .nav-actions .btn-primary {
    padding: 8px 20px;
  }
}

/* --------------------------------------------
   5. LARGE DESKTOP (1025px - 1440px)
------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1440px) {
  /* Container */
  .container {
    max-width: 1200px;
    padding: 0 40px;
  }
  
  /* Grid */
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* Hero */
  .hero-title {
    font-size: 4.5rem;
  }
  
  /* Cards Grid */
  .access-grid {
    gap: 30px;
  }
}

/* --------------------------------------------
   6. ULTRA WIDE (1441px+)
------------------------------------------- */
@media (min-width: 1441px) {
  /* Container */
  .container {
    max-width: 1400px;
  }
  
  /* Typography */
  html {
    font-size: 18px;
  }
  
  h1 {
    font-size: 5rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  /* Hero */
  .hero-title {
    font-size: 5.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
  }
  
  /* Cards */
  .access-card {
    padding: 45px 35px;
  }
  
  .access-card h3 {
    font-size: 1.6rem;
  }
  
  .access-card p {
    font-size: 1rem;
  }
  
  /* Grid Gap */
  .grid-gap-responsive {
    gap: 40px;
  }
}

/* 4K Displays */
@media (min-width: 2560px) {
  .container {
    max-width: 1800px;
  }
  
  html {
    font-size: 20px;
  }
  
  .hero-title {
    font-size: 6rem;
  }
}

/* --------------------------------------------
   7. PRINT STYLES
------------------------------------------- */
@media print {
  /* Hide animated and non-essential elements */
  .navbar,
  .footer,
  .back-to-top,
  .particle-canvas,
  .bg-matrix,
  .gradient-overlay,
  .scan-beam,
  .custom-cursor,
  .hero-buttons,
  .no-print,
  .notification-toast,
  .hamburger,
  .nav-actions {
    display: none !important;
  }
  
  /* Print-friendly body */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  /* Containers */
  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  /* Links */
  a {
    text-decoration: underline;
    color: black;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
  
  /* Cards */
  .card,
  .access-card,
  .tool-card,
  .pricing-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ccc;
    background: white !important;
    color: black !important;
    box-shadow: none;
  }
  
  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: black;
  }
  
  /* Images */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }
  
  th, td {
    border: 1px solid #ccc;
    padding: 8px;
  }
  
  /* Code blocks */
  pre, code {
    background: #f5f5f5;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* --------------------------------------------
   8. LANDSCAPE ORIENTATION
------------------------------------------- */
@media (max-width: 900px) and (orientation: landscape) {
  /* Hero section adjustment */
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }
  
  /* Navigation menu */
  .nav-menu {
    overflow-y: auto;
    padding: 60px 0;
  }
  
  .nav-menu.active {
    overflow-y: auto;
  }
  
  /* Sections */
  section {
    padding: 40px 0;
  }
  
  /* Cards become more compact */
  .access-card {
    padding: 15px;
  }
  
  /* Hero buttons row */
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* --------------------------------------------
   9. HIGH DPI SCREENS (Retina)
------------------------------------------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhance text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .gradient-text {
    -webkit-font-smoothing: antialiased;
  }
  
  /* Sharper borders */
  .border-cyan,
  .border-cyan-light {
    border-width: 0.5px;
  }
  
  /* Improve image quality */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* --------------------------------------------
   10. 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;
  }
  
  /* Disable all animated backgrounds */
  .bg-matrix,
  .grid-overlay,
  .scan-beam,
  .cursor-ring,
  .cursor-dot {
    display: none;
  }
  
  /* Disable glitch effects */
  [class*="glitch"],
  .glitch-pro::before,
  .glitch-pro::after {
    animation: none !important;
    transform: none !important;
  }
  
  /* Disable scroll animations */
  [data-animate],
  .fade-up,
  .fade-left,
  .fade-right,
  .zoom-in,
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  /* Disable floating elements */
  .floating-element,
  .animate-float {
    animation: none !important;
    transform: none !important;
  }
  
  /* Disable pulse effects */
  .animate-pulse,
  .animate-pulse-glow {
    animation: none !important;
  }
}

/* --------------------------------------------
   11. TOUCH DEVICE OPTIMIZATIONS
------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch */
  .btn,
  .nav-link,
  .access-card,
  .card-link,
  button,
  a,
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Disable hover effects that cause issues */
  .access-card:hover {
    transform: none;
  }
  
  .tool-card:hover {
    transform: none;
  }
  
  /* Remove scale effects on touch */
  .btn:active {
    transform: scale(0.98);
  }
  
  /* Increase spacing for touch */
  .nav-menu {
    gap: 30px;
  }
  
  .nav-link {
    padding: 10px 20px;
  }
  
  /* Remove cursor effects */
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  
  /* Better touch feedback */
  .access-card:active,
  .tool-card:active {
    background: rgba(0, 255, 255, 0.1);
    transition: background 0.05s;
  }
}

/* --------------------------------------------
   12. RESPONSIVE COMPONENTS
------------------------------------------- */
/* Responsive Image */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive-4by3::before {
  padding-top: 75%;
}

.embed-responsive-1by1::before {
  padding-top: 100%;
}

.embed-responsive iframe,
.embed-responsive video,
.embed-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Text Utilities */
.text-responsive {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.heading-responsive {
  font-size: clamp(1.5rem, 5vw, 3rem);
}

/* Responsive Visibility */
.hide-xs {
  display: block;
}
.hide-sm {
  display: block;
}
.hide-md {
  display: block;
}
.hide-lg {
  display: block;
}
.hide-xl {
  display: block;
}

.show-xs {
  display: none;
}
.show-sm {
  display: none;
}
.show-md {
  display: none;
}
.show-lg {
  display: none;
}
.show-xl {
  display: none;
}

/* Mobile */
@media (max-width: 480px) {
  .hide-xs { display: none; }
  .show-xs { display: block; }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .hide-sm { display: none; }
  .show-sm { display: block; }
}

/* Desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .hide-md { display: none; }
  .show-md { display: block; }
}

/* Large Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hide-lg { display: none; }
  .show-lg { display: block; }
}

/* Ultra Wide */
@media (min-width: 1441px) {
  .hide-xl { display: none; }
  .show-xl { display: block; }
}

/* --------------------------------------------
   13. RESPONSIVE TYPOGRAPHY SCALE
------------------------------------------- */
:root {
  --text-scale-ratio: 1.25;
}

/* Fluid Text Scale */
.text-fluid-xs {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}
.text-fluid-sm {
  font-size: clamp(0.875rem, 2vw, 1rem);
}
.text-fluid-base {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}
.text-fluid-lg {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
}
.text-fluid-xl {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}
.text-fluid-2xl {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
}
.text-fluid-3xl {
  font-size: clamp(1.875rem, 6vw, 2.25rem);
}
.text-fluid-4xl {
  font-size: clamp(2.25rem, 7vw, 3rem);
}
.text-fluid-5xl {
  font-size: clamp(3rem, 8vw, 3.75rem);
}
.text-fluid-6xl {
  font-size: clamp(3.75rem, 10vw, 4.5rem);
}

/* --------------------------------------------
   14. RESPONSIVE SPACING SCALE
------------------------------------------- */
.spacing-responsive-xs {
  padding: clamp(0.5rem, 1vw, 0.75rem);
  margin: clamp(0.5rem, 1vw, 0.75rem);
}
.spacing-responsive-sm {
  padding: clamp(0.75rem, 1.5vw, 1rem);
  margin: clamp(0.75rem, 1.5vw, 1rem);
}
.spacing-responsive-md {
  padding: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(1rem, 2vw, 1.5rem);
}
.spacing-responsive-lg {
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: clamp(1.5rem, 3vw, 2rem);
}
.spacing-responsive-xl {
  padding: clamp(2rem, 4vw, 3rem);
  margin: clamp(2rem, 4vw, 3rem);
}
.spacing-responsive-2xl {
  padding: clamp(3rem, 5vw, 4rem);
  margin: clamp(3rem, 5vw, 4rem);
}

/* --------------------------------------------
   UTILITY CLASSES FOR RESPONSIVE BEHAVIOR
------------------------------------------- */
/* Responsive Text Alignment */
@media (max-width: 768px) {
  .text-mobile-center { text-align: center; }
  .text-mobile-left { text-align: left; }
  .text-mobile-right { text-align: right; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .text-tablet-center { text-align: center; }
  .text-tablet-left { text-align: left; }
  .text-tablet-right { text-align: right; }
}

@media (min-width: 1025px) {
  .text-desktop-center { text-align: center; }
  .text-desktop-left { text-align: left; }
  .text-desktop-right { text-align: right; }
}

/* Responsive Flex Directions */
@media (max-width: 768px) {
  .flex-mobile-column { flex-direction: column; }
  .flex-mobile-row { flex-direction: row; }
  .flex-mobile-wrap { flex-wrap: wrap; }
  .flex-mobile-nowrap { flex-wrap: nowrap; }
}

/* Responsive Widths */
@media (max-width: 768px) {
  .w-mobile-100 { width: 100%; }
  .w-mobile-50 { width: 50%; }
  .w-mobile-25 { width: 25%; }
  .w-mobile-auto { width: auto; }
}

/* Responsive Display */
@media (max-width: 768px) {
  .d-mobile-none { display: none; }
  .d-mobile-block { display: block; }
  .d-mobile-flex { display: flex; }
  .d-mobile-grid { display: grid; }
  .d-mobile-inline { display: inline; }
}

/* --------------------------------------------
   PERFORMANCE OPTIMIZATIONS FOR RESPONSIVE
------------------------------------------- */
/* Lazy loading images */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Reduce paint on scroll */
@media (max-width: 768px) {
  .fixed-mobile {
    position: fixed;
  }
  
  .scroll-container {
    -webkit-overflow-scrolling: touch;
  }
}

/* Prevent zoom on input focus on iOS */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}