/* =========================================
   KIARA TODHUNTER'S PORTFOLIO
   Warm Sunset Theme - Orange & Pink
   ========================================= */

/* ===== CSS Custom Properties (Variables) ===== */
:root {
    /* Primary Colors - Warm Sunset Palette */
    --coral-orange: #E8734A;
    --sunset-orange: #FF7F50;
    --peach: #FFAB91;
    --dusty-rose: #D4A5A5;
    --soft-pink: #E8B4B8;
    --blush: #F5D6D6;
    --deep-coral: #CD5C5C;

    /* Neutral Colors */
    --warm-cream: #FFF8F5;
    --warm-cream-dark: #FFF0EB;
    --warm-white: #FFFCFA;
    --warm-brown: #5D4037;
    --dark-text: #3E2723;
    --medium-text: #6D5147;

    /* Functional Colors */
    --shadow-color: rgba(62, 39, 35, 0.1);
    --shadow-hover: rgba(62, 39, 35, 0.2);
    --overlay-dark: rgba(30, 20, 18, 0.95);
    --overlay-light: rgba(255, 248, 245, 0.98);

    /* Gradients */
    --gradient-sunset: linear-gradient(135deg, var(--coral-orange) 0%, var(--dusty-rose) 50%, var(--soft-pink) 100%);
    --gradient-header: linear-gradient(180deg, var(--warm-cream) 0%, var(--warm-cream-dark) 100%);
    --gradient-shimmer: linear-gradient(90deg, var(--warm-cream-dark) 0%, var(--warm-cream) 50%, var(--warm-cream-dark) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-round: 50%;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index layers */
    --z-base: 1;
    --z-header: 10;
    --z-toast: 100;
    --z-lightbox: 1000;
    --z-top: 9999;
}

/* ===== CSS Reset & Base Styles ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--warm-cream);
    background-image: var(--gradient-header);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom selection color */
::selection {
    background-color: var(--peach);
    color: var(--dark-text);
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral-orange);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: var(--z-top);
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-md);
    outline: 3px solid var(--deep-coral);
    outline-offset: 2px;
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-sunset);
    z-index: var(--z-top);
    transition: width 50ms linear;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== Grain Texture Overlay ===== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-header);
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Header Section ===== */
.header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    position: relative;
    background: linear-gradient(
        180deg,
        var(--warm-cream) 0%,
        var(--blush) 50%,
        var(--warm-cream-dark) 100%
    );
    background-size: 100% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.header-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.site-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--medium-text);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== Contact Section ===== */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--coral-orange);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--gradient-sunset);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
    border-radius: var(--radius-sm);
}

.email-link:hover {
    color: var(--deep-coral);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.email-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--peach);
}

.email-icon {
    flex-shrink: 0;
    transition: transform var(--transition-bounce);
}

.email-link:hover .email-icon {
    transform: scale(1.1) rotate(-5deg);
}

.copy-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--dusty-rose);
    background: transparent;
    border-radius: var(--radius-round);
    color: var(--dusty-rose);
    cursor: pointer;
    transition: all var(--transition-base);
}

.copy-email-btn:hover {
    background: var(--dusty-rose);
    color: white;
    transform: scale(1.05);
}

.copy-email-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--peach);
}

.copy-email-btn:active {
    transform: scale(0.95);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--medium-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    color: var(--dusty-rose);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-text);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    box-shadow: 0 10px 40px var(--shadow-hover);
    z-index: var(--z-toast);
    opacity: 0;
    transition: all var(--transition-slow);
}

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

.toast svg {
    color: #4CAF50;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 1800px;
    margin: 0 auto;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--dark-text);
    margin-bottom: var(--space-3xl);
    position: relative;
    display: inline-block;
    width: 100%;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-sunset);
    border-radius: var(--radius-sm);
}

/* ===== Masonry Grid ===== */
.masonry-grid {
    columns: 1;
    column-gap: var(--space-lg);
}

@media (min-width: 540px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 900px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        columns: 4;
    }
}

/* ===== Gallery Items ===== */
.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--warm-cream-dark);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all var(--transition-slow);
}

.gallery-item:hover .image-wrapper {
    box-shadow: 0 12px 40px var(--shadow-hover);
    transform: translateY(-4px);
}

/* ===== Image Skeleton Loading ===== */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-shimmer);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
    z-index: 1;
}

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

.gallery-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
    position: relative;
    z-index: 2;
    opacity: 0;
}

.gallery-image.loaded {
    opacity: 1;
}

.gallery-image.loaded + .image-skeleton,
.gallery-image.loaded ~ .image-skeleton {
    display: none;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Focus states for accessibility */
.gallery-item:focus {
    outline: none;
}

.gallery-item:focus .image-wrapper {
    box-shadow: 0 0 0 4px var(--coral-orange), 0 12px 40px var(--shadow-hover);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-lightbox);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.lightbox[hidden] {
    display: none;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.lightbox-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-slow);
}

