/* MemorialQR Styles */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

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

/* Hero Visual Styles */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.memorial-card-preview {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    width: 100%;
}

.memorial-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.memorial-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.memorial-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.qr-code-preview {
    margin-top: 1rem;
}

.qr-code-preview img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scanner Icon Styles */
.scanner-icon img {
    border: 3px solid #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Pricing Image Styles */
.pricing-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pricing-image img:hover {
    transform: scale(1.05);
}

.pricing-hero img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section Styles */
.feature-card {
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.05);
}

/* Testimonials Section Styles */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    height: 100%;
}

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

.testimonial-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial-content h6 {
    color: #333;
    font-weight: 600;
}

/* Memorial Examples Section Styles */
.memorial-example {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.memorial-example-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memorial-example:hover .memorial-example-image img {
    transform: scale(1.05);
}

.memorial-example-content {
    padding: 1.5rem;
}

.memorial-example-content h5 {
    color: #333;
    font-weight: 600;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.footer-brand h5 {
    font-weight: 700;
}

.footer-image img,
.footer-memorial-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.footer-image img:hover,
.footer-memorial-image img:hover {
    transform: scale(1.05);
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

/* Enhanced Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    background-attachment: fixed;
}

/* Section Spacing */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3), transparent);
}

/* Memorial Memories Modal Styles */
#memorialMemoriesModal .modal-dialog {
    max-width: 900px;
}

#memorialMemoriesModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#memorialMemoriesModal .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

#memorialMemoriesModal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#memorialMemoriesModal .card-img-top {
    object-fit: cover;
}

#memorialMemoriesModal .memorial-photo {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#memorialMemoriesModal .no-memories {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

#memorialMemoriesModal .no-memories i {
    opacity: 0.5;
}

/* Image Fallback Styles */
img {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

img[src=""], img:not([src]) {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Loading placeholder for images */
img:not([src]), img[src=""] {
    position: relative;
}

img:not([src]):after, img[src=""]:after {
    content: "📷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #6c757d;
}

/* Scanner */
.scanner-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#scanner-video {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 1px solid #eee;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #eee;
}

/* Pricing */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.border-primary {
    border-color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    #scanner-video {
        height: 250px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .scanner-container {
        padding: 1rem;
    }
    
    #scanner-video {
        height: 200px;
    }
}

/* Memorial Display Styles */
.memorial-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.memorial-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.memorial-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.memorial-photo-container {
    flex-shrink: 0;
}

.memorial-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.memorial-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid rgba(255,255,255,0.3);
}

.memorial-info {
    flex: 1;
}

