@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #d4a574;
    --primary-hover: #c9956a;
    --secondary-color: #8b7355;
    --accent-color: #daa520;
    --accent-secondary: #b8860b;
    --background: #0f0e0d;
    --surface-light: #1a1815;
    --surface-card: #1f1d18;
    --card-background: #252218;
    --text-primary: #f5f5f0;
    --text-secondary: #e5e1d8;
    --text-muted: #c4c0b8;
    --border-color: #3a3530;
    --border-light: #2a251f;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --shadow-glow: 0 0 20px rgb(212 165 116 / 0.2);
    --gradient-primary: linear-gradient(135deg, #d4a574, #b8860b);
    --gradient-accent: linear-gradient(135deg, #daa520, #cd853f);
    --gradient-card: linear-gradient(135deg, #252218, #2f2a1f);
    --nav-height: 70px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Removed animated background patterns for unified design */





.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    animation: fadeInUp 0.8s ease-out;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile-First Header */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 1200px;
}

.header-pill {
    background: var(--surface-card);
    backdrop-filter: blur(30px);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Responsive header sizing */
@media (min-width: 768px) {
    .floating-header {
        width: auto;
        max-width: 800px;
    }
    
    .header-pill {
        padding: 10px 20px;
    }
}

.header-pill:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    background: var(--card-background);
}

/* Mobile Header Layout (default) */
.mobile-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Desktop Header Layout (hidden on mobile) */
.desktop-header-layout {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Profile Styles */
.user-profile-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 60px;
}

.user-profile-mobile:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%);
    border-color: rgba(212, 165, 116, 0.5);
    transform: translateY(-1px);
}

