:root {
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --accent-color: #8B5CF6;
    --background-color: #F3F4F6;
    --text-color: #1F2937;
    --light-text: #6B7280;
    --border-color: #E5E7EB;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    position: relative;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.logo-icon::before {
    content: 'H';
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    transform: rotate(-45deg);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-text::after {
    content: '∞';
    position: absolute;
    top: -5px;
    right: -15px;
    font-size: 0.7em;
    opacity: 0.8;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #2C3E50;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.user-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.nav-auth {
    margin-left: 1rem;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s ease-in-out;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
    }

    .user-stats {
        flex-direction: column;
        margin: 0;
    }

    .nav-auth {
        margin: 0;
        width: 100%;
    }

    .nav-auth button {
        width: 100%;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-right: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        transition: 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-links a {
        font-size: 1.2em;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Adjust other mobile styles */
    .hero-content {
        padding: 20px;
    }

    .features-grid,
    .steps-container,
    .card-grid,
    .community-grid,
    .rewards-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .card,
    .community-card,
    .reward-card {
        margin: 10px 0;
    }

    .rewards-categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .category-btn {
        width: calc(50% - 10px);
        margin: 5px;
    }

    /* Prevent body scroll when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-cta button {
        width: 100%;
        margin: 10px 0;
    }

    .stat-item {
        padding: 10px;
    }

    .feature-card,
    .step {
        padding: 15px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s;
}

.hero-cta {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s;
}

.hero-cta button {
    margin: 0 10px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 5%;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2C3E50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card i {
    font-size: 2.5em;
    color: #3498DB;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #2C3E50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #7F8C8D;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 5%;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2C3E50;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3498DB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.step h3 {
    color: #2C3E50;
    margin-bottom: 15px;
}

.step p {
    color: #7F8C8D;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2563EB;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #059669;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections */
.section {
    padding: 4rem 5%;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.card-image {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: var(--light-text);
}

/* Communities */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.community-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.community-card h3 {
    margin-bottom: 0.5rem;
}

.community-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Rewards */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reward-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reward-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.reward-card h3 {
    margin-bottom: 0.5rem;
}

.reward-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* User Stats */
.user-stats {
    display: flex;
    gap: 1rem;
    margin-right: 1rem;
    font-weight: 500;
}

#points-display {
    color: var(--primary-color);
}

#level-display {
    color: var(--secondary-color);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 5%;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.level-progress {
    margin-bottom: 2rem;
}

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.points-needed {
    font-size: 0.875rem;
    color: var(--light-text);
}

.points-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.point-stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: 0.5rem;
}

.point-stat span:first-child {
    font-size: 0.875rem;
    color: var(--light-text);
    display: block;
    margin-bottom: 0.25rem;
}

.point-stat span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.points-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.point-item:hover {
    transform: translateX(5px);
}

.point-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}

.achievement-item {
    text-align: center;
    cursor: pointer;
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.achievement-item.unlocked .achievement-icon {
    opacity: 1;
}

/* Enhanced Rewards Section */
.rewards-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reward-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.reward-icon {
    font-size: 2.5rem;
    background: var(--background-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.reward-content {
    flex: 1;
}

.reward-description {
    color: var(--light-text);
    margin: 0.5rem 0 1rem;
}

.reward-progress {
    margin-bottom: 1rem;
}

.reward-progress span {
    font-size: 0.875rem;
    color: var(--light-text);
}

/* Quests */
.quests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quest-item {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-info {
    flex: 1;
}

.quest-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.quest-progress {
    font-size: 0.875rem;
    color: var(--light-text);
}

.quest-reward {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* HOSE AI Section */
.hose-ai-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.section-subtitle {
    color: #7F8C8D;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.ai-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-chat-preview {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 80%;
}

.chat-bubble.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-bubble i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
}

.chat-bubble.user i {
    background: #2C3E50;
}

.chat-bubble p {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    color: #2C3E50;
    line-height: 1.5;
}

.chat-bubble.user p {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
}

.ai-capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.capability-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.capability-card i {
    font-size: 2em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.capability-card h3 {
    color: #2C3E50;
    margin-bottom: 10px;
}

.capability-card p {
    color: #7F8C8D;
}

/* Responsive Design for HOSE AI */
@media (max-width: 992px) {
    .ai-features {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2em;
    }
}

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

    .chat-bubble {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .chat-bubble {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links, .user-stats {
        display: none;
    }
    
    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 5%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.back-btn i {
    font-size: 1.2em;
}
