/* Level Craft Business Consulting - Dark Mode Default Theme */

/* Base Styles - Dark Mode Default */
:root {
    /* Dark mode variables (default) */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-light: #ffffff;
    --accent: #FFD700;
    --accent-hover: #E5C100;
    --border: #4a5568;
    --card-bg: rgba(0, 0, 0, 0.3);
    --card-border: rgba(255, 215, 0, 0.5);
    --nav-bg: rgba(0, 0, 0, 0.95);
    --nav-text: #ffffff;
    --mobile-menu-bg: #FFD700;
    --footer-bg: #000000;
}

/* Light mode variables */
.light-mode {
    --bg-primary: #f6f6f6;
    --bg-secondary: #ffffff;
    --bg-dark: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #ffffff;
    --accent: #FFD700;
    --accent-hover: #E5C100;
    --border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 215, 0, 0.3);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #1a1a1a;
    --mobile-menu-bg: #FFD700;
    --footer-bg: #f6f6f6;
}

/* Manual light mode class */
.light-mode {
    --bg-primary: #f6f6f6;
    --bg-secondary: #ffffff;
    --bg-dark: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #ffffff;
    --accent: #FFD700;
    --accent-hover: #E5C100;
    --border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 215, 0, 0.3);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #1a1a1a;
    --mobile-menu-bg: #FFD700;
    --footer-bg: #f6f6f6;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Navigation Styles */
nav {
    background-color: var(--nav-bg) !important;
    transition: background-color 0.3s ease;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: var(--nav-text) !important;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    transition: all 0.3s ease;
    color: var(--nav-text) !important;
}

.mobile-menu-btn:hover {
    color: var(--accent) !important;
}

.mobile-menu {
    background-color: var(--mobile-menu-bg) !important;
    transition: background-color 0.3s ease;
}

.mobile-nav-link {
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    color: var(--nav-text) !important;
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent) !important;
}

/* Animated Mobile Menu Styles */
.nav__toggle {
    display: inline-block;
    position: absolute;
    z-index: 10000;
    padding: 0;
    border: 0;
    background: transparent;
    outline: 0;
    right: 15px;
    top: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s linear;
}

.nav__toggle:hover,
.nav__toggle:focus {
    background-color: rgba(0, 0, 0, 0.5);
}

.nav__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--mobile-menu-bg);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__menu[hidden] {
    visibility: hidden !important;
}

.nav__item {
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.000, 0.995, 0.990, 1.000) 0.3s;
}

.nav__item:nth-child(1) {
    transform: translateY(-40px);
}

.nav__item:nth-child(2) {
    transform: translateY(-80px);
}

.nav__item:nth-child(3) {
    transform: translateY(-120px);
}

.nav__item:nth-child(4) {
    transform: translateY(-160px);
}

.nav__link {
    color: var(--bg-dark);
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 1rem;
    font-weight: 500;
}

.nav__link:hover,
.nav__link:focus {
    outline: 0;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--bg-dark);
}

/* SVG Menu Icon */
.menuicon {
    display: block;
    cursor: pointer;
    color: var(--nav-text);
    transform: rotate(0deg);
    transition: 0.3s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

.menuicon__bar,
.menuicon__circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
}

.menuicon__bar {
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.25s ease-in-out;
}

.menuicon__circle {
    transition: stroke-dashoffset 0.3s linear 0.1s;
    stroke-dashoffset: 144.5; /* circumference of circle with radius 23 */
    stroke-dasharray: 144.5;
}

/* Circular Splash Background */
.splash {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 1px;
    height: 1px;
}

.splash::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 50%;
    background-color: var(--accent);
    width: 284vmax;
    height: 284vmax;
    top: -142vmax;
    left: -142vmax;
    transform: scale(0);
    transform-origin: 50% 50%;
    transition: transform 0.5s cubic-bezier(0.755, 0.050, 0.855, 0.060);
    will-change: transform;
}

/* Active State */
.nav:target > .splash::after,
.nav--open > .splash::after {
    transform: scale(1);
}

.nav:target .menuicon,
.nav--open .menuicon {
    color: var(--bg-dark);
    transform: rotate(180deg);
}

.nav:target .menuicon__circle,
.nav--open .menuicon__circle {
    stroke-dashoffset: 0;
}

.nav:target .menuicon__bar:nth-child(1),
.nav:target .menuicon__bar:nth-child(4),
.nav--open .menuicon__bar:nth-child(1),
.nav--open .menuicon__bar:nth-child(4) {
    opacity: 0;
}

.nav:target .menuicon__bar:nth-child(2),
.nav--open .menuicon__bar:nth-child(2) {
    transform: rotate(45deg);
}

.nav:target .menuicon__bar:nth-child(3),
.nav--open .menuicon__bar:nth-child(3) {
    transform: rotate(-45deg);
}

