:root {
    /* Colors */
    --clr-bg: #0d041a; /* Deep purple base */
    --clr-accent: #dca3ff; /* Light purple */
    --clr-accent-dim: rgba(220, 163, 255, 0.25);
    --clr-purple: #9d4edd; /* Rich purple */
    --clr-text: #ffffff;
    --clr-text-muted: #cdb4db;
    --clr-card-bg: rgba(60, 20, 90, 0.15);
    --clr-card-border: rgba(220, 163, 255, 0.2);
    
    /* Typography */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Selection */
::selection {
    background: var(--clr-accent);
    color: var(--clr-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent);
}

/* --- Global Utilities --- */
a {
    text-decoration: none;
    color: inherit;
}

.accent {
    color: var(--clr-accent);
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--clr-accent-dim);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 0.15s ease-out;
}

.cursor.hovered {
    transform: translate(-50%, -50%) scale(1.5);
}
.cursor-follower.hovered {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--clr-accent-dim);
    border-color: var(--clr-accent);
}

/* --- Background layers --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(220, 163, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 163, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    animation: grid-pan 20s linear infinite;
}
@keyframes grid-pan {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(13, 4, 26, 0) 10%, rgba(13, 4, 26, 0.95) 90%);
    z-index: -1;
    pointer-events: none;
}

/* --- Apple-Style Intro --- */
.intro-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0d041a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}
.intro-word {
    position: absolute;
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 300;
    letter-spacing: 12px;
    color: #fff;
    opacity: 0;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}
.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
}
.pulse {
    width: 8px; height: 8px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent);
    animation: flash 2s infinite;
}
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    position: relative;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.profile-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}
.profile-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%; height: 110%;
    background: conic-gradient(from 0deg, var(--clr-purple), var(--clr-accent), var(--clr-purple));
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.7;
    animation: spin 6s linear infinite;
}
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.glitch-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    background: linear-gradient(135deg, #dca3ff 20%, #9d4edd 50%, #e0b0ff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(220, 163, 255, 0.3);
}
/* Optional simple pseudo-glitch effect on hover can be done here */

.roles-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.role-badge {
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}
.role-badge:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.accent-badge {
    background: var(--clr-accent-dim);
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    text-shadow: 0 0 10px rgba(220, 163, 255, 0.6);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 60px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
}
.mouse {
    width: 26px; height: 42px;
    border: 2px solid var(--clr-text-muted);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px; height: 8px;
    background: var(--clr-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* --- Links Section --- */
.links-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 60px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
}
.divider {
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, var(--clr-accent), transparent);
    margin-top: 15px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.link-card {
    position: relative;
    background: var(--clr-card-bg);
    border: 1px solid var(--clr-card-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px 0 rgba(100, 40, 160, 0.1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer; /* Changed to pointer to ensure it registers as a button natively */
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 100;
}
.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, var(--clr-accent-dim) 0%, transparent 80%);
    opacity: 0;
    transition: 0.4s;
    z-index: 0;
}

.link-card:hover {
    border-color: rgba(220, 163, 255, 0.4);
    box-shadow: 0 20px 40px rgba(100, 40, 160, 0.4), inset 0 0 30px rgba(220, 163, 255, 0.1);
}
.link-card:hover .card-bg {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.icon-large {
    font-size: 2.5rem;
    color: var(--clr-accent);
    text-shadow: 0 0 20px rgba(220, 163, 255, 0.5);
    transition: 0.3s;
    transform: translateZ(20px);
}

.link-card:hover .icon-large {
    transform: scale(1.1);
}

.card-text h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 5px;
    transform: translateZ(15px);
}
.card-text p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    transform: translateZ(10px);
}

.arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.4s;
}
.link-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--clr-accent);
}

/* --- Footer --- */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 100px;
}
.footer-content {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
}

/* Hidden init state for animations */
.mask-reveal {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .roles-wrapper { padding: 0 20px; }
    .hero { padding-top: 120px; }
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
    .link-card { cursor: pointer; }
}

/* --- Interactive Effects --- */
.main-container {
    transform-style: preserve-3d;
    perspective: 1200px;
    width: 100%;
    min-height: 100vh;
}

.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 3px solid var(--clr-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}
