/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content area transitions */
#content-area {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#content-area.fade-out {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

#content-area.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Profile header transitions */
#profile-header {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#profile-header.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

#profile-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu slide animation */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateX(-100%);
    opacity: 0;
}

#mobile-menu.show {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger animations for gallery items */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: slideUpFade 0.5s ease-out forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(n+10) { animation-delay: 0.5s; }

/* Image fade-in on load */
img {
    transition: opacity 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced button interactions */
button, a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, a:active {
    transform: scale(0.98);
}

/* Improved focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid rgb(99, 102, 241);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Nav button active state animation */
.nav-btn {
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover::before {
    opacity: 1;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* YouTube modal entrance animation */
.youtube-lightbox {
    animation: fadeIn 0.3s ease-out;
}

.youtube-lightbox-content {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Instagram post hover enhancement */
.instagram-post {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-post:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Back to top button */
#back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #27272a 25%, #3f3f46 50%, #27272a 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Photography Gallery Masonry Layout */
#photography-gallery {
    column-gap: 1rem;
}

#photography-gallery > a {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    page-break-inside: avoid;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#photography-gallery > a:hover {
    transform: translateY(-4px);
}

#photography-gallery > a > div {
    pointer-events: none;
}

/* lightGallery customizations */
.lg-backdrop {
    background: rgba(0, 0, 0, 0.95) !important;
}

.lg-sub-html {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem !important;
}

/* Hide download and zoom buttons */
.lg-download,
.lg-zoom,
.lg-icon.lg-download,
.lg-icon.lg-zoom {
    display: none !important;
}


/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Instagram scroll indicator */
.instagram-scroll-container {
    position: relative;
}

.scroll-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-pagination.visible {
    opacity: 1;
}

.pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-dot.active {
    width: 24px;
    border-radius: 3px;
    background-color: rgb(99, 102, 241);
}

.dark .pagination-dot {
    background-color: rgba(129, 140, 248, 0.3);
}

.dark .pagination-dot.active {
    background-color: rgb(129, 140, 248);
}

/* Photography Gallery */
.photography-gallery-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.photography-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* YouTube video player styles */
.youtube-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.youtube-thumbnail:hover {
    transform: scale(1.02);
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.youtube-thumbnail:hover img {
    transform: scale(1.08);
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.youtube-play-button:hover {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.youtube-play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 28px solid white;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 6px;
}

.youtube-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-lightbox.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
}

.youtube-lightbox-content {
    position: relative;
    width: 95vw;
    max-width: 1280px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.youtube-lightbox-header {
    position: relative;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-right: 4rem;
}

.youtube-lightbox-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 0, 0, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-lightbox-title {
    flex: 1;
    min-width: 0;
}

.youtube-lightbox-title h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.youtube-lightbox-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.youtube-lightbox-footer .youtube-lightbox-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.youtube-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.youtube-lightbox-btn-primary {
    background: #FF0000;
    color: white;
}

.youtube-lightbox-btn-primary:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.youtube-lightbox-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.youtube-lightbox-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.youtube-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.youtube-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .youtube-lightbox.active {
        padding: 0.5rem;
    }
    
    .youtube-lightbox-content {
        width: 100vw;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }
    
    .youtube-lightbox-header {
        padding: 0.75rem 1rem;
        padding-right: 3rem;
    }
    
    .youtube-lightbox-title {
        width: 100%;
        padding-right: 0;
    }
    
    .youtube-lightbox-title h3 {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .youtube-lightbox-footer {
        padding: 0.75rem 1rem;
    }
    
    .youtube-lightbox-btn {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        justify-content: center;
    }
    
    .youtube-lightbox-btn i {
        width: 14px;
        height: 14px;
    }
    
    .youtube-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
    
    #youtube-player-container {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 480px) {
    .youtube-lightbox-header {
        padding: 0.625rem 0.875rem;
        padding-right: 2.5rem;
    }
    
    .youtube-lightbox-title h3 {
        font-size: 0.9375rem;
    }
    
    .youtube-lightbox-footer {
        padding: 0.625rem 0.875rem;
    }
    
    .youtube-lightbox-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .youtube-lightbox-close {
        width: 28px;
        height: 28px;
    }
    
    .youtube-lightbox-close i {
        width: 16px;
        height: 16px;
    }
}

#youtube-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.youtube-lightbox iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

