/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #3a3a3a;
    border-top-color: #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00ff00;
    color: #1a1a1a;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Ensure main content is above overlay */
main {
    position: relative;
    z-index: 1;
}

/* Video Background */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: grayscale(100%);
    animation: filmFlicker 0.15s infinite;
}

@keyframes filmFlicker {
    0%, 100% {
        opacity: 1;
        filter: grayscale(100%) brightness(1);
    }
    10% {
        opacity: 0.98;
        filter: grayscale(100%) brightness(0.98);
    }
    20% {
        opacity: 1;
        filter: grayscale(100%) brightness(1.02);
    }
    30% {
        opacity: 0.99;
        filter: grayscale(100%) brightness(0.99);
    }
    40% {
        opacity: 1;
        filter: grayscale(100%) brightness(1.01);
    }
    50% {
        opacity: 0.97;
        filter: grayscale(100%) brightness(0.97);
    }
    60% {
        opacity: 1;
        filter: grayscale(100%) brightness(1.03);
    }
    70% {
        opacity: 0.98;
        filter: grayscale(100%) brightness(0.98);
    }
    80% {
        opacity: 1;
        filter: grayscale(100%) brightness(1);
    }
    90% {
        opacity: 0.99;
        filter: grayscale(100%) brightness(0.99);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 255, 51, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Medium overlay for video background readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
    pointer-events: none;
}

/* Full-page scanlines for support and privacy pages */
body.full-page-scanlines::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #00ff00 0%, #33ff33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
    letter-spacing: 0.05em;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Typewriter effect only on home page */
body.home-page .logo {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typewriter 2s steps(26, end) forwards;
}

@keyframes typewriter {
    to {
        width: 28ch;
    }
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff00, #33ff33);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00ff00;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a3a2a 0%, #1a2a1a 50%, #2a3a2a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* Scanlines Animation */
@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Text Vibration/Shake Animation */
@keyframes textShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-0.5px, 0.5px); }
    20% { transform: translate(0.5px, -0.5px); }
    30% { transform: translate(-0.3px, -0.3px); }
    40% { transform: translate(0.3px, 0.3px); }
    50% { transform: translate(-0.2px, 0.2px); }
    60% { transform: translate(0.2px, -0.2px); }
    70% { transform: translate(-0.4px, 0.4px); }
    80% { transform: translate(0.4px, -0.4px); }
    90% { transform: translate(-0.3px, 0.3px); }
}

.tagline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease, textShake 0.08s ease-in-out infinite 1.1s;
    animation-fill-mode: forwards, both;
    text-shadow: 0 2px 20px rgba(0, 255, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.2s, textShake 0.08s ease-in-out infinite 1.3s;
    animation-fill-mode: forwards, both;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #1a1a1a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #3a3a3a;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00ff00;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.feature h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.feature p {
    color: #b0b0b0;
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #3a3a3a;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.page-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Apps Section */
.apps-section {
    padding: 3rem 0;
    background-color: #1a1a1a;
}

.apps-section h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.apps-list {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.app-item {
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    border-left: 4px solid #00ff00;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00ff00, #33ff33);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.app-item:hover {
    transform: translateX(10px);
    border-color: #00ff00;
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.15);
    background-color: #2f2f2f;
}

.app-item:hover::before {
    transform: scaleY(1);
}

.app-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.app-icon-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.app-image-placeholder {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4a4a4a;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.app-item:hover .app-image-placeholder {
    transform: scale(1.1) rotate(2deg);
    border-color: #00ff00;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.app-content {
    flex: 1;
}

.qr-code-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.qr-code {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #3a3a3a;
    transition: all 0.3s ease;
    background-color: #ffffff;
    padding: 4px;
}

.qr-code-link:hover .qr-code {
    border-color: #00ff00;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.app-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.help-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.help-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.help-link:hover {
    color: #33ff33;
    text-decoration: underline;
}

.help-link:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background-color: #2a2a2a;
}

.contact-section h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section > .container > p {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    border: 1px solid #3a3a3a;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 12px 40px rgba(0, 255, 0, 0.1);
    border-color: #4a4a4a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #00ff00 0%, #33ff33 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Privacy Content */
.privacy-content {
    padding: 3rem 0;
    background-color: #1a1a1a;
}

.privacy-section {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.privacy-section:hover {
    border-color: #4a4a4a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.privacy-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
}

.privacy-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-section p {
    color: #b0b0b0;
    line-height: 1.8;
}

.privacy-section a {
    color: #00ff00;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
    color: #33ff33;
}

/* Copyright text in features section */
.copyright-text {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
    opacity: 0.8;
    text-align: center;
}

/* Footer */
footer {
    background-color: rgba(26, 26, 26, 0.95);
    border-top: 1px solid #3a3a3a;
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

footer .container {
    padding: 0 20px;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Disable video background on mobile for performance */
    #background-video {
        display: none;
    }

    /* Increase body overlay opacity on mobile for better readability */
    body::before {
        background: rgba(0, 0, 0, 0.4);
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 20px;
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    .tagline {
        font-size: 1.75rem;
        padding: 0 1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .features {
        padding: 3rem 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .feature p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .page-header {
        padding: 2.5rem 0;
    }

    .page-header h2 {
        font-size: 1.75rem;
        padding: 0 1rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .apps-section {
        padding: 2.5rem 0;
    }

    .apps-section h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .apps-list {
        gap: 1.25rem;
    }

    .app-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1.25rem;
    }

    .app-image-placeholder {
        width: 70px;
        height: 70px;
        min-width: 70px;
        flex-shrink: 0;
    }

    .app-item h4 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .app-content p {
        font-size: 0.9rem;
    }

    .qr-code {
        width: 70px;
        height: 70px;
    }

    .contact-section {
        padding: 2.5rem 0;
    }

    .contact-section h3 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        padding: 0 1rem;
    }

    .contact-section > .container > p {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

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

    .privacy-content {
        padding: 2.5rem 0;
    }

    .privacy-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .privacy-section h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .privacy-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .copyright-text {
        margin-top: 2rem;
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }

    footer .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0.875rem 15px;
    }

    .logo {
        font-size: 1.1rem;
        max-width: 55%;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .tagline {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .features {
        padding: 2rem 0;
    }

    .feature-grid {
        gap: 1.25rem;
    }

    .feature {
        padding: 1.25rem;
    }

    .feature h3 {
        font-size: 1.1rem;
    }

    .feature p {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h2 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .apps-section {
        padding: 2rem 0;
    }

    .apps-section h3 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .apps-list {
        gap: 1rem;
    }

    .app-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .app-image-placeholder {
        width: 80px;
        height: 80px;
        min-width: 80px;
        margin: 0 auto;
    }

    .app-item h4 {
        font-size: 1.1rem;
    }

    .app-content {
        width: 100%;
    }

    .qr-code {
        width: 80px;
        height: 80px;
    }

    .contact-section {
        padding: 2rem 0;
    }

    .contact-section h3 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .contact-section > .container > p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .contact-form {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

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

    .privacy-content {
        padding: 2rem 0;
    }

    .privacy-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .privacy-section h3 {
        font-size: 1.2rem;
    }

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

    .copyright-text {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }

    footer {
        padding: 1.25rem 0;
        font-size: 0.8rem;
    }

    footer .container {
        padding: 0 15px;
    }
}

/* Portrait orientation on mobile - smaller logo */
@media (max-width: 768px) and (orientation: portrait) {
    .logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .logo {
        font-size: 1rem;
    }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .help-link,
    .submit-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