.nav:target .nav__menu,
.nav--open .nav__menu {
    visibility: visible;
    opacity: 1;
}

.nav--open .nav__menu[hidden] {
    visibility: visible !important;
    display: flex !important;
    opacity: 1 !important;
}

.nav:target .nav__item,
.nav--open .nav__item {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Hero text color adaptation for light/dark mode */
.hero-content h1 {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.hero-content h1 span {
    color: inherit;
}

.hero-content h1 .text-yellow-400 {
    color: var(--accent) !important;
}

.hero-content p {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

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

/* Grid Background Pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* CTA Buttons */
.cta-button-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cta-button-primary:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* Solution Cards */
.solution-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.solution-card:hover {
    background: var(--card-bg);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
    border-color: var(--accent);
}

/* Form Styles */
.form-input {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Section Backgrounds */
section {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Text Colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Package-specific styling */
.bg-gray-700 {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border);
}

/* Override hardcoded text colors for theme compatibility */
.text-white {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.text-gray-300, .text-gray-400, .text-gray-600 {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

/* Keep yellow accent colors */
.text-yellow-400 {
    color: var(--accent) !important;
}

/* Footer */
footer {
    background-color: var(--footer-bg) !important;
    transition: background-color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Pure Image Gallery Styles */
.pure-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.pure-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    opacity: 0;
    transform: scale(0.9);
}

.pure-image-item.loaded {
    opacity: 1;
    transform: scale(1);
}

.pure-image-item:hover {
    transform: scale(1.02);
}

.pure-image-item.loaded:hover {
    transform: scale(1.05);
}

.pure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.retry-btn {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Pure Image Grid */
@media (max-width: 768px) {
    .pure-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .pure-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
}

/* Instagram Gallery Styles */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.instagram-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-secondary);
}

.instagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.instagram-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-image {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    transform: translateY(0);
}

.instagram-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instagram-caption {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.instagram-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.instagram-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Instagram Grid */
@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .instagram-overlay {
        padding: 15px;
    }
    
    .instagram-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .instagram-stats {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Bookkeeping Section Background */
.bookkeeping-section {
    background-color: var(--bg-primary);
}

/* Print Styles */
/* Clean Instagram Gallery Styles - Smaller Images */
.instagram-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1000px;
    padding: 1rem;
}

.pure-image-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.pure-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pure-image-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.pure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.pure-image:hover {
    transform: scale(1.02);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instagram-embed-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .pure-image-item {
        border-radius: 8px;
    }
    
    .image-placeholder {
        border-radius: 8px;
    }
    
    .pure-image {
        border-radius: 8px;
    }
}

.instagram-embed-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotateX(10deg);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.instagram-embed-item:nth-child(1) { animation-delay: 0.1s; }
.instagram-embed-item:nth-child(2) { animation-delay: 0.2s; }
.instagram-embed-item:nth-child(3) { animation-delay: 0.3s; }
.instagram-embed-item:nth-child(4) { animation-delay: 0.4s; }
.instagram-embed-item:nth-child(5) { animation-delay: 0.5s; }
.instagram-embed-item:nth-child(6) { animation-delay: 0.6s; }

.instagram-embed-item:hover {
    transform: translateY(-10px) scale(1.02) rotateX(0deg);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2), 0 0 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.instagram-embed-item.loaded {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}

.instagram-media:hover {
    transform: scale(1.05);
}

/* Enhanced Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(255, 215, 0, 0.2);
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.2s linear infinite, pulse 2s ease-in-out infinite;
    margin-bottom: 1.5rem;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: innerPulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes innerPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .instagram-embed-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .instagram-embed-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .instagram-embed-item {
        border-radius: 15px;
    }
    
    .instagram-media {
        border-radius: 15px !important;
    }
}

@media (max-width: 480px) {
    .instagram-embed-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instagram-embed-item {
        border-radius: 12px;
    }
    
    .instagram-media {
        border-radius: 12px !important;
    }
}

/* Fallback Image Styling */
.pure-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1;
    background: var(--bg-secondary);
    opacity: 0;
    transform: scale(0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.pure-image-item.loaded {
    opacity: 1;
    transform: scale(1);
    animation: slideInUp 0.6s ease forwards;
}

.pure-image-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2), 0 0 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.pure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.pure-image:hover {
    transform: scale(1.1);
}

/* Enhanced Animations for Photography Gallery */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes imageLoadSuccess {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes imageZoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlideOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes animate-gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

.animate-gradient-x {
    animation: animate-gradient-x 3s ease infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Enhanced Image Placeholder */
.image-placeholder.shimmer {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
}

/* Image Modal Enhancements */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease forwards;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    to { transform: scale(1); }
}

@media print {
    .theme-toggle,
    .mobile-menu-btn,
    .cta-button-primary {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
