/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #2A3D66; /* Lighter dark blue */
    color: #FFFFFF;
    min-height: 100vh; /* Changed from height to min-height */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed to flex-start for scrolling */
    position: relative;
    overflow: hidden; /* Prevent icon overflow issues */
}

/* Container */
.landing-container {
    width: 100%;
    min-height: 100vh; /* Allows it to grow beyond viewport */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #2A3D66 0%, #8A7CB9 100%); /* Lighter blue to light purple */
    padding: 40px;
    z-index: 1;
}

/* Wave Background Animation */
.wave-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(138, 124, 185, 0.3)" fill-opacity="1" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,186.7C672,181,768,203,864,208C960,213,1056,203,1152,186.7C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    animation: waveAnimation 15s infinite linear;
}

.wave1 {
    opacity: 0.4;
    animation-duration: 20s;
}

.wave2 {
    opacity: 0.6;
    animation-duration: 25s;
    animation-delay: -5s;
}

.wave3 {
    opacity: 0.2;
    animation-duration: 30s;
    animation-delay: -10s;
}

.wave4 {
    opacity: 0.3;
    animation-duration: 35s;
    animation-delay: -15s;
}

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

/* Logo */
.logo {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 20px;
}

/* Content Wrapper for index.html */
.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    flex-grow: 1;
    flex-direction: column; /* Stack vertically on desktop */
    align-items: center;
}

