/* ===== MOBILE CSS - Kenny504 ===== */

/* Mobile First Approach */
@media (max-width: 768px) {
  
  /* ===== HEADER MOBILE ===== */
  .site-header {
    padding: 0;
  }
  
  .header-inner {
    padding: 12px 0;
    position: relative;
  }
  
  .brand-title {
    display: none; /* Hide brand title on mobile */
  }
  
  .brand-logo {
    height: 35px;
    width: 35px;
  }
  

  
  /* ===== HERO SECTION MOBILE ===== */
  .hero {
    padding: 40px 0;
    min-height: 60vh;
    text-align: center;
  }
  
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-ctas {
    justify-content: center;
    gap: 1rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: 140px;
  }
  
  .hero-preview {
    width: 100%;
    order: 2;
    margin-top: 2rem;
  }
  
  .mockup-card {
    width: 100%;
    max-width: 320px;
    height: 180px;
  }
  
  /* ===== SECTIONS MOBILE ===== */
  .section {
    padding: 40px 0;
  }
  
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  /* ===== GRIDS MOBILE ===== */
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* ===== PROJECTS MOBILE ===== */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dynamic-project {
    margin-bottom: 20px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .project-link {
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  /* ===== CONTACT SECTION MOBILE ===== */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .contact-form {
    padding: 25px 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* ===== reCAPTCHA MOBILE ===== */
  .recaptcha-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
  
  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
  }
  
  /* ===== FOOTER MOBILE ===== */
  .footer-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
  }
  
  /* ===== WHATSAPP FLOATING MOBILE ===== */
  .fab-whatsapp {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 15px;
    font-size: 1.1rem;
  }
  
  /* ===== NOTIFICATIONS MOBILE ===== */
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    border-radius: 8px;
  }
  
  /* ===== LOADING STATES MOBILE ===== */
  .projects-loading {
    padding: 40px 20px;
  }
  
  .loading-spinner {
    font-size: 1.5rem;
  }
  
  /* ===== EMPTY STATES MOBILE ===== */
  .projects-empty {
    padding: 40px 20px;
  }
  
  .empty-state i {
    font-size: 2.5rem;
  }
  
  .empty-state h3 {
    font-size: 1.1rem;
  }
}

/* ===== SMALL MOBILE (iPhone SE, etc.) ===== */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 120px;
  }
  
  .container {
    width: 98%;
    padding: 0 5px;
  }
  
  .contact-form {
    padding: 20px 15px;
  }
  
  .contact-card {
    padding: 20px 15px;
  }
  
  .project-content {
    padding: 15px;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .g-recaptcha {
    transform: scale(0.8);
  }
}

/* ===== TABLET (iPad, etc.) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-preview {
    width: 100%;
    order: 2;
    margin-top: 2rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .brand-title {
    display: block;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
    padding: 30px 0;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  

}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 768px) {
  /* Improve touch targets */
  .btn, .project-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve focus states */
  .btn:focus,
  .project-link:focus {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
  }
  
  /* Improve contrast for better readability */
  .hero-text p {
    color: var(--white);
    opacity: 0.9;
  }
  
  .project-description {
    color: var(--white);
    opacity: 0.8;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .btn:hover {
    transform: none;
  }
  
  .dynamic-project:hover {
    transform: none;
  }
  
  /* Optimize transitions */
  .notification,
  .btn {
    transition: all 0.2s ease;
  }
}