.profile-avatar-mobile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(212, 165, 116, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-avatar-mobile .user-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.profile-name-mobile {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile Auth Styles */
.auth-container-mobile {
    display: flex;
    align-items: center;
}

.auth-btn-mobile {
    padding: 6px 12px;
    border: 1px solid rgba(212, 165, 116, 0.4);
    background: transparent;
    color: var(--primary-color);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-btn-mobile:hover {
    background: rgba(212, 165, 116, 0.15);
    transform: translateY(-1px);
}

/* Show mobile menu toggle on mobile */
.mobile-menu-toggle-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    /* Hide mobile layout on desktop */
    .mobile-header-layout {
        display: none;
    }
    
    /* Show desktop layout on desktop */
    .desktop-header-layout {
        display: flex;
    }
    
    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle-pill {
        display: none;
    }
}

/* Logo Pill */
.logo-pill {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-pill:hover {
    transform: scale(1.05);
}

/* Navigation Links Pill */
.nav-links-pill {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link-pill {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link-pill:hover {
    background: rgba(212, 165, 116, 0.15);
    color: var(--primary-color);
}

/* Enhanced Mobile Menu Toggle */
.mobile-menu-toggle-pill {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 1px solid rgba(212, 165, 116, 0.2);
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-left: 4px;
    margin-right: 4px;
}

.mobile-menu-toggle-pill:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%);
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

.mobile-menu-toggle-pill:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.2);
}

.mobile-menu-toggle-pill span {
    display: block;
    position: absolute;
    height: 3px;
    width: 20px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #e6a870 100%);
    border-radius: 3px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle-pill span:nth-child(1) {
    top: 12px;
}

.mobile-menu-toggle-pill span:nth-child(2) {
    top: 20px;
}

.mobile-menu-toggle-pill span:nth-child(3) {
    top: 28px;
}

.mobile-menu-toggle-pill.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.3) 0%, rgba(212, 165, 116, 0.15) 100%);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-menu-toggle-pill.active span:nth-child(1) {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
}

.mobile-menu-toggle-pill.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.mobile-menu-toggle-pill.active span:nth-child(3) {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
}

/* User Counter Pill - Hidden but still functional */
.user-counter-pill {
    display: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(79, 172, 254, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    white-space: nowrap;
}

/* Authentication Container Pill */
.auth-container-pill {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-btn-pill {
    padding: 8px 16px;
    border: 1px solid rgba(212, 165, 116, 0.4) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block;
}

.auth-btn-pill:hover {
    background: rgba(212, 165, 116, 0.15) !important;
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

.auth-btn-pill.signup {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
}

.auth-btn-pill.signup:hover {
    background: var(--gradient-accent) !important;
    transform: translateY(-1px);
    color: white !important;
}

/* Additional specificity for header auth buttons */
.header-pill .auth-container-pill .auth-btn-pill {
    border: 1px solid rgba(212, 165, 116, 0.4) !important;
    color: var(--primary-color) !important;
}

.header-pill .auth-container-pill .auth-btn-pill:hover {
    background: rgba(212, 165, 116, 0.15) !important;
    color: var(--primary-color) !important;
}

.header-pill .auth-container-pill .auth-btn-pill.signup {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
}

.header-pill .auth-container-pill .auth-btn-pill.signup:hover {
    background: var(--gradient-accent) !important;
    color: white !important;
}

/* Enhanced User Profile Styles */
.user-profile-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    min-width: 80px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

.user-profile-new:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%);
    border-color: rgba(212, 165, 116, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.2);
}

.profile-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 165, 116, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.user-profile-new:hover .profile-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.user-icon {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.user-profile-new:hover .user-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.profile-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.user-name-display {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-status-indicator {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.8;
}

.profile-dropdown-arrow {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.3s ease;
    position: absolute;
    top: 8px;
    right: 8px;
}

.user-profile-new:hover .profile-dropdown-arrow {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown-toggle:hover {
    background: rgba(212, 165, 116, 0.2);
    color: var(--text-primary);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--surface-card) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Desktop Profile Styles */
.user-profile-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    background: var(--surface-ground);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-profile-desktop:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.profile-avatar-desktop {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-name-desktop {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
    text-align: center;
}

/* Simplified Dropdown Menu */
.user-dropdown-menu-simple {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px;
}

.user-dropdown-menu-simple.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-simple {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.dropdown-item-simple:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
}

.dropdown-item-simple.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-dropdown-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 165, 116, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background: rgba(212, 165, 116, 0.08) !important;
    color: var(--primary-color) !important;
    transform: translateX(6px);
}

.user-dropdown-menu .dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.user-dropdown-menu .dropdown-item:hover .dropdown-item-icon {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 165, 116, 0.3) 50%, transparent 100%);
    margin: 8px 16px;
}

@media (max-width: 768px) {
    .user-profile-pill {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .user-info {
        max-width: 80px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .user-email {
        font-size: 10px;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
}

/* Dropdown Navigation Styles */
.dropdown-nav {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-nav:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

.dropdown-nav:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background: rgba(212, 165, 116, 0.15) !important;
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .mobile-nav-menu {
        display: block; /* Show only on mobile */
    }
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 80px 20px 20px;
    text-align: center;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 0;
    margin: 5px 0;
    width: 100%;
    max-width: 300px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.mobile-services-section {
    width: 100%;
    max-width: 300px;
    margin: 20px 0;
}

.mobile-services-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
}

.mobile-service-link {
    font-size: 16px;
    padding: 10px 0;
    margin: 2px 0;
    padding-left: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.mobile-auth-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-auth-btn.login {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-auth-btn.login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-auth-btn.signup {
    background: var(--primary-color);
    color: #ffffff;
}

.mobile-auth-btn.signup:hover {
    background: #c49a6c;
    transform: translateY(-2px);
}

/* Responsive Styles for Floating Header */
@media (max-width: 768px) {
    .floating-header {
        padding: 10px 15px;
    }
    
    .header-pill {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links-pill {
        display: none;
    }
    
    .user-profile-new {
        min-width: 120px;
        padding: 6px 12px;
        gap: 8px;
    }

    .profile-avatar {
        width: 32px;
        height: 32px;
    }

    .user-name-display {
        font-size: 12px;
    }

    .user-status-indicator {
        font-size: 10px;
    }

    .user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
    
    .mobile-menu-toggle-pill {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        z-index: 1002;
        pointer-events: auto;
    }
    
    .mobile-menu-toggle-pill:hover {
        opacity: 0.8;
    }
    
    .header-center {
        display: flex;
        justify-content: center;
        flex: 1;
    }
    
    .nav-links-pill {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 250, 252, 0.95) 50%, 
            rgba(241, 245, 249, 0.95) 100%);
        backdrop-filter: blur(40px) saturate(180%);
        border-right: 1px solid rgba(212, 165, 116, 0.2);
        box-shadow: 
            8px 0 32px rgba(0, 0, 0, 0.12),
            4px 0 16px rgba(212, 165, 116, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.05);
        flex-direction: column;
        padding: 0;
        gap: 0;
        z-index: 998;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-links-pill.active {
        left: 0;
    }
    
    /* Enhanced overlay with blur effect */
    .nav-links-pill.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 300px;
        width: calc(100vw - 300px);
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.4) 0%, 
            rgba(0, 0, 0, 0.6) 100%);
        backdrop-filter: blur(8px);
        z-index: -1;
        animation: overlayFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    @keyframes overlayFadeIn {
        from { 
            opacity: 0;
            backdrop-filter: blur(0px);
        }
        to { 
            opacity: 1;
            backdrop-filter: blur(8px);
        }
    }
    
    /* Mobile menu header */
    .nav-links-pill::after {
        content: 'Navigation';
        display: block;
        padding: 32px 24px 16px;
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid rgba(212, 165, 116, 0.1);
        margin-bottom: 8px;
        background: linear-gradient(135deg, 
            rgba(212, 165, 116, 0.05) 0%, 
            rgba(212, 165, 116, 0.02) 100%);
    }
    
    .nav-links-pill a {
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
        padding: 18px 24px;
        margin: 4px 16px;
        color: var(--text-primary);
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        background: transparent;
        border: 1px solid transparent;
    }
    
    .nav-links-pill a:hover {
        background: linear-gradient(135deg, 
            rgba(212, 165, 116, 0.15) 0%, 
            rgba(212, 165, 116, 0.08) 100%);
        color: var(--primary-color);
        transform: translateX(8px) scale(1.02);
        border-color: rgba(212, 165, 116, 0.2);
        box-shadow: 
            0 4px 12px rgba(212, 165, 116, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links-pill a::before {
        content: '';
        position: absolute;
        left: -2px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, var(--primary-color) 0%, #e6a870 100%);
        border-radius: 2px;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links-pill a:hover::before {
        height: 60%;
    }
    
    .nav-links-pill a::after {
        content: '→';
        position: absolute;
        right: 24px;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .nav-links-pill a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Enhanced mobile dropdown styles for left sidebar */
    .nav-links-pill .dropdown {
        position: relative;
        margin: 4px 16px;
    }
    
    .nav-links-pill .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 500;
        padding: 18px 24px;
        color: var(--text-primary);
        text-align: left;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        position: relative;
    }
    
    .nav-links-pill .dropdown-toggle:hover {
        background: linear-gradient(135deg, 
            rgba(212, 165, 116, 0.15) 0%, 
            rgba(212, 165, 116, 0.08) 100%);
        color: var(--primary-color);
        transform: translateX(8px) scale(1.02);
        border-color: rgba(212, 165, 116, 0.2);
        box-shadow: 
            0 4px 12px rgba(212, 165, 116, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links-pill .dropdown-toggle::before {
        content: '';
        position: absolute;
        left: -18px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, var(--primary-color) 0%, #e6a870 100%);
        border-radius: 2px;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links-pill .dropdown-toggle:hover::before {
        height: 60%;
    }
    
    .nav-links-pill .dropdown-toggle::after {
        content: '▼';
        font-size: 12px;
        color: var(--primary-color);
        font-weight: 600;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links-pill .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .nav-links-pill .dropdown-menu {
        position: static;
        background: linear-gradient(135deg, 
            rgba(212, 165, 116, 0.08) 0%, 
            rgba(212, 165, 116, 0.03) 100%);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(212, 165, 116, 0.15);
        border-radius: 12px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding: 8px 0;
        margin: 8px 0 16px 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .nav-links-pill .dropdown.active .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links-pill .dropdown-menu a {
        display: flex;
        align-items: center;
        padding: 14px 32px;
        margin: 2px 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        border: none;
        border-bottom: none;
    }
    
    .nav-links-pill .dropdown-menu a::before {
        content: '•';
        margin-right: 12px;
        color: var(--primary-color);
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links-pill .dropdown-menu a:hover {
        background: rgba(212, 165, 116, 0.12);
        color: var(--primary-color);
        transform: translateX(6px);
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
        padding-left: 32px;
    }
    
    .nav-links-pill .dropdown-menu a:hover::before {
        content: '→';
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        width: 95vw;
        top: 55px;
    }

    .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgb(59 130 246 / 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Specific styling for contact icon */
.social-link[href^="mailto:"] {
    background: rgba(255, 255, 255, 0.05);
}

.social-link[href^="mailto:"]:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Add tooltip effect */
.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.contact-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Container */
.app-container {
    padding-top: 120px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    min-height: 100vh;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-logo {
    margin-bottom: 56px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 30%, var(--accent-color) 70%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    white-space: normal;
    letter-spacing: -2px;
    filter: drop-shadow(0 0 30px rgba(212, 165, 116, 0.4));
    animation: titleGlow 4s ease-in-out infinite alternate, gradientShift 8s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 56px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 400;
    opacity: 0.95;
}

.search-box {
    position: relative;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    width: 100%;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    letter-spacing: 0.4px;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(255, 142, 83, 0.4);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 142, 83, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.ask-ai-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    background-size: 200% 100%;
    color: white;
    border: 2px solid rgba(212, 165, 116, 0.3);
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    letter-spacing: 0.6px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .ask-ai-button {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        margin-top: 0;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .search-box {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .search-box input {
        padding-right: 110px;
    }
}

.ask-ai-button:hover {
    background: var(--gradient-accent);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.4), 0 0 30px rgba(212, 165, 116, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-52%) scale(1.05);
    border-color: rgba(212, 165, 116, 0.6);
}

.quick-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Screen Transitions */
#searchScreen {
    display: block;
    transition: opacity 0.3s ease;
}

#searchScreen.hidden {
    display: none;
}

/* Search Screen Styles */
#searchScreen {
    display: block; /* Initially visible */
    /* Add any specific styles for the search screen container if needed */
}

/* Chat Screen Styles */
#chatScreen {
    display: none; /* Initially hidden */
    position: fixed; /* Take up full screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1815; /* Unified background color */
    z-index: 1100; /* Ensure it's above other content */
    overflow: hidden; /* Prevent body scroll when chat is open */
}

/* Desktop Chat Styles - Make chat full screen */
@media (min-width: 769px) {
    #chatScreen {
        display: block;
        background-color: #1a1815;
    }
    
    #chatScreen .chat-container-new {
        width: 100%;
        height: 100vh;
        max-width: none;
        max-height: none;
        background: #1a1815;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow: hidden;
        position: relative;
    }
    
    #chatScreen .chat-messages-new {
        padding: 20px 40px;
        padding-top: 80px;
        padding-bottom: 100px;
        height: calc(100vh - 180px);
        overflow-y: auto;
    }
    
    #chatScreen .chat-header-new {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(12px);
        z-index: 1000;
        height: 60px;
    }
    
    /* Old chat input styles - now using chat-input-wrapper */
    
    /* Old input styles - now using chat-input-wrapper */
    
    /* Make buttons smaller */
    #chatScreen .search-button-styled {
        width: 36px;
        height: 36px;
    }
    
    #chatScreen .search-button-styled svg {
        width: 16px;
        height: 16px;
    }
    
    /* Remove close button for full screen */
    #chatScreen .chat-header-new::after {
        display: none;
    }
}

/* Ensure chat container within chat screen takes full height */
#chatScreen .chat-container-new {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0; /* Remove padding as input is part of this container */
    overflow: hidden; /* Prevent double scrollbars */
}

/* Make chat messages scrollable within the container */
#chatScreen .chat-messages-new {
    flex-grow: 1; /* Take available space */
    overflow-y: auto; /* Enable scrolling for messages */
    padding: 20px; /* Add padding */
    padding-top: 70px; /* Space for fixed header */
    padding-bottom: 90px; /* Space for fixed input */
}

/* Adjust chat header to be fixed within the chat screen */
#chatScreen .chat-header-new {
    position: fixed; /* Fix header to top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1101; /* Above messages */
    width: 100%;
}

/* Add new chat styles below */

/* New Chat Interface Styles */
.chat-container-new {
    display: flex;
    flex-direction: column;
    /* height: 100vh; Removed */
    width: 100%;
    min-height: 100vh; /* Ensure it takes at least full height */
    background-color: var(--background);
    /* overflow: hidden; Removed */
    padding-bottom: 80px; /* Space for fixed input bar */
}

.chat-header-new {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(18, 18, 18, 0.85); /* Slightly darker header */
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0; /* Prevent header from shrinking */
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-button-new {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
}

.back-button-new:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.chat-title-new {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-button-new {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.clear-button-new:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color); /* Use accent for delete */
}

.chat-messages-new {
    /* flex-grow: 1; Removed */
    /* overflow-y: auto; Removed - Body scrolls now */
    padding: 25px 20px; /* Keep horizontal padding */
    padding-top: calc(1.2rem + 24px + 25px); /* Header height (approx) + original padding */
    display: flex;
    flex-direction: column;
    gap: 18px; /* Increased gap */
    /* Scrollbar styles removed as overflow is removed */
}

.chat-messages-new::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-new::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-new::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.message-new {
    max-width: 75%;
    padding: 14px 20px; /* Slightly larger padding */
    border-radius: 20px; /* More rounded */
    line-height: 1.6;
    font-size: 0.95rem; /* Consistent font size */
    word-wrap: break-word;
    position: relative; /* For potential future elements like timestamps */
}

.user-message-new {
    align-self: flex-end;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 5px 20px; /* Adjusted radius */
    margin-left: 25%;
}

.ai-message-new {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1); /* Slightly brighter AI bubble */
    color: var(--text-primary);
    border-radius: 20px 20px 20px 5px; /* Adjusted radius */
    margin-right: 25%;
    border-left: none; /* Remove side border */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
}

.ai-message-new.error-new {
    border-top-color: var(--error-text);
    background: var(--error-bg);
    color: var(--error-text);
}

.ai-message-new.thinking-new {
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Add subtle hover effect to messages */
.message-new:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-out;
}

/* Features Preview Section - New Modern Design */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 142, 83, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.1) 0%, rgba(255, 142, 83, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 142, 83, 0.4);
    box-shadow: 0 20px 60px rgba(255, 142, 83, 0.15), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B35 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(255, 142, 83, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(255, 142, 83, 0.4);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-showcase {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .features-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        padding: 0 16px;
        max-width: 100%;
    }
    
    .feature-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .feature-card h4 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .features-showcase {
        padding: 0 12px;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
}








/* End Features Preview Section */

/* Keyframes for animation */

/* --- Enhanced Mobile Chat Input Area --- */

.chat-input-area-styled {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11;
    padding: 16px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(18, 18, 18, 0.95) 20%, 
        rgba(18, 18, 18, 0.98) 100%
    );
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 142, 83, 0.2);
    min-height: 70px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    width: 100%;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-input-container:focus-within {
    border-color: rgba(255, 142, 83, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(255, 142, 83, 0.15);
    transform: translateY(-2px);
}

.chat-input-area-styled #chatInputNew {
    flex-grow: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    font-size: 16px;
    resize: none;
    overflow-y: auto;
    max-height: 120px;
    min-height: 44px;
    line-height: 1.5;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-input-area-styled #chatInputNew:focus {
    outline: none;
    border-color: rgba(255, 142, 83, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 142, 83, 0.2);
}

.chat-input-area-styled #chatInputNew::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.mic-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.mic-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.05);
}

.mic-button:active {
    transform: scale(0.95);
}

.search-button-styled {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B35 100%);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(255, 142, 83, 0.3);
}

.search-button-styled svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.search-button-styled:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 142, 83, 0.4);
}

