/* =================================
   SERVICES PAGE MEDIA QUERIES
   ================================= */

/* =================================
   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);
    }
    
    /* SERVICES HERO SECTION - Reduce hero section padding */
    .services-hero {
        height: 5vh;
    }

    .services-hero .container {
        height: 5vh;
    }
    .services-hero {
        padding: 1rem 0;
    }
    
    /* SERVICES HERO HEADING - Make main heading smaller */
    .services-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* SERVICES HERO PARAGRAPH - Reduce hero text size and add side padding */
    .services-hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* SERVICE SECTIONS - Reduce service section padding */
    .service-section {
        padding: 3rem 0;
    }
    
    /* SERVICE GRID - Stack service content and image vertically */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    /* SERVICE GRID REVERSE - Remove reverse order on mobile, stack normally */
    .service-grid.reverse {
        grid-template-columns: 1fr;
    }
    
    /* SERVICE CONTENT - Adjust service content spacing */
    .service-content {
        order: 1; /* Content always appears first on mobile */
    }
    
    /* SERVICE IMAGES - Image always appears second on mobile */
    .service-image {
        order: 2;
        margin: 0 auto;
        max-width: 400px;
    }
    

    /* SERVICE HEADINGS - Make service headings smaller */
    .service-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* SERVICE PARAGRAPHS - Adjust service paragraph spacing */
    .service-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    /* SERVICE FEATURE LISTS - Adjust service feature list spacing */
    .service-features {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }
    
    /* SERVICE FEATURE LIST ITEMS - Adjust list item spacing */
    .service-features li {
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }
    
    /* SERVICE BUTTONS - Make service buttons more mobile-friendly */
    .service-content .btn {
        width: 100%;
        height: 7vh;
        max-width: 300px;
        text-align: center;
        margin-top: 1rem;
        padding: 10px;
    }
    
    /* 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;
    }
    /* Responsive adjustments for ML section */
    .ml-decoration {
        height: 250px;
        padding: 1rem 0.5rem; /* Reduce left/right padding */
    }
    
    .ml-visualization {
        padding: 0.5rem; /* Reduce internal padding */
    }
    
    .neural-network {
        padding: 0; /* Remove any extra padding */
        width: 50vw; /* Ensure full width usage */
    }
    
    .node {
        width: 16px;
        height: 16px;
    }
    
    .node::before {
        width: 50px; /* Increase connection width */
    }
    
    /* CONSULTING CHART - Adjust consulting chart for mobile */
    .consulting-chart {
        max-width: 200px;
        margin: 0 auto;
        height: 150px;
    }
    
    /* CHART BARS - Make chart bars thinner */
    .chart-bar {
        width: 25px;
        margin: 0 5px;
    }
    
    /* PRICING SECTION - Reduce pricing section padding */
    .pricing {
        padding: 3rem 0;
    }
    
    /* PRICING HEADING - Make pricing heading smaller */
    .pricing h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* PRICING SUBTITLE - Adjust pricing subtitle */
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* PRICING GRID - Change to single column layout on tablet */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* PRICING CARDS - Adjust pricing card padding */
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    /* PRICING CARD HEADINGS - Make pricing card headings smaller */
    .pricing-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* PRICING AMOUNTS - Adjust pricing amount display */
    .price span {
        font-size: 2rem;
    }
    
    /* PRICING FEATURES - Adjust pricing feature lists */
    .pricing-features ul {
        margin: 1.5rem 0;
    }
    
    /* PRICING FEATURE ITEMS - Adjust pricing feature list items */
    .pricing-features li {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* PRICING BUTTONS - Make pricing buttons full width */
    .pricing-footer .btn {
        width: 100%;
    }
    
    /* PRICING NOTE - Adjust pricing note text */
    .pricing-note {
        font-size: 0.9rem;
        margin-top: 1.5rem;
        text-align: center;
    }
    
    /* 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%;
    }
    
    /* SERVICES HERO SECTION - Very compact padding for mobile */
    .services-hero {
        padding: 2rem 0;
    }
    
    /* SERVICES HERO HEADING - Much smaller heading for mobile screens */
    .services-hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    /* SERVICES HERO PARAGRAPH - Smaller text with minimal padding */
    .services-hero p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* SERVICE SECTIONS - Minimal padding for mobile */
    .service-section {
        padding: 2rem 0;
    }
    
    /* SERVICE GRID - Tighter spacing for mobile */
    .service-grid {
        gap: 1.5rem;
    }
    
    /* SERVICE HEADINGS - Smaller service headings for mobile */
    .service-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    /* SERVICE PARAGRAPHS - Smaller paragraphs with tighter spacing */
    .service-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    /* SERVICE FEATURE LISTS - Tighter service feature list spacing */
    .service-features {
        margin: 1rem 0;
        padding-left: 1.2rem;
    }
    
    /* SERVICE FEATURE LIST ITEMS - Smaller service feature list items */
    .service-features li {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* SERVICE IMAGES - Smaller service images for mobile */
    .service-image {
        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;
    }
    
    /* DESIGN WIREFRAME - Smaller wireframe for mobile */
    .design-wireframe {
        max-width: 200px;
    }
    
    /* WIREFRAME BLOCKS - Smaller wireframe blocks */
    .wireframe-block {
        height: 12px;
        margin-bottom: 6px;
    }
    
    /* CONSULTING CHART - Smaller consulting chart for mobile */
    .consulting-chart {
        max-width: 150px;
        height: 120px;
    }
    
    /* CHART BARS - Thinner chart bars for mobile */
    .chart-bar {
        width: 20px;
        margin: 0 3px;
    }
    
    /* PRICING SECTION - Minimal padding for mobile pricing section */
    .pricing {
        padding: 2rem 0;
    }
    
    /* PRICING HEADING - Smaller pricing heading for mobile */
    .pricing h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    /* PRICING SUBTITLE - Smaller pricing subtitle */
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    /* PRICING CARDS - More compact pricing card padding */
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    /* PRICING CARD HEADINGS - Smaller pricing card headings for mobile */
    .pricing-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    /* PRICING AMOUNTS - Smaller pricing amounts for mobile */
    .price {
        font-size: 0.9rem;
    }
    
    /* PRICING AMOUNT SPANS - Smaller pricing spans */
    .price span {
        font-size: 1.8rem;
    }
    
    /* PRICING FEATURE ITEMS - Smaller pricing feature items */
    .pricing-features li {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* 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) {
    
    /* SERVICES HERO HEADING - Extra small heading for very small screens */
    .services-hero h1 {
        font-size: 1.6rem;
    }
    
    /* SERVICES HERO PARAGRAPH - Extra small hero text */
    .services-hero p {
        font-size: 0.9rem;
    }
    
    /* SERVICE HEADINGS - Extra small service headings */
    .service-content h2 {
        font-size: 1.6rem;
    }
    
    /* SERVICE PARAGRAPHS - Extra small service paragraphs */
    .service-content p {
        font-size: 0.85rem;
    }
    
    /* SERVICE FEATURE ITEMS - Extra small service feature items */
    .service-features li {
        font-size: 0.8rem;
    }
    
    /* SERVICE IMAGES - Tiny service images for very small screens */
    .service-image {
        max-width: 250px;
    }
    
    /* CODE DECORATION - Tiny code blocks */
    .code-decoration pre {
        font-size: 0.6rem;
        padding: 0.6rem;
    }
    
    /* DESIGN WIREFRAME - Tiny wireframe */
    .design-wireframe {
        max-width: 150px;
    }
    
    /* CONSULTING CHART - Tiny consulting chart */
    .consulting-chart {
        max-width: 120px;
        height: 100px;
    }
    
    /* CHART BARS - Very thin chart bars */
    .chart-bar {
        width: 15px;
        margin: 0 2px;
    }
    
    /* PRICING HEADING - Extra small pricing heading */
    .pricing h2 {
        font-size: 1.6rem;
    }
    
    /* PRICING CARDS - Minimal padding for tiny screens */
    .pricing-card {
        padding: 1rem 0.75rem;
    }
    
    /* PRICING CARD HEADINGS - Extra small pricing headings */
    .pricing-card h3 {
        font-size: 1.1rem;
    }
    
    /* PRICING AMOUNTS - Extra small pricing amounts */
    .price span {
        font-size: 1.6rem;
    }
    
    /* 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;
}


/* =================================
   TABLET RESPONSIVE STYLES (768px and below)
   ================================= */
   @media (max-width: 768px) {
    
    /* PRICING SECTIONS - Reduce pricing section padding to match service sections */
    .pricing-section {
        padding: 3rem 0;
    }
    
    /* PRICING SECTION HEADINGS - Make pricing section headings smaller to match service headings */
    .pricing-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* PRICING SECTION SUBTITLES - Adjust pricing section subtitles to match existing pattern */
    .pricing-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* PRICING SECTION GRIDS - Change to single column layout on tablet to match existing pricing grid */
    .pricing-section .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* PRICING SECTION CARDS - Adjust pricing section card padding to match existing pricing cards */
    .pricing-section .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    /* PRICING SECTION CARD HEADINGS - Make pricing section card headings smaller to match existing */
    .pricing-section .pricing-header h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* PRICING SECTION AMOUNTS - Adjust pricing section amount display to match existing */
    .pricing-section .price span {
        font-size: 2rem;
    }
    
    /* PRICING SECTION FEATURES - Adjust pricing section feature lists to match existing */
    .pricing-section .pricing-features {
        padding: 1.5rem;
    }
    
    .pricing-section .pricing-features ul {
        margin: 1.5rem 0;
    }
    
    /* PRICING SECTION FEATURE ITEMS - Adjust pricing section feature list items to match existing */
    .pricing-section .pricing-features li {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* PRICING SECTION BUTTONS - Make pricing section buttons full width to match existing */
    .pricing-section .pricing-footer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .pricing-section .pricing-footer .btn {
        width: 100%;
    }
    
    /* PRICING SECTION NOTES - Adjust pricing section note text to match existing */
    .pricing-section .pricing-note {
        font-size: 0.9rem;
        margin-top: 1.5rem;
        text-align: center;
    }
}

/* =================================
   MOBILE RESPONSIVE STYLES (480px and below)
   ================================= */
@media (max-width: 480px) {
    
    /* PRICING SECTIONS - Minimal padding for mobile pricing sections to match service sections */
    .pricing-section {
        padding: 2rem 0;
    }
    
    /* PRICING SECTION HEADINGS - Smaller pricing section headings for mobile to match service headings */
    .pricing-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    /* PRICING SECTION SUBTITLES - Smaller pricing section subtitles to match existing pattern */
    .pricing-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    /* PRICING SECTION CARDS - More compact pricing section card padding to match existing */
    .pricing-section .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    /* PRICING SECTION CARD HEADINGS - Smaller pricing section card headings for mobile to match existing */
    .pricing-section .pricing-header {
        padding: 1.5rem 1rem;
    }
    
    .pricing-section .pricing-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    /* PRICING SECTION AMOUNTS - Smaller pricing section amounts for mobile to match existing */
    .pricing-section .price {
        font-size: 0.9rem;
    }
    
    .pricing-section .price span {
        font-size: 1.8rem;
    }
    
    /* PRICING SECTION FEATURES - Adjust pricing section features for mobile to match existing */
    .pricing-section .pricing-features {
        padding: 1rem;
    }
    
    /* PRICING SECTION FEATURE ITEMS - Smaller pricing section feature items to match existing */
    .pricing-section .pricing-features li {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* PRICING SECTION FOOTER - Adjust pricing section footer for mobile to match existing */
    .pricing-section .pricing-footer {
        padding: 0 1rem 1rem;
    }
}

/* =================================
   VERY SMALL MOBILE (320px and below)
   ================================= */
@media (max-width: 320px) {
    
    /* PRICING SECTION HEADINGS - Extra small pricing section headings to match service headings */
    .pricing-section h2 {
        font-size: 1.6rem;
    }
    
    /* PRICING SECTION CARDS - Minimal padding for tiny screens to match existing */
    .pricing-section .pricing-card {
        padding: 1rem 0.75rem;
    }
    
    /* PRICING SECTION CARD HEADINGS - Extra small pricing section headings to match existing */
    .pricing-section .pricing-header {
        padding: 1rem 0.75rem;
    }
    
    .pricing-section .pricing-header h3 {
        font-size: 1.1rem;
    }
    
    /* PRICING SECTION AMOUNTS - Extra small pricing section amounts to match existing */
    .pricing-section .price span {
        font-size: 1.6rem;
    }
    
    /* PRICING SECTION FEATURES - Minimal padding for pricing section features */
    .pricing-section .pricing-features {
        padding: 0.75rem;
    }
    
    /* PRICING SECTION FOOTER - Minimal padding for pricing section footer */
    .pricing-section .pricing-footer {
        padding: 0 0.75rem 0.75rem;
    }
}
