/* --- Keyframes for the Flowing Gradient Animation --- */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- General Body & Font Styles --- */
body {
    font-family: "Red Hat Display", sans-serif;
    color: #4a5568; /* Darker, soft gray-blue for readability */
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    background: #faebd8;
    
    /* The "Flowy" Gradient Background */
    background: linear-gradient(-45deg, #f89b29, #faebd8);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

main {
    flex-grow: 1;
    padding: 2rem 1rem;
}

a {
    color: #ef476f; /* Vibrant pastel pink/red for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #d62828; /* Darker shade for hover */
}

/* --- Header & Navigation (UPDATED) --- */
header {
    /* The background and border properties have been removed to create a seamless look. */
    padding: 2.5rem 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #073b4c; /* Deep ocean blue */
    /* Enhanced text shadow for readability on a varied background */
    /* text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); */
}

.subtitle {
    font-size: 1.2rem;
    color: #118ab2; /* Lighter, vibrant blue */
    margin: 0.5rem 0 1.5rem 0;
    /* Added text shadow for readability */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.support-title {
    margin-bottom: 1rem;
}

/* --- App Image Gallery (Homepage) --- */
.app-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* This is key for mobile-friendliness */
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.app-gallery img {
    height: 480px;
    width: auto;
    border-radius: 24px; /* Slightly more rounded */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-gallery img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* --- FAQ Section (Support Page) --- */
.faq-section {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #073b4c;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

details {
    /* Frosted glass effect for FAQ cards */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    padding: 1.25rem;
    transition: background 0.2s ease;
}

details:hover {
    background: rgba(255, 255, 255, 0.7);
}

summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
    color: black; 
}

summary::after { /* Custom dropdown arrow */
    content: '▸';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #118ab2;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

details p {
    margin-top: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

/* --- Contact Section (Support Page) --- */
.contact-support {
    margin-top: 3rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #26547c;
}

/* --- Footer --- */
footer {
    padding: 2rem 1rem;
    /* Frosted glass effect */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #4a5568;
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .app-gallery img {
        height: 400px;
    }

    .faq-section {
        padding: 0 1rem;
    }
}