/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #ff0080;
    --secondary-color: #7928ca;
    --accent-color: #0070f3;
    --background-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #ff0080, #7928ca);
    --gradient-secondary: linear-gradient(135deg, #0070f3, #00c6ff);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 50px rgba(255, 0, 128, 0.3);
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 60px !important; /* Banner height के लिए space */
}

/* For mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 50px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 45px !important;
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    animation: spin 1s linear infinite;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

.circle-4 {
    width: 350px;
    height: 350px;
    background: #ff6b6b;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1000;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-xs);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    display: none;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 150px;
}

.lang-dropdown.show {
    display: flex;
}

.lang-dropdown button {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

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

/* ===== HEADER SECTION ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-glow {
    position: relative;
    filter: drop-shadow(0 0 20px rgba(255, 0, 128, 0.5));
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    animation: glow 2s ease-in-out infinite alternate;
}

.brand-text {
    text-align: left;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ai-avatar-container {
    position: relative;
}

.avatar-glow {
    position: relative;
    filter: drop-shadow(0 0 30px rgba(121, 40, 202, 0.5));
}

.ai-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient-secondary) border-box;
    animation: avatarFloat 3s ease-in-out infinite;
}

/* ===== MAIN NAVIGATION ===== */
.main-navigation {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.nav-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 0, 128, 0.3);
}

/* Button Sizes */
.large-btn {
    width: 180px;
    height: 120px;
    padding: var(--spacing-md);
}

.medium-btn {
    width: 150px;
    height: 100px;
    padding: var(--spacing-sm);
}

.small-btn {
    width: 120px;
    height: 80px;
    padding: var(--spacing-sm);
}

/* Button Specific Styles */
.motivational-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(121, 40, 202, 0.1));
}

.photos-btn:hover {
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.1), rgba(0, 198, 255, 0.1));
}

.stories-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 193, 7, 0.1));
}

.memories-btn:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1), rgba(186, 104, 200, 0.1));
}

.btn-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.btn-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== INSTALL PROMPT ===== */
.install-prompt {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 1000;
    animation: slideInUp 0.5s ease;
}

.install-prompt.hidden {
    display: none;
}

.install-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.install-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.install-avatar {
    position: relative;
}

.install-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid var(--surface-color);
}

.install-title h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.install-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.install-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.install-btn-primary, .install-btn-secondary {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.install-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.install-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.install-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.install-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

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

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

/* ===== PAGE MODAL STYLES ===== */
.page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    font-size: 2rem;
}

.modal-header h3 {
    flex: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    margin-bottom: var(--spacing-lg);
}

.page-features {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.page-features h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.page-features ul {
    list-style: none;
    padding-left: 0;
}

.page-features li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.page-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

.modal-footer {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}
