@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,600;0,800;1,400&family=Courier+Prime:wght@400;700&display=swap');

@font-face {
    font-family: 'Roslindale Display';
    font-style: normal;
    src: local('Roslindale Variable Display Regular'), url('https://ayfilms.uk/fonts/RoslindaleVariableDisplay.woff') format('woff');
}

@font-face {
    font-family: 'Roslindale Condensed';
    font-style: normal;
    src: local('Roslindale Variable Display Condensed Bold'), url('https://ayfilms.uk/fonts/RoslindaleVariableCondensed.woff') format('woff');
}

/* ─────────────────────────────────────────────
   Design Tokens — Darkroom / Film Photography
   ───────────────────────────────────────────── */
:root {
    --bg: #0e0d0b;
    --bg-card: rgba(18, 16, 13, 0.92);
    --text-primary: #f0ebe2;
    --text-secondary: rgba(240, 235, 226, 0.45);
    --text-muted: rgba(240, 235, 226, 0.25);

    --amber: oklch(0.6652 0.1967 353.05);
    --amber-glow: rgba(200, 132, 42, 0.15);
    --amber-dim: rgba(200, 132, 42, 0.06);

    --paper: #faf8f3;
    --paper-warm: #f2ede4;

    --border: rgba(240, 235, 226, 0.1);
    --border-hover: rgba(240, 235, 226, 0.3);

    --ff-base: 'Inter', sans-serif;
    --ff-mono: 'Courier Prime', monospace;
    --ff-serif: 'Roslindale Condensed', serif;

    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ─────────────────────────────────────────────
   Reset & Document Configurations
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    box-sizing: border-box;
}

html {
    /* Required standard settings for seamless Lenis integration */
    scroll-behavior: initial;
}

html,
body {
    min-height: 100vh;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--ff-base);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    cursor: pointer !important;
    text-decoration: none;
    pointer-events: all !important;
}

/* ─────────────────────────────────────────────
   Background layers
   ───────────────────────────────────────────── */
.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(8, 6, 4, 0.75) 100%),
        linear-gradient(180deg, rgba(14, 10, 4, 0.5) 0%, transparent 30%, transparent 70%, rgba(14, 10, 4, 0.5) 100__);
}

.grain-overlay {
    position: fixed;
    inset: 0;
    background: url('https://ayfilms.uk/images/grain.gif');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* ─────────────────────────────────────────────
   Film Strip Decorations
   ───────────────────────────────────────────── */
.film-strip {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.film-strip--left {
    left: 0;
}

.film-strip--right {
    right: 0;
}

.film-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.film-strip--right::before {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.film-holes {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    height: 100%;
    justify-content: space-around;
}

.film-hole {
    width: 12px;
    height: 9px;
    border-radius: 2px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Main Container (Polaroid Structure)
   ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 520px;
    padding: 40px 20px 20px 20px;
    /* Reduced bottom padding to handle the absolute HUD */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 9999;

    /* White card Polaroid frames boundaries */
    border: 10px solid var(--text-primary);
    border-bottom: 65px solid var(--text-primary);
    backdrop-filter: blur(8px);
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    background-image: url(../images/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.4) contrast(1.1);
}

/* ─────────────────────────────────────────────
   Polaroid Bottom Chin HUD
   ───────────────────────────────────────────── */
.polaroid-hud {
    position: absolute;
    bottom: -37px;
    /* Centers layout nicely inside the 65px bottom border */
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
}

/* Deep charcoal stamped-ink styling execution for legibility over white frame */
.polaroid-hud .hud-label {
    font-family: var(--ff-base);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1917;
    font-weight: 700;
}

.polaroid-hud .hud-sep {
    font-size: 8px;
    color: var(--amber);
    margin: 0 4px;
}

.polaroid-hud .clock-display {
    color: #1a1917 !important;
    letter-spacing: 0.25em !important;
}

.hud-group {
    display: flex;
    align-items: center;
}

/* Legacy HUD Class Clean-Up Fallbacks */
.hud-bar {
    display: none;
}

/* ─────────────────────────────────────────────
   Profile Section
   ───────────────────────────────────────────── */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    margin-top: 20px;
    /* Gives balanced padding at top since top HUD bar is removed */
}

.profile-image-container {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    position: relative;
}

.shutter-ring {
    position: absolute;
    inset: -8px;
    animation: shutterSpin 20s linear infinite;
}

@keyframes shutterSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.shutter-svg {
    width: 100%;
    height: 100%;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('https://dash.ayfilms.uk/storage/avatars/IA9gqK942cUFSiBCbwrrrmNBdL06MDGQmeBhWEzr.jpg');
    background-size: cover;
    background-position: center;
    outline: 1.5px solid rgba(200, 132, 42, 0.4);
    outline-offset: 3px;
    filter: saturate(0.9) contrast(1.05);
}

.profile-logo {
    width: 200px;
    max-width: 75%;
    margin: 0 auto 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.profile-bio {
    font-family: var(--ff-base);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--text-secondary);
}

.bio-sep {
    font-size: 6px;
    color: var(--amber);
    vertical-align: middle;
    margin: 0 2px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 22px;
}

.social-icons-row a {
    color: var(--text-primary);
    font-size: 18px;
    transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.social-icons-row a:hover {
    color: var(--amber);
    transform: translateY(-3px) scale(1.15);
}

/* ─────────────────────────────────────────────
   Links Section
   ───────────────────────────────────────────── */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    /* Soft space buffer above chin line */
}

.social-link {
    font-family: var(--ff-base);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    padding: 15px 20px;
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--amber-dim);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.social-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--amber);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s var(--ease);
    z-index: 1;
}

.social-link:hover {
    border-color: var(--border-hover);
    background: rgba(200, 132, 42, 0.06);
    transform: translateX(4px);
    color: var(--text-primary);
}

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

.social-link:hover::after {
    transform: scaleY(1);
}

.link-icon {
    color: var(--text-primary);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.3s ease;
    width: 18px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.social-link:hover .link-icon {
    color: var(--amber);
}

.link-title {
    flex: 1;
    position: relative;
    z-index: 2;
}

.link-arrow {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), color 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-link:hover .link-arrow {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--amber);
}

/* ─────────────────────────────────────────────
   Responsive Viewports
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .film-strip {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 24px 16px 12px 16px;
    }

    .polaroid-hud {
        left: 4px;
        right: 4px;
        padding: 0 4px;
    }

    .polaroid-hud .hud-label {
        font-size: 8px;
        letter-spacing: 0.08em;
    }
}

@media (min-width: 900px) {
    .film-strip {
        width: 36px;
    }

    .film-hole {
        width: 14px;
        height: 11px;
    }
}