/* Global Styles */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-purple: #8C52FF;
    /* Glitch-like accent */
    --accent-pink: #FF66C4;
    --accent-blue: #00E9FF;
    --accent-yellow: #FFDE59;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.site-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
}

.nav-link:hover {
    background: var(--gray-light);
}

.nav-link.active {
    background: var(--text-color);
    color: #fff;
}

.header-search {
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 80vh;
}

.page-section {
    animation: fadeIn 0.4s ease-out;
}

.page-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Activities - Hero */
.hero-article {
    background-color: #f9f9f9;
    /* Subtle background */
    border-radius: 0px;
    border: 1px solid #000;
    overflow: hidden;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero-article {
        flex-direction: row;
        align-items: center;
    }
}

.hero-content {
    padding: 40px;
    flex: 1;
}

.hero-content .date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-image {
    flex: 1.2;
    height: 300px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Activities - Grid */
/* Year Grouping */
.year-group {
    margin-bottom: 60px;
}

.year-header {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--text-color);
    display: inline-block;
    padding-bottom: 4px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 0px;
    border: 1px solid #000;
    overflow: hidden;
    padding: 10px;
    /* Optional: adds a bit of spacing inside the border like a frame, or can be removed */
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0px #000;
    /* Sharp shadow for extra distinguishing edge */
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0px;
    margin-bottom: 15px;
    background-color: var(--gray-light);
}

.card-content .date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-content p {
    font-size: 0.95rem;
    color: #444;
}

/* Article Detail View */
.back-button {
    background: none;
    border: 1px solid var(--gray-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 30px;
}

.back-button:hover {
    background: var(--gray-light);
}

.full-article {
    max-width: 800px;
    margin: 0 auto;
}

.full-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.full-article h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--accent-yellow);
    display: inline-block;
}

.full-article h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--accent-purple);
}

.full-article p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #333;
}

.full-article img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.full-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
}

.full-article th,
.full-article td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.full-article th {
    background-color: #f2f2f2;
    font-weight: 700;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.project-card h3 {
    margin-top: 15px;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.2s;
}

.project-card:hover img {
    transform: scale(1.02);
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-purple);
    font-weight: 700;
    text-decoration: none;
}

/* About Page */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media(min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    border-radius: 0;
    max-width: 300px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
}

/* Small Interests Section */
.about-interests-small {
    font-size: 0.9rem;
    color: #555;
    text-align: left;
    border-top: 1px solid var(--gray-border);
    padding-top: 20px;
    margin-bottom: 30px;
}

.about-interests-small p {
    margin-bottom: 5px;
}

/* Social Buttons */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #000;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 0;
}

.social-btn:hover {
    background-color: var(--text-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.timeline-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--gray-light);
    border-left: 4px solid var(--accent-purple);
}

.timeline-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
}

.timeline-description {
    margin-top: 10px;
}

.timeline-description ul {
    list-style-type: none;
    padding-left: 0;
}

.timeline-description li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.timeline-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

/* Currently Playing Section */
.currently-playing {
    margin-top: 40px;
    margin-bottom: 20px;
}

.currently-playing h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.game-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s;
    max-width: 240px;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.game-title {
    display: block;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

/* Consulting Section */
.consulting-section {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 0;
    text-align: center;
    font-weight: 500;
}

.consulting-section a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 700;
}

.consulting-section a:hover {
    text-decoration: underline;
}

/* CV Page */
.cv-container {
    max-width: 800px;
    margin: 0 auto;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h2 {
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cv-item {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
}

.cv-date {
    font-weight: 700;
    min-width: 120px;
    color: #666;
}

.cv-details h3 {
    margin-bottom: 5px;
    margin-top: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--gray-border);
    padding: 40px 20px;
    text-align: center;
    margin-top: 20px;
}

.footer-content {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
}





/* CV List Styling */
.cv-list {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: none;
    /* Reset default */
}

/* For ordered lists in CV */
ol.cv-list {
    list-style-type: decimal;
}

.cv-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

.cv-list li strong {
    color: #333;
}

.cv-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Centered CV Header */
.cv-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

/* Quote Section */
.page-quote {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px 10px;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-top: 1px solid var(--gray-border);
}

.page-quote .quote-author {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}