html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2f0057 0%, #4b0082 50%, #8a2be2 100%);
    background: #4b0082; /* Fallback */
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    /* padding: 40px 20px; */
    flex: 1;
}

h1 {
    font-size: 3.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2em;
    font-weight: 600;
    margin-top: 40px;
}

p {
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #6a0dad, #9b30ff);
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    white-space: nowrap;
    text-align: center;
}

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

.btn:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.about {
    background: rgba(25, 0, 46, 0.6);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.about .btn.back-to-hub {
    float: none;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(25, 0, 46, 0.6);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    background: rgba(47, 0, 87, 0.5);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    box-sizing: border-box;
    color: #fff;
    margin-top: auto;
}

footer a {
    color: #9b30ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
    .about, .feature-card {
        background: rgba(25, 0, 46, 0.8);
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.5em;
    }
    p {
        font-size: 1em;
    }
    .about {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .container {
        padding: 20px 10px;
    }
    .features {
        grid-template-columns: 1fr;
    }
}

/* Narrow screens (e.g., iPhone SE) */
@media (max-width: 400px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.3em;
    }
    p {
        font-size: 0.9em;
    }
    .about {
        padding: 15px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 15px 5px;
    }
    .feature-card {
        padding: 15px;
    }
}