/* ===================================
   📱 RESPONSIVE DESIGN - Mobile First
   =================================== */

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Hide/Show on Different Screens */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: block;
  }
}

/* Text Alignment */
.text-center-mobile {
  text-align: left;
}

@media screen and (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* Spacing Adjustments */
.section {
  padding: 100px 0;
}

@media screen and (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 50px 0;
  }
}

/* Container Padding */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}

/* ===================================
   GRID SYSTEM
   =================================== */

.grid {
  display: grid;
  gap: 30px;
}

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

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

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

/* Responsive Grid */
@media screen and (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid {
    gap: 25px;
  }
}

@media screen and (max-width: 480px) {
  .grid {
    gap: 20px;
  }
}

/* ===================================
   RESPONSIVE TYPOGRAPHY
   =================================== */

/* Large Screens (Desktop) */
@media screen and (min-width: 1200px) {
  :root {
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 2rem;
    --font-size-h4: 1.5rem;
  }
}

/* Medium Screens (Tablet) */
@media screen and (max-width: 992px) {
  :root {
    --font-size-h1: 3rem;
    --font-size-h2: 2.2rem;
    --font-size-h3: 1.8rem;
    --font-size-h4: 1.3rem;
  }
}

/* Small Screens (Mobile) */
@media screen and (max-width: 768px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.6rem;
    --font-size-h4: 1.2rem;
  }
}

/* Extra Small Screens */
@media screen and (max-width: 480px) {
  :root {
    --font-size-base: 15px;
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.6rem;
    --font-size-h3: 1.4rem;
    --font-size-h4: 1.1rem;
  }
}

/* ===================================
   RESPONSIVE IMAGES
   =================================== */

img {
  max-width: 100%;
  height: auto;
}

.img-responsive {
  width: 100%;
  height: auto;
}

/* ===================================
   RESPONSIVE TABLES
   =================================== */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
}

/* ===================================
   TOUCH TARGETS (Mobile)
   =================================== */

@media screen and (max-width: 768px) {
  /* Larger touch targets for mobile */
  .btn,
  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  /* Hide non-essential elements */
  .header,
  .footer,
  .theme-toggle,
  .language-toggle,
  .hamburger,
  #particles-js {
    display: none !important;
  }
  
  /* Optimize for printing */
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
  
  /* Show URLs after links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
