:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Anmol Red Elite Palette */
    --accent-red: #ff0000;
    --accent-red-muted: rgba(255, 0, 0, 0.15);

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Easing for high-end UI */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
    background-color: var(--accent-red);
    color: white;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow-x: hidden;
    /* Initial state for load fade */
    opacity: 0;
    transition: opacity 1.2s var(--ease-out-expo);
}

/* Atmospheric Background Elements */
/* Removed red aurora for pure black background */

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

body.loaded {
    opacity: 1;
}

.container {
    max-width: 600px;
    width: 100%;
}

.hero {
    margin-bottom: 4rem;
}

.name {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    
    /* Liquid Silver Shimmer */
    background: linear-gradient(
        110deg,
        var(--text-secondary) 0%,
        var(--text-secondary) 40%,
        var(--text-primary) 50%,
        var(--text-secondary) 60%,
        var(--text-secondary) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: liquidShimmer 6s linear infinite;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pulsating Light from Icon */
.app-icon.pulsing {
    position: relative;
}

.app-icon.pulsing svg {
    color: var(--accent-red);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 4px var(--accent-red-muted));
}

.app-icon.pulsing::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    border-radius: 50%;
    background-color: var(--accent-red);
    z-index: 1;
    animation: icon-light-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes icon-light-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    70% { transform: scale(2.8); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem;
    margin: -0.5rem; /* increase hit area */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.social-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.social-links a:hover {
    color: var(--accent-red);
    opacity: 1;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.apps-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
}

.app-item {
    border-bottom: 1px solid var(--border-color);
}

.app-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding-inline: 1.5rem;
    margin-inline: -1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.app-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        var(--accent-red-muted),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
    z-index: 0;
}

/* Subtle scaling on hover to give tactile feel */
.app-link:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.app-link:hover::before {
    opacity: 1;
}

.app-info-wrapper, .arrow {
    position: relative;
    z-index: 1;
}

.app-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s var(--ease-out-expo);
    flex-shrink: 0;
}

.app-link:hover .app-icon {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.2);
    color: var(--accent-red);
    transform: scale(1.05);
}

.app-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.25;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.app-name {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.app-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.arrow {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translate(-10px, 10px);
}

.app-link:hover .arrow {
    color: var(--accent-red);
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 3rem 1.5rem;
    }

    .app-link {
        padding-inline: 1rem;
        margin-inline: -1rem;
    }
}

/* --- Scroll Reveal Animations --- */
.reveal, .reveal-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Stagger calculation relies on JS intersection observer, but we can do a generic one if we want. 
   Here, we just rely on intersection observer triggering them when they enter view. */
.reveal.visible, .reveal-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}