:root {
            --primary-dark: #0F0F23;
            --secondary-dark: #1A1A2E;
            --accent-purple: #8A2BE2;
            --accent-pink: #FF6B8B;
            --accent-blue: #4169E1;
            --accent-gold: #FFD166;
            --accent-teal: #4ECDC4;
            --text-light: #FFFFFF;
            --text-muted: #B0B0B0;
            --card-bg: rgba(26, 26, 46, 0.8);
            --gradient-primary: linear-gradient(135deg, #8A2BE2, #4169E1);
            --gradient-secondary: linear-gradient(135deg, #FF6B8B, #FFD166);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--primary-dark);
            color: var(--text-light);
            min-height: 100vh;
            overflow-x: hidden;
            direction: ltr;
        }
        
        /* Bangla font support */
        .bangla-font, [lang="bn"] {
            font-family: 'Kalpurush', 'SolaimanLipi', 'Siyam Rupali', Arial, sans-serif;
        }
        
        /* Background Animation */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(65, 105, 225, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 107, 139, 0.1) 0%, transparent 50%);
            z-index: -1;
            animation: bgPulse 10s ease-in-out infinite;
        }
        
        @keyframes bgPulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 0.8; }
        }
        
        /* Navbar */
        .navbar {
            background: rgba(15, 15, 35, 0.9);
            backdrop-filter: blur(20px);
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .navbar-brand {
            font-weight: 800;
            font-size: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .nav-link {
            color: var(--text-light) !important;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            margin: 0 0.25rem;
        }
        
        .nav-link:hover,
        .nav-link.active {
            background: var(--gradient-primary);
            color: var(--text-light) !important;
            transform: translateY(-2px);
        }
        
        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 100px 0 60px;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
        }
        
        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--text-light), var(--accent-pink), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }
        
        .hero-description {
            font-size: 1.25rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            max-width: 600px;
        }
        
        .hero-stats {
            display: flex;
            gap: 2rem;
            margin-top: 3rem;
            flex-wrap: wrap;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        /* Floating Particles */
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 1;
        }
        
        /* Buttons */
        .btn-glow {
            background: var(--gradient-primary);
            color: var(--text-light);
            border: none;
            padding: 1rem 2rem;
            font-weight: 600;
            border-radius: 50px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
        }
        
        .btn-glow:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
            color: var(--text-light);
        }
        
        .btn-glow::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }
        
        .btn-glow:hover::before {
            left: 100%;
        }
        
        /* Card Design */
        .feature-card,
        .wish-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: .5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .feature-card:hover,
        .wish-card:hover {
            transform: translateY(-10px);
            border-color: var(--accent-purple);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .feature-card::before,
        .wish-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
        }
        
        /* Feature Icons */
        .feature-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }
        
        /* Form Styling */
        .form-control,
        .form-select {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-light);
            padding: 0.75rem 1rem;
            border-radius: 12px;
            transition: all 0.3s ease;
        }
        
        .form-control:focus,
        .form-select:focus {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--accent-purple);
            color: var(--text-light);
            box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
        }
        
        .form-label {
            color: var(--text-light);
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        
        /* Theme Selector */
        .theme-option {
            padding: 1rem;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }
        
        .theme-option:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .theme-option.active {
            border-color: var(--accent-purple);
            background: rgba(138, 43, 226, 0.1);
        }
        
        /* Stats Section */
        .stats-section {
            background: rgba(138, 43, 226, 0.05);
            border-radius: 30px;
            padding: 4rem 2rem;
            margin: 4rem 0;
            border: 1px solid rgba(138, 43, 226, 0.1);
        }
        
        /* Footer */
        .footer {
            background: var(--secondary-dark);
            padding: 4rem 0 2rem;
            margin-top: 4rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .footer-link {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.3s ease;
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .footer-link:hover {
            color: var(--accent-purple);
            text-decoration: none;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-link:hover {
            background: var(--gradient-primary);
            transform: translateY(-3px);
        }
        
        /* Wish Preview */
        .wish-preview {
            background: rgba(138, 43, 226, 0.1);
            border-radius: 20px;
            padding: 2rem;
            border: 2px dashed rgba(138, 43, 226, 0.3);
            margin-top: 2rem;
        }
        
        .wish-link {
            background: rgba(255, 255, 255, 0.05);
            padding: 1rem;
            border-radius: 12px;
            word-break: break-all;
            font-family: monospace;
            margin: 1rem 0;
        }
        
        /* Loading Animation */
        .loading-spinner {
            text-align: center;
            padding: 2rem;
        }
        
        .spinner-glow {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(138, 43, 226, 0.1);
            border-top-color: var(--accent-purple);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Alert Messages */
        .alert {
            border-radius: 12px;
            border: none;
            padding: 1rem 1.5rem;
            backdrop-filter: blur(10px);
        }
        
        .alert-success {
            background: rgba(46, 204, 113, 0.1);
            color: #2ecc71;
            border: 1px solid rgba(46, 204, 113, 0.2);
        }
        
        .alert-danger {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.2);
        }
        
        /* Language Switcher */
        .language-switcher {
            display: flex;
            gap: 0.5rem;
            margin-right: 1rem;
        }
        
        .lang-btn {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .lang-btn.active {
            background: var(--gradient-primary);
            color: var(--text-light);
        }
        
        .lang-btn:not(.active) {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
        }
        
        .lang-btn:not(.active):hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-light);
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-description {
                font-size: 1.1rem;
            }
            
            .stat-number {
                font-size: 2rem;
            }
            
            .hero-stats {
                gap: 1.5rem;
            }
            
            .navbar-collapse {
                background: var(--secondary-dark);
                padding: 1rem;
                border-radius: 12px;
                margin-top: 1rem;
                border: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .nav-link {
                margin: 0.25rem 0;
                display: block;
            }
            
            .feature-card,
            .wish-card {
                padding: .5rem;
            }
            
            .feature-icon {
                font-size: 2.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-section {
                padding: 80px 0 40px;
            }
            
            .btn-glow {
                padding: 0.75rem 1.5rem;
                width: 100%;
            }
            
            .wish-preview {
                padding: 1.5rem;
            }
            
            .footer {
                padding: 3rem 0 1.5rem;
            }
        }
        
        /* Animation Classes */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.6s ease forwards;
        }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .delay-1 { animation-delay: 0.2s; }
        .delay-2 { animation-delay: 0.4s; }
        .delay-3 { animation-delay: 0.6s; }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--secondary-dark);
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--gradient-primary);
            border-radius: 5px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
        }
        .text-muted{
            color:rgb(184 208 231 / 75%) !important;
        }
        input::placeholder {
          color: #676666 !important;
        }
        textarea::placeholder {
  color: #676666 !important;
}

/* Fullscreen Modal Styles */
.modal-fullscreen .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 100%);
}

