:root {
    --primary: #9d50bb;
    --secondary: #6e48aa;
    --accent: #00f2fe;
    --bg-dark: #0a0a0c;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f5f5f7;
    --text-dim: #a1a1a6;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-inter);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 80, 187, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.1s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
}

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

.nav-logo {
    font-family: var(--font-outfit);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: 100%;
    right: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 280px;
    margin-top: 15px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 1001;
    transform-origin: top right;
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.user-info span:first-child {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    word-break: break-all;
}

.status-pill {
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 100px;
    width: fit-content;
}

.status-pill.verified { background: rgba(0, 242, 254, 0.1); color: var(--accent); }
.status-pill.unverified { background: rgba(255, 75, 43, 0.1); color: #ff4b2b; }

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    background: transparent;
    border: none;
    color: var(--text-dim);
    text-align: left;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.logout {
    color: #ff4b2b;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

h1 {
    font-family: var(--font-outfit);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-dim);
    font-weight: 300;
    margin-bottom: 40px;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.arrow {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* App Cards */
.app-card {
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.card-glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.app-card:hover .card-glass {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover img {
    transform: scale(1.1);
}

h3 {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 3em;
}

.card-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.card-tags span {
    background: rgba(157, 80, 187, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(157, 80, 187, 0.2);
}

.launch-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.launch-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
    box-shadow: 0 10px 20px -5px rgba(157, 80, 187, 0.5);
}

.launch-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.tech-stack {
    margin-top: 10px;
    font-weight: 300;
    opacity: 0.5;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

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

.hero-content .fade-in:nth-child(2) { animation-delay: 0.3s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.6s; }

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-dark);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 450px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 30px;
    top: 20px;
    color: var(--text-dim);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.auth-form h2 {
    font-family: var(--font-outfit);
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-form p {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-inter);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.toggle-auth {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.toggle-auth a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.hidden {
    display: none;
}

.status-msg {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.status-msg.error {
    color: #ff4b2b;
}

.status-msg.success {
    color: #00f2fe;
}

/* Refined Auth Styles */
.social-auth {
    margin-bottom: 25px;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.google-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 25px;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 1;
}

.divider span {
    background: var(--bg-dark);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--primary);
}

.auth-submit {
    margin-top: 10px;
}

/* Featured Card Enhancements */
.app-card.featured {
    grid-column: span 1;
    position: relative;
}

.app-card.featured .card-glass {
    border-color: rgba(79, 172, 254, 0.3);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #0a0a0c;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.featured-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #0a0a0c !important;
    font-weight: 800 !important;
}
