:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-dim: #b4941f;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-container: 120px;
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, opacity 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s var(--transition-slow) forwards;
}

.hero-title {
    font-size: 6rem;
    line-height: 1.2;
    /* Increased from 1.1 */
    margin-bottom: 1.5rem;
    /* Increased spacing */
    padding: 0 20px;
    /* Prevent edge touching on small screens */
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    display: inline-block;
    /* Helps with rendering */
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.scroll-indicator {
    /* Removed absolute positioning to prevent overlap */
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent-gold);
    animation: bounce 2s infinite;
}

/* Mathematician Sections */
.mathematician-section {
    padding: var(--spacing-container) 0;
    position: relative;
    scroll-margin-top: 50px;
    /* For deep linking spacing */
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.reverse .content-wrapper {
    direction: rtl;
}

.reverse .content-wrapper>* {
    direction: ltr;
}

.image-container {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(110%);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.text-content {
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.text-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.dates {
    border-left: 2px solid var(--accent-gold);
    padding-left: 20px;
    margin-bottom: 2rem;
}

.dates p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Women Section */
.women-section {
    padding: var(--spacing-container) 0;
    background: linear-gradient(to bottom, var(--bg-color), #111);
}

.women-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.woman-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 1px solid var(--accent-gold);
    transition: transform 0.3s ease;
}

.woman-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.04);
}

.women-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 40px;
}

.inspiration {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
    margin-top: 40px;
    padding: 20px;
    border: 1px solid var(--accent-gold);
    text-align: center;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .content-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reverse .content-wrapper {
        direction: ltr;
    }

    .women-content {
        grid-template-columns: 1fr;
    }

    .women-image {
        order: -1;
        margin-bottom: 40px;
    }

    .women-image img {
        position: static;
    }

    .container {
        padding: 0 20px;
    }

    h2 {
        font-size: 2.5rem;
    }
}