.modal-fullscreen .modal-header {
    background: rgba(138, 43, 226, 0.1);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding: 1.5rem 2rem;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
    padding: 2rem;
}

.modal-fullscreen .modal-footer {
    background: rgba(26, 26, 46, 0.8);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding: 1.5rem 2rem;
}

/* Template Cards */
.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.template-card.active {
    background: rgba(138, 43, 226, 0.15);
    border-color: #8A2BE2;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8A2BE2, #4169E1);
    border-radius: 12px 12px 0 0;
}

.template-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1rem;
}

.template-text {
    color: #B0B0B0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-select-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(138, 43, 226, 0.2);
    color: #8A2BE2;
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.template-card:hover .template-select-btn {
    background: #8A2BE2;
    color: white;
}

/* Template List Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Modal Close Button */
.modal-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-close-btn:hover {
    color: #8A2BE2;
}

/* Loading Animation for Template Modal */
.template-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.template-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(138, 43, 226, 0.1);
    border-top-color: #8A2BE2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-fullscreen .modal-body {
        padding: 1rem;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .template-card {
        padding: 15px;
    }
}






/* Photo Upload Styles */
.photo-upload-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    border: 2px dashed rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.photo-upload-container:hover {
    border-color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.1);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.photo-item {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(138, 43, 226, 0.3);
}

.photo-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-purple);
}

.photo-caption {
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.photo-caption textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    transition: all 0.3s ease;
}

.photo-caption textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.1);
}

.photo-caption textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-actions {
    opacity: 1;
}

.btn-remove-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-remove-photo:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.btn-move-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-move-photo:hover {
    background: var(--accent-purple);
}

.add-photo-btn-container {
    text-align: center;
    padding: 20px;
    border: 2px dashed rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-add-photo {
    background: linear-gradient(135deg, var(--accent-purple), #6a1cb0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.btn-add-photo i {
    font-size: 20px;
}

.photo-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Photo Tips Styles */
.photo-tips {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-left: 4px solid var(--accent-purple);
    border-radius: 8px;
    margin-top: 16px;
    padding: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

.photo-tips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--accent-purple);
}

.photo-tips-body ul {
    list-style: none;
    padding: 0;
}

.photo-tips-body li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.photo-tips-body li i {
    color: var(--accent-purple);
    font-size: 16px;
    margin-top: 2px;
}

/* Loading Spinner for Upload */
.uploading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.upload-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .photo-preview {
        height: 120px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}