/* ============================================================
   VARMA CONSTRUCTIONS — COMPREHENSIVE MOBILE OPTIMIZATION
   Covers all 16 pages, every section, every breakpoint
   ============================================================ */

/* ============================================================
   1. BASE & TYPOGRAPHY SCALE
   ============================================================ */
:root {
  --section-padding-mobile: 60px 0;
  --section-padding-tablet: 80px 0;
  --touch-target-min: 44px; /* iOS/Android minimum touch target */
}

html { 
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
}

body {
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2); /* Better tap feedback */
}

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

/* Optimize font rendering on mobile */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. TOP BAR — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .top-bar { display: none; } /* hide on mobile, keep it clean */
}

/* ============================================================
   3. NAVBAR — FULL MOBILE OVERHAUL
   ============================================================ */
@media (max-width: 868px) {
  .modern-navbar {
    padding: 0 16px;
    height: 64px;
  }
  .nav-container {
    height: 64px;
    padding: 0;
  }
  .brand-logo img { height: 36px; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { font-size: 0.55rem; }

  /* Full-screen mobile menu */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(12, 14, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 24px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
    box-shadow: none;
  }
  .nav-item { width: 100%; text-align: center; }
  .nav-link {
    font-size: 1.25rem !important;
    font-weight: 600;
    padding: 16px !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }
  .nav-item.active .nav-link { color: var(--accent); }

  /* Hamburger icon animation */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
  }
  .nav-actions .btn { display: none; }

  /* Add mobile CTA at bottom of menu */
  .nav-links.open::after {
    content: none;
  }
}

