/* 
==============================================
MOBILE RESPONSIVENESS FIXES FOR ALBERT KWAME TCHALLA PORTFOLIO
==============================================
*/

/* ===== GLOBAL MOBILE FIXES ===== */

/* Ensure proper viewport scaling on all devices */
@media (max-width: 768px) {
  /* Fix container padding */
  .container {
    max-width: 100%;
    padding: 0 15px;
    overflow-x: hidden;
  }
  
  /* Improve text readability on small screens */
  p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Fix button display on mobile */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
  }
  
  /* Adjust hero section layout */
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-text {
    width: 100%;
    padding-right: 0;
  }
  
  .hero-image {
    width: 100%;
    margin: 0 auto 30px;
    max-width: 250px;
  }
  
  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .hero-btns .btn {
    width: 100%;
    max-width: 200px;
  }
  
  /* Center social icons in hero section */
  .social-icons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px auto 0;
    gap: 15px;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  /* Fix about section on mobile */
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
  
  .about-image {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .about-image img {
    max-width: 250px;
    margin: 0 auto;
  }
  
  /* Fix services grid on mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Fix portfolio section on mobile */
  .portfolio-filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Fix testimonials section */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Fix contact form on mobile */
  .contact-form-container {
    flex-direction: column;
  }
  
  .contact-info, .contact-form {
    width: 100%;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  /* Fix footer on mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  /* Center social links in footer */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px auto 0;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  .social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  .footer-logo, .footer-links, .footer-social, .footer-newsletter {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .footer-links ul {
    justify-content: center;
  }
  
  .footer-social ul {
    justify-content: center;
  }
}

/* ===== CHURCH PRODUCTS PAGE SPECIFIC FIXES ===== */

@media (max-width: 768px) {
  /* Fix product sections on mobile */
  .product-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .product-image, .product-details {
    width: 100%;
  }
  
  .product-image {
    order: 1;
    margin-bottom: 20px;
  }
  
  .product-details {
    order: 2;
  }
  
  .product-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Fix church products hero section */
  .church-products-hero {
    min-height: 300px;
    padding: 50px 0;
  }
  
  .church-products-hero h1 {
    font-size: 28px;
  }
  
  .church-products-hero p {
    font-size: 16px;
  }
}

/* ===== NAVIGATION MENU FIXES ===== */

@media (max-width: 768px) {
  /* Fix mobile navigation toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 30px;
    min-height: 21px;
    cursor: pointer;
  }
  
  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background-color: var(--dark-color);
  }
  
  /* Fix mobile menu display */
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    max-width: 80%;
    min-height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    box-sizing: border-box;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 0;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu li a {
    display: block;
    font-size: 16px;
  }
  
  /* Style mobile menu profile section */
  .mobile-menu-profile {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 15px;
  }
  
  .mobile-menu-profile img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
    box-sizing: border-box;
  }
  
  .mobile-menu-profile h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .mobile-menu-profile p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 15px;
  }
  
  .mobile-contact-info {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .mobile-contact-info a {
    min-width: 35px;
    min-height: 35px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  .mobile-contact-info a:hover {
    background-color: var(--primary-color);
    color: white;
  }
}

/* ===== EXTRA SMALL DEVICE FIXES ===== */

@media (max-width: 480px) {
  /* Further reduce font sizes */
  .section-header h5 {
    font-size: 14px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  /* Adjust hero text for very small screens */
  .hero-text h1 {
    font-size: 24px;
  }
  
  .hero-text h2 {
    font-size: 16px;
  }
  
  .hero-text p {
    font-size: 14px;
  }
  
  /* Fix skill tags display */
  .skill-tags {
    justify-content: center;
  }
  
  .skill-tags span {
    font-size: 12px;
    padding: 4px 8px;
    margin: 3px;
  }
  
  /* Fix service cards on very small screens */
  .service-card {
    padding: 20px;
  }
  
  .service-card h3 {
    font-size: 18px;
  }
  
  /* Fix portfolio items on very small screens */
  .portfolio-item {
    margin-bottom: 20px;
  }
  
  .portfolio-overlay h3 {
    font-size: 18px;
  }
  
  /* Fix testimonial cards */
  .testimonial-content {
    padding: 20px;
  }
  
  /* Fix contact form elements */
  .form-group {
    margin-bottom: 10px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 14px;
  }
}
