/* =================================
   ABOUT PAGE MEDIA QUERIES - UPDATED WITH WORKING MOBILE PATTERNS
   ================================= */

/* =================================
   TABLET RESPONSIVE STYLES (768px and below)
   ================================= */
   @media (max-width: 768px) {
    
    /* HEADER CONTAINER - Reduce padding on smaller screens */
    header .container {
        padding: 1rem 15px;
    }
    
    /* LOGO - Make logo smaller on tablets */
    .logo-container .logo {
        font-size: 1.3rem;
    }
    
    /* LOGO SYMBOL - Reduce logo symbol size */
    .logo-symbol {
        font-size: 1.6rem;
    }
    
    /* NAVIGATION - Transform desktop nav into mobile slide-in menu */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        border-left: 1px solid var(--border-color);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* NAVIGATION LIST - Stack nav items vertically */
    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    /* NAVIGATION LINKS - Make nav links larger and more touch-friendly */
    nav ul li a {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    /* MOBILE MENU TOGGLE - Show hamburger menu on tablets/mobile */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* NAVIGATION ACTIVE STATE - Show mobile menu when active class is added */
    nav.active {
        right: 0 !important; /* Slide menu in from the right */
    }

    /* MENU TOGGLE ACTIVE STATE - Animate hamburger to X when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ABOUT HERO SECTION - Use working pattern from services */
    .about-hero {
        height: 5vh;
        padding: 1rem 0;
    }

    .about-hero .container {
        height: 10vh;
    }
    
    /* ABOUT HERO HEADING - Make main heading smaller */
    .about-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* ABOUT HERO PARAGRAPH - Reduce hero text size and add side padding */
    .about-hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* ABOUT STORY SECTION - Reduce about story section padding */
    .about-story {
        padding: 3rem 0;
    }
    
    /* ABOUT GRID - Stack about content and image vertically */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    /* ABOUT CONTENT - Adjust about content spacing */
    .about-content {
        order: 1; /* Content always appears first on mobile */
    }
    
    /* ABOUT IMAGES - Image always appears second on mobile */
    .about-image {
        order: 2;
        margin: 0 auto;
        max-width: 400px;
    }
    
    /* ABOUT HEADINGS - Make about headings smaller */
    .about-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* ABOUT PARAGRAPHS - Adjust about paragraph spacing */
    .about-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    /* IMAGE PLACEHOLDER - Make image placeholder more mobile-friendly */
    .image-placeholder {
        height: 250px;
        margin: 0 auto;
        max-width: 400px;
    }
    
    /* CODE DECORATION - Make code blocks smaller and more readable */
    .code-decoration pre {
        font-size: 0.75rem;
        padding: 1rem;
        line-height: 1.4;
        overflow-x: auto;
    }

    .code-decoration pre h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    /* VALUES SECTION - Reduce values section padding */
    .values {
        padding: 3rem 0;
    }
    
    /* VALUES HEADING - Make values heading smaller */
    .values h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* VALUES GRID - Change to 2-column grid on tablet */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* VALUE CARDS - Reduce value card padding */
    .value-card {
        padding: 1.5rem 1rem;
    }
    
    /* VALUE ICONS - Make value icons smaller */
    .value-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* VALUE CARD HEADINGS - Make value card headings smaller */
    .value-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    /* VALUE CARD PARAGRAPHS - Adjust value card text */
    .value-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* CTA SECTION - Reduce CTA section padding */
    .cta {
        padding: 3rem 0;
    }
    
    /* CTA HEADING - Make CTA heading smaller and add padding */
    .cta h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    /* CTA PARAGRAPH - Reduce CTA text size and add padding */
    .cta p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    /* CTA BUTTON - Make CTA button more mobile-friendly */
    .cta .btn {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }
    
    /* FOOTER - Reduce footer padding */
    footer {
        padding: 2rem 0 1rem;
    }
    
    /* FOOTER CONTENT - Stack footer content vertically instead of side-by-side */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* FOOTER LINKS - Single column layout for footer links */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* FOOTER LIST ITEMS - Center footer list items */
    .footer-section ul li {
        justify-content: center;
    }
}

/* =================================
   MOBILE RESPONSIVE STYLES (480px and below)
   ================================= */
@media (max-width: 480px) {
    
    /* CONTAINER - Reduce container padding on very small screens */
    .container {
        padding: 0 15px;
    }
    
    /* LOGO - Make logo even smaller on mobile */
    .logo-container .logo {
        font-size: 1.2rem;
    }
    
    /* LOGO SYMBOL - Further reduce logo symbol size */
    .logo-symbol {
        font-size: 1.4rem;
    }
    
    /* NAVIGATION - Make mobile menu full width on very small screens */
    nav {
        width: 100%;
        right: -100%;
    }
    
    /* ABOUT HERO SECTION - Use working pattern from services */
    .about-hero {
        padding: 2rem 0;
    }

    .about-hero .container {
        height: 15vh;
    }
    
    /* ABOUT HERO HEADING - Much smaller heading for mobile screens */
    .about-hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1vh;
    }
    
    /* ABOUT HERO PARAGRAPH - Smaller text with minimal padding */
    .about-hero p {
        font-size: 1rem;
        text-align: left;
        padding: 0 0.5rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    /* ABOUT STORY SECTION - Minimal padding for mobile */
    .about-story {
        padding: 2rem 0;
    }
    
    /* ABOUT GRID - Tighter spacing for mobile */
    .about-grid {
        gap: 1.5rem;
    }
    
    /* ABOUT HEADINGS - Smaller about headings for mobile */
    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    /* ABOUT PARAGRAPHS - Smaller paragraphs with tighter spacing */
    .about-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    /* ABOUT IMAGES - Smaller about images for mobile */
    .about-image {
        max-width: 300px;
    }
    
    /* IMAGE PLACEHOLDER - Smaller image placeholder for mobile */
    .image-placeholder {
        height: 200px;
        max-width: 300px;
    }
    
    /* CODE DECORATION - Even smaller code blocks for mobile */
    .code-decoration pre {
        font-size: 0.65rem;
        padding: 0.8rem;
        line-height: 1.3;
    }
    
    /* VALUES SECTION - Minimal padding for mobile values section */
    .values {
        padding: 2rem 0;
    }
    
    /* VALUES HEADING - Smaller values heading for mobile */
    .values h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    /* VALUES GRID - Single column layout for mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* VALUE CARDS - More compact value card padding */
    .value-card {
        padding: 1.5rem 1rem;
    }
    
    /* VALUE ICONS - Smaller value icons for mobile */
    .value-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    /* VALUE CARD HEADINGS - Smaller value card headings for mobile */
    .value-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    /* VALUE CARD PARAGRAPHS - Smaller value card text */
    .value-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* CTA SECTION - Minimal CTA section padding */
    .cta {
        padding: 2rem 0;
    }
    
    /* CTA HEADING - Smaller CTA heading with minimal padding */
    .cta h2 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }
    
    /* CTA PARAGRAPH - Smaller CTA text with minimal padding */
    .cta p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* FOOTER LINKS - Tighter spacing for footer links on mobile */
    .footer-links {
        gap: 1.5rem;
    }
    
    /* FOOTER SECTION HEADINGS - Smaller footer headings with less margin */
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* =================================
   VERY SMALL MOBILE (320px and below)
   ================================= */
@media (max-width: 320px) {

     .about-hero .container {
        height: 10vh;
    }
    
    /* ABOUT HERO HEADING - Extra small heading for very small screens */
    .about-hero h1 {
        font-size: 1.6rem;
    }
    
    /* ABOUT HERO PARAGRAPH - Extra small hero text */
    .about-hero p {
        font-size: 0.9rem;
    }
    
    /* ABOUT HEADINGS - Extra small about headings */
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    /* ABOUT PARAGRAPHS - Extra small about paragraphs */
    .about-content p {
        font-size: 0.85rem;
    }
    
    /* ABOUT IMAGES - Tiny about images for very small screens */
    .about-image {
        max-width: 250px;
    }
    
    /* IMAGE PLACEHOLDER - Tiny image placeholder for very small screens */
    .image-placeholder {
        height: 150px;
        max-width: 250px;
    }
    
    /* CODE DECORATION - Tiny code blocks */
    .code-decoration pre {
        font-size: 0.6rem;
        padding: 0.6rem;
    }
    
    /* VALUES HEADING - Extra small values heading */
    .values h2 {
        font-size: 1.6rem;
    }
    
    /* VALUE CARDS - Minimal padding for tiny screens */
    .value-card {
        padding: 1rem 0.75rem;
    }
    
    /* VALUE ICONS - Tiny value icons */
    .value-icon {
        font-size: 1.8rem;
    }
    
    /* VALUE CARD HEADINGS - Extra small value card headings */
    .value-card h3 {
        font-size: 1.1rem;
    }
    
    /* CTA HEADING - Extra small CTA heading */
    .cta h2 {
        font-size: 1.6rem;
    }
}

/* =================================
   ACCESSIBILITY IMPROVEMENTS
   ================================= */

/* REDUCED MOTION - Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS STATES - Improve keyboard navigation visibility */
a:focus,
button:focus,
.menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