/* Main content for index.html */
main {
    width: 100%; /* Full width on desktop now */
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

h2 {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
}

p {
    font-size: 20px;
    color: #D3D3D3;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Allows buttons to stack on small screens */
    margin-bottom: 40px; /* Space before features panel on desktop */
}

.btn {
    text-decoration: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    background: #8A7CB9; /* Light purple for buttons */
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.btn:hover {
    background: #A99CCC; /* Lighter purple on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 0 20px #2A3D66;
    transform: translateY(-5px);
}

.signup-btn {
    background: transparent;
    color: #FFFFFF;
    border: 3px solid #8A7CB9; /* Light purple border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.signup-btn:hover {
    background: #8A7CB9;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 0 20px #2A3D66;
    transform: translateY(-5px);
}

/* Features Panel for index.html */
.features-panel {
    width: 100%; /* Full width on desktop now */
    background: rgba(42, 61, 102, 0.3); /* 30% transparency, lighter blue */
    border-radius: 20px;
    padding: 20px;
    max-height: none; /* Removed height limit for scrolling */
    overflow-y: auto; /* Scrollable */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Natural alignment */
    align-items: center; /* Center horizontally */
}

.features-panel h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFFFFF; /* No shadow */
    text-align: center; /* Center the title */
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-align: left; /* Left-align feature text */
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-chat {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238A7CB9"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
}

.icon-video {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238A7CB9"><path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
}

.icon-post {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238A7CB9"><path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/></svg>');
}

.icon-ai {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238A7CB9"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

.icon-media {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238A7CB9"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-9-2h2v-8h-2v8zm-1 0H7v-8h2v8zm4 0h2v-4h-2v4zm4-8h-2V7h2v2z"/></svg>');
}

.feature-item p {
    font-size: 16px;
    color: #D3D3D3;
}

/* Footer */
footer {
    padding: 20px;
    font-size: 16px;
    color: #D3D3D3;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

/* Mobile responsiveness */
@media (min-width: 769px) { /* Desktop and tablet */
    .content-wrapper {
        flex-direction: column; /* Stack vertically on desktop */
        justify-content: center; /* Center the layout */
    }

    main {
        width: 100%; /* Full width, but centered */
        max-width: 800px;
    }

    .features-panel {
        width: 100%; /* Full width, but centered */
        max-width: 800px;
        margin-top: 40px; /* Ensure below buttons */
    }

    footer {
        position: relative; /* Reset to default positioning */
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 48px;
        padding: 15px;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 18px;
    }

    .button-group {
        gap: 20px;
    }

    .landing-container {
        padding: 20px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .features-panel {
        width: 100%;
        height: auto;
        max-height: none; /* Removed height limit for scrolling */
        order: 2; /* Move features panel below main content on mobile */
    }

    main {
        width: 100%;
        order: 1; /* Keep main content on top on mobile */
    }

    footer {
        position: relative; /* Ensure footer stays at bottom */
        bottom: auto; /* Remove any fixed positioning */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .auth-container {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
    }

    .toggle-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px;
    }

    .signin-btn,
    .signup-btn {
        font-size: 16px;
        padding: 12px;
    }

    .gender-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .floating-icon {
        font-size: 18px; /* Smaller on mobile */
    }

    footer {
        position: relative; /* Ensure footer stays at bottom */
        bottom: auto; /* Remove any fixed positioning */
        width: 100%;
    }
}

/* Auth Container */
.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    background: rgba(42, 61, 102, 0.8); /* Lighter blue transparency */
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    margin: 20px auto;
}

/* Toggle Buttons */
.toggle-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    background: transparent;
    color: #D3D3D3;
    border: 2px solid #8A7CB9; /* Light purple border */
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none; /* Removed backshine */
}

.toggle-btn.active {
    background: #8A7CB9; /* Light purple */
    color: #FFFFFF;
    box-shadow: none; /* Removed backshine */
}

.toggle-btn:hover {
    background: #A99CCC; /* Lighter purple on hover */
    color: #FFFFFF;
    box-shadow: none; /* Removed backshine */
}

/* Forms */
.auth-form {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #8A7CB9; /* Light purple border */
    border-radius: 10px;
    color: #FFFFFF;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: none; /* Removed backshine */
}

.form-group input:focus {
    border-color: #A99CCC; /* Lighter purple on focus */
    box-shadow: none; /* Removed backshine */
}

.form-group input::placeholder {
    color: #D3D3D3;
}

/* Sign In Button */
.signin-btn {
    width: 100%;
    background: linear-gradient(135deg, #8A7CB9, #A99CCC); /* Light purple gradient */
    color: #FFFFFF;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: all 0.4s ease;
}

.signin-btn:hover {
    background: linear-gradient(135deg, #A99CCC, #B8A6D3); /* Even lighter purple */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 0 20px #2A3D66;
    transform: translateY(-5px);
}

/* Gender Toggle */
.gender-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gender-option {
    position: relative;
    display: inline-block;
}

.gender-option input {
    display: none; /* Hide radio inputs */
}

.gender-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #8A7CB9; /* Light purple border */
    border-radius: 50%; /* Circular */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none; /* Removed backshine */
}

.gender-icon.male {
    color: #1E90FF; /* Blue for male */
}

.gender-icon.female {
    color: #FF69B4; /* Pink for female */
}

.gender-icon.other {
    color: #FFD700; /* Gold for other */
}

.gender-option input:checked + .gender-icon {
    background: #8A7CB9; /* Light purple */
    border-color: #A99CCC; /* Lighter purple */
    box-shadow: none; /* Removed backshine */
    color: #FFFFFF;
}

.gender-icon:hover {
    box-shadow: none; /* Removed backshine */
}

/* Password Strength Meter */
.strength-meter {
    height: 5px;
    width: 0;
    background: #FF4B4B;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: width 0.3s ease;
    text-align: center;
    font-size: 12px;
    color: #FFFFFF;
    line-height: 20px;
}

/* Extra Wave */
.wave4 {
    opacity: 0.3;
    animation-duration: 35s;
    animation-delay: -15s;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -0.5; /* Above waves, below content */
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: float 10s infinite linear;
}

.floating-icon.heart {
    content: '♥';
    color: #FF69B4; /* Light pink */
}

.floating-icon.comment {
    content: '💬';
    color: #8A7CB9; /* Light purple */
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(50vw, 50vh) scale(1.2); opacity: 0.3; }
    100% { transform: translate(100vw, 100vh) scale(1); opacity: 0; }
}

/* Error Message */
.error-message {
    color: #FF4B4B; /* Red */
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}