/* ===== ROOT VARIABLES - IMPERIAL PURPLE PALETTE ===== */
:root {
    --imperial-purple: #4B0082;
    --royal-purple: #6A0DAD;
    --deep-purple: #5B0A91;
    --light-purple: #8B5FBF;
    --cream: #F5EFE0;
    --ivory: #FFFEF9;
    --warm-cream: #FFF8E7;
    --gold: #D4AF37;
    --dark-gold: #B8942C;
    --charcoal: #2C2C2C;
    --soft-grey: #E8E4DF;
    --shadow: rgba(75, 0, 130, 0.15);
    --glow: rgba(212, 175, 55, 0.5);
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.2s ease;
    color: var(--royal-purple);
    filter: drop-shadow(0 0 8px var(--glow));
    opacity: 0;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
}

.custom-cursor.active {
    opacity: 1;
}

.custom-cursor.hovering {
    transform: translate(-50%, -50%) rotate(-15deg) scale(1.2);
    color: var(--gold);
    filter: drop-shadow(0 0 12px var(--glow));
}

body {
    cursor: none;
}

a, button, .link-card, .experience-card, .substack-button {
    cursor: none !important;
}

/* Mobile: revert to default cursor */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    body, a, button, .link-card, .experience-card, .substack-button {
        cursor: auto !important;
    }
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--royal-purple));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 40%, #E8D5E8 100%);
    color: var(--charcoal);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== DECORATIVE COLUMNS ===== */
.column {
    position: fixed;
    width: 80px;
    height: 100vh;
    top: 0;
    background: linear-gradient(to bottom,
        var(--light-purple) 0%,
        var(--soft-grey) 5%,
        var(--soft-grey) 95%,
        var(--light-purple) 100%);
    box-shadow: inset 2px 0 4px var(--shadow), inset -2px 0 4px var(--shadow);
    z-index: 1;
    will-change: transform;
}

.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--royal-purple), var(--light-purple));
    clip-path: polygon(20% 0%, 80% 0%, 90% 30%, 85% 100%, 15% 100%, 10% 30%);
    box-shadow: 0 4px 8px var(--shadow);
}

.column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--royal-purple);
    box-shadow: 0 -2px 4px var(--shadow);
}

.column-left {
    left: 0;
}

.column-right {
    right: 0;
    transform: scaleX(-1);
}

/* ===== WREATH DECORATION ===== */
.wreath-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: wreathFadeIn 2s ease-in-out 0.5s forwards;
}

.wreath {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px var(--shadow));
    animation: wreathFloat 6s ease-in-out infinite;
}

@keyframes wreathFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes wreathFadeIn {
    to { opacity: 0.4; }
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    z-index: 10;
}

/* ===== HERO SECTION WITH WORDMARK ===== */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
}

.hero-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--royal-purple), transparent);
    margin: 0 auto 40px;
    animation: fadeInDown 1s ease-out;
}

.wordmark {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
    position: relative;
    display: inline-block;
}

.wordmark .letter {
    display: inline-block;
    color: var(--charcoal);
    text-shadow: 2px 2px 4px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.wordmark .letter::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.wordmark:hover .letter {
    letter-spacing: 12px;
    color: var(--royal-purple);
}

.wordmark:hover .letter::after {
    width: 80%;
}

.wordmark .name-space {
    display: inline-block;
    width: 30px;
}

.wordmark-underline {
    width: 0%;
    height: 2px;
    background: var(--gold);
    margin: 5px auto 30px;
    animation: underlineExpand 1.5s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
    to { width: 200px; }
}

.tagline {
    font-size: 1.2rem;
    color: var(--royal-purple);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.divider {
    margin: 40px 0;
    text-align: center;
}

.divider-ornament {
    font-size: 1.5rem;
    color: var(--gold);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite, rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BIO SECTION WITH HEADSHOT ===== */
.bio-section {
    background: rgba(255, 255, 255, 0.85);
    padding: 50px 40px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 12px 32px var(--shadow);
    border: 2px solid var(--soft-grey);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease, box-shadow 0.3s ease;
}

.bio-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio-section:hover {
    box-shadow: 0 16px 48px rgba(106, 13, 173, 0.25);
    border-color: var(--light-purple);
}

.bio-section::before,
.bio-section::after {
    content: '❦';
    position: absolute;
    top: -15px;
    font-size: 1.5rem;
    color: var(--gold);
    background: var(--ivory);
    padding: 0 15px;
}

.bio-section::before {
    left: 40px;
}

.bio-section::after {
    right: 40px;
}

.headshot {
    float: left;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 30px 20px 0;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--royal-purple), var(--gold)) border-box;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.4s ease;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(106, 13, 173, 0.3);
}

.bio-intro {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: var(--charcoal);
    line-height: 2;
}

.bio-intro strong {
    color: var(--royal-purple);
    font-weight: 700;
}

.bio-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #3C3C3C;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    margin: 80px 0;
    text-align: center;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--charcoal);
    margin-bottom: 50px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.experience-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid var(--soft-grey);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px var(--shadow);
    opacity: 0;
    transform: translateY(50px);
}

