/* Custom styling and components for Nangchen Tashi Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Serif+Tibetan:wght@400;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Custom Tibetan Font — ShangshungSgoba Khyungpo */
@font-face {
    font-family: 'Shangshung Khyungpo';
    src: url('../fonts/ShangshungSgoba-Khyungpo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Material Symbols Integration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(115, 119, 128, 0.2);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(115, 119, 128, 0.4);
}

/* Hidden scrollbar utility (keeps scroll functionality) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(252, 248, 252, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(195, 198, 209, 0.3);
}

.dark .glass-card {
    background: rgba(10, 11, 16, 0.7);
    border: 1px solid rgba(221, 180, 92, 0.1);
}

/* Card hover effects removed for clean look */

/* Ambient Backlit Shadows for Dark Mode Devices */
.mockup-shadow {
    box-shadow: 0 50px 100px -20px rgba(0, 33, 71, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.2);
}

.dark .mockup-shadow {
    box-shadow: 0 50px 100px -20px rgba(0, 33, 71, 0.4), 0 0 80px -10px rgba(221, 180, 92, 0.15);
}

/* Parallax card variable states */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Custom Text inputs with bottom border animation */
.minimal-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(115, 119, 128, 0.3) !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transition: border-color 0.3s ease;
}

.minimal-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: #001e40 !important; /* Primary light */
}

.dark .minimal-input:focus {
    border-bottom-color: #DDB45C !important; /* Gold dark */
}

/* Popup animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================== */
/* TAPPABLE STRIP IMAGES — zoom hint on hover  */
/* =========================================== */
.card-strip-track img:hover,
.auto-slide-track img:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 14px 30px -10px rgba(0, 30, 64, 0.4),
        0 4px 8px rgba(0, 30, 64, 0.1);
    filter: brightness(1.06);
}
.dark .card-strip-track img:hover,
.dark .auto-slide-track img:hover {
    box-shadow:
        0 14px 30px -10px rgba(0, 0, 0, 0.65),
        0 4px 8px rgba(0, 0, 0, 0.35);
    filter: brightness(1.08);
}

/* =========================================== */
/* LIGHTBOX GALLERY                            */
/* =========================================== */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#lightbox-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
#lightbox-overlay .lb-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}
#lightbox-overlay .lb-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.8);
    user-select: none;
    -webkit-user-select: none;
}
#lightbox-overlay .lb-close,
#lightbox-overlay .lb-prev,
#lightbox-overlay .lb-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
}
#lightbox-overlay .lb-close:hover,
#lightbox-overlay .lb-prev:hover,
#lightbox-overlay .lb-next:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}
#lightbox-overlay .lb-close { top: 20px; right: 20px; }
#lightbox-overlay .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
#lightbox-overlay .lb-next { right: 20px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
#lightbox-overlay .lb-prev:hover,
#lightbox-overlay .lb-next:hover { transform: translateY(-50%) scale(1.05); }
#lightbox-overlay .lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
    #lightbox-overlay .lb-stage { padding: 60px 16px; }
    #lightbox-overlay .lb-prev { left: 8px; }
    #lightbox-overlay .lb-next { right: 8px; }
}

/* =========================================== */
/* SHARE BUTTONS                               */
/* =========================================== */
.share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(0, 30, 64, 0.05);
    border: 1px solid rgba(0, 30, 64, 0.1);
    color: rgba(0, 30, 64, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-btn:hover {
    background: rgba(0, 30, 64, 0.1);
    color: #001e40;
    border-color: rgba(0, 30, 64, 0.2);
}
.share-btn:active {
    transform: scale(0.96);
}
.dark .share-btn {
    background: rgba(221, 180, 92, 0.06);
    border-color: rgba(221, 180, 92, 0.15);
    color: rgba(221, 180, 92, 0.85);
}
.dark .share-btn:hover {
    background: rgba(221, 180, 92, 0.12);
    color: #DDB45C;
    border-color: rgba(221, 180, 92, 0.28);
}
.share-btn .material-symbols-outlined {
    font-size: 16px;
}
/* Share button feedback toast */
.share-feedback {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 8px;
    background: #001e40;
    color: white;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(0,30,64,0.5);
    animation: shareFeedbackPop 1.8s ease-out forwards;
    pointer-events: none;
}
.dark .share-feedback {
    background: #DDB45C;
    color: #001e40;
}
@keyframes shareFeedbackPop {
    0% { opacity: 0; transform: translateX(-50%) translateY(4px); }
    15%, 70% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}