.search-button-styled:active {
    transform: scale(0.95);
}

/* Enhanced Chat Messages for Mobile */
.chat-messages-new {
    padding: 25px 16px;
    padding-top: calc(1.2rem + 24px + 25px);
    padding-bottom: 120px; /* More space for enhanced input */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-new {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: 24px;
    line-height: 1.6;
    font-size: 15px;
    word-wrap: break-word;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    animation: messageSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.user-message-new {
    align-self: flex-end;
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B35 100%);
    color: white;
    border-radius: 24px 24px 8px 24px;
    margin-left: 15%;
    box-shadow: 0 4px 16px rgba(255, 142, 83, 0.25);
}

.ai-message-new {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-radius: 24px 24px 24px 8px;
    margin-right: 15%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ai-message-new.thinking-new {
    background: rgba(255, 142, 83, 0.1);
    border: 1px solid rgba(255, 142, 83, 0.2);
    color: rgba(255, 142, 83, 0.9);
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    .chat-input-area-styled {
        padding: 16px 12px 20px 12px;
        min-height: 70px;
    }
    
    .chat-input-area-styled #chatInputNew {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 40px;
    }
    
    .search-button-styled {
        width: 40px;
        height: 40px;
    }
    
    .search-button-styled svg {
        width: 18px;
        height: 18px;
    }
    
    .message-new {
        max-width: 90%;
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .user-message-new {
        margin-left: 10%;
    }
    
    .ai-message-new {
        margin-right: 10%;
    }
}

@media (max-width: 480px) {
    .chat-input-area-styled {
        padding: 12px 8px 16px 8px;
        min-height: 80px;
    }
    
    .chat-messages-new {
        padding: 20px 12px;
        padding-bottom: 100px;
        gap: 16px;
    }
    
    .message-new {
        max-width: 95%;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .user-message-new {
        margin-left: 5%;
        border-radius: 20px 20px 6px 20px;
    }
    
    .ai-message-new {
        margin-right: 5%;
        border-radius: 20px 20px 20px 6px;
    }
}

/* Message Animation */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typing Indicator Enhancement */
.thinking-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 8px;
}

.thinking-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    animation: typingDot 1.4s infinite ease-in-out;
}

.thinking-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-indicator .dot:nth-child(2) { animation-delay: -0.16s; }
.thinking-indicator .dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingDot {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- End Enhanced Mobile Chat Input Area --- */

/* Enhanced Floating Features Section */
#searchScreen .floating-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    position: relative;
}

#searchScreen .floating-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
    border-radius: 20px;
    pointer-events: none;
}

