:root {
    /* Color Palette */
    --bg-dark: #13111c;
    --bg-gradient-light: #2a2235;
    --text-primary: #ededed;
    --text-secondary: #8a8a93;
    --accent: #d2a98e;
    --accent-glow: rgba(210, 169, 142, 0.15);
    --surface: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-dark);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, var(--bg-gradient-light) 0%, var(--bg-dark) 100%);
    background-color: var(--bg-dark);
    z-index: -2;
    pointer-events: none;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    /* Custom cursor hide default */
    cursor: none;
    display: flex;
    justify-content: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    cursor: none;
    /* ensure custom cursor works on links */
    color: inherit;
    text-decoration: none;
}

/* --- Layout & Structure --- */

.container {
    width: 100%;
    max-width: 800px;
    padding: 4rem 2rem;
    z-index: 10;
    position: relative;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Typography System --- */

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 .italic {
    font-style: italic;
    color: var(--accent);
    padding-left: 2rem;
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    width: fit-content;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite ease-in-out;
}

/* --- Featured Links --- */

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    margin-top: 1rem;
}

.featured-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: left;
}

.featured-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 169, 142, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.featured-link:hover {
    border-color: rgba(210, 169, 142, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    color: var(--accent);
}

.featured-link:hover::before {
    transform: translateX(100%);
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.featured-link .link-title {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.featured-link .link-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.4;
}

.featured-link .link-arrow {
    position: relative;
    z-index: 1;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.featured-link:hover .link-arrow {
    transform: translate(6px, -6px);
}

/* --- Interactive Elements --- */

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.magnetic-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
    width: fit-content;
    transition: color 0.3s ease;
}

.magnetic-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.magnetic-btn:hover {
    color: var(--accent);
}

.magnetic-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Footer --- */

footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

/* --- Background Effects --- */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.02; /* Halved opacity to reduce composite overhead */
    z-index: 1;
    pointer-events: none;
    /* Basic noise pattern SVG encoded */
    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");
}

.blob {
    position: absolute;
    border-radius: 50%;
    /* Removed expensive filter: blur(100px) which lags mobile devices heavily */
    z-index: 0;
    opacity: 0.25; /* Adjusted for missing blur spread */
    animation: float 20s infinite ease-in-out alternate;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    bottom: 50px;
    left: -100px;
    animation-delay: -5s;
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(210, 169, 142, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, transform 0.1s ease-out;
}

/* Hover state for cursor */
.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid var(--accent);
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: var(--accent-glow);
    border-color: transparent;
}

/* --- Animations --- */

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(210, 169, 142, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(210, 169, 142, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(210, 169, 142, 0);
    }
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33% {
        transform: translate3d(30px, -50px, 0) scale(1.1);
    }

    66% {
        transform: translate3d(-20px, 20px, 0) scale(0.9);
    }

    100% {
        transform: translate3d(0, -30px, 0) scale(1.05);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .featured-link {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    body {
        cursor: auto;
        /* Revert cursor for mobile */
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on mobile */
    }

    h1 .italic {
        padding-left: 1rem;
    }

    .content {
        gap: 2.5rem;
    }
}