/* Root Variables */
:root {
    --black: #0a0a0a;
    --off-black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #6b6b6b;
    --light-gray: #a0a0a0;
    --off-white: #f5f5f5;
    --pure-white: #ffffff;
    --accent-blue: #0066FF;
    --accent-blue-hover: #0052cc;
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Navigation hover effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button styles */
.btn-primary {
    background: var(--black);
    color: var(--pure-white);
    padding: 14px 32px;
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--black);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    padding: 14px 32px;
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--black);
    display: inline-block;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Card hover effect */
.card {
    background: var(--pure-white);
    border: 1px solid #e5e5e5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Book card special hover */
.book-card {
    position: relative;
    overflow: hidden;
    background: var(--pure-white);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.book-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.1);
}

.book-card:hover .book-number {
    color: var(--accent-blue);
}

.book-number {
    font-size: 72px;
    font-weight: 100;
    color: var(--off-white);
    transition: color 0.3s ease;
}

/* Essay card */
.essay-card {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.essay-card:hover {
    border-left-color: var(--accent-blue);
    padding-left: 24px;
}

/* Project card minimal style */
.project-card {
    border-bottom: 1px solid #e5e5e5;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.project-card:hover {
    padding-left: 1rem;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

.project-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-blue);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* Dot pattern background */
.dot-pattern {
    background-image: radial-gradient(circle, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Blue accent text */
.text-accent {
    color: var(--accent-blue);
}

/* Minimal loading state */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Timeline (page-journey) */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #e5e5e5;
}

.timeline-item:last-child::after {
    display: none;
}

/* Lightbox (page-media-photo) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px 20px;
    transition: background 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Publication Archive */
.publication-card {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.publication-card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Initiative Card */
.initiative-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.initiative-card:hover {
    transform: translateY(-8px);
}

/* Typography Polish */
.prose h2, .prose h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tag-link {
    transition: all 0.2s ease;
}

.tag-link:hover {
    background-color: var(--black);
    color: var(--pure-white);
    border-color: var(--black);
}
