:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --text-primary: #e8e8f0;
    --text-secondary: #9090a8;
    --accent: #4df0e0;
    --accent-hover: #3dd4c8;
    --border: #2a2a3e;
    --radius: 12px;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.avatar-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
}

.avatar-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from var(--gradient-angle),
        #1a3a4a,
        #4df0e0,
        #2d5be3,
        #e84393,
        #2d5be3,
        #4df0e0,
        #1a3a4a
    );
    border-radius: 50%;
    animation: rotation 20s linear infinite;
}

.avatar-frame::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: var(--bg-primary);
    border-radius: 50%;
    overflow: hidden;
}

.glow-avatar {
    box-shadow: 0 0 20px rgba(77, 240, 224, 0.3), 0 0 40px rgba(45, 91, 227, 0.2);
    animation: avatar-glow 4s ease-in-out infinite alternate;
}

.hero-avatar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    clip-path: circle(52% at 50% 48%);
}

@keyframes avatar-glow {
    0% {
        box-shadow: 0 0 20px rgba(77, 240, 224, 0.3), 0 0 40px rgba(45, 91, 227, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(232, 67, 147, 0.3), 0 0 50px rgba(45, 91, 227, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(77, 240, 224, 0.4), 0 0 45px rgba(77, 240, 224, 0.2);
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    background: linear-gradient(
        90deg,
        #4df0e0,
        #2d5be3,
        #e84393,
        #2d5be3,
        #4df0e0
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 20s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #e84393;
    color: white;
}

.btn-primary:hover {
    background: #d63384;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Sections */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Embed Grid */
.embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.embed-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.embed-card iframe {
    display: block;
}

/* Link Grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.link-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    z-index: 1;
}

.link-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(77, 240, 224, 0.15);
}

.link-card-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.link-card-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Glow card animation */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.glow-card {
    position: relative;
    border: none;
    background: none;
    isolation: isolate;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    background: conic-gradient(
        from var(--gradient-angle),
        #1a3a4a,
        #4df0e0,
        #2d5be3,
        #e84393,
        #2d5be3,
        #4df0e0,
        #1a3a4a
    );
    border-radius: inherit;
    animation: rotation 20s linear infinite;
}

.glow-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--bg-card);
    border-radius: calc(var(--radius) - 2px);
}

.glow-card {
    box-shadow: 0 0 15px rgba(77, 240, 224, 0.15), 0 0 30px rgba(45, 91, 227, 0.1);
    transition: all 0.3s;
}

.glow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(77, 240, 224, 0.4), 0 0 50px rgba(232, 67, 147, 0.2);
}

@keyframes rotation {
    0% { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

/* Aehras page layout */
.aehras-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.aehras-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.aehras-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.aehras-featured {
    margin-bottom: 1.5rem;
}

.aehras-featured .embed-card {
    border-radius: var(--radius);
    overflow: hidden;
}

.aehras-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.aehras-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 1rem;
}

.aehras-socials a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.aehras-socials a:hover {
    color: var(--accent);
}

.link-pill {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.link-pill:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 240, 224, 0.15);
}

/* Footer */
.footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}
