@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: rgba(13, 13, 14, 0.795);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container span {
    font-size: 12px;
}

.container a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button {
    background-color: rgb(92, 250, 127);
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    border: 1px solid #ccc;
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 20px;
    z-index: 1000;
}

.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 20px;
}

.toggle {
    background-color: rgba(4, 255, 79, 0.555);
    height: 100%;
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/home.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: -1;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00c37a;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 15px;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00c37a;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.auth-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.login-btn {
    border: 2px solid #00c37a;
    color: #00c37a;
}

.login-btn:hover {
    background: #00c37a;
    color: #fff;
}

.signup-btn {
    background: #00c37a;
    color: #fff;
}

.signup-btn:hover {
    background: #00a765;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 40px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Hero Buttons */
.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #00c37a;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 195, 122, 0.4);
    border: none;
    text-transform: none;
    letter-spacing: 0.5px;
}

.hero-buttons .explore-btn:hover {
    background-color: #00a765;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 195, 122, 0.5);
}

.hero-buttons .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #00c37a;
}

.hero-buttons .secondary-btn:hover {
    background-color: #00c37a;
    color: white;
    transform: translateY(-2px);
}

/* Category Section */
.category-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00c37a, #00a765);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 195, 122, 0.25);
}

.category-icon {
    font-size: 4rem;
    color: #00c37a;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.category-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1rem;
}

.category-btn {
    display: inline-block;
    background-color: #00c37a;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 195, 122, 0.3);
}

.category-btn:hover {
    background-color: #00a765;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 195, 122, 0.4);
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #00c37a;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Old search bar styles (keep for other pages) */
.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 10px;
    backdrop-filter: blur(6px);
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    color: white;
    padding: 10px 15px;
    width: 300px;
    font-size: 1rem;
}

.search-bar button {
    background: #00c37a;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #00a765;
}

.search-bar i {
    margin-right: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 8px;
    }

    .auth-buttons a {
        padding: 8px 15px;
        font-size: 13px;
    }

    .hero {
        padding: 100px 20px 30px;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .explore-btn,
    .hero-buttons .secondary-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }

    .features-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .category-card h3 {
        font-size: 1.3rem;
    }

    .features-section h2 {
        font-size: 1.75rem;
    }
}

/* Legacy button styles (keep for other pages) */
.explore-btn {
    background-color: rgb(92, 102, 250);
    color: #fff;
    font-size: 16px;
    padding: 12px 60px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
}

.explore-btn:hover {
    background-color: #00a759;
}

.nav-links .button {
    background-color: rgb(92, 250, 127);
    color: #fff;
    font-size: 16px;
    padding: 12px 60px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
}