/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 40px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #666;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success { border-left-color: #16a34a; }
.toast-success .toast-icon { color: #16a34a; }

.toast-error { border-left-color: #dc2626; }
.toast-error .toast-icon { color: #dc2626; }

.toast-warning { border-left-color: #d97706; }
.toast-warning .toast-icon { color: #d97706; }

.toast-info { border-left-color: #2563eb; }
.toast-info .toast-icon { color: #2563eb; }

.toast-icon {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* ========================================
   Skeleton Loaders
   ======================================== */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

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

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    height: 42px;
    width: 120px;
    border-radius: 10px;
}

.skeleton-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-card .skeleton-image {
    height: 180px;
}

.skeleton-card-content {
    padding: 16px;
}

.skeleton-card-content .skeleton {
    margin-bottom: 10px;
}

/* ========================================
   Halls Skeleton Loader (Horizontal)
   ======================================== */
.halls-skeleton-loader {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.halls-skeleton-loader.show {
    display: flex;
}

.skeleton-card-horizontal {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-card-horizontal .skeleton-image-square {
    width: 280px;
    height: 180px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-card-horizontal .skeleton-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.skeleton-card-horizontal .skeleton-title {
    height: 24px;
    margin-bottom: 16px;
}

.skeleton-card-horizontal .skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .skeleton-card-horizontal {
        flex-direction: column;
    }
    
    .skeleton-card-horizontal .skeleton-image-square {
        width: 100%;
        height: 200px;
    }
}

/* ========================================
   Results Count Badge
   ======================================== */
.results-count {
    font-size: 0.95rem;
    color: #666;
    margin-left: auto;
}

.results-count-number {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

/* ========================================
   Active Viewers Badge
   ======================================== */
.active-viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #5D3A1A 0%, #4A2C0A 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse-glow 2s ease-in-out infinite;
}

.active-viewers-badge-wrapper {
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
}

.active-viewers-badge .live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(139, 69, 19, 0.2); }
}

.venue-card .active-viewers-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.75rem;
    padding: 3px 8px;
}

.dark-mode .active-viewers-badge {
    background: linear-gradient(135deg, #4A2C0A 0%, #5D3A1A 100%);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(93, 58, 26, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(93, 58, 26, 0.2); }
}

/* ========================================
   Dark Mode
   ======================================== */
.dark-mode {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2937;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --navbar-bg: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dark-mode .navbar {
    background: var(--navbar-bg);
}

.dark-mode .container,
.dark-mode .card,
.dark-mode .hall-card,
.dark-mode .vendor-card,
.dark-mode .booking-card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.dark-mode .hall-card h3,
.dark-mode .hall-card .hall-price,
.dark-mode .hall-card .hall-location,
.dark-mode .vendor-card h3,
.dark-mode .vendor-card .hall-price {
    color: var(--text-primary);
}

.dark-mode .hall-card p,
.dark-mode .vendor-card p,
.dark-mode .booking-info p {
    color: var(--text-secondary);
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .admin-sidebar {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark-mode .admin-sidebar a {
    color: var(--text-secondary);
}

.dark-mode .admin-sidebar a:hover,
.dark-mode .admin-sidebar a.active {
    background-color: var(--bg-card);
    color: #667eea;
}

.dark-mode .mobile-bottom-nav {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark-mode .mobile-bottom-nav .nav-icon,
.dark-mode .mobile-bottom-nav .nav-text {
    color: var(--text-secondary);
}

.dark-mode .mobile-bottom-nav .bottom-nav-item.active .nav-icon,
.dark-mode .mobile-bottom-nav .bottom-nav-item.active .nav-text {
    color: #667eea;
}

.dark-mode .btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .btn-outline:hover {
    background-color: var(--bg-card);
}

.dark-mode .form-group label {
    color: var(--text-secondary);
}

.dark-mode .table-container,
.dark-mode table {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.dark-mode th {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.dark-mode td {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .skeleton {
    background: linear-gradient(90deg, #2d3748 25%, #374151 50%, #2d3748 75%);
    background-size: 200% 100%;
}

/* Dark mode toggle button */
#darkModeToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: white;
}

#darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode #darkModeToggle {
    color: var(--text-primary);
}

.dark-mode #darkModeToggle:hover {
    background-color: var(--bg-secondary);
}

/* Dark mode dropdown menu */
.dark-mode .dropdown-menu {
    background: var(--bg-card);
    box-shadow: 0 4px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.dark-mode .dropdown-menu a {
    color: var(--text-primary);
}

.dark-mode .dropdown-menu a:hover {
    background: var(--bg-secondary);
}

/* Dark mode calendar */
.dark-mode .calendar-widget {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.dark-mode .calendar-header {
    border-bottom-color: var(--border-color);
}

.dark-mode .calendar-header h3 {
    color: var(--text-primary);
}

.dark-mode .calendar-nav button {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .calendar-nav button:hover {
    background: var(--bg-card);
}

.dark-mode .calendar-day {
    color: var(--text-primary);
}

.dark-mode .calendar-day:hover {
    background: var(--bg-secondary);
}

.dark-mode .calendar-day.selected {
    background: #667eea;
    color: white;
}

.dark-mode .calendar-day.disabled {
    color: var(--text-secondary);
}

/* Dark mode footer */
.dark-mode .footer-section a {
    color: var(--text-secondary);
}

.dark-mode .footer-section a:hover {
    color: var(--text-primary);
}

.dark-mode .footer-bottom {
    border-top-color: var(--border-color);
}

/* Dark mode toast notifications */
.dark-mode .toast {
    background: var(--bg-card);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.dark-mode .toast-message {
    color: var(--text-primary);
}

.dark-mode .toast-close {
    color: var(--text-secondary);
}

.dark-mode .toast-close:hover {
    color: var(--text-primary);
}

/* Dark mode hero section */
.dark-mode .hero-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dark-mode .hero-search-form {
    background: var(--bg-card);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.dark-mode .hero-search-input {
    color: var(--text-primary);
}

.dark-mode .hero-search-input::placeholder {
    color: var(--text-secondary);
}

/* ========================================
   Form Improvements
   ======================================== */
.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.dark-mode .input-error {
    background-color: rgba(220, 38, 38, 0.1);
}

.input-error-message {
    display: block;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-group input:focus:invalid:not(:placeholder-shown),
.form-group input.input-error {
    border-color: #dc2626;
}

/* ========================================
   Accessibility Improvements
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.dark-mode *:focus-visible {
    outline-color: #818cf8;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 80px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
    
    .toast {
        width: 100%;
    }
    
    .skeleton-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Loading States
   ======================================== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
}

.dark-mode .loading-overlay {
    background: rgba(26, 26, 46, 0.8);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.dark-mode .loading-spinner {
    border-color: #374151;
    border-top-color: #818cf8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.dark-mode .btn-loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-right-color: transparent;
}

/* ========================================
   Consistent Card Design
   ======================================== */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.dark-mode .card-hover:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Form Field Consistency
   ======================================== */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group .helper-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.dark-mode .form-group .helper-text {
    color: #9ca3af;
}

.form-group .char-count {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 2px;
}

.form-group .char-count.warning {
    color: #f59e0b;
}

.form-group .char-count.error {
    color: #ef4444;
}

/* ========================================
   Status Badges Consistency
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.dark-mode .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-mode .badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.dark-mode .badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.dark-mode .badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.slide-in {
    animation: slideIn 0.3s ease;
}

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

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.dark-mode .empty-state {
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #374151;
}

.dark-mode .empty-state h3 {
    color: #f3f4f6;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ========================================
   Recently Viewed Section
   ======================================== */
.recently-viewed-section {
    padding: 20px 0;
    background: #fafafa;
    margin: 20px 0;
}

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

.recently-viewed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recently-viewed-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recently-viewed-title::before {
    content: '🕒';
    font-size: 1.2rem;
}

.dark-mode .recently-viewed-title {
    color: #f3f4f6;
}

.recently-viewed-clear {
    font-size: 0.875rem;
    color: #667eea;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.recently-viewed-clear:hover {
    background: rgba(102, 126, 234, 0.1);
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.recently-viewed-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    color: inherit !important;
}

.recently-viewed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recently-viewed-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f0f0f0;
}

.recently-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recently-viewed-card:hover .recently-viewed-image img {
    transform: scale(1.05);
}

.recently-viewed-info {
    padding: 16px;
}

.recently-viewed-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .recently-viewed-name {
    color: #f3f4f6;
}

.recently-viewed-location {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recently-viewed-location::before {
    content: '📍';
    font-size: 0.75rem;
}

.dark-mode .recently-viewed-location {
    color: #9ca3af;
}

.recently-viewed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.recently-viewed-rating {
    color: #f59e0b;
    font-weight: 600;
}

.recently-viewed-type {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 4px;
}

.dark-mode .recently-viewed-type {
    background: #374151;
    color: #d1d5db;
}

.remove-recently {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recently-viewed-card:hover .remove-recently {
    opacity: 1;
}

.remove-recently:hover {
    background: rgba(220, 38, 38, 0.9);
}

@media (max-width: 768px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .recently-viewed-image {
        height: 120px;
    }
    
    .recently-viewed-info {
        padding: 12px;
    }
    
    .recently-viewed-name {
        font-size: 0.9rem;
    }
}

/* ========================================
   Lazy Loading with Blur-up Effect
   ======================================== */
.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s ease;
    filter: blur(10px);
    transform: scale(1.02);
}

.lazy-img.lazy-loading {
    opacity: 0.3;
    filter: blur(5px);
}

.lazy-img.lazy-loaded,
.lazy-img.img-loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.lazy-img.lazy-error {
    opacity: 0.5;
    filter: blur(0);
}

.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.img-loaded {
    background: none;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #999;
    font-size: 0.9rem;
    min-height: 150px;
}

.dark-mode .placeholder-img {
    background: #374151;
    color: #9ca3af;
}

.venue-image {
    background: #f5f5f5;
}

.dark-mode .venue-image {
    background: #374151;
}

.venue-image img,
.recently-viewed-image img {
    background: transparent;
}

/* ========================================
   Page Transitions
   ======================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(1px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-transition-overlay.fade-out {
    opacity: 0;
}

.page-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(65, 61, 57, 0.18);
    border-top-color: #413d39;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page content fade in */
.page-content {
    animation: fadeInUp 0.4s ease forwards;
}

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

/* Staggered animation for cards */
.stagger-animate > * {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.stagger-animate > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animate > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animate > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animate > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animate > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animate > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-animate > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-animate > *:nth-child(8) { animation-delay: 0.4s; }

/* Hover scale animation for cards */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Loading bar at top */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 100000;
    width: 0;
    transition: width 0.3s ease;
}

.loading-bar.active {
    animation: loadingProgress 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0; opacity: 1; }
    50% { width: 70%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* Card entrance animation */
.card-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}
