/* Custom Royal Blue Theme */
:root {
    --royal-blue: #1e40af;
    --royal-blue-dark: #1e3a8a;
    --royal-blue-light: #3b82f6;
    --gold-accent: #f59e0b;
    --silver-accent: #6b7280;
}

/* Royal Blue Button Styles */
.btn-royal-blue {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
    color: white;
}

.btn-royal-blue:hover {
    background-color: var(--royal-blue-dark);
    border-color: var(--royal-blue-dark);
    color: white;
}

.btn-outline-royal-blue {
    border-color: var(--royal-blue);
    color: var(--royal-blue);
}

.btn-outline-royal-blue:hover {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
    color: white;
}

/* Text Colors */
.text-royal-blue {
    color: var(--royal-blue) !important;
}

.text-gold-accent {
    color: var(--gold-accent) !important;
}

/* Background Colors */
.bg-gold-accent {
    background-color: var(--gold-accent) !important;
}

/* Custom Card Hover Effects */
.pop-out-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.pop-out-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pop-out-card .card-img-top {
    transition: transform 0.3s ease;
}

.pop-out-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Hero Section */
.min-vh-50 {
    min-height: 50vh;
}

.hero-image img {
    border-radius: 15px;
}

/* Category Cards */
.category-card {
    border: none;
    overflow: hidden;
    position: relative;
}

.category-card .card-img-overlay {
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.8), rgba(59, 130, 246, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-img-overlay {
    opacity: 1;
}

.category-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Product Cards */
.product-card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-card:hover .hover-overlay {
    opacity: 1;
}

/* Product Details */
.product-gallery img {
    border-radius: 10px;
    cursor: pointer;
}

.product-gallery .thumbnail {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-gallery .thumbnail.active {
    border-color: var(--royal-blue);
}

.product-gallery .thumbnail:hover {
    border-color: var(--royal-blue-light);
}

/* Milestone Section */
.milestone-item {
    padding: 2rem;
}

.milestone-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Celebration Badge Animation */
.celebration-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--royal-blue) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--royal-blue-dark) !important;
}

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

/* Contact Info */
.contact-info div {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.contact-info div:last-child {
    border-bottom: none;
}

/* Modal Customization */
.modal-header {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Toast Styling */
.toast {
    background: var(--royal-blue);
    color: white;
}

.toast .toast-header {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .milestone-item h3 {
        font-size: 2rem;
    }
    
    .product-card .card-img-top {
        height: 200px;
    }
    
    .category-card .card-img-top {
        height: 150px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 64, 175, 0.3);
    border-radius: 50%;
    border-top-color: var(--royal-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feature List Styling */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "•";
    color: var(--royal-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Badge Styling */
.badge {
    font-size: 0.75em;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

a {
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--royal-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--royal-blue-dark);
}

/* Form Styling */
.form-control:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-select:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Tab Styling */
.nav-tabs .nav-link {
    color: var(--royal-blue);
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: var(--royal-blue-light);
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}

/* Page Transitions */
.page-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Fallback */
.img-fallback {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2rem;
}

/* Success States */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Error States */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.box-shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}