#searchScreen .floating-text {
    display: inline-block;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: enhancedFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.8s);
    opacity: 0.85;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(212, 165, 116, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.1);
}

#searchScreen .floating-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#searchScreen .floating-text:hover {
    color: var(--accent-color);
    transform: scale(1.15) translateY(-5px);
    opacity: 1;
    background: rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.25), 0 0 20px rgba(212, 165, 116, 0.15);
    text-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
}

#searchScreen .floating-text:hover::before {
    opacity: 1;
    animation: shimmerEffect 1.5s ease-in-out infinite;
}

/* Featured floating text with enhanced styling */
#searchScreen .floating-text.featured {
    font-size: 18px;
    font-weight: 700;
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.25);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.15), 0 0 15px rgba(212, 165, 116, 0.1);
    animation: enhancedFloat 4s ease-in-out infinite, subtlePulse 6s ease-in-out infinite;
}

#searchScreen .floating-text.featured:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3), 0 0 25px rgba(212, 165, 116, 0.2);
    transform: scale(1.2) translateY(-8px);
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.15), 0 0 15px rgba(212, 165, 116, 0.1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.25), 0 0 20px rgba(212, 165, 116, 0.15);
    }
}

@keyframes enhancedFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-0.5deg);
    }
}

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

/* Enhanced Responsive Design for Floating Features */
@media (max-width: 768px) {
    #searchScreen .floating-features {
        gap: 20px;
        margin-top: 40px;
        padding: 25px 15px;
        max-width: 95%;
    }
    
    #searchScreen .floating-text {
        font-size: 15px;
        padding: 6px 12px;
    }
    
    #searchScreen .floating-text.featured {
        font-size: 16px;
        padding: 7px 14px;
    }
    
    @keyframes enhancedFloat {
        0%, 100% {
            transform: translateY(0px) rotate(0deg);
        }
        25% {
            transform: translateY(-6px) rotate(0.3deg);
        }
        50% {
            transform: translateY(-12px) rotate(0deg);
        }
        75% {
            transform: translateY(-6px) rotate(-0.3deg);
        }
    }
}

@media (max-width: 480px) {
    #searchScreen .floating-features {
        gap: 15px;
        margin-top: 35px;
        padding: 20px 10px;
        max-width: 98%;
    }
    
    #searchScreen .floating-text {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    #searchScreen .floating-text.featured {
        font-size: 15px;
        padding: 6px 12px;
    }
    
    #searchScreen .floating-text:hover {
        transform: scale(1.1) translateY(-3px);
    }
    
    #searchScreen .floating-text.featured:hover {
        transform: scale(1.15) translateY(-5px);
    }
    
    @keyframes enhancedFloat {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-8px);
        }
    }
}
/* End Features Preview Section */



/* Removed stray animation property and closing brace */

.ai-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff4d4d;
    border-left: 3px solid #ff4d4d;
}

.network-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 14px;
    text-align: center;
}

.retry-button {
    background: var(--primary-gradient);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 142, 83, 0.3);
}

