/* CORE SETTINGS */
html, body {
    background-color: #000;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    overflow-x: hidden; 
}

body.intro-active {
    overflow: hidden !important;
}

/* INTRO ANIMATION */
#intro-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: visibility 0.1s 2s;
}

.shutter-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #000;
    z-index: 101;
    transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1);
    will-change: transform;
    border-bottom: 1px solid #111;
}

.shutter-top { 
    top: 0; 
    transform-origin: top; 
}

.shutter-bottom { 
    bottom: 0; 
    transform-origin: bottom; 
    border-top: 1px solid #111; 
}

.intro-content {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lens-ring-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.5);
    filter: blur(10px) grayscale(100%);
    animation: focusLens 2.5s ease-out forwards;
    background: #000;
}

.lens-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #f59e0b;
    border-right-color: #f59e0b;
    opacity: 0;
    animation: spinRing 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lens-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulseRing 2s infinite;
}

.intro-text {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    opacity: 0;
    letter-spacing: 0.2em;
    transform: translateY(20px);
    animation: fadeText 1s ease-out forwards 1s;
}

body.intro-finished .shutter-top { 
    transform: translateY(-100%); 
}

body.intro-finished .shutter-bottom { 
    transform: translateY(100%); 
}

body.intro-finished .intro-content { 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

body.intro-finished #intro-layer { 
    pointer-events: none; 
}

body.intro-finished .content-wrapper {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
}

/* BACKGROUND */
.lahore-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; 
    overflow: hidden;
}

.lahore-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 45s infinite alternate;
    opacity: 0.8; 
}

.lahore-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 10; 
    opacity: 0; 
    transform: scale(1.05);
    filter: brightness(0.5);
    transition: opacity 1.5s ease, transform 1.5s ease, filter 1.5s ease;
}

/* ANIMATIONS */
@keyframes focusLens {
    0% { opacity: 0; transform: scale(0.5); filter: blur(20px) grayscale(100%); }
    40% { opacity: 1; transform: scale(1.1); filter: blur(5px) grayscale(50%); }
    100% { opacity: 1; transform: scale(1); filter: blur(0) grayscale(0); box-shadow: 0 0 50px rgba(245, 158, 11, 0.3); }
}

@keyframes spinRing {
    0% { transform: rotate(-90deg) scale(0.8); opacity: 0; border-width: 0px; }
    40% { opacity: 1; border-width: 4px; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; border-width: 2px; box-shadow: 0 0 30px rgba(245, 158, 11, 0.2); }
}

@keyframes fadeText {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes welcome-float {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 20px rgba(245, 158, 11, 0.1); filter: brightness(1); }
    50% { transform: translateY(-10px) scale(1.02); box-shadow: 0 0 40px rgba(245, 158, 11, 0.3); filter: brightness(1.1); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 20px rgba(245, 158, 11, 0.1); filter: brightness(1); }
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.welcome-logo {
    animation: welcome-float 5s ease-in-out infinite;
}

.animate-scroll-left { 
    animation: scroll-left 40s linear infinite; 
}

.animate-scroll-right { 
    animation: scroll-right 45s linear infinite; 
}

.pause-on-hover:hover { 
    animation-play-state: paused; 
}

.animate-fade-in-up { 
    animation: fade-in-up 0.8s ease-out forwards; 
}

/* UI ELEMENTS */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 15, 17, 0.5); }
::-webkit-scrollbar-thumb { background: #666; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #888; }

.glass {
    background: rgba(20, 20, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(45, 45, 50, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.text-accent-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    transform: scale(1.02);
}

#imageModal { 
    transition: opacity 0.3s ease; 
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .lahore-bg img { animation: none; }
    .content-wrapper { opacity: 1; transform: none; filter: none; }
}
