/* Responsive Design */

/* Payment method label centering */
.quantum-modal-content .payment-method-label {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e0e7ff;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

/* Large screens (1172px and up) */
@media (min-width: 1172px) {
    .hero-title {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-title span:first-child,
    .hero-title span:last-child {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* Header responsive rules are now handled in header.css */
    /* Keeping minimal overrides here for compatibility */

    .logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 3rem 1rem;
        margin: 2rem 1rem 50rem;
    }

    .about,
    .services-products,
    .pricing,
    .learning,
    .contact {
        margin: 2rem 1rem 50rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        max-width: 15rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .sub-cards {
        grid-template-columns: 1fr;
    }

    .pricing-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-left,
    .pricing-right {
        order: 2;
    }

    .pricing-left {
        order: 1;
    }

    .pricing-info p {
        font-size: 0.9rem;
    }

    .primary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-box {
        padding: 1.5rem;
    }

    .tier-btn h5 {
        font-size: 1.2rem;
    }

    .tier-features .pill,
    .tier-team .pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .shopping-grid {
        grid-template-columns: 1fr;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: 90vw;
        height: 20rem;
    }

    .chat-input #chatAttach {
        padding: 0.5rem 0.5rem;
        font-size: 1rem;
    }

    .message-status {
        font-size: 0.7rem;
    }

    .typing-indicator {
        font-size: 0.8rem;
    }

    .typing-dots span {
        width: 4px;
        height: 4px;
    }

    .modal-content {
        padding: 1rem;
    }

    .video-container video {
        transform: none;
    }

    .embed-container iframe {
        height: 400px;
    }

    .map-container {
        height: 300px;
    }

    .map-split {
        flex-direction: column;
    }

    .map-card {
        height: 250px;
    }

    .address-text {
        font-size: 0.8rem;
    }

    .team-container {
        flex-direction: column;
        gap: 1rem;
    }

    .member-layout {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .member-layout img {
        width: 120px;
        height: auto;
    }

    .member-info p {
        font-size: 0.9rem;
    }

    .work-section h2 {
        font-size: 1.25rem;
    }

    .work-table,
    .work-table th,
    .work-table td {
        display: block;
    }

    .work-table th,
    .work-table td {
        text-align: left;
        padding: 0.5rem 0;
    }

    .work-table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .work-table th {
        font-weight: bold;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .marque-message p {
        font-size: 0.9rem;
    }

    .position-options {
        gap: 0.5rem;
    }

    .education-cards {
        flex-direction: column;
    }

    .education-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 0.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.8rem;
    }

    .card-hover p {
        font-size: 0.8rem;
    }

    .privacy-section h2 {
        font-size: 1.25rem;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 0.9rem;
    }

    .last-updated {
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        order: -1;
    }

    .maintenance-content h1,
    .archive-content h1 {
        font-size: 2rem;
    }

    .maintenance-content p,
    .archive-content p {
        font-size: 1rem;
    }

    .certifications {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Extra small mobile devices (Galaxy S9+ and similar: 320px width) */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }

    .container {
        padding: 0 0.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero {
        padding: 2rem 0.5rem;
        margin: 1rem 0.5rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero .btn {
        max-width: 180px;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .about,
    .services-products,
    .pricing,
    .learning,
    .contact {
        margin: 1rem 0.5rem 3rem;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }

    .about-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .sub-card {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .pricing-content {
        gap: 1.5rem;
    }

    .pricing-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .pricing-box {
        padding: 1.25rem;
    }

    .price {
        font-size: 1.1rem;
    }

    .tier-btn h5 {
        font-size: 1rem;
    }

    .tier-features .pill,
    .tier-team .pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .learning-card {
        min-height: 180px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }

    .chat-window {
        width: 95vw;
        height: 18rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1rem;
        width: calc(100vw - 2rem);
        max-width: none;
    }

    .large-modal {
        width: calc(100vw - 1rem);
    }

    .video-container video {
        height: 250px;
    }

    .embed-container iframe {
        height: 300px;
    }

    .map-container {
        height: 250px;
    }

    .map-card {
        height: 200px;
    }

    .footer-content {
        padding: 1rem 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    /* About section accordion fixes */
    .accordion-header {
        font-size: 0.9rem;
        padding: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .accordion-content {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .domain-pills {
        gap: 0.25rem;
        justify-content: center;
    }

    .domain-pills .pill {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        white-space: nowrap;
    }

    /* Services tabs layout */
    .tabs {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .tab-btn {
        width: auto !important;
        min-width: 80px;
        max-width: none;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tab-btn.active {
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Pricing section fixes */
    .pricing-content {
        gap: 1rem;
    }

    .pricing-left {
        width: 100%;
        overflow-x: visible;
        justify-content: center;
    }

    .pricing-right {
        width: 100%;
        overflow-x: visible;
        justify-content: center;
    }

    .pricing-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .primary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .primary-grid .payment-card {
        padding: 0.5rem;
    }

    .primary-grid .payment-card img {
        height: 30px;
    }

    .alternative-payment .payment-carousel {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .alternative-payment .payment-carousel::-webkit-scrollbar {
        display: none;
    }

    .alternative-payment .carousel-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .alternative-payment .payment-card {
        min-width: 80px;
        flex-shrink: 0;
    }

    .pricing-selection {
        width: 80%;
        overflow-x: visible;
        text-align: center;
        transform: translateX(-10px);
        margin-top: 2rem;
    }

    .pricing-note .pill {
        font-size: 0.55rem;
        text-align: center;
    }

    .tier-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tier-btn {
        width: 100%;
        text-align: left;
    }

    .tier-btn h5 {
        font-size: 0.9rem;
        margin: 0;
    }

    /* Learning Center - 2x2 grid */
    .learning-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .learning-card {
        min-height: 140px;
        padding: 0.75rem;
    }

    .learning-card img {
        height: 60px;
        width: auto;
        margin-bottom: 0.5rem;
    }

    .card-title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .card-overlay {
        padding: 0.25rem;
    }

    .video-option {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.25rem;
    }

    .overlay-text {
        font-size: 0.75rem;
    }

    .learning-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .learning-buttons a {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* Contact form scaling */
    .contact-form {
        padding: 1rem;
        gap: 0.75rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px;
        margin-bottom: 0.5rem;
    }

    .contact-bg .floating-element {
        width: 60px;
        height: 60px;
    }

    /* Footer single row layout */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0.5rem;
    }

    .footer-logo img {
        height: 30px;
    }

    .footer-links {
        flex-direction: row;
        gap: 1rem;
        margin: 0;
        order: 2;
    }

    .footer-links a {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Chat toggle positioning */
    .chatbot .chat-toggle {
        right: 1rem;
        bottom: 2rem;
        width: 50px;
        height: 50px;
    }

    .chatbot .chat-toggle img {
        width: 30px;
        height: 30px;
    }

    /* Accessibility contrast improvements */
    .hero-title span,
    .section-title span,
    .pricing-box .price,
    .tier-features .pill,
    .domain-pills .pill {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

    /* Ensure text is always visible against backgrounds */
    .hero-subtitle,
    .about-card p,
    .pricing-info p,
    .contact-form label {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.25rem;
        border-radius: 4px;
        backdrop-filter: blur(2px);
    }
}

/* Galaxy S9+ and similar devices (320px width) */
@media (max-width: 320px) {
    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 0.25rem;
    }

    /* Hide custom cursor on mobile to prevent floating black circle */
    .custom-cursor {
        display: none !important;
    }

    /* Restore system cursor on mobile */
    body.custom-cursor-enabled * {
        cursor: auto !important;
    }

    .hero {
        padding: 1.5rem 0.25rem;
        margin: 0.5rem 0.25rem 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.1;
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.2;
        transform: scale(0.8);
    }

    .hero-badge {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: scale(0.8);
        margin: 0.5rem auto 0;
        display: block;
        text-align: center;
        max-width: 160px;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
    }

    .hero-badge::before {
        display: none;
    }

    .hero-badge:hover {
        transform: none;
    }

    .section-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .about,
    .services-products,
    .pricing,
    .learning,
    .contact {
        margin: 0.5rem 0.25rem 2rem;
    }

    .about-card {
        padding: 0.75rem;
    }

    .about-card h3 {
        font-size: 0.95rem;
    }

    .about-card p {
        font-size: 0.6rem;
        line-height: 1.3;
    }

    .pricing-box {
        padding: 0.75rem;
    }

    .contact-form {
        padding: 0.75rem;
    }


    /* Modal scaling for 320px breakpoint - 80vw width, 70vh height */
    .modal-320-scale .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        margin: 0;
        padding: 0.625rem; /* Scaled padding */
        width: 80vw;
        max-width: none;
        height: 70vh;
        max-height: 70vh;
        overflow-y: auto;
        transition: transform 0.3s ease;
    }

    /* Scale down modal sub-containers proportionally */
    .modal-320-scale .modal-content * {
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    /* Scale down text elements */
    .modal-320-scale .modal-content h1,
    .modal-320-scale .modal-content h2,
    .modal-320-scale .modal-content h3,
    .modal-320-scale .modal-content h4,
    .modal-320-scale .modal-content p,
    .modal-320-scale .modal-content span,
    .modal-320-scale .modal-content label {
        font-size: 0.8em; /* 80% of original size */
        line-height: 1.2;
    }

    /* Scale down buttons */
    .modal-320-scale .modal-content button,
    .modal-320-scale .modal-content .btn,
    .modal-320-scale .modal-content input[type="button"],
    .modal-320-scale .modal-content input[type="submit"] {
        font-size: 0.8em;
        padding: 0.5rem 1rem;
        min-height: 2.5rem;
    }

    /* Ensure close button remains accessible */
    .modal-320-scale .close {
        font-size: 24px; /* Keep close button large enough */
        margin: 8px;
        padding: 4px;
        min-width: 32px;
        min-height: 32px;
        z-index: 1001; /* Ensure it's above modal content */
    }

    /* Scale down form inputs */
    .modal-320-scale .modal-content input,
    .modal-320-scale .modal-content select,
    .modal-320-scale .modal-content textarea {
        font-size: 0.8em;
        padding: 0.5rem;
    }

    /* Scale down tabs */
    .modal-320-scale .modal-content .tab-btn,
    .modal-320-scale .modal-content .team-tab-btn {
        font-size: 0.7em;
        padding: 0.4rem 0.6rem;
        min-width: 80px;
    }

    /* Scale down images */
    .modal-320-scale .modal-content img {
        max-width: 80%;
        height: auto;
    }

    /* Video containers - fill modal with margins for full visibility */
    .modal-320-scale .video-container {
        position: relative;
        width: calc(100% - 2rem); /* Account for modal padding */
        height: calc(100% - 4rem); /* Leave space for title and margins */
        margin: 1rem;
        border-radius: 8px;
        overflow: hidden;
    }

    .modal-320-scale .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ensure full video visibility */
        border-radius: 8px;
    }

    /* Embed containers - maintain aspect ratio */
    .modal-320-scale .embed-container {
        position: relative;
        padding-bottom: 45%;
        height: 0;
        overflow: hidden;
        border-radius: 8px;
        margin: 1rem 0;
        max-width: 100%;
    }

    .modal-320-scale .embed-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 8px;
    }

    /* Emoji modal styles for 320px breakpoint */
    #emojiModal .modal-content {
        transform: translate(-50%, -50%) !important;
    }

    .emoji-modal-container {
        transform: translateX(-30px) !important;
    }

    .emoji-categories {
        width: 90px !important; /* User specified width */
    }

    .emoji-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* User specified grid pattern */
    }

    /* Team modal specific scaling */
    .modal-320-scale .team-modal-content {
        padding: 0.8rem 1.6rem 1.6rem 1.6rem;
        min-height: 50vh;
        max-height: 65vh;
        display: flex;
        flex-direction: column;
    }

    .modal-320-scale .team-sub-container {
        padding: 1.2rem;
        gap: 0.4rem;
    }

    .modal-320-scale .team-tab-menu {
        min-width: unset;
        gap: 0.2rem;
    }

    .modal-320-scale .team-tab-btn {
        padding: 0.32rem 0.48rem;
        font-size: 0.64rem;
        min-width: 96px;
    }

    .modal-320-scale .team-content-container {
        gap: 0.4rem;
    }

    .modal-320-scale .team-image-container {
        width: 176px;
        height: 224px;
    }

    .modal-320-scale .team-member-card {
        border-radius: 12px;
    }

    .modal-320-scale .team-member-image {
        border-radius: 12px;
    }

    .modal-320-scale .team-role-container {
        min-height: 120px;
    }

    .modal-320-scale .role-title {
        font-size: 0.72rem;
        line-height: 1.28;
    }

    .modal-320-scale .role-pill {
        font-size: 0.56rem;
        padding: 0.12rem 0.4rem;
    }

    /* Scroll-based zoom adjustment */
    .modal-320-scale .modal-content {
        transform-origin: center;
    }

    /* Ensure modal maintains proportions on scroll */
    .modal-320-scale .modal-content::-webkit-scrollbar {
        width: 6px;
    }

    .modal-320-scale .modal-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .modal-320-scale .modal-content::-webkit-scrollbar-thumb {
        background: rgba(0, 212, 255, 0.3);
        border-radius: 3px;
    }

    .modal-320-scale .modal-content::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 212, 255, 0.5);
    }

    .large-modal {
        width: 90vw;
        max-width: none;
        max-height: 90vh;
    }

    /* Video modal adjustments for 320px */
    .video-container {
        padding-bottom: 40%; /* Reduce aspect ratio for mobile */
        margin: 1rem 0;
        height: 0;
        position: relative;
    }

    .video-container video {
        transform: none; /* Remove vertical offset */
        display: none; /* Hide video element at 320px */
    }

    /* Show poster image as clickable element at 320px */
    .video-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 56.25vw; /* 16:9 aspect ratio */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        border-radius: 10px;
        z-index: 1;
    }

    /* Play indicator for modal content areas at 320px */
    #explainerVideoModalContent::after,
    #quantumDemoModalContent::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        background-image: url('/website/ChatBot/VideoButton.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.8;
        pointer-events: none;
        z-index: 10;
        animation: video-play-pulse 2s ease-in-out infinite;
    }

    /* Apply modal-320-scale to quantum demo modal */
    #quantumDemoModal .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        margin: 0;
        padding: 0.625rem;
        width: 80vw;
        max-width: none;
        height: 70vh;
        max-height: 70vh;
        overflow-y: auto;
        transition: transform 0.3s ease;
    }

    /* Video containers - fill modal with margins for full visibility */
    #quantumDemoModal .video-container {
        position: relative;
        width: calc(100% - 2rem);
        height: calc(100% - 4rem);
        margin: 1rem;
        border-radius: 8px;
        overflow: hidden;
    }

    #quantumDemoModal .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

    /* Specific poster images for each video modal */
    #quantumVideoModalContent .video-container::before {
        background-image: url('website/Learning/covers/qSCM_Cover.png');
    }

    #agenticModalContent .video-container::before {
        background-image: url('website/Learning/covers/AgenticAI_Cover.png');
    }

    #cloudModalContent .video-container::before {
        background-image: url('website/Learning/covers/CloudCover_TSL.png');
    }

    #qgisModalContent .video-container::before {
        background-image: url('website/Learning/covers/QGIS_Cover.png');
    }

    /* Landscape video mode */
    .video-landscape-mode .modal-content {
        width: 90vw !important;
        height: 90vh !important;
        max-width: none !important;
        max-height: none !important;
    }

    .video-landscape-mode .video-container {
        width: 100% !important;
        height: 100% !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        position: relative;
    }

    .video-landscape-mode .video-container video {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: translatey(-60px);
    }

    .video-landscape-mode .video-container::before {
        display: none !important;
    }

    /* Video play indicator for landscape mode */
    .video-landscape-mode .video-container::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        background-image: url('/website/ChatBot/VideoButton.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.8;
        pointer-events: none;
        z-index: 10;
        animation: video-play-pulse 2s ease-in-out infinite;
    }

    @keyframes video-play-pulse {
        0%, 100% {
            opacity: 0.6;
            transform: translate(-50%, -50%) scale(1);
        }
        50% {
            opacity: 0.9;
            transform: translate(-50%, -50%) scale(1.1);
        }
    }

    /* Team modal scaling for 320px */
    /* Removed transform to keep modal centered */

    .team-modal-content {
        padding: 0.5rem 1rem 1rem 1rem;
        min-height: 400px;
        max-height: 85vh;
    }

    .team-sub-container {
        padding: 1rem;
        gap: 0.5rem;
    }

    .team-tab-menu {
        min-width: unset;
        gap: 0.25rem;
    }

    .team-tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 120px;
    }

    .team-content-container {
        gap: 0.5rem;
    }

    .team-image-container {
        width: 220px;
        height: 250px;
        transform: translateX(10px);
    }

    .team-member-card {
        border-radius: 15px;
    }

    .team-member-image {
        border-radius: 15px;
    }

    .team-role-container {
        min-height: 150px;
    }

    .role-title {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .role-pill {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    /* Header adjustments for 320px */
    .header {
        left: 0.25rem;
        right: 0.25rem;
    }

    .header__content {
        padding: 0 5px;
        height: 60px;
    }

    .select {
        width: 85px;
        margin-left: 0;
    }

    .select__selected {
        padding: 0.25rem 0.1rem;
        font-size: 0.75rem;
        gap: 0.2rem;
        transform: translateX(-3px);
        width: max-content;
    }

    .select__selected img {
        width: 10px;
        height: 8px;
    }

    .select__options {
        min-width: 140px;
        max-width: 160px;
    }

    .select__options .select__option {
        padding: 0.3rem 0.15rem 0.3rem 0.3rem;
        font-size: 0.8rem;
    }

    .header__logo img {
        height: 28px;
        transform: scale(0.8);
    }

    .nav__hamburger {
        width: 20px;
        height: 20px;
    }

    .nav__hamburger-line {
        width: 20px;
        height: 2px;
    }

    .nav__menu {
        width: 160px;
        right: -160px;
        top: 70px;
    }

    .nav__menu.open {
        right: 2px;
    }

    .nav__menu .nav__link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .nav__submenu .nav__submenu-link {
        padding: 0.3rem 0.6rem 0.3rem 1.5rem;
        font-size: 0.75rem;
    }

    .nav__bullet {
        left: 0.6rem;
    }

    /* About section accordion fixes for 320px */
    .accordion-header {
        font-size: 0.8rem;
        padding: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .accordion-content {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .domain-pills {
        gap: 0.15rem;
        justify-content: center;
    }

    .domain-pills .pill {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        white-space: nowrap;
    }

    /* Services tabs layout for 320px */
    .tabs {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .tab-btn {
        width: auto !important;
        min-width: 60px;
        max-width: none;
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tab-btn.active {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .sub-card {
        font-size: 0.45rem;
    }

    /* TSL Holographic Toggle for 320px breakpoint */
    /* Global development standards: Comprehensive holographic toggle implementation with TSL color palette */
    /* Purpose: Interactive pricing navigation with quantum-inspired visual effects */
    /* Architecture: Checkbox-based toggle with animated holographic elements */
    /* Dependencies: None - self-contained component */
    /* Browser support: Modern browsers with CSS animations */
    /* Performance: Optimized with hardware acceleration and efficient animations */

    .tsl-holo-toggle-container {
        position: relative;
        width: 140px; /* Scaled for 320px breakpoint */
        display: flex;
        flex-direction: column;
        align-items: center;
        perspective: 600px; /* Reduced for mobile performance */
        z-index: 5;
        margin-top: 0.75rem;
        transform: translateX(-15px);
    }

    .tsl-holo-toggle-wrap {
        position: relative;
        width: 100%;
        height: 50px; /* Adjusted for mobile */
        transform-style: preserve-3d;
    }

    .tsl-holo-toggle-input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .tsl-holo-toggle-track {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0, 20, 40, 0.5); /* TSL dark blue with transparency */
        border-radius: 25px; /* Adjusted for height */
        cursor: pointer;
        box-shadow:
            0 0 12px rgba(0, 80, 255, 0.3), /* TSL blue glow */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
        overflow: hidden;
        backdrop-filter: blur(3px); /* Reduced blur for performance */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
        border: 1px solid rgba(0, 120, 255, 0.4); /* TSL blue border */
    }

    .tsl-holo-toggle-track::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(
                ellipse at center,
                rgba(0, 80, 255, 0.15) 0%, /* TSL blue */
                rgba(0, 0, 0, 0) 70%
            ),
            linear-gradient(90deg, rgba(0, 40, 80, 0.15) 0%, rgba(0, 20, 40, 0.25) 100%);
        opacity: 0.6;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-holo-toggle-track::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        right: 2px;
        height: 8px; /* Adjusted for mobile */
        background: linear-gradient(
            90deg,
            rgba(0, 140, 255, 0.4) 0%, /* TSL blue */
            rgba(0, 80, 255, 0.2) 100%
        );
        border-radius: 25px 25px 0 0;
        opacity: 0.7;
        filter: blur(0.5px); /* Reduced blur */
    }

    .tsl-track-lines {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        transform: translateY(-50%);
        overflow: hidden;
    }

    .tsl-track-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
            90deg,
            rgba(0, 120, 255, 0.4) 0px, /* TSL blue */
            rgba(0, 120, 255, 0.4) 4px,
            transparent 4px,
            transparent 12px
        );
        animation: tsl-track-line-move 2.5s linear infinite; /* Slower for mobile */
    }

    @keyframes tsl-track-line-move {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(16px); /* Adjusted for mobile */
        }
    }

    .tsl-toggle-thumb {
        position: absolute;
        width: 44px; /* Adjusted for mobile */
        height: 44px;
        left: 3px;
        top: 3px;
        background: radial-gradient(
            circle,
            rgba(5, 30, 60, 0.9) 0%, /* TSL dark blue */
            rgba(0, 15, 30, 0.8) 100%
        );
        border-radius: 50%;
        box-shadow:
            0 2px 12px rgba(0, 0, 0, 0.5),
            inset 0 0 12px rgba(0, 120, 255, 0.6); /* TSL blue */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2;
        border: 1px solid rgba(0, 140, 255, 0.7); /* TSL blue */
        overflow: hidden;
        transform-style: preserve-3d;
    }

    .tsl-thumb-core {
        position: absolute;
        width: 32px; /* Adjusted */
        height: 32px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle,
            rgba(0, 140, 255, 0.7) 0%, /* TSL blue */
            rgba(0, 40, 80, 0.3) 100%
        );
        border-radius: 50%;
        box-shadow: 0 0 16px rgba(0, 120, 255, 0.6);
        opacity: 0.9;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-thumb-inner {
        position: absolute;
        width: 20px; /* Adjusted */
        height: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(100, 180, 255, 0.6) 100% /* TSL blue-white */
        );
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(100, 180, 255, 0.8);
        opacity: 0.7;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        animation: tsl-pulse 2s infinite alternate;
    }

    @keyframes tsl-pulse {
        0% {
            opacity: 0.5;
            transform: translate(-50%, -50%) scale(0.9);
        }
        100% {
            opacity: 0.8;
            transform: translate(-50%, -50%) scale(1.1);
        }
    }

    .tsl-thumb-scan {
        position: absolute;
        width: 100%;
        height: 4px; /* Adjusted */
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 120, 255, 0.6) 20%, /* TSL blue */
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 120, 255, 0.6) 80%,
            rgba(0, 0, 0, 0) 100%
        );
        top: 0;
        left: 0;
        filter: blur(0.5px);
        animation: tsl-thumb-scan 2s linear infinite;
        opacity: 0.7;
    }

    @keyframes tsl-thumb-scan {
        0% {
            top: -4px;
            opacity: 0;
        }
        20% {
            opacity: 0.7;
        }
        80% {
            opacity: 0.7;
        }
        100% {
            top: 44px; /* Adjusted */
            opacity: 0;
        }
    }

    .tsl-thumb-particles {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        overflow: hidden;
    }

    .tsl-thumb-particle {
        position: absolute;
        width: 2px; /* Adjusted */
        height: 2px;
        background: rgba(100, 180, 255, 0.9); /* TSL blue */
        border-radius: 50%;
        box-shadow: 0 0 4px rgba(100, 180, 255, 0.9);
        animation: tsl-thumb-particle-float 2.5s infinite ease-out;
        opacity: 0;
    }

    .tsl-thumb-particle:nth-child(1) {
        top: 70%;
        left: 30%;
        animation-delay: 0.2s;
    }

    .tsl-thumb-particle:nth-child(2) {
        top: 60%;
        left: 60%;
        animation-delay: 0.6s;
    }

    .tsl-thumb-particle:nth-child(3) {
        top: 50%;
        left: 40%;
        animation-delay: 1s;
    }

    .tsl-thumb-particle:nth-child(4) {
        top: 40%;
        left: 70%;
        animation-delay: 1.4s;
    }

    .tsl-thumb-particle:nth-child(5) {
        top: 80%;
        left: 50%;
        animation-delay: 1.8s;
    }

    @keyframes tsl-thumb-particle-float {
        0% {
            transform: translateY(0) scale(1);
            opacity: 0;
        }
        20% {
            opacity: 0.8;
        }
        100% {
            transform: translateY(-25px) scale(0); /* Adjusted */
            opacity: 0;
        }
    }

    .tsl-toggle-data {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .tsl-data-text {
        position: absolute;
        font-size: 11px; /* Adjusted for mobile */
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.4s ease; /* Faster for mobile */
    }

    .tsl-data-text.tsl-price,
    .tsl-data-text.tsl-qbuild {
        right: 10px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        color: rgba(0, 120, 255, 0.7); /* TSL blue */
        text-shadow: 0 0 4px rgba(0, 80, 255, 0.5);
    }

    .tsl-data-text.tsl-check {
        left: 12px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        color: rgba(0, 255, 180, 0.7); /* TSL teal */
        text-shadow: 0 0 4px rgba(0, 255, 150, 0.5);
    }


    .tsl-status-indicator {
        position: absolute;
        width: 8px; /* Adjusted */
        height: 8px;
        border-radius: 50%;
        background: radial-gradient(
            circle,
            rgba(0, 140, 255, 0.9) 0%, /* TSL blue */
            rgba(0, 60, 140, 0.5) 100%
        );
        box-shadow: 0 0 8px rgba(0, 120, 255, 0.6);
        animation: tsl-blink 2s infinite alternate;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-status-indicator.tsl-price-indicator,
    .tsl-status-indicator.tsl-qbuild-indicator {
        top: 21px; /* Adjusted */
        right: 12px; /* Adjusted */
    }

    .tsl-status-indicator.tsl-check-indicator {
        top: 21px; /* Adjusted */
        left: 12px; /* Adjusted */
        opacity: 0;
        background: radial-gradient(
            circle,
            rgba(0, 255, 180, 0.9) 0%, /* TSL teal */
            rgba(0, 140, 90, 0.5) 100%
        );
        box-shadow: 0 0 8px rgba(0, 255, 180, 0.6);
    }

    @keyframes tsl-blink {
        0%,
        100% {
            opacity: 0.5;
            transform: scale(0.9);
        }
        50% {
            opacity: 1;
            transform: scale(1.1);
        }
    }

    .tsl-energy-rings {
        position: absolute;
        width: 44px; /* Adjusted */
        height: 44px;
        left: 3px;
        top: 3px;
        pointer-events: none;
        z-index: 1;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-energy-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 1.5px solid transparent; /* Adjusted */
        opacity: 0;
    }

    .tsl-energy-ring:nth-child(1) {
        width: 42px; /* Adjusted */
        height: 42px;
        border-top-color: rgba(0, 120, 255, 0.6); /* TSL blue */
        border-right-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin 2.5s linear infinite; /* Slower */
    }

    .tsl-energy-ring:nth-child(2) {
        width: 34px; /* Adjusted */
        height: 34px;
        border-bottom-color: rgba(0, 120, 255, 0.6);
        border-left-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin 2s linear infinite reverse;
    }

    .tsl-energy-ring:nth-child(3) {
        width: 26px; /* Adjusted */
        height: 26px;
        border-left-color: rgba(0, 120, 255, 0.6);
        border-top-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin 1.5s linear infinite;
    }

    @keyframes tsl-spin {
        0% {
            transform: translate(-50%, -50%) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    .tsl-interface-lines {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .tsl-interface-line {
        position: absolute;
        background: rgba(0, 120, 255, 0.4); /* TSL blue */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-interface-line:nth-child(1) {
        width: 12px; /* Adjusted */
        height: 1px;
        bottom: -4px; /* Adjusted */
        left: 16px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(2) {
        width: 1px;
        height: 6px; /* Adjusted */
        bottom: -10px; /* Adjusted */
        left: 28px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(3) {
        width: 20px; /* Adjusted */
        height: 1px;
        bottom: -10px; /* Adjusted */
        left: 28px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(4) {
        width: 12px; /* Adjusted */
        height: 1px;
        bottom: -4px; /* Adjusted */
        right: 16px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(5) {
        width: 1px;
        height: 6px; /* Adjusted */
        bottom: -10px; /* Adjusted */
        right: 28px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(6) {
        width: 20px; /* Adjusted */
        height: 1px;
        bottom: -10px; /* Adjusted */
        right: 8px; /* Adjusted */
    }

    .tsl-toggle-reflection {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 40%
        );
        border-radius: 25px; /* Adjusted */
        pointer-events: none;
    }

    .tsl-holo-glow {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 25px; /* Adjusted */
        background: radial-gradient(
            ellipse at center,
            rgba(0, 120, 255, 0.25) 0%, /* TSL blue */
            rgba(0, 0, 0, 0) 70%
        );
        filter: blur(8px); /* Adjusted */
        opacity: 0.5;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 0;
    }

    /* Checked state styles */
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track {
        background: rgba(0, 40, 20, 0.5); /* TSL dark teal */
        border-color: rgba(0, 255, 180, 0.4); /* TSL teal */
        box-shadow:
            0 0 12px rgba(0, 255, 180, 0.3), /* TSL teal glow */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track::before {
        background: radial-gradient(
                ellipse at center,
                rgba(0, 255, 180, 0.15) 0%, /* TSL teal */
                rgba(0, 0, 0, 0) 70%
            ),
            linear-gradient(90deg, rgba(0, 80, 40, 0.15) 0%, rgba(0, 40, 20, 0.25) 100%);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track::after {
        background: linear-gradient(
            90deg,
            rgba(0, 255, 180, 0.4) 0%, /* TSL teal */
            rgba(0, 120, 60, 0.2) 100%
        );
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-track-line {
        background: repeating-linear-gradient(
            90deg,
            rgba(0, 255, 180, 0.4) 0px, /* TSL teal */
            rgba(0, 255, 180, 0.4) 4px,
            transparent 4px,
            transparent 12px
        );
        animation-direction: reverse;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-toggle-thumb {
        left: calc(100% - 47px); /* Adjusted for mobile */
        background: radial-gradient(
            circle,
            rgba(5, 60, 30, 0.9) 0%, /* TSL dark teal */
            rgba(0, 30, 15, 0.8) 100%
        );
        border-color: rgba(0, 255, 180, 0.7); /* TSL teal */
        box-shadow:
            0 2px 12px rgba(0, 0, 0, 0.5),
            inset 0 0 12px rgba(0, 255, 180, 0.6); /* TSL teal */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-core {
        background: radial-gradient(
            circle,
            rgba(0, 255, 180, 0.7) 0%, /* TSL teal */
            rgba(0, 80, 40, 0.3) 100%
        );
        box-shadow: 0 0 16px rgba(0, 255, 180, 0.6);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-inner {
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(100, 255, 220, 0.6) 100% /* TSL teal-white */
        );
        box-shadow: 0 0 8px rgba(100, 255, 220, 0.8);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-scan {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 255, 180, 0.6) 20%, /* TSL teal */
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 255, 180, 0.6) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-particle {
        background: rgba(100, 255, 220, 0.9); /* TSL teal */
        box-shadow: 0 0 4px rgba(100, 255, 220, 0.9);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-price,
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-qbuild {
        opacity: 0;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-check {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-price-indicator,
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-qbuild-indicator {
        opacity: 0;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-check-indicator {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-rings {
        left: calc(100% - 47px); /* Adjusted */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(1) {
        border-top-color: rgba(0, 255, 180, 0.6); /* TSL teal */
        border-right-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(2) {
        border-bottom-color: rgba(0, 255, 180, 0.6);
        border-left-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(3) {
        border-left-color: rgba(0, 255, 180, 0.6);
        border-top-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-interface-line {
        background: rgba(0, 255, 180, 0.4); /* TSL teal */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-holo-glow {
        background: radial-gradient(
            ellipse at center,
            rgba(0, 255, 180, 0.25) 0%, /* TSL teal */
            rgba(0, 0, 0, 0) 70%
        );
    }

    /* Hover states for better UX */
    .tsl-holo-toggle-input:hover + .tsl-holo-toggle-track {
        box-shadow:
            0 0 16px rgba(0, 120, 255, 0.4), /* TSL blue */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
    }

    .tsl-holo-toggle-input:checked:hover + .tsl-holo-toggle-track {
        box-shadow:
            0 0 16px rgba(0, 255, 180, 0.4), /* TSL teal */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
    }

    /* Pricing section fixes for 320px */
    .payment-methods {
        width: 90%;
    }

    .primary-payment {
        transform: scale(0.8);
    }

    .primary-payment h4,
    .alternative-payment h4 {
        font-size: 0.7rem;
    }

    .primary-grid .payment-card img[src*="Wise"],
    .primary-grid .payment-card img[src*="Stripe"] {
        transform: scale(2.5);
    }

    .pricing-content {
        gap: 0.75rem;
    }

    .pricing-left,
    .pricing-right {
        width: 100%;
        overflow-x: visible;
    }

    .pricing-info {
        width: 90%;
        text-align: center;
    }

    .pricing-info p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .primary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        justify-items: center;
    }

    .primary-grid .payment-card {
        padding: 0.4rem;
        margin-right: 0.3rem;
        width: 80px;
        height: 80px;
    }

    .primary-grid .payment-card img {
        height: 25px;
    }

    .alternative-payment {
        width: 80%;
        margin: 0 auto;
    }

    .alternative-payment .payment-carousel {
        overflow: hidden;
    }

    .alternative-payment .carousel-container {
        justify-content: center;
        gap: 0;
    }

    .alternative-payment .carousel-slide {
        display: none;
    }

    .alternative-payment .carousel-slide.active {
        display: block;
    }

    @media (max-width: 320px) {
    .pricing-selection {
        width: 90%;
        overflow-x: visible;
        transform: translatey(-5px);
    }}

    .tier-list {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .tier-btn {
        width: 100%;
        text-align: left;
    }

    .tier-btn h5 {
        font-size: 0.7rem;
        margin: 0;
    }

    .tier-detail {
        padding: 0.5rem;
    }

    .pricing-box {
        padding: 1rem;
    }

    .pricing-box .price {
        font-size: 1.2rem;
    }

    .pricing-box p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .tier-features .pill,
    .tier-team .pill {
        font-size: 0.5rem;
        padding: 0.4rem 0.4rem;
    }

    .services-subtitle,
    .tier-team h6 {
        font-size: 0.8rem;
    }

    .team-card {
        width: 80px;
        height: 50px;
        font-size: 0.7rem;
        padding: 0.25rem;
    }

    /* Learning Center - 2x2 grid for 320px */
    .learning-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0.5rem;
        padding: 0 0.25rem;
    }

    .learning-card {
        min-height: 120px;
        padding: 0.5rem;
    }

    .learning-card img {
        height: 50px;
        width: auto;
        margin-bottom: 0.3rem;
    }

    .card-title {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .card-overlay {
        padding: 0.15rem;
    }

    .video-option {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        margin-bottom: 0.15rem;
    }

    .overlay-text {
        font-size: 0.65rem;
    }

    .learning-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.3rem;
        padding: 0 0.25rem;
    }

    .learning-buttons a {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }

    /* Contact form scaling for 320px */
    .contact-form {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 16px;
        margin-bottom: 0.4rem;
    }

    .contact-bg .floating-element {
        width: 50px;
        height: 50px;
    }

    /* Footer same width as header for 320px */
    .site-footer {
        margin-left: 0.2rem;
        margin-right: 0.2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 0.75rem 0.25rem;
    }

    .footer-logo img {
        height: 25px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 0;
        order: 2;
    }

    .footer-links a {
        font-size: 0.7rem;
        white-space: nowrap;
        text-align: center;
        display: block;
        width: 100%;
    }

    .footer-bottom p {
        font-size: 0.65rem;
    }

    /* Chat window scaling for 320px */
    .chat-window {
        width: 80vw;
        height: 16rem;
    }

    /* Chat toggle positioning for 320px */
    .chatbot .chat-toggle {
        right: 0.25rem;
        bottom: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .chatbot .chat-toggle img {
        width: 25px;
        height: 25px;
    }

    /* Accessibility contrast improvements for 320px */
    .section-title span,
    .pricing-box .price,
    .tier-features .pill,
    .domain-pills .pill {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

    /* Ensure text is always visible against backgrounds */
    .about-card p,
    .pricing-info p,
    .contact-form label {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.15rem;
        border-radius: 4px;
        backdrop-filter: blur(2px);
    }

    /* TSL Holographic Toggle for 320px breakpoint */
    /* Global development standards: Comprehensive holographic toggle implementation with TSL color palette */
    /* Purpose: Interactive pricing navigation with quantum-inspired visual effects */
    /* Architecture: Checkbox-based toggle with animated holographic elements */
    /* Dependencies: None - self-contained component */
    /* Browser support: Modern browsers with CSS animations */
    /* Performance: Optimized with hardware acceleration and efficient animations */

    .tsl-holo-toggle-container {
        position: relative;
        width: 140px; /* Scaled for 320px breakpoint */
        display: flex;
        flex-direction: column;
        align-items: center;
        perspective: 600px; /* Reduced for mobile performance */
        z-index: 5;
        margin-top: 0.75rem;
        transform: translateX(-15px);
    }

    .tsl-holo-toggle-wrap {
        position: relative;
        width: 100%;
        height: 50px; /* Adjusted for mobile */
        transform-style: preserve-3d;
    }

    .tsl-holo-toggle-input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .tsl-holo-toggle-track {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0, 20, 40, 0.5); /* TSL dark blue with transparency */
        border-radius: 25px; /* Adjusted for height */
        cursor: pointer;
        box-shadow:
            0 0 12px rgba(0, 80, 255, 0.3), /* TSL blue glow */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
        overflow: hidden;
        backdrop-filter: blur(3px); /* Reduced blur for performance */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
        border: 1px solid rgba(0, 120, 255, 0.4); /* TSL blue border */
    }

    .tsl-holo-toggle-track::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(
                ellipse at center,
                rgba(0, 80, 255, 0.15) 0%, /* TSL blue */
                rgba(0, 0, 0, 0) 70%
            ),
            linear-gradient(90deg, rgba(0, 40, 80, 0.15) 0%, rgba(0, 20, 40, 0.25) 100%);
        opacity: 0.6;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-holo-toggle-track::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        right: 2px;
        height: 8px; /* Adjusted for mobile */
        background: linear-gradient(
            90deg,
            rgba(0, 140, 255, 0.4) 0%, /* TSL blue */
            rgba(0, 80, 255, 0.2) 100%
        );
        border-radius: 25px 25px 0 0;
        opacity: 0.7;
        filter: blur(0.5px); /* Reduced blur */
    }

    .tsl-track-lines {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        transform: translateY(-50%);
        overflow: hidden;
    }

    .tsl-track-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
            90deg,
            rgba(0, 120, 255, 0.4) 0px, /* TSL blue */
            rgba(0, 120, 255, 0.4) 4px,
            transparent 4px,
            transparent 12px
        );
        animation: tsl-track-line-move 2.5s linear infinite; /* Slower for mobile */
    }

    @keyframes tsl-track-line-move {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(16px); /* Adjusted for mobile */
        }
    }

    .tsl-toggle-thumb {
        position: absolute;
        width: 44px; /* Adjusted for mobile */
        height: 44px;
        left: 3px;
        top: 3px;
        background: radial-gradient(
            circle,
            rgba(5, 30, 60, 0.9) 0%, /* TSL dark blue */
            rgba(0, 15, 30, 0.8) 100%
        );
        border-radius: 50%;
        box-shadow:
            0 2px 12px rgba(0, 0, 0, 0.5),
            inset 0 0 12px rgba(0, 120, 255, 0.6); /* TSL blue */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2;
        border: 1px solid rgba(0, 140, 255, 0.7); /* TSL blue */
        overflow: hidden;
        transform-style: preserve-3d;
    }

    .tsl-thumb-core {
        position: absolute;
        width: 32px; /* Adjusted */
        height: 32px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle,
            rgba(0, 140, 255, 0.7) 0%, /* TSL blue */
            rgba(0, 40, 80, 0.3) 100%
        );
        border-radius: 50%;
        box-shadow: 0 0 16px rgba(0, 120, 255, 0.6);
        opacity: 0.9;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-thumb-inner {
        position: absolute;
        width: 20px; /* Adjusted */
        height: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(100, 180, 255, 0.6) 100% /* TSL blue-white */
        );
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(100, 180, 255, 0.8);
        opacity: 0.7;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        animation: tsl-pulse 2s infinite alternate;
    }

    @keyframes tsl-pulse {
        0% {
            opacity: 0.5;
            transform: translate(-50%, -50%) scale(0.9);
        }
        100% {
            opacity: 0.8;
            transform: translate(-50%, -50%) scale(1.1);
        }
    }

    .tsl-thumb-scan {
        position: absolute;
        width: 100%;
        height: 4px; /* Adjusted */
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 120, 255, 0.6) 20%, /* TSL blue */
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 120, 255, 0.6) 80%,
            rgba(0, 0, 0, 0) 100%
        );
        top: 0;
        left: 0;
        filter: blur(0.5px);
        animation: tsl-thumb-scan 2s linear infinite;
        opacity: 0.7;
    }

    @keyframes tsl-thumb-scan {
        0% {
            top: -4px;
            opacity: 0;
        }
        20% {
            opacity: 0.7;
        }
        80% {
            opacity: 0.7;
        }
        100% {
            top: 44px; /* Adjusted */
            opacity: 0;
        }
    }

    .tsl-thumb-particles {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        overflow: hidden;
    }

    .tsl-thumb-particle {
        position: absolute;
        width: 2px; /* Adjusted */
        height: 2px;
        background: rgba(100, 180, 255, 0.9); /* TSL blue */
        border-radius: 50%;
        box-shadow: 0 0 4px rgba(100, 180, 255, 0.9);
        animation: tsl-thumb-particle-float 2.5s infinite ease-out;
        opacity: 0;
    }

    .tsl-thumb-particle:nth-child(1) {
        top: 70%;
        left: 30%;
        animation-delay: 0.2s;
    }

    .tsl-thumb-particle:nth-child(2) {
        top: 60%;
        left: 60%;
        animation-delay: 0.6s;
    }

    .tsl-thumb-particle:nth-child(3) {
        top: 50%;
        left: 40%;
        animation-delay: 1s;
    }

    .tsl-thumb-particle:nth-child(4) {
        top: 40%;
        left: 70%;
        animation-delay: 1.4s;
    }

    .tsl-thumb-particle:nth-child(5) {
        top: 80%;
        left: 50%;
        animation-delay: 1.8s;
    }

    @keyframes tsl-thumb-particle-float {
        0% {
            transform: translateY(0) scale(1);
            opacity: 0;
        }
        20% {
            opacity: 0.8;
        }
        100% {
            transform: translateY(-25px) scale(0); /* Adjusted */
            opacity: 0;
        }
    }

    .tsl-toggle-data {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .tsl-data-text {
        position: absolute;
        font-size: 11px; /* Adjusted for mobile */
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.4s ease; /* Faster for mobile */
    }

    .tsl-data-text.tsl-price,
    .tsl-data-text.tsl-qbuild {
        right: 10px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        color: rgba(0, 120, 255, 0.7); /* TSL blue */
        text-shadow: 0 0 4px rgba(0, 80, 255, 0.5);
    }

    .tsl-data-text.tsl-check {
        left: 12px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        color: rgba(0, 255, 180, 0.7); /* TSL teal */
        text-shadow: 0 0 4px rgba(0, 255, 150, 0.5);
    }

    .tsl-status-indicator {
        position: absolute;
        width: 8px; /* Adjusted */
        height: 8px;
        border-radius: 50%;
        background: radial-gradient(
            circle,
            rgba(0, 140, 255, 0.9) 0%, /* TSL blue */
            rgba(0, 60, 140, 0.5) 100%
        );
        box-shadow: 0 0 8px rgba(0, 120, 255, 0.6);
        animation: tsl-blink 2s infinite alternate;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-status-indicator.tsl-price-indicator,
    .tsl-status-indicator.tsl-qbuild-indicator {
        top: 21px; /* Adjusted */
        right: 12px; /* Adjusted */
    }

    .tsl-status-indicator.tsl-check-indicator {
        top: 21px; /* Adjusted */
        left: 12px; /* Adjusted */
        opacity: 0;
        background: radial-gradient(
            circle,
            rgba(0, 255, 180, 0.9) 0%, /* TSL teal */
            rgba(0, 140, 90, 0.5) 100%
        );
        box-shadow: 0 0 8px rgba(0, 255, 180, 0.6);
    }

    @keyframes tsl-blink {
        0%,
        100% {
            opacity: 0.5;
            transform: scale(0.9);
        }
        50% {
            opacity: 1;
            transform: scale(1.1);
        }
    }

    .tsl-energy-rings {
        position: absolute;
        width: 44px; /* Adjusted */
        height: 44px;
        left: 3px;
        top: 3px;
        pointer-events: none;
        z-index: 1;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-energy-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 1.5px solid transparent; /* Adjusted */
        opacity: 0;
    }

    .tsl-energy-ring:nth-child(1) {
        width: 42px; /* Adjusted */
        height: 42px;
        border-top-color: rgba(0, 120, 255, 0.6); /* TSL blue */
        border-right-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin 2.5s linear infinite; /* Slower */
    }

    .tsl-energy-ring:nth-child(2) {
        width: 34px; /* Adjusted */
        height: 34px;
        border-bottom-color: rgba(0, 120, 255, 0.6);
        border-left-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin 2s linear infinite reverse;
    }

    .tsl-energy-ring:nth-child(3) {
        width: 26px; /* Adjusted */
        height: 26px;
        border-left-color: rgba(0, 120, 255, 0.6);
        border-top-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin 1.5s linear infinite;
    }

    @keyframes tsl-spin {
        0% {
            transform: translate(-50%, -50%) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    .tsl-interface-lines {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .tsl-interface-line {
        position: absolute;
        background: rgba(0, 120, 255, 0.4); /* TSL blue */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-interface-line:nth-child(1) {
        width: 12px; /* Adjusted */
        height: 1px;
        bottom: -4px; /* Adjusted */
        left: 16px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(2) {
        width: 1px;
        height: 6px; /* Adjusted */
        bottom: -10px; /* Adjusted */
        left: 28px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(3) {
        width: 20px; /* Adjusted */
        height: 1px;
        bottom: -10px; /* Adjusted */
        left: 28px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(4) {
        width: 12px; /* Adjusted */
        height: 1px;
        bottom: -4px; /* Adjusted */
        right: 16px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(5) {
        width: 1px;
        height: 6px; /* Adjusted */
        bottom: -10px; /* Adjusted */
        right: 28px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(6) {
        width: 20px; /* Adjusted */
        height: 1px;
        bottom: -10px; /* Adjusted */
        right: 8px; /* Adjusted */
    }

    .tsl-toggle-reflection {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 40%
        );
        border-radius: 25px; /* Adjusted */
        pointer-events: none;
    }

    .tsl-holo-glow {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 25px; /* Adjusted */
        background: radial-gradient(
            ellipse at center,
            rgba(0, 120, 255, 0.25) 0%, /* TSL blue */
            rgba(0, 0, 0, 0) 70%
        );
        filter: blur(8px); /* Adjusted */
        opacity: 0.5;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 0;
    }

    /* Checked state styles */
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track {
        background: rgba(0, 40, 20, 0.5); /* TSL dark teal */
        border-color: rgba(0, 255, 180, 0.4); /* TSL teal */
        box-shadow:
            0 0 12px rgba(0, 255, 180, 0.3), /* TSL teal glow */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track::before {
        background: radial-gradient(
                ellipse at center,
                rgba(0, 255, 180, 0.15) 0%, /* TSL teal */
                rgba(0, 0, 0, 0) 70%
            ),
            linear-gradient(90deg, rgba(0, 80, 40, 0.15) 0%, rgba(0, 40, 20, 0.25) 100%);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track::after {
        background: linear-gradient(
            90deg,
            rgba(0, 255, 180, 0.4) 0%, /* TSL teal */
            rgba(0, 120, 60, 0.2) 100%
        );
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-track-line {
        background: repeating-linear-gradient(
            90deg,
            rgba(0, 255, 180, 0.4) 0px, /* TSL teal */
            rgba(0, 255, 180, 0.4) 4px,
            transparent 4px,
            transparent 12px
        );
        animation-direction: reverse;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-toggle-thumb {
        left: calc(100% - 47px); /* Adjusted for mobile */
        background: radial-gradient(
            circle,
            rgba(5, 60, 30, 0.9) 0%, /* TSL dark teal */
            rgba(0, 30, 15, 0.8) 100%
        );
        border-color: rgba(0, 255, 180, 0.7); /* TSL teal */
        box-shadow:
            0 2px 12px rgba(0, 0, 0, 0.5),
            inset 0 0 12px rgba(0, 255, 180, 0.6); /* TSL teal */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-core {
        background: radial-gradient(
            circle,
            rgba(0, 255, 180, 0.7) 0%, /* TSL teal */
            rgba(0, 80, 40, 0.3) 100%
        );
        box-shadow: 0 0 16px rgba(0, 255, 180, 0.6);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-inner {
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(100, 255, 220, 0.6) 100% /* TSL teal-white */
        );
        box-shadow: 0 0 8px rgba(100, 255, 220, 0.8);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-scan {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 255, 180, 0.6) 20%, /* TSL teal */
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 255, 180, 0.6) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-particle {
        background: rgba(100, 255, 220, 0.9); /* TSL teal */
        box-shadow: 0 0 4px rgba(100, 255, 220, 0.9);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-price,
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-qbuild {
        opacity: 0;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-check {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-price-indicator,
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-qbuild-indicator {
        opacity: 0;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-check-indicator {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-rings {
        left: calc(100% - 47px); /* Adjusted */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(1) {
        border-top-color: rgba(0, 255, 180, 0.6); /* TSL teal */
        border-right-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(2) {
        border-bottom-color: rgba(0, 255, 180, 0.6);
        border-left-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(3) {
        border-left-color: rgba(0, 255, 180, 0.6);
        border-top-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-interface-line {
        background: rgba(0, 255, 180, 0.4); /* TSL teal */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-holo-glow {
        background: radial-gradient(
            ellipse at center,
            rgba(0, 255, 180, 0.25) 0%, /* TSL teal */
            rgba(0, 0, 0, 0) 70%
        );
    }

    /* Hover states for better UX */
    .tsl-holo-toggle-input:hover + .tsl-holo-toggle-track {
        box-shadow:
            0 0 16px rgba(0, 120, 255, 0.4), /* TSL blue */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
    }

    .tsl-holo-toggle-input:checked:hover + .tsl-holo-toggle-track {
        box-shadow:
            0 0 16px rgba(0, 255, 180, 0.4), /* TSL teal */
            inset 0 0 8px rgba(0, 0, 0, 0.8);
    }
}

/* TSL Holographic Toggle for larger breakpoints (min-width: 321px) */
@media (min-width: 321px) {
    .tsl-holo-toggle-container {
        position: relative;
        width: 100%; /* Span entire width of relative div */
        display: flex;
        flex-direction: column;
        align-items: center;
        perspective: 800px; /* Enhanced for desktop */
        z-index: 5;
        margin-top: 1rem;
    }

    .tsl-holo-toggle-wrap {
        position: relative;
        width: 100%;
        height: 60px; /* Larger for desktop */
        transform-style: preserve-3d;
    }

    .tsl-holo-toggle-input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .tsl-holo-toggle-track {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0, 20, 40, 0.5); /* TSL dark blue with transparency */
        border-radius: 30px; /* Adjusted for height */
        cursor: pointer;
        box-shadow:
            0 0 15px rgba(0, 80, 255, 0.4), /* TSL blue glow */
            inset 0 0 10px rgba(0, 0, 0, 0.8);
        overflow: hidden;
        backdrop-filter: blur(5px); /* Enhanced blur for desktop */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
        border: 1px solid rgba(0, 120, 255, 0.4); /* TSL blue border */
    }

    .tsl-holo-toggle-track::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(
                ellipse at center,
                rgba(0, 80, 255, 0.15) 0%, /* TSL blue */
                rgba(0, 0, 0, 0) 70%
            ),
            linear-gradient(90deg, rgba(0, 40, 80, 0.15) 0%, rgba(0, 20, 40, 0.25) 100%);
        opacity: 0.6;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-holo-toggle-track::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        right: 3px;
        height: 10px; /* Adjusted for desktop */
        background: linear-gradient(
            90deg,
            rgba(0, 140, 255, 0.4) 0%, /* TSL blue */
            rgba(0, 80, 255, 0.2) 100%
        );
        border-radius: 30px 30px 0 0;
        opacity: 0.7;
        filter: blur(0.5px);
    }

    .tsl-track-lines {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 70%; /* Leave space for text on sides */
        height: 1px;
        transform: translate(-50%, -50%);
        overflow: hidden;
    }

    .tsl-track-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
            90deg,
            rgba(0, 120, 255, 0.4) 0px, /* TSL blue */
            rgba(0, 120, 255, 0.4) 6px,
            transparent 6px,
            transparent 18px
        );
        animation: tsl-track-line-move-desktop 3s linear infinite;
    }

    @keyframes tsl-track-line-move-desktop {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(24px);
        }
    }

    .tsl-toggle-thumb {
        position: absolute;
        width: 54px; /* Adjusted for desktop */
        height: 54px;
        left: 3px;
        top: 3px;
        background: radial-gradient(
            circle,
            rgba(5, 30, 60, 0.9) 0%, /* TSL dark blue */
            rgba(0, 15, 30, 0.8) 100%
        );
        border-radius: 50%;
        box-shadow:
            0 3px 15px rgba(0, 0, 0, 0.5),
            inset 0 0 15px rgba(0, 120, 255, 0.6); /* TSL blue */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2;
        border: 1px solid rgba(0, 140, 255, 0.7); /* TSL blue */
        overflow: hidden;
        transform-style: preserve-3d;
    }

    .tsl-thumb-core {
        position: absolute;
        width: 40px; /* Adjusted */
        height: 40px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle,
            rgba(0, 140, 255, 0.7) 0%, /* TSL blue */
            rgba(0, 40, 80, 0.3) 100%
        );
        border-radius: 50%;
        box-shadow: 0 0 20px rgba(0, 120, 255, 0.6);
        opacity: 0.9;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-thumb-inner {
        position: absolute;
        width: 25px; /* Adjusted */
        height: 25px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(100, 180, 255, 0.6) 100% /* TSL blue-white */
        );
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(100, 180, 255, 0.8);
        opacity: 0.7;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        animation: tsl-pulse-desktop 2.5s infinite alternate;
    }

    @keyframes tsl-pulse-desktop {
        0% {
            opacity: 0.5;
            transform: translate(-50%, -50%) scale(0.9);
        }
        100% {
            opacity: 0.8;
            transform: translate(-50%, -50%) scale(1.1);
        }
    }

    .tsl-thumb-scan {
        position: absolute;
        width: 100%;
        height: 5px; /* Adjusted */
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 120, 255, 0.6) 20%, /* TSL blue */
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 120, 255, 0.6) 80%,
            rgba(0, 0, 0, 0) 100%
        );
        top: 0;
        left: 0;
        filter: blur(0.5px);
        animation: tsl-thumb-scan-desktop 2.5s linear infinite;
        opacity: 0.7;
    }

    @keyframes tsl-thumb-scan-desktop {
        0% {
            top: -5px;
            opacity: 0;
        }
        20% {
            opacity: 0.7;
        }
        80% {
            opacity: 0.7;
        }
        100% {
            top: 54px; /* Adjusted */
            opacity: 0;
        }
    }

    .tsl-thumb-particles {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        overflow: hidden;
    }

    .tsl-thumb-particle {
        position: absolute;
        width: 3px; /* Adjusted */
        height: 3px;
        background: rgba(100, 180, 255, 0.9); /* TSL blue */
        border-radius: 50%;
        box-shadow: 0 0 6px rgba(100, 180, 255, 0.9);
        animation: tsl-thumb-particle-float-desktop 3s infinite ease-out;
        opacity: 0;
    }

    .tsl-thumb-particle:nth-child(1) {
        top: 70%;
        left: 30%;
        animation-delay: 0.2s;
    }

    .tsl-thumb-particle:nth-child(2) {
        top: 60%;
        left: 60%;
        animation-delay: 0.6s;
    }

    .tsl-thumb-particle:nth-child(3) {
        top: 50%;
        left: 40%;
        animation-delay: 1s;
    }

    .tsl-thumb-particle:nth-child(4) {
        top: 40%;
        left: 70%;
        animation-delay: 1.4s;
    }

    .tsl-thumb-particle:nth-child(5) {
        top: 80%;
        left: 50%;
        animation-delay: 1.8s;
    }

    @keyframes tsl-thumb-particle-float-desktop {
        0% {
            transform: translateY(0) scale(1);
            opacity: 0;
        }
        20% {
            opacity: 0.8;
        }
        100% {
            transform: translateY(-30px) scale(0); /* Adjusted */
            opacity: 0;
        }
    }

    .tsl-toggle-data {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .tsl-data-text {
        position: absolute;
        font-size: 14px; /* Adjusted for desktop */
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.4s ease;
    }

    .tsl-data-text.tsl-price {
        right: 12px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        color: rgba(0, 120, 255, 0.7); /* TSL blue */
        text-shadow: 0 0 6px rgba(0, 80, 255, 0.5);
    }

    .tsl-data-text.tsl-price::before {
        content: "Click To View Our Prices";
        font-size: 12px;
        white-space: nowrap;
    }

    .tsl-data-text.tsl-price {
        font-size: 0; /* Hide original text */
    }

    .tsl-data-text.tsl-qbuild {
        right: 12px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        color: rgba(0, 120, 255, 0.7); /* TSL blue */
        text-shadow: 0 0 6px rgba(0, 80, 255, 0.5);
    }

    .tsl-data-text.tsl-qbuild::before {
        content: "Click To Submit a Q-Build Request";
        font-size: 10px;
        white-space: nowrap;
    }

    .tsl-data-text.tsl-qbuild {
        font-size: 0; /* Hide original text */
    }

    .tsl-data-text.tsl-check {
        left: 15px; /* Adjusted */
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        color: rgba(0, 255, 180, 0.7); /* TSL teal */
        text-shadow: 0 0 6px rgba(0, 255, 150, 0.5);
    }

    /* Replace check text completely for different toggles */
    #tsl-holo-toggle-cleanwash:checked ~ .tsl-holo-toggle-track .tsl-data-text.tsl-check,
    #tsl-holo-toggle-migrations:checked ~ .tsl-holo-toggle-track .tsl-data-text.tsl-check {
        font-size: 0; /* Hide original text */
    }

    #tsl-holo-toggle-cleanwash:checked ~ .tsl-holo-toggle-track .tsl-data-text.tsl-check::after,
    #tsl-holo-toggle-migrations:checked ~ .tsl-holo-toggle-track .tsl-data-text.tsl-check::after {
        content: "Sending To 'How We Charge'";
        font-size: 10px;
        white-space: nowrap;
    }

    #tsl-holo-toggle-modeldev:checked ~ .tsl-holo-toggle-track .tsl-data-text.tsl-check {
        font-size: 0; /* Hide original text */
    }

    #tsl-holo-toggle-modeldev:checked ~ .tsl-holo-toggle-track .tsl-data-text.tsl-check::after {
        content: "Sending Q-Build Inquiry Form";
        font-size: 8px;
        white-space: nowrap;
    }

    .tsl-status-indicator {
        position: absolute;
        width: 10px; /* Adjusted */
        height: 10px;
        border-radius: 50%;
        background: radial-gradient(
            circle,
            rgba(0, 140, 255, 0.9) 0%, /* TSL blue */
            rgba(0, 60, 140, 0.5) 100%
        );
        box-shadow: 0 0 10px rgba(0, 120, 255, 0.6);
        animation: tsl-blink-desktop 2.5s infinite alternate;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-status-indicator.tsl-price-indicator,
    .tsl-status-indicator.tsl-qbuild-indicator {
        top: 25px; /* Adjusted */
        right: 15px; /* Adjusted */
    }

    .tsl-status-indicator.tsl-check-indicator {
        top: 25px; /* Adjusted */
        left: 15px; /* Adjusted */
        opacity: 0;
        background: radial-gradient(
            circle,
            rgba(0, 255, 180, 0.9) 0%, /* TSL teal */
            rgba(0, 140, 90, 0.5) 100%
        );
        box-shadow: 0 0 10px rgba(0, 255, 180, 0.6);
    }

    @keyframes tsl-blink-desktop {
        0%,
        100% {
            opacity: 0.5;
            transform: scale(0.9);
        }
        50% {
            opacity: 1;
            transform: scale(1.1);
        }
    }

    .tsl-energy-rings {
        position: absolute;
        width: 54px; /* Adjusted */
        height: 54px;
        left: 3px;
        top: 3px;
        pointer-events: none;
        z-index: 1;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-energy-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 2px solid transparent; /* Adjusted */
        opacity: 0;
    }

    .tsl-energy-ring:nth-child(1) {
        width: 52px; /* Adjusted */
        height: 52px;
        border-top-color: rgba(0, 120, 255, 0.6); /* TSL blue */
        border-right-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin-desktop 3s linear infinite;
    }

    .tsl-energy-ring:nth-child(2) {
        width: 42px; /* Adjusted */
        height: 42px;
        border-bottom-color: rgba(0, 120, 255, 0.6);
        border-left-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin-desktop 2.5s linear infinite reverse;
    }

    .tsl-energy-ring:nth-child(3) {
        width: 32px; /* Adjusted */
        height: 32px;
        border-left-color: rgba(0, 120, 255, 0.6);
        border-top-color: rgba(0, 120, 255, 0.4);
        animation: tsl-spin-desktop 2s linear infinite;
    }

    @keyframes tsl-spin-desktop {
        0% {
            transform: translate(-50%, -50%) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    .tsl-interface-lines {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .tsl-interface-line {
        position: absolute;
        background: rgba(0, 120, 255, 0.4); /* TSL blue */
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .tsl-interface-line:nth-child(1) {
        width: 15px; /* Adjusted */
        height: 1px;
        bottom: -5px; /* Adjusted */
        left: 20px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(2) {
        width: 1px;
        height: 8px; /* Adjusted */
        bottom: -13px; /* Adjusted */
        left: 35px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(3) {
        width: 25px; /* Adjusted */
        height: 1px;
        bottom: -13px; /* Adjusted */
        left: 35px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(4) {
        width: 15px; /* Adjusted */
        height: 1px;
        bottom: -5px; /* Adjusted */
        right: 20px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(5) {
        width: 1px;
        height: 8px; /* Adjusted */
        bottom: -13px; /* Adjusted */
        right: 35px; /* Adjusted */
    }

    .tsl-interface-line:nth-child(6) {
        width: 25px; /* Adjusted */
        height: 1px;
        bottom: -13px; /* Adjusted */
        right: 10px; /* Adjusted */
    }

    .tsl-toggle-reflection {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 40%
        );
        border-radius: 30px; /* Adjusted */
        pointer-events: none;
    }

    .tsl-holo-glow {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 30px; /* Adjusted */
        background: radial-gradient(
            ellipse at center,
            rgba(0, 120, 255, 0.25) 0%, /* TSL blue */
            rgba(0, 0, 0, 0) 70%
        );
        filter: blur(10px); /* Adjusted */
        opacity: 0.5;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 0;
    }

    /* Checked state styles */
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track {
        background: rgba(0, 40, 20, 0.5); /* TSL dark teal */
        border-color: rgba(0, 255, 180, 0.4); /* TSL teal */
        box-shadow:
            0 0 15px rgba(0, 255, 180, 0.4), /* TSL teal glow */
            inset 0 0 10px rgba(0, 0, 0, 0.8);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track::before {
        background: radial-gradient(
                ellipse at center,
                rgba(0, 255, 180, 0.15) 0%, /* TSL teal */
                rgba(0, 0, 0, 0) 70%
            ),
            linear-gradient(90deg, rgba(0, 80, 40, 0.15) 0%, rgba(0, 40, 20, 0.25) 100%);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track::after {
        background: linear-gradient(
            90deg,
            rgba(0, 255, 180, 0.4) 0%, /* TSL teal */
            rgba(0, 120, 60, 0.2) 100%
        );
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-track-line {
        background: repeating-linear-gradient(
            90deg,
            rgba(0, 255, 180, 0.4) 0px, /* TSL teal */
            rgba(0, 255, 180, 0.4) 6px,
            transparent 6px,
            transparent 18px
        );
        animation-direction: reverse;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-toggle-thumb {
        left: calc(100% - 57px); /* Adjusted for desktop */
        background: radial-gradient(
            circle,
            rgba(5, 60, 30, 0.9) 0%, /* TSL dark teal */
            rgba(0, 30, 15, 0.8) 100%
        );
        border-color: rgba(0, 255, 180, 0.7); /* TSL teal */
        box-shadow:
            0 3px 15px rgba(0, 0, 0, 0.5),
            inset 0 0 15px rgba(0, 255, 180, 0.6); /* TSL teal */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-core {
        background: radial-gradient(
            circle,
            rgba(0, 255, 180, 0.7) 0%, /* TSL teal */
            rgba(0, 80, 40, 0.3) 100%
        );
        box-shadow: 0 0 20px rgba(0, 255, 180, 0.6);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-inner {
        background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(100, 255, 220, 0.6) 100% /* TSL teal-white */
        );
        box-shadow: 0 0 10px rgba(100, 255, 220, 0.8);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-scan {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 255, 180, 0.6) 20%, /* TSL teal */
            rgba(255, 255, 255, 0.9) 50%,
            rgba(0, 255, 180, 0.6) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-thumb-particle {
        background: rgba(100, 255, 220, 0.9); /* TSL teal */
        box-shadow: 0 0 6px rgba(100, 255, 220, 0.9);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-price,
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-qbuild {
        opacity: 0;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-data-text.tsl-check {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-price-indicator,
    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-qbuild-indicator {
        opacity: 0;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-status-indicator.tsl-check-indicator {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-rings {
        left: calc(100% - 57px); /* Adjusted */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring {
        opacity: 1;
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(1) {
        border-top-color: rgba(0, 255, 180, 0.6); /* TSL teal */
        border-right-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(2) {
        border-bottom-color: rgba(0, 255, 180, 0.6);
        border-left-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-energy-ring:nth-child(3) {
        border-left-color: rgba(0, 255, 180, 0.6);
        border-top-color: rgba(0, 255, 180, 0.4);
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-interface-line {
        background: rgba(0, 255, 180, 0.4); /* TSL teal */
    }

    .tsl-holo-toggle-input:checked + .tsl-holo-toggle-track .tsl-holo-glow {
        background: radial-gradient(
            ellipse at center,
            rgba(0, 255, 180, 0.25) 0%, /* TSL teal */
            rgba(0, 0, 0, 0) 70%
        );
    }

    /* Hover states for better UX */
    .tsl-holo-toggle-input:hover + .tsl-holo-toggle-track {
        box-shadow:
            0 0 20px rgba(0, 120, 255, 0.5), /* TSL blue */
            inset 0 0 10px rgba(0, 0, 0, 0.8);
    }

    .tsl-holo-toggle-input:checked:hover + .tsl-holo-toggle-track {
        box-shadow:
            0 0 20px rgba(0, 255, 180, 0.5), /* TSL teal */
            inset 0 0 10px rgba(0, 0, 0, 0.8);
    }

    /* Ensure sub-tabs are fully visible on desktop */
    .services-products .tabs {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .services-products .tab-btn {
        width: auto !important;
        min-width: 120px;
        max-width: none;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        white-space: normal; /* Allow wrapping */
        overflow: visible;
        text-overflow: clip; /* No ellipsis */
        text-align: center;
    }

    .services-products .tab-btn.active {
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Ultra small devices (iPhone SE and smaller) */
@media (max-width: 375px) {
    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 0.25rem;
    }

    .hero {
        padding: 2rem 0.25rem;
        margin: 1rem 0.25rem 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-badge {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 1rem auto 0;
        display: block;
        text-align: center;
        max-width: 160px;
    }

    .hero-badge::before {
        display: none;
    }

    .hero-badge:hover {
        transform: none;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .about,
    .services-products,
    .pricing,
    .learning,
    .contact {
        margin: 0.5rem 0.25rem 2rem;
    }

    .about-card {
        padding: 1rem;
    }

    .about-card h3 {
        font-size: 1rem;
    }

    .about-card p {
        font-size: 0.6rem;
    }

    .pricing-box {
        padding: 1rem;
    }

    .contact-form {
        padding: 0.5rem;
    }

    .modal-content {
        margin: 0.5rem;
        padding: 0.75rem;
        width: calc(100vw - 1rem);
    }

    .large-modal {
        width: calc(100vw - 0.5rem);
    }
}

/* Hero subtitle formatting for tablets, laptops, and desktops */
@media (min-width: 321px) {
    .hero-subtitle {
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: pre-line;
    }

    /* Quantum modal form centering for all breakpoints except 320px */
    .quantum-modal-content .form-row {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 0 auto;
        max-width: 600px;
    }

    .quantum-modal-content .form-row .form-group {
        flex: 1;
        min-width: 0;
    }

    .quantum-modal-content {
        max-width: 800px;
    }

    /* Quantum modal narrower width */
    .quantum-modal-content {
        max-width: 600px;
    }

    /* Placeholder font styling */
    .quantum-modal-content input::placeholder,
    .quantum-modal-content textarea::placeholder {
        font-family: 'Lato', sans-serif !important;
        font-size: 0.9rem;
        color: rgba(224, 231, 255, 0.7);
    }

    /* Top-left label for primary request */
    .quantum-modal-content .top-left-label {
        display: block;
        text-align: left;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #e0e7ff;
        font-size: 0.9rem;
        font-family: 'Lato', sans-serif;
    }

    /* Payment method section centering */
    .quantum-modal-content .payment-group .payment-cards {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
}