.retry-container {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.cached-notice {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: #e65100;
    padding: 10px 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.network-status-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: auto;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    pointer-events: none;
}

.network-status-notification.online {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.network-status-notification.offline {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.error-help-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-style: italic;
}

.message.error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.message.cached {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.cached-notice {
    background-color: #fff3e0;
    color: #e65100;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.ai-message.model-not-found {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffd700;
}

.response-section {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    background: rgba(255, 142, 83, 0.1);
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 142, 83, 0.2);
}

.section-title h3 {
    margin: 0;
    color: #FF8E53;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-table-container {
    margin: 20px 0;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-section-header {
    background: #000000;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-section-header h3 {
    margin: 0;
    color: #FF8E53;
    font-size: 1.1em;
    font-weight: 600;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.table-header {
    text-align: left;
    padding: 12px 20px;
    font-weight: 600;
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 12px 20px;
    line-height: 1.5;
    vertical-align: middle;
}

.table-cell.key {
    width: 40%;
    color: #FF8E53;
    font-weight: 500;
    font-size: 0.95em;
    border-right: 1px solid rgba(255, 142, 83, 0.2);
}

.table-cell.value {
    width: 60%;
    color: #ffffff;
    font-size: 0.95em;
}

/* Error table styling */
.error-table-container {
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-section-header.error {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-section-header.error h3 {
    color: #FFFFFF;
}

.error-content {
    padding: 16px 20px;
    color: #FF5722;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Value styling */
.metric-value {
    color: #2196F3;
    font-weight: 500;
}

.highlight-value {
    color: #FFC107;
    font-weight: 500;
}

.warning-value {
    color: #FF5722;
    font-weight: 500;
}

.range-value {
    color: #9C27B0;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-section-header {
        padding: 14px 16px;
    }
    
    .table-header,
    .table-cell {
        padding: 10px 16px;
    }
    
    .table-cell.key {
        width: 45%;
    }
    
    .table-cell.value {
        width: 55%;
    }
}

@media (max-width: 480px) {
    .info-table {
        display: block;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .table-cell {
        display: block;
        width: 100%;
        padding: 4px 12px;
    }
    
    .table-cell.key {
        width: 100%;
        color: #FF8E53;
        border-right: none;
        padding-bottom: 4px;
    }
    
    .table-cell.value {
        width: 100%;
        padding-left: 32px;
        padding-top: 4px;
    }
}

.chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
    height: 80px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    outline: none;
    border-color: rgba(255, 142, 83, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.chat-input button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 142, 83, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-header {
        height: 56px;
        padding: 12px 16px;
    }

    .chat-messages {
        padding-top: 56px;
        padding-bottom: 120px;
        min-height: calc(100vh - 128px);
    }

    .chat-input {
        height: 72px;
        padding: 16px;
    }

    .message {
        max-width: 90%;
        padding: 14px 16px;
    }
    
    .network-status-notification {
        top: 70px;
        padding: 10px 16px;
        font-size: 13px;
        max-width: 85%;
    }

    .comparison-table {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 142, 83, 0.2);
    }
    .comparison-table .table-row {
        display: contents;
    }
    .comparison-table .table-cell.key {
        grid-column: 1 / 3;
        background: rgba(0,0,0,0.7);
        color: #FF8E53;
        font-weight: 600;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 142, 83, 0.2);
        padding: 10px 0;
    }
    .comparison-table .table-cell.value {
        background: transparent;
        color: #fff;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 10px 0;
    }
    .comparison-table .table-cell.value:first-child {
        border-right: 1px solid rgba(255, 142, 83, 0.1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
    .app-container {
        padding-top: 100px;
        margin: 40px auto 0;
        max-width: 750px;
    }
    
    .hero-title {
        font-size: 56px;
        margin-bottom: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 44px;
    }
    
    .search-box {
        max-width: 600px;
    }
    
    .search-box input {
        padding: 22px 24px;
        font-size: 17px;
    }
    
    .ask-ai-button {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .nav-left {
        gap: 24px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .section {
        padding: 40px 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 16px;
    }
    
    .nav-left {
        gap: 16px;
    }
    
    .nav-links {
        display: none; /* Hide navigation links on mobile */
    }
    
    .app-container {
        padding-top: 80px;
        margin: 20px auto 0;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-title {
        font-size: 42px;
        margin-bottom: 20px;
        line-height: 1.1;
        letter-spacing: -1px;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
        line-height: 1.6;
        max-width: 100%;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .search-box {
        flex-direction: column;
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .search-box input {
        padding: 20px 18px;
        font-size: 16px;
        border-radius: 16px;
    }
    
    .ask-ai-button {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 16px;
        padding: 16px;
        border-radius: 14px;
        font-size: 16px;
    }
    
    .quick-links {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .quick-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    #searchButton {
        width: 100%;
    }

    #chatScreen {
        padding: 0;
    }

    .chat-container {
        margin: 0;
        height: 100vh;
    }

    .chat-header,
    .chat-messages,
    .chat-input {
        margin: 0;
        border-radius: 0;
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-header,
    .chat-input {
        padding: 12px 16px;
    }

    .message {
        max-width: 90%;
        padding: 12px 14px;
        font-size: 14px;
    }

    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .section {
        padding: 30px 16px;
    }
    
    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .about-item,
    .feature-card {
        padding: 16px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .about-item h3,
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 24px 16px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-top {
        padding: 30px 16px;
    }
    
    .stats-top h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* Mobile Styles */
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
        min-height: auto;
    }
    
    .stat-item {
        padding: 24px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    
    .stats-top h2 {
        font-size: 1.8rem;
        margin-bottom: 32px;
        padding: 0 16px;
    }
    
    .stats-top {
        padding: 32px 16px 40px 16px;
        overflow: visible;
        min-height: auto;
    }
    
    .stat-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Live Statistics Styles */
.stats-top {
    background: #1a1815;
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    position: relative;
    overflow: visible;
}

.stats-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgb(59 130 246 / 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-top h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
    text-align: center;
}

.stat-item {
    padding: 40px 24px;
    transition: all 0.3s ease;
    animation: fadeInScale 0.8s ease forwards;
    position: relative;
    text-align: center;
    background: transparent;
    border: none;
}

.stat-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.stat-item:hover .stat-number {
    filter: drop-shadow(0 0 15px rgb(212 165 116 / 0.5));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgb(59 130 246 / 0.3));
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        padding: 0 10px;
        white-space: normal;
        display: inline;
    }
    
    .changing-word {
        min-width: auto;
        display: inline;
        white-space: nowrap;
        margin-right: 4px;
        position: relative;
    }
    
    .message {
        max-width: 95%;
        padding: 10px 12px;
    }
    
    .ai-message,
    .user-message {
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .about-item h3,
    .feature-card h3 {
        font-size: 16px;
    }
    
    .coming-soon-container h3 {
        font-size: 28px;
    }
    
    .coming-soon-container p {
        font-size: 16px;
    }
    
    /* Stats section for very small mobile */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
    }
    
    .stats-top {
        padding: 24px 12px 32px 12px !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .stats-top h2 {
        font-size: 1.5rem !important;
        margin-bottom: 24px !important;
        padding: 0 12px !important;
    }
    
    .stat-item {
        padding: 20px 16px !important;
        background: transparent !important;
        border: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
        margin-bottom: 6px !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
}

/* Price Analysis Styles */
.price-highlight {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
}

.market-data-section {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.market-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.market-source:last-child {
    border-bottom: none;
}

.source-name {
    font-weight: 600;
    color: var(--text-primary);
}

.source-price {
    color: var(--primary-color);
    font-weight: 700;
}

.price-range-display {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1em;
}

.market-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
}

.market-trend.increasing {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.market-trend.stable {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.market-trend.decreasing {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Thinking Indicator */
.thinking-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.thinking-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.thinking-indicator .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-indicator .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

/* AI Message Formatting */
.ai-message .response-section:not(:last-child) {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.ai-message h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-message p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.ai-message ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.ai-message li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.ai-message li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.error-message {
    color: var(--error-text);
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "❌";
    font-size: 16px;
}



.changing-word {
    display: inline-block;
    min-width: 280px;
    text-align: left;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: inherit;
    white-space: nowrap;
    margin-right: 4px;
}


/* Section Styles */
.section {
    padding: 80px 20px;
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgb(59 130 246 / 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgb(168 85 247 / 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgb(34 197 94 / 0.02) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(10px) translateY(10px);
    }
    75% {
        transform: translateX(-5px) translateY(5px);
    }
}

/* Floating particles effect */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(34, 197, 94, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(168, 85, 247, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatParticles 25s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Enhanced glow effects for interactive elements */
.about-item:hover,
.feature-card:hover,
.stat-item:hover {
    filter: drop-shadow(0 0 20px rgb(59 130 246 / 0.3));
}

/* Pulse animation for accent elements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-title {
    animation: titleGlow 3s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

/* Vehicle Comparison Section */
.comparison-demo {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    color: var(--text-primary);
}

.comparison-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.vehicle-input {
    flex: 1;
    text-align: center;
}

.vehicle-input h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #fff;
}

.vehicle-search {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.vehicle-search:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

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

.category-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-item h4 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1rem;
}

.category-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.compare-btn {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

.compare-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.6);
}

@media (max-width: 768px) {
    .comparison-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs-divider {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .comparison-demo {
        padding: 25px;
    }
    
    .comparison-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Authentication Page Styles */
.auth-page {
    min-height: 100vh;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    position: relative;
}

.auth-page .auth-container {
    display: block;
    background: var(--surface-light);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.auth-page .auth-form {
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 116, 0.2);
}

.auth-divider span {
    background: var(--surface-light);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.auth-link a:hover {
    text-decoration: underline;
}

/* Back to home button is now replaced by the header navigation */

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.password-requirements {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.4;
}

/* Checkbox styles for terms and conditions */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}



/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-page {
        padding: 100px 16px 20px;
    }
    
    .auth-page .auth-container {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 80px 10px 20px;
    }
    
    .auth-page .auth-container {
        padding: 24px 16px;
        margin: 0;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .auth-header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 0.875rem;
        border-radius: 8px;
    }
    
    .password-requirements {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .checkbox-container {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .auth-button {
        padding: 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: 8px;
    }
    
    .auth-divider {
        margin: 20px 0 16px;
    }
    
    .auth-link {
        font-size: 0.875rem;
        text-align: center;
    }
    

    
    .back-to-home {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }
}

/* Footer Styles */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Removed footer overlay for unified background */

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo .logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgb(59 130 246 / 0.5));
}

.footer-logo .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(59 130 246 / 0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        justify-content: center;
    }
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section h2 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 15px rgb(212 165 116 / 0.3));
}

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

.about-item {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.about-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgb(59 130 246 / 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-item:hover {
    box-shadow: var(--shadow-lg), 0 0 25px rgb(59 130 246 / 0.2);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
}

.about-item:hover::before {
    opacity: 1;
}

.about-item h3 {
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    filter: drop-shadow(0 0 8px rgb(212 165 116 / 0.3));
}

.about-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section - Enhanced Modern Design */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.6s ease forwards;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.08) 0%, rgba(255, 142, 83, 0.03) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(255, 142, 83, 0.2);
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 142, 83, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    filter: drop-shadow(0 2px 8px rgba(255, 142, 83, 0.3));
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    opacity: 0.95;
}







/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 30px 20px;
    }

    .about-grid,
    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 10px 20px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .about-grid::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Add scroll snap for smooth scrolling */
    .about-grid,
    .features-grid {
        scroll-snap-type: x mandatory;
    }
    
    /* Add scroll indicators and animations */
    .about-grid::before,
    .features-grid::before {
        content: '→';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: bold;
        opacity: 0.7;
        pointer-events: none;
        z-index: 3;
        animation: scrollHint 2s ease-in-out infinite;
    }
    
    .about-grid::after,
    .features-grid::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to left, var(--background-primary), transparent);
        pointer-events: none;
        z-index: 2;
    }
    
    /* Scroll hint animation */
    @keyframes scrollHint {
        0%, 100% {
            transform: translateY(-50%) translateX(0);
            opacity: 0.7;
        }
        50% {
            transform: translateY(-50%) translateX(5px);
            opacity: 1;
        }
    }
    
    /* Section entrance animation */
    .section {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s ease-out;
    }
    
    /* Only apply animation if JavaScript is enabled */
    .js-enabled .section {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js-enabled .section.section-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Card animations */
    .about-item,
    .feature-card {
        opacity: 1;
        transform: scale(1) translateY(0);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Only apply animation if JavaScript is enabled */
    .js-enabled .about-item,
    .js-enabled .feature-card {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    
    .js-enabled .about-item.card-visible,
    .js-enabled .feature-card.card-visible {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    
    /* Enhanced scroll hint visibility */
    .about-grid::before,
    .features-grid::before {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .show-scroll-hint .about-grid::before,
    .show-scroll-hint .features-grid::before {
        opacity: 0.7;
    }
    
    /* Pulse animation for scroll indicators */
    @keyframes scrollPulse {
        0%, 100% {
            transform: translateY(-50%) translateX(0) scale(1);
            opacity: 0.7;
        }
        50% {
            transform: translateY(-50%) translateX(5px) scale(1.1);
            opacity: 1;
        }
    }
    
    .show-scroll-hint .about-grid::before,
    .show-scroll-hint .features-grid::before {
        animation: scrollPulse 2s ease-in-out infinite;
    }
    
    /* Container positioning for fade effects */
    .section {
        position: relative;
    }

    .about-item,
    .feature-card {
        flex: 0 0 calc(85% - 0.75rem);
        min-width: calc(85% - 0.75rem);
        padding: 2rem 1.5rem;
        border-radius: 20px;
        scroll-snap-align: start;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-grid,
    .features-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
        padding: 0 5px 20px 5px;
    }
    
    .about-item,
    .feature-card {
        flex: 0 0 calc(90% - 0.625rem);
        min-width: calc(90% - 0.625rem);
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #FF8E53;
    color: #FF8E53;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 142, 83, 0.1);
    transform: translateX(-4px);
}

.back-button:active {
    transform: translateX(-2px);
}

.back-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.suggestion-section {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alternatives-section {
    border-left: 4px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.similar-section {
    border-left: 4px solid #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.suggestion-section p:first-child {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.suggestion-section p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.suggestion-section p:not(:first-child) {
    padding-left: 24px;
    position: relative;
}

.suggestion-section p:not(:first-child)::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .suggestion-section {
        padding: 12px;
    }

    .suggestion-section p:not(:first-child) {
        padding-left: 20px;
    }
}



.info-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    table-layout: fixed;
}
.info-table .table-header {
    text-align: left;
    padding: 12px 20px;
    font-weight: 600;
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.info-table .table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.info-table .table-row:last-child {
    border-bottom: none;
}
.info-table .table-cell.key {
    width: 38%;
    color: #FF8E53;
    font-weight: 500;
    font-size: 0.95em;
    border-right: 1px solid rgba(255, 142, 83, 0.2);
    padding: 12px 16px;
}
.info-table .table-cell.value {
    width: 62%;
    color: #ffffff;
    font-size: 0.95em;
    padding: 12px 20px;
}
@media (max-width: 768px) {
    .info-table .table-header,
    .info-table .table-cell.key,
    .info-table .table-cell.value {
        padding: 8px 8px;
        font-size: 0.93em;
    }
    .info-table .table-cell.key {
        width: 45%;
    }
    .info-table .table-cell.value {
        width: 55%;
    }
}
@media (max-width: 480px) {
    .info-table {
        display: block;
    }
    .info-table .table-header {
        display: none;
    }
    .info-table .table-row {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .info-table .table-cell {
        display: block;
        width: 100%;
        padding: 4px 12px;
    }
    .info-table .table-cell.key {
        width: 100%;
        color: #FF8E53;
        border-right: none;
        padding-bottom: 4px;
    }
    .info-table .table-cell.value {
        width: 100%;
        padding-left: 32px;
        padding-top: 4px;
    }
}

/* Hide navbar when chat is active */
#chatScreen.active ~ .navbar {
    display: none;
}

.comparison-table-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-section-header {
    background: #000000;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-section-header h3 {
    margin: 0;
    color: #FF8E53;
    font-size: 1.1em;
    font-weight: 600;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 142, 83, 0.2);
    table-layout: fixed;
}
.comparison-table .table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.comparison-table .table-row:last-child {
    border-bottom: none;
}
.comparison-table .table-cell.key {
    width: 28%;
    min-width: 120px;
    max-width: 180px;
    color: #FF8E53;
    font-weight: 600;
    text-align: left;
    background: rgba(0,0,0,0.7);
    border-right: 1px solid rgba(255, 142, 83, 0.2);
    padding: 12px 16px;
    font-size: 1em;
}
.comparison-table .table-cell.value {
    width: 36%;
    color: #fff;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 8px;
    font-size: 1em;
}
.comparison-table .table-cell.value:first-child {
    border-right: 1px solid rgba(255, 142, 83, 0.1);
}
@media (max-width: 1024px) {
    .comparison-table .table-cell.key {
        width: 32%;
        font-size: 0.97em;
        padding: 10px 8px;
    }
    .comparison-table .table-cell.value {
        width: 34%;
        font-size: 0.97em;
        padding: 10px 4px;
    }
}
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        border-radius: 8px;
    }
    .comparison-table .table-row {
        display: flex;
        flex-direction: row;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .comparison-table .table-cell.key {
        width: 40%;
        min-width: 90px;
        font-size: 0.95em;
        padding: 8px 6px;
        text-align: left;
    }
    .comparison-table .table-cell.value {
        width: 30%;
        min-width: 80px;
        font-size: 0.95em;
        padding: 8px 4px;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .comparison-table .table-row {
        flex-direction: column;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .comparison-table .table-cell.key,
    .comparison-table .table-cell.value {
        width: 100%;
        min-width: unset;
        padding: 6px 8px;
        font-size: 0.93em;
        text-align: left;
        border-right: none;
    }
    .comparison-table .table-cell.value {
        text-align: left;
        border-bottom: none;
    }
}

.differences-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.differences-container h3 {
    color: #FF8E53;
    margin: 0 0 16px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.differences-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.differences-list li {
    color: #e0e0e0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.differences-list li:last-child {
    border-bottom: none;
}

.differences-list li:hover {
    color: #ffffff;
    padding-left: 8px;
}

.recommendation-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-container h3 {
    color: #FF8E53;
    margin: 0 0 16px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.recommendation-text {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-table-container {
        margin: 15px 0;
    }

    .table-section-header {
        padding: 12px 16px;
    }

    .table-section-header h3 {
        font-size: 1em;
    }

    .comparison-table .table-cell {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .comparison-table .table-cell.info {
        width: 90px;
        max-width: 110px;
        min-width: 70px;
        font-size: 0.85em;
    }

    .differences-container,
    .recommendation-container {
        padding: 16px;
    }

    .differences-list li {
        font-size: 0.9em;
    }

    .recommendation-text {
        font-size: 0.9em;
    }
}

.notes-container {
    background-color: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notes-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ffecb3;
    color: #5d4037;
    font-size: 0.95em;
    line-height: 1.4;
}

.notes-list li:last-child {
    border-bottom: none;
}

.notes-list li::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1.1em;
}

/* Responsive adjustments for notes */
@media (max-width: 768px) {
    .notes-container {
        padding: 12px;
        margin: 15px 0;
    }
    
    .notes-list li {
        font-size: 0.9em;
        padding: 6px 0;
    }
}

.history-container {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    padding: 8px 0;
    border-bottom: 1px solid #bbdefb;
    color: #1565c0;
    font-size: 0.95em;
    line-height: 1.4;
}

.history-list li:last-child {
    border-bottom: none;
}

.history-list li::before {
    content: "📅";
    margin-right: 8px;
    font-size: 1.1em;
}

/* Responsive adjustments for history */
@media (max-width: 768px) {
    .history-container {
        padding: 12px;
        margin: 15px 0;
    }
    
    .history-list li {
        font-size: 0.9em;
        padding: 6px 0;
    }
}

.acceleration-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.acceleration-table th,
.acceleration-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.acceleration-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.acceleration-table td:first-child {
    width: 60%;
    color: #333;
}

.acceleration-table td:last-child {
    width: 40%;
    color: #666;
    font-weight: 500;
}

/* Responsive adjustments for acceleration table */
@media (max-width: 768px) {
    .acceleration-table th,
    .acceleration-table td {
        padding: 6px;
        font-size: 0.9em;
    }
}
.acceleration-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Chat Input Wrapper - No background, inline button */
.chat-input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
}

#chatScreen .chat-input-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: calc(100vw - 40px);
    z-index: 1000;
}

#chatScreen .chat-input-wrapper #chatInputNew {
    width: 100%;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 12px 50px 12px 20px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    resize: none;
    outline: none;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgb(212 165 116 / 0.1);
    letter-spacing: 0.3px;
}

#chatScreen .chat-input-wrapper #chatInputNew:focus {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-background), var(--surface-card));
    box-shadow: var(--shadow-lg), 0 0 20px rgb(212 165 116 / 0.2), inset 0 1px 0 rgb(212 165 116 / 0.2);
}

#chatScreen .chat-input-wrapper #chatInputNew::placeholder {
    color: var(--text-secondary);
}

.send-button-inline {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: var(--gradient-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    box-shadow: var(--shadow-md), 0 0 0 1px rgb(212 165 116 / 0.1);
    backdrop-filter: blur(10px);
}

.send-button-inline:hover {
    background: var(--gradient-accent);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg), 0 0 15px rgb(212 165 116 / 0.3);
    border-color: var(--primary-color);
}

.send-button-inline:active {
    transform: scale(0.95);
}

/* Mobile responsive styles for chat input wrapper */
@media (max-width: 768px) {
    #chatScreen .chat-input-wrapper {
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: none;
    }
    
    #chatScreen .chat-input-wrapper #chatInputNew {
        font-size: 16px;
        padding: 10px 45px 10px 16px;
        min-height: 44px;
    }
    
    .send-button-inline {
        width: 32px;
        height: 32px;
        right: 6px;
        bottom: 6px;
    }
}

/* Animations */
@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 20px rgb(212 165 116 / 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgb(212 165 116 / 0.5)) drop-shadow(0 0 40px rgb(218 165 32 / 0.3));
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.send-button-inline svg {
    width: 16px;
    height: 16px;
}

/* Features Preview in Chat */
.chat-container-new .features-preview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 20px !important;
    margin-top: 10px !important;
    justify-content: flex-start !important;
    grid-template-columns: unset !important;
}

.chat-container-new .feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    flex-direction: row !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.chat-container-new .feature-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 1) !important;
}

.chat-container-new .feature-item svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

.chat-container-new .feature-item span {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: inherit !important;
}

.chat-container-new .feature-item h3,
.chat-container-new .feature-item p {
    display: none !important;
}

@media (max-width: 768px) {
    .chat-container-new .features-preview {
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .chat-container-new .feature-item {
        padding: 8px 12px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
    
    .chat-container-new .feature-item svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .chat-container-new .feature-item span {
        font-size: 13px !important;
    }
/* Authentication Styles */
.user-counter {
    color: #666;
    font-size: 14px;
    margin-right: 15px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 16px;
}

.auth-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.auth-btn.signup {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.auth-btn.signup:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.sign-out-btn {
    padding: 6px 12px;
    background: rgba(220, 53, 69, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.sign-out-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.chat-limit-display {
    text-align: center;
    margin: 16px 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.chat-limit-display a {
    color: var(--accent-color);
    text-decoration: none;
}

.chat-limit-display a:hover {
    text-decoration: underline;
}

/* Authentication Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 0;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.auth-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-form {
    padding: 24px;
}

.auth-error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff4d4d;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.auth-error:not(:empty) {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-primary);
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.auth-submit-btn:hover {
    background: var(--accent-hover);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-container {
        gap: 6px;
        margin-right: 8px;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .auth-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .auth-modal-header {
        padding: 16px 20px 12px;
    }
    
    .auth-form {
        padding: 20px;
    }
}

/* Duplicate footer styles removed to prevent override */

/* Rating Modal Styles */
.rating-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.rating-modal-content {
    background: var(--surface-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

.rating-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.rating-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rating-modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.star {
    font-size: 32px;
    color: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: var(--accent-color);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.rating-feedback {
    margin-bottom: 24px;
}

.rating-feedback textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.rating-feedback textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.rating-feedback textarea::placeholder {
    color: var(--text-muted);
}

.rating-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.submit-rating-btn,
.skip-rating-btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.submit-rating-btn {
    background: var(--gradient-primary);
    color: var(--background);
}

.submit-rating-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-rating-btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.skip-rating-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.skip-rating-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.rating-thank-you {
    background: var(--gradient-primary) !important;
    color: var(--background) !important;
    border-radius: var(--border-radius) !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(212, 165, 116, 0.6));
    }
}

/* Rating Modal Responsive Styles */
@media (max-width: 768px) {
    .rating-modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .rating-modal-header h3 {
        font-size: 20px;
    }
    
    .star {
        font-size: 28px;
    }
    
    .rating-modal-buttons {
        flex-direction: column;
    }
    
    .submit-rating-btn,
    .skip-rating-btn {
        width: 100%;
    }
}

/* Checkbox styling for cookie consent */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-container:hover {
    color: #007bff;
}}