/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #333f;
    position: relative;
}

/* Canvas background */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 236, 239, 0.3);
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

.hero {
    padding: 2.5rem 0;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    position: relative;
    z-index: 5;
}

/* Thumbnails grid */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail {
    text-decoration: none;
    color: inherit;
    display: block;
    background: transparent;
    border-radius: 8px;
    padding: 1.5rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    position: relative;
}

.thumbnail:hover {
    transform: translateY(-6px);
}

.thumbnail img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform cubic-bezier(0.6, -0.28, 0.735, 0.045);
    position: relative;
    z-index: 2;
}

.thumbnail-text {
    position: relative;
    z-index: 2;
}

.thumbnail h3 {
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 1rem;
}

.thumbnail p {
    color: #666;
    font-size: 0.9rem;
}

.year-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    z-index: 2;
}

/* Thumbnail background squares */
.thumbnail-bg-square {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Clickable header email */
#copyable-email {
    cursor: pointer;
    transition: all 0.2s ease;
}

#copyable-email:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

#copyable-email.copied {
    color: #4ade80;
}

.copy-icon {
    width: 24px;
    height: 24px;
    margin-left: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

#copyable-email:hover .copy-icon {
    opacity: 1;
}

/* Introduction text */
.hero .intro-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem !important;
    line-height: 1.6;
    margin: 1rem 0 2rem 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* GitHub link */
.github-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 1rem 0 2rem 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.github-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Unique thumbnail backgrounds */
.thumbnail-flowers {
    background: rgba(255, 182, 193, 1); /* Light pink for flowers */
}

.thumbnail-webcog {
    background: rgba(173, 216, 230, 0.9); /* Light blue for web tech */
}

.thumbnail-essay {
    background: rgba(255, 255, 224, 0.9); /* Light yellow for academic work */
}

.thumbnail-blackbrew {
    background: rgba(211, 211, 211, 0.9); /* Light gray for dark theme */
}

.thumbnail-pep {
    background: rgba(144, 238, 144, 0.9); /* Light green for government */
}

.thumbnail-binary {
    background: rgba(255, 218, 185, 0.9); /* Light orange for video/technical */
}
.hero p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.vanilla-js-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.vanilla-js-link:hover {
    transform: scale(1.1);
}

.vanilla-js-link img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}