.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-card[data-card="1"] { transition-delay: 0.1s; }
.experience-card[data-card="2"] { transition-delay: 0.2s; }
.experience-card[data-card="3"] { transition-delay: 0.3s; }

.experience-card:hover {
    transform: translateY(-15px);
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(106, 13, 173, 0.3);
    background: rgba(255, 255, 255, 1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.experience-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.experience-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--royal-purple);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-subtitle {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 15px;
    font-size: 1rem;
}

.card-description {
    color: #5C5C5C;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-metric {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--royal-purple), var(--light-purple));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== SUBSTACK SECTION ===== */
.substack-section {
    margin: 80px 0;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.substack-section.visible {
    opacity: 1;
    transform: scale(1);
}

.substack-content {
    background: linear-gradient(135deg, var(--imperial-purple), var(--royal-purple));
    padding: 50px 40px;
    border-radius: 16px;
    border: 3px solid var(--gold);
    box-shadow: 0 12px 40px var(--shadow);
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.substack-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.substack-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(106, 13, 173, 0.4);
}

.substack-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    color: var(--gold);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.substack-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.substack-text {
    flex-grow: 1;
}

.substack-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.substack-tagline {
    color: var(--warm-cream);
    font-size: 1.05rem;
    line-height: 1.7;
}

.substack-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gold);
    color: var(--imperial-purple);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.substack-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.substack-button:hover::before {
    width: 300px;
    height: 300px;
}

.substack-button:hover {
    transform: scale(1.05);
    background: var(--dark-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.substack-button:hover .button-arrow {
    transform: translateX(5px);
}

/* ===== CONNECT SECTION ===== */
.connect-section {
    margin: 80px 0;
    text-align: center;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 40px auto 0;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 28px 35px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--soft-grey);
    border-radius: 12px;
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px var(--shadow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
}

.link-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--royal-purple);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card:hover {
    transform: translateX(15px);
    border-color: var(--gold);
    box-shadow: 0 10px 35px rgba(106, 13, 173, 0.3);
    background: rgba(255, 255, 255, 1);
}

.link-icon {
    width: 36px;
    height: 36px;
    color: var(--royal-purple);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--gold);
}

.link-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.link-label {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 1px;
}

.link-url {
    font-size: 1rem;
    color: var(--royal-purple);
    margin-top: 3px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: 80px;
    border-top: 2px solid var(--soft-grey);
}

.footer-ornament {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.footer-text {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--royal-purple);
    letter-spacing: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .column {
        width: 40px;
    }

    .container {
        padding: 40px 20px;
    }

    .wordmark {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .wordmark .name-space {
        width: 15px;
    }

    .tagline {
        font-size: 1rem;
    }

    .bio-section {
        padding: 30px 20px;
    }

    .headshot {
        float: none;
        display: block;
        margin: 0 auto 25px;
        width: 180px;
        height: 180px;
    }

    .bio-intro {
        font-size: 1.1rem;
    }

    .bio-text {
        font-size: 1rem;
    }

    .experience-container {
        gap: 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .substack-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }

    .substack-title {
        font-size: 1.5rem;
    }

    .substack-tagline {
        font-size: 0.95rem;
    }

    .link-card {
        padding: 20px 25px;
    }

    .wreath-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .wordmark {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .column {
        display: none;
    }

    .substack-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