/* ============================================================
   4. HERO SECTION — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .hero-section {
    min-height: 100svh;
    padding: 80px 0 60px;
  }
  .hero-content { padding: 0 16px; }
  .hero-title { 
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-subtitle { 
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hero-description {
    font-size: 0.875rem !important;
    line-height: 1.5;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-cta-group .btn { 
    width: 100%; 
    max-width: 320px; 
    justify-content: center;
    font-size: 0.875rem;
    padding: 12px 20px;
  }
  .hero-pill { font-size: 0.7rem; padding: 5px 12px; }
  .hero-slider-controls { gap: 8px; margin-top: 20px; }
  .hero-dot { width: 6px; height: 6px; }
}

/* ============================================================
   5. STATS BAR — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .stats-card-grid,
  .hero-stats-bar .stats-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px;
    border-radius: 12px;
    overflow: hidden;
  }
  .stat-item {
    padding: 24px 16px;
    border-radius: 0;
  }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; }
}
@media (max-width: 400px) {
  .stats-card-grid,
  .hero-stats-bar .stats-card-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat-number { font-size: 1.6rem; }
}

/* ============================================================
   6. SECTION HEADER — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .section-header { margin-bottom: 36px; }
  .section-title { 
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.3;
  }
  .section-subtitle { 
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .section-pill { font-size: 0.7rem; padding: 5px 12px; }
}

/* ============================================================
   7. SERVICES CARDS GRID — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 200px; }
  .service-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .service-card-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .service-card-body {
    padding: 20px 16px;
  }
}

/* ============================================================
   8. ABOUT SECTION — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-media-card { order: -1; }
  .about-media-card img { height: 340px; }
}
@media (max-width: 640px) {
  .about-feature-list { grid-template-columns: 1fr; gap: 12px; }
  .about-media-card img { height: 260px; }
  .about-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .about-feature-item {
    font-size: 0.875rem;
  }
}

/* ============================================================
   9. BEFORE/AFTER SLIDER — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .ba-slider-container { height: 320px; border-radius: 12px; }
  .ba-handle-icon { width: 40px; height: 40px; font-size: 0.75rem; }
  .ba-badge-before,
  .ba-badge-after,
  .ba-label { font-size: 0.65rem; padding: 4px 8px; }
}
@media (max-width: 480px) {
  .ba-slider-container { height: 240px; }
}

/* ============================================================
   10. PROCESS TIMELINE — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .process-line { display: none; }
  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 20px 16px;
  }
  .process-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1rem;
    margin-bottom: 0;
  }
  .process-step-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0;
  }
  .process-step-content {
    flex: 1;
    min-width: 0; /* Important for text wrapping */
  }
  .process-step-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .process-step-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 520px) {
  .process-timeline { 
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .process-step { 
    flex-direction: row; 
    align-items: flex-start; 
    gap: 12px; 
    text-align: left;
    padding: 18px 14px;
  }
  .process-step-number { 
    font-size: 0.95rem; 
    width: 44px;
    height: 44px;
  }
  .process-step-icon { 
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .process-step-title {
    font-size: 0.9rem;
  }
  .process-step-desc {
    font-size: 0.8rem;
  }
}

/* ============================================================
   11. PORTFOLIO GRID — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
  .portfolio-card { border-radius: 12px; }
  .portfolio-card img { height: 220px; }
  .portfolio-card-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  .portfolio-card-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  .portfolio-card-cat {
    font-size: 0.75rem;
  }
  .portfolio-filters { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .filter-btn { font-size: 0.75rem; padding: 6px 14px; }
}

/* ============================================================
   12. TESTIMONIALS — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .testimonial-card {
    padding: 20px 16px;
  }
}

/* ============================================================
   13. CTA BAND — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .cta-band-text h2 { 
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .cta-band-text p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .cta-band-actions { flex-direction: column; width: 100%; gap: 12px; }
  .cta-band-actions .btn { 
    width: 100%; 
    justify-content: center;
    font-size: 0.875rem;
    padding: 12px 20px;
  }
}

/* ============================================================
   14. FOOTER — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-col-brand { grid-column: auto; }
  .footer-brand-desc { display: none; }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-bottom-links { justify-content: center; }
}

/* ============================================================
   15. FLOATING ACTION BUTTONS — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .floating-actions {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }
  .fab-btn { width: 52px; height: 52px; font-size: 1.1rem; }
  
  /* Hide scroll-to-top on mobile to prevent overlap */
  .scroll-to-top {
    display: none !important;
  }
}

/* ============================================================
   16. PAGE HERO (INNER PAGES) — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .page-hero {
    min-height: 320px;
    padding: 100px 16px 60px;
  }
  .page-hero-title { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .page-hero-subtitle { font-size: 0.9rem; }
  .breadcrumb-nav { font-size: 0.8rem; flex-wrap: wrap; }
}

/* ============================================================
   17. ABOUT PAGE — LEADERSHIP & VISION GRIDS — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .leadership-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .vision-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .leader-card-img { height: 200px; }
  .vision-grid { grid-template-columns: 1fr; }
  .vision-card { padding: 24px 20px; }
}

/* ============================================================
   18. CONTACT PAGE — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-main-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .contact-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-info-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-map-frame iframe { height: 280px; }
}

/* ============================================================
   19. PROJECT DETAIL PAGES — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-info-card { position: static; }
}
@media (max-width: 640px) {
  .project-gallery-main img { height: 260px; }
  .project-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .project-thumb { aspect-ratio: 4/3; }
  .project-info-card { padding: 24px 18px; }
  .project-info-title { font-size: 1.2rem; }
}

/* ============================================================
   20. LIGHTBOX MODAL — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .lightbox-inner { padding: 20px 16px; width: 100%; }
  #lightboxImage { max-height: 60vh; border-radius: 10px; }
  .lightbox-caption { font-size: 0.8rem; }
}

/* ============================================================
   21. QUOTE MODAL — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .quote-modal-inner {
    width: 100%;
    max-height: 95dvh;
    border-radius: 16px 16px 0 0;
    padding: 28px 18px;
    overflow-y: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    top: auto;
  }
  .modal-overlay.active .quote-modal-inner,
  .modal-overlay.open .quote-modal-inner { animation: slideUpModal 0.35s ease; }
  @keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .form-row { grid-template-columns: 1fr; }
  .quote-modal-header h2 { font-size: 1.2rem; }
}

/* ============================================================
   22. GENERAL SECTION PADDING — MOBILE
   ============================================================ */
@media (max-width: 868px) {
  .section-padding { padding: 60px 0; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .section-padding { padding: 48px 0; }
}

/* ============================================================
   23. BTN SIZES — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
  .btn { font-size: 0.875rem; }
}

/* ============================================================
   24. HERO NAV CONTROLS — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .hero-nav-btn { width: 40px; height: 40px; font-size: 0.85rem; }
  .hero-slider-controls { gap: 8px; margin-top: 20px; }
}

/* ============================================================
   25. TOP BAR TABLET
   ============================================================ */
@media (max-width: 1024px) and (min-width: 869px) {
  .top-bar-left .top-location { display: none; }
}

/* ============================================================
   26. FLOOR PLAN & GALLERY PAGE EXTRA
   ============================================================ */
@media (max-width: 640px) {
  .project-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   27. SCROLL REVEAL — REDUCE MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero-slide,
  .process-step,
  .portfolio-card,
  .service-card,
  .leader-card,
  .vision-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   28. TOUCH DEVICE IMPROVEMENTS
   ============================================================ */
@media (hover: none) {
  /* Show portfolio overlay always on touch */
  .portfolio-card-overlay {
    opacity: 1;
    background: linear-gradient(
      0deg,
      rgba(12,14,18,0.92) 0%,
      rgba(12,14,18,0.4) 60%,
      transparent 100%
    );
  }
  .portfolio-card img { transform: none !important; }
  /* Show service card link always on touch */
  .service-card-link { opacity: 1; }
}

/* ============================================================
   29. SAFE AREA (iPhone notch / home bar)
   ============================================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-actions {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .modern-footer .footer-bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ============================================================
   30. VERY SMALL SCREENS (320px — old phones)
   ============================================================ */
@media (max-width: 360px) {
  .hero-title { font-size: 1.6rem !important; }
  .page-hero-title { font-size: 1.4rem; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.65rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .brand-subtitle { display: none; }
}


/* ============================================================
   31. LANDSCAPE MODE OPTIMIZATIONS (MOBILE)
   ============================================================ */
@media (max-width: 868px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 60px 0 40px;
  }
  .hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }
  .hero-cta-group {
    gap: 10px;
  }
  .hero-cta-group .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
  .modern-navbar {
    height: 56px;
  }
  .nav-container {
    height: 56px;
  }
  .top-bar {
    display: none;
  }
}

/* ============================================================
   32. TABLET SPECIFIC OPTIMIZATIONS (768px - 1024px)
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .container {
    padding: 0 32px;
  }
}

/* ============================================================
   33. ENHANCED TOUCH FEEDBACK
   ============================================================ */
@media (hover: none) {
  .touch-device .btn:active,
  .touch-device .nav-link:active,
  .touch-device .service-card:active {
    opacity: 0.85;
    transform: scale(0.98);
  }
  
  /* Make interactive elements more obvious on touch */
  .btn,
  .filter-btn,
  .hero-dot,
  .mobile-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
}

/* ============================================================
   34. IMPROVED FORM MOBILE EXPERIENCE
   ============================================================ */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 14px 12px;
  }
  
  .form-group label {
    font-size: 0.875rem;
    margin-bottom: 6px;
    display: block;
  }
  
  .quote-form button[type="submit"] {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
  }
}