.lightbox.active .lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Loader */
.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dusty-rose);
    border-top-color: var(--coral-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.lightbox-image.loaded ~ .lightbox-loader {
    display: none;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-round);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--coral-orange);
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-round);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.lightbox-prev {
    left: var(--space-lg);
}

.lightbox-next {
    right: var(--space-lg);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--coral-orange);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
}

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.lightbox-current {
    color: white;
    font-weight: 600;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--gradient-sunset);
    border: none;
    border-radius: var(--radius-round);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-header);
}

.back-to-top:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px white, 0 8px 30px var(--shadow-hover);
}

.back-to-top:active {
    transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    background: linear-gradient(180deg, var(--warm-cream-dark) 0%, var(--blush) 100%);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    color: var(--medium-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.footer-heart::before {
    content: '\2665';
    color: var(--coral-orange);
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.footer-year {
    color: var(--dusty-rose);
    font-size: 0.85rem;
    margin-top: var(--space-sm);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .gallery-item {
        opacity: 1;
        transform: none;
    }
}

/* ===== Print Styles ===== */
@media print {
    .scroll-progress,
    .grain-overlay,
    .scroll-indicator,
    .toast,
    .lightbox,
    .back-to-top,
    .copy-email-btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .header {
        min-height: auto;
        padding: 2rem;
        background: none;
        animation: none;
    }

    .site-title {
        -webkit-text-fill-color: var(--dark-text);
        background: none;
    }

    .email-link::after {
        display: none;
    }

    .masonry-grid {
        columns: 2;
    }

    .gallery-item {
        break-inside: avoid;
        page-break-inside: avoid;
        opacity: 1;
        transform: none;
    }

    .image-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow-hover: rgba(0, 0, 0, 0.5);
    }

    .site-title {
        -webkit-text-fill-color: var(--dark-text);
        background: none;
    }

    .email-link {
        text-decoration: underline;
    }
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }

    .header {
        padding: var(--space-lg);
        min-height: 100svh; /* Use small viewport height for mobile */
    }

    .site-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .site-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-prev {
        left: var(--space-sm);
    }

    .lightbox-next {
        right: var(--space-sm);
    }

    .lightbox-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 48px;
        height: 48px;
    }

    .lightbox-content {
        padding: var(--space-md);
    }

    .lightbox-counter {
        bottom: var(--space-md);
        font-size: 0.85rem;
    }

    .back-to-top {
        right: var(--space-md);
        bottom: var(--space-md);
        width: 48px;
        height: 48px;
    }

    .gallery-section {
        padding: var(--space-xl) var(--space-md);
    }

    .gallery-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-xl);
    }

    .masonry-grid {
        column-gap: var(--space-md);
    }

    .gallery-item {
        margin-bottom: var(--space-md);
    }

    .contact-section {
        flex-direction: column;
        gap: var(--space-md);
    }

    .email-link {
        font-size: 0.95rem;
        padding: var(--space-md);
        background: rgba(255, 255, 255, 0.5);
        border-radius: var(--radius-lg);
    }

    .copy-email-btn {
        width: 48px;
        height: 48px;
    }

    .scroll-indicator {
        bottom: var(--space-lg);
    }

    .scroll-text {
        font-size: 0.75rem;
    }

    .footer {
        padding: var(--space-xl) var(--space-md);
    }

    .toast {
        left: var(--space-md);
        right: var(--space-md);
        transform: translateY(100px);
        width: auto;
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* ===== Small Mobile (iPhone SE, etc) ===== */
@media (max-width: 380px) {
    .site-title {
        font-size: 1.75rem;
    }

    .site-subtitle {
        font-size: 0.75rem;
    }

    .email-link {
        font-size: 0.85rem;
    }

    .gallery-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) {
    /* Remove hover effects that don't work on touch */
    .gallery-item:hover .image-wrapper {
        transform: none;
        box-shadow: 0 4px 20px var(--shadow-color);
    }

    .gallery-item:hover .gallery-image {
        transform: none;
        filter: none;
    }

    /* Disable glow on touch - use active state instead */
    .gallery-item .image-wrapper::before {
        display: none;
    }

    .gallery-item:hover .image-wrapper {
        box-shadow: 0 4px 20px var(--shadow-color);
    }

    /* Active state for touch feedback */
    .gallery-item:active .image-wrapper {
        transform: scale(0.98);
        box-shadow: 0 2px 10px var(--shadow-color);
    }

    .email-link:hover::after {
        transform: scaleX(0);
    }

    .email-link:active {
        background: rgba(232, 115, 74, 0.1);
    }

    .lightbox-nav:hover,
    .lightbox-close:hover {
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
    }

    .lightbox-close:hover {
        transform: none;
    }

    /* Better touch targets */
    .lightbox-nav:active,
    .lightbox-close:active {
        background: rgba(255, 255, 255, 0.3);
    }

    .copy-email-btn:active {
        transform: scale(0.95);
        background: var(--dusty-rose);
        color: white;
    }

    .back-to-top:active {
        transform: scale(0.95);
    }
}

/* ===== Landscape Mobile ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        min-height: auto;
        padding: var(--space-lg) var(--space-xl);
    }

    .scroll-indicator {
        display: none;
    }

    .lightbox-image-container {
        max-height: 80vh;
    }

    .lightbox-nav {
        top: 50%;
    }
}

/* ===== Focus-visible for keyboard navigation ===== */
.gallery-item:focus-visible .image-wrapper {
    box-shadow: 0 0 0 4px var(--coral-orange), 0 12px 40px var(--shadow-hover);
}

/* ===== Additional Aesthetic Touches ===== */

/* Subtle image overlay on hover */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(232, 115, 74, 0.1) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    border-radius: var(--radius-lg);
    z-index: 3;
}

