/* CSS Variables & Color Palettes */
:root {
    /* Base Colors */
    --black: #050308;
    --white: #F8F8F8;
    --base-white: #E5E5E5;
    --gray: #FFFFFF50;

    /* White-Gold Palette (Default) */
    --rose-pink-50: #ffecf3;
    --rose-pink-100: #ffd9e7;
    --rose-pink-300: #ff91b8;
    --rose-pink-500: #e85994;
    --rose-pink-700: #8a3458;
    --lavender-50: #f3e7ff;
    --lavender-100: #e8d0ff;
    --lavender-300: #c190f8;
    --lavender-500: #9350d1;
    --lavender-700: #582a88;
    --royal-purple-50: #eadbff;
    --royal-purple-100: #d6b8ff;
    --royal-purple-300: #9e64e8;
    --royal-purple-500: #6d33a1;
    --royal-purple-700: #421e63;
    --indigo-50: #dadcff;
    --indigo-100: #b5baff;
    --indigo-300: #7b83f0;
    --indigo-500: #4d57c2;
    --indigo-700: #2b337c;
    --antique-gold-50: #fdfbf0;
    --antique-gold-100: #fbf7e2;
    --antique-gold-300: #f1e0a8;
    --antique-gold-500: #d8b96f;
    --antique-gold-700: #8e7a42;
    --white-gold-pink-50: #fdf8f9;
    --white-gold-pink-100: #fcf1f4;
    --white-gold-pink-300: #f8e1e7;
    --white-gold-pink-500: #e0c8d1;
    --white-gold-pink-700: #a29198;

    /* Blog palette */


    /* from old style.css */
    --base-black: #0a0a0a;

    --accent-pink: #f1bef3; /* A dusty, rosy pink */
    --accent-lavender: #a08dc9;
    --accent-purple: #4a2d82;
    --accent-gold: #e0c781; /* Antique gold */
    --accent-rose-gold: #b76e79;
    --title-font: 'Cormorant Garamond', serif;
    --body-font: 'Lora', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--base-black);
    color: var(--base-white);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* --- Background --- */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.background::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.background {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.background-image {
    position: absolute;
    background-image: url("./img/background.png"), url("https://placehold.co/1920x1080/000000/F8F8F8?text=Image+Unavailable");
    aspect-ratio: 1200 / 1600; /* width / height of your image */
    width: 100vw;
    background-size: 100% 100%;
    top: -50%;
    will-change: transform;
}

.background-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--black), transparent);
}

/*
 --- Static Overlay ---
 */
.static-overlay {
    opacity: 0.4;
    will-change: opacity;
    animation: color-wave 240s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* --- Main Content --- */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    padding: 2rem 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 3, 8, 0.85) 0%,
        rgba(5, 3, 8, 1.00) 2%,
        rgba(5, 3, 8, 1.00) 20%,
        rgba(5, 3, 8, 0.95) 70%,
        rgba(5, 3, 8, 0.4) 85%,
        transparent 100%
    );
}

.main-content {
    padding: 8rem 1rem;
}

/* --- Router content area --- */
#content-area {
    width: 100%;
    /* opacity is animated by router.js */
    transition: opacity 0.3s ease;
}

.dynamic-veil {
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 70%,
        rgba(0, 0, 0, 0.6) 90%,
        rgba(0, 0, 0, 0.2) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 70%,
        rgba(0, 0, 0, 0.6) 90%,
        rgba(0, 0, 0, 0.2) 100%
    );
    will-change: transform;
}

/* --- Scroll Padding --- */
.scroll-padding {
    height: 80vh;
}

/* --- Canvas & Cursor --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.cursor-light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.05) 5%, transparent 40%);
}


/* --- Blog Items (Moved from blog.css) --- */
.blog-item {
    text-align: center;
    padding: 2.5rem 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.blog-item h2 {
    font-family: var(--title-font); /* Added font-family */
    font-weight: 300;
    margin-bottom: 0.4em;
}

.blog-item a {
    text-decoration: none;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gilded-text {
    color: var(--white-gold-pink-300);
    background: linear-gradient(90deg, var(--white-gold-pink-300), var(--antique-gold-300), var(--white-gold-pink-300));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gildedShimmer 8s linear infinite;
}

@keyframes gildedShimmer {
    to {
        background-position: 200% center;
    }
}

.blog-item a:hover {
    transform: scale(1.05) translateY(-5px);
    text-shadow: 0 0 10px var(--antique-gold-300);
    animation: none;
}

.blog-item a:hover .gilded-text {
     background-position: 0% center;
     animation: none;
}

.blog-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--white-gold-pink-100) 0%, var(--antique-gold-500) 50%, var(--white-gold-pink-100) 100%);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.blog-item a:hover::after {
    width: 100%;
}

.blog-list-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5em; /* Added margin-top */
    margin-bottom: 0;
    text-align: center;
}

#top-left-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.13;
    z-index: 1;
    transform-origin: top left;
    transform: scale(0.35);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%),
                linear-gradient(to left, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%),
                        linear-gradient(to left, black 0%, transparent 100%);
}