/* ============================================================
   35. BETTER VIDEO / IFRAME RESPONSIVENESS
   ============================================================ */
.video-container,
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

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

@media (max-width: 640px) {
  .contact-map-frame iframe {
    height: 320px !important;
  }
}

/* ============================================================
   36. PERFORMANCE: REDUCE MOTION FOR BATTERY SAVE
   ============================================================ */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ============================================================
   37. NOTCH / CUTOUT SAFE AREAS (iPhone X+, Pixel, etc.)
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  .modern-navbar {
    padding-top: calc(0px + env(safe-area-inset-top));
  }
  
  .top-bar {
    padding-top: calc(8px + env(safe-area-inset-top));
  }
  
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ============================================================
   38. IMPROVED ACCESSIBILITY - HIGH CONTRAST
   ============================================================ */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000;
  }
  
  .section-pill {
    border-width: 2px;
  }
  
  .nav-link {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s;
  }
  
  .nav-link:hover,
  .nav-item.active .nav-link {
    text-decoration-color: var(--accent);
  }
}

/* ============================================================
   39. BETTER MOBILE MENU ANIMATIONS
   ============================================================ */
@media (max-width: 868px) {
  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  .nav-links.open {
    animation: slideInFromRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Stagger menu items */
  .nav-links.open .nav-item {
    animation: fadeInUp 0.3s ease-out backwards;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-links.open .nav-item:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.open .nav-item:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.open .nav-item:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.open .nav-item:nth-child(4) { animation-delay: 0.2s; }
  .nav-links.open .nav-item:nth-child(5) { animation-delay: 0.25s; }
}


/* ============================================================
   46. MOBILE TYPOGRAPHY IMPROVEMENTS
   ============================================================ */
@media (max-width: 640px) {
  /* Base text sizes */
  body {
    font-size: 14px;
  }
  
  /* All headings smaller on mobile */
  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  h4 {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  /* All paragraph text */
  p {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  /* Better text shadows for readability over images */
  .hero-title,
  .hero-subtitle,
  .hero-description,
  .page-hero-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }
  
  /* Card overlays more readable */
  .portfolio-card-overlay {
    background: linear-gradient(
      0deg,
      rgba(12,14,18,0.95) 0%,
      rgba(12,14,18,0.7) 50%,
      rgba(12,14,18,0.3) 80%,
      transparent 100%
    );
  }
  
  /* Better padding for text containers */
  .service-card-body,
  .testimonial-card,
  .about-content-left,
  .content_bottom {
    padding: 20px 16px;
  }
  
  /* List items more readable */
  li {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

/* ============================================================
   47. EXTRA SMALL DEVICES (Very tight adjustments)
   ============================================================ */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.4rem !important;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .service-card-title,
  .portfolio-card-title {
    font-size: 1rem;
  }
  
  .btn {
    font-size: 0.8125rem;
    padding: 10px 16px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
}

/* ============================================================
   48. BETTER FLOATING BUTTON POSITIONING
   ============================================================ */
@media (max-width: 640px) {
  .floating-actions {
    bottom: 24px;
    right: 20px;
    z-index: 1000;
  }
  
  .fab-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
  
  /* Ensure they don't overlap with footer */
  .modern-footer {
    padding-bottom: 100px;
  }
}

/* ============================================================
   49. IMPROVE READABILITY WITH BETTER CONTRAST
   ============================================================ */
@media (max-width: 640px) {
  /* Make text more readable on mobile */
  .text-secondary,
  p,
  .hero-subtitle,
  .section-subtitle {
    color: #cbd5e1 !important;
  }
  
  /* Better contrast for card text */
  .service-card-text,
  .about-text,
  .testimonial-text,
  .process-step-desc {
    color: #cbd5e1;
  }
  
  /* Brighter titles */
  h1, h2, h3, h4, h5, h6,
  .hero-title,
  .section-title,
  .service-card-title {
    color: #fff !important;
  }
}