.gallery-item:hover .image-wrapper::after {
    opacity: 1;
}

/* Staggered animation delays for initial load */
.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }
.gallery-item:nth-child(7) { transition-delay: 0.35s; }
.gallery-item:nth-child(8) { transition-delay: 0.4s; }

/* ===== CUSTOM CURSOR ===== */

/* Custom cursor - simple static circle */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--coral-orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    a, button, .gallery-item {
        cursor: none;
    }
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .custom-cursor {
        display: none !important;
    }
}

/* ===== GLOW EFFECTS ON HOVER ===== */

/* Beautiful sunset glow on image hover */
.gallery-item .image-wrapper {
    position: relative;
}

.gallery-item .image-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(
        135deg,
        var(--coral-orange) 0%,
        var(--sunset-orange) 25%,
        var(--dusty-rose) 50%,
        var(--soft-pink) 75%,
        var(--coral-orange) 100%
    );
    border-radius: calc(var(--radius-lg) + 4px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(12px);
    background-size: 200% 200%;
    animation: glowPulse 3s ease infinite paused;
}

.gallery-item:hover .image-wrapper::before {
    opacity: 0.7;
    animation-play-state: running;
}

@keyframes glowPulse {
    0%, 100% {
        background-position: 0% 50%;
        filter: blur(12px);
    }
    50% {
        background-position: 100% 50%;
        filter: blur(16px);
    }
}

/* Extra glow layer for intensity */
.image-wrapper {
    position: relative;
    z-index: 1;
}

.gallery-item:hover .image-wrapper {
    box-shadow:
        0 12px 40px var(--shadow-hover),
        0 0 30px rgba(232, 115, 74, 0.3),
        0 0 60px rgba(212, 165, 165, 0.2);
}

/* ===== EXTRA POLISH ===== */

/* Title shimmer effect on hover */
.site-title {
    position: relative;
    background-size: 200% auto;
    animation: titleShimmer 4s ease infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Email link glow */
.email-link:hover {
    text-shadow: 0 0 20px rgba(232, 115, 74, 0.4);
}

/* Copy button glow */
.copy-email-btn:hover {
    box-shadow: 0 0 20px rgba(212, 165, 165, 0.5);
}

/* Back to top button glow */
.back-to-top:hover {
    box-shadow:
        0 8px 30px var(--shadow-hover),
        0 0 30px rgba(232, 115, 74, 0.4);
}

/* Lightbox nav glow */
.lightbox-nav:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Gallery title underline glow */
.gallery-title::after {
    box-shadow: 0 0 20px rgba(232, 115, 74, 0.5);
}

/* Smooth text rendering for title */
.site-title,
.gallery-title {
    text-shadow: 0 2px 10px rgba(62, 39, 35, 0.1);
}

/* Subtle hover scale on scroll indicator */
.scroll-indicator:hover .scroll-arrow {
    transform: scale(1.2);
}

/* Toast glow */
.toast.show {
    box-shadow:
        0 10px 40px var(--shadow-hover),
        0 0 30px rgba(62, 39, 35, 0.2);
}

/* Image loaded smooth glow transition */
.gallery-image.loaded {
    animation: imageReveal 0.6s ease forwards;
}

@keyframes imageReveal {
    0% {
        opacity: 0;
        filter: brightness(1.2) blur(5px);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

/* Lightbox image glow */
.lightbox.active .lightbox-image.loaded {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(232, 115, 74, 0.1);
}

/* Pulsing scroll progress */
.scroll-progress {
    box-shadow: 0 0 10px rgba(232, 115, 74, 0.5);
}

/* Footer heart glow */
.footer-heart::before {
    text-shadow: 0 0 10px rgba(232, 115, 74, 0.6);
}