.memorial-name {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.memorial-dates {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.memorial-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.memorial-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.memorial-section h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.memorial-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.qr-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.qr-code-container {
    flex-shrink: 0;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.qr-info {
    flex: 1;
}

.qr-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.memories-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.memory-card {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.memory-card.memory-left {
    margin-right: 100px;
}

.memory-card.memory-right {
    margin-left: 100px;
}

.memory-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.memory-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.memory-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.memory-date, .memory-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.no-memories {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.memorial-footer {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

/* Responsive Design for Memorial */
@media (max-width: 768px) {
    .memorial-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .memorial-name {
        font-size: 2.2rem;
    }
    
    .memorial-stats {
        justify-content: center;
    }
    
    .qr-section {
        flex-direction: column;
        text-align: center;
    }
    
    .memory-card.memory-left,
    .memory-card.memory-right {
        margin-left: 0;
        margin-right: 0;
    }
    
    .memorial-section {
        padding: 25px 20px;
    }
    
    .memorial-hero {
        padding: 40px 20px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memorial-section {
    animation: fadeInUp 0.6s ease forwards;
}

.memorial-section:nth-child(2) { animation-delay: 0.1s; }
.memorial-section:nth-child(3) { animation-delay: 0.2s; }
.memorial-section:nth-child(4) { animation-delay: 0.3s; }
.memorial-section:nth-child(5) { animation-delay: 0.4s; }

/* Scanner animations */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Scanner improvements */
#scanner-video {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.scanner-controls .btn {
    margin: 0 5px;
    min-width: 150px;
}

/* Scanner message styling */
#scanner-message {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile scanner improvements */
@media (max-width: 768px) {
    .scanner-controls .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    #scanner-video {
        margin: 0 10px;
    }
}

/* Floating Language Switcher */
.floating-language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.language-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

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

.dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
}

.language-option .flag {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

/* Mobile adjustments for floating switcher */
@media (max-width: 768px) {
    .floating-language-switcher {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .language-dropdown {
        bottom: 60px;
        min-width: 180px;
    }
    
    .dropdown-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .language-option {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix for fixed navbar spacing */
section[id] {
    scroll-margin-top: 80px;
}

/* Admin Dashboard Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide desktop sidebar on mobile */
    .admin-sidebar {
        display: none !important;
    }
    
    /* Mobile offcanvas improvements */
    .offcanvas {
        width: 280px !important;
    }
    
    .offcanvas-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .offcanvas-body .sidebar-nav {
        padding: 0;
    }
    
    .offcanvas-body .nav-link {
        color: #333;
        padding: 12px 20px;
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .offcanvas-body .nav-link:hover,
    .offcanvas-body .nav-link.active {
        background: #f8f9fa;
        color: #667eea;
    }
    
    /* Mobile content adjustments */
    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Mobile header adjustments */
    .d-md-none {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Mobile table improvements */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Mobile card improvements */
    .card {
        margin-bottom: 1rem;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .card-header {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile button improvements */
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    /* Mobile form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Mobile stats improvements */
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-card .text-muted {
        font-size: 0.875rem;
    }
    
    /* Mobile badge improvements */
    .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.6em;
    }
    
    /* Mobile spacing improvements */
    .p-4 {
        padding: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mt-4 {
        margin-top: 1rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small screens */
    .offcanvas {
        width: 100% !important;
    }
    
    .table th,
    .table td {
        padding: 0.25rem 0.125rem;
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .stat-card h3 {
        font-size: 1.25rem;
    }
    
    .stat-card .text-muted {
        font-size: 0.75rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
}

/* Index Page Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Mobile navigation improvements */
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    /* Dashboard mobile navigation fixes */
    .navbar-collapse {
        background-color: #0d6efd !important;
        border-radius: 0.375rem;
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: #ffffff !important;
        border: 1px solid #dee2e6 !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    
    .navbar-nav .dropdown-item {
        color: #212529 !important;
        background-color: #ffffff !important;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
    
    .navbar-nav .dropdown-item:active {
        background-color: #e9ecef !important;
        color: #212529 !important;
    }
    
    .navbar-nav .btn-outline-light {
        color: #ffffff !important;
        border-color: #ffffff !important;
        background-color: transparent !important;
    }
    
    .navbar-nav .btn-outline-light:hover,
    .navbar-nav .btn-outline-light:focus {
        background-color: #ffffff !important;
        color: #0d6efd !important;
        border-color: #ffffff !important;
    }
    
    /* Force dark text on all dropdown elements */
    .navbar-nav .dropdown-menu * {
        color: #212529 !important;
    }
    
    .navbar-nav .dropdown-menu a {
        color: #212529 !important;
    }
    
    .navbar-nav .dropdown-menu i {
        color: #6c757d !important;
    }
    
    .navbar-nav .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Mobile hero section improvements */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Mobile QR demo improvements */
    .qr-demo {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .qr-demo i {
        font-size: 4rem;
    }
    
    /* Mobile scanner improvements */
    .scanner-container {
        padding: 1.5rem;
    }
    
    #scanner-video {
        height: 250px;
        border-radius: 10px;
    }
    
    .scanner-controls .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.75rem;
    }
    
    /* Mobile pricing improvements */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-card .card-body {
        padding: 1.5rem;
    }
    
    .pricing-card .display-6 {
        font-size: 2.5rem;
    }
    
    .pricing-card ul li {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    /* Mobile form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .form-label {
        font-weight: 500;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile button improvements */
    .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Mobile spacing improvements */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small screens */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .qr-demo {
        padding: 1.5rem 1rem;
    }
    
    .qr-demo i {
        font-size: 3rem;
    }
    
    #scanner-video {
        height: 200px;
    }
    
    .scanner-container {
        padding: 1rem;
    }
    
    .pricing-card .display-6 {
        font-size: 2rem;
    }
    
    .pricing-card .card-body {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Mobile image adjustments */
    .hero-background {
        background-attachment: scroll;
    }
    
    .memorial-card-preview {
        padding: 1.5rem;
        max-width: 300px;
    }
    
    .memorial-photo img {
        width: 100px;
        height: 100px;
    }
    
    .pricing-image img {
        max-width: 120px;
    }
    
    .pricing-hero img {
        max-width: 250px;
    }
    
    .scanner-icon img {
        width: 60px;
        height: 60px;
    }
    
    /* Mobile adjustments for new sections */
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-image img {
        width: 60px;
        height: 60px;
    }
    
    .memorial-example-image img {
        height: 200px;
    }
    
    .footer-image img,
    .footer-memorial-image img {
        max-width: 150px;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
    
    .feature-image img,
    .memorial-example-image img {
        max-width: 100%;
    }
}
