/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global variables and basic style reset */
:root {
    /* Light theme (default) */
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --accent-color: #6c5ce7;
    --text-color: #2d3436;
    --text-light: #636e72;
    --background-color: #ffffff;
    --card-bg: #f8f9fa;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 12px;
    --section-padding: 5rem 2rem;
    --transition: all 0.3s ease-in-out;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Dark theme variables */
    --dark-primary-color: #f8f9fa;
    --dark-secondary-color: #74b9ff;
    --dark-accent-color: #a29bfe;
    --dark-text-color: #f8f9fa;
    --dark-text-light: #dfe6e9;
    --dark-background-color: #1a1a2e;
    --dark-card-bg: #16213e;
    --dark-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --dark-nav-bg: rgba(26, 26, 46, 0.95);
    
    /* Severance game variables */
    --severance-primary: #00a2ff;
    --severance-easter-egg-logo: #0c306f;
    --severance-secondary: #009688;
    --severance-background: #1e2939;
    --severance-text: #ffffff;
}

/* Dark theme class that will be toggled with JavaScript */
.dark-theme {
    --primary-color: var(--dark-primary-color);
    --secondary-color: var(--dark-secondary-color);
    --accent-color: var(--dark-accent-color);
    --text-color: var(--dark-text-color);
    --text-light: var(--dark-text-light);
    --background-color: var(--dark-background-color);
    --card-bg: var(--dark-card-bg);
    --card-shadow: var(--dark-card-shadow);
    --nav-bg: var(--dark-nav-bg);
}

/* Fade-in animation styling */
.reveal {
    opacity: 1;
    visibility: visible;
    transition: all 0.8s ease;
}

/* Base reset for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Base body styling and typography */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Main content container width constraint */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Update force-scroll container to be a normal section */
.force-scroll-container {
    height: auto;
    position: relative;
    background-color: var(--severance-background);
    display: none; /* Hidden by default */
}

.force-scroll-container.revealed {
    display: block;
    height: auto;
}

/* Fixed header styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Navigation layout container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Website logo styling */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* Main navigation links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Navigation link appearance and hover effects */
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    margin-left: 1rem;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Section styling */
.section {
    padding: var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Bio section styling */
.bio-section {
    padding-top: 150px;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.05), transparent 60%);
    z-index: 0;
}

/* Profile container layout */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Profile image container */
.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Profile image styling */
.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 4px solid var(--background-color);
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Profile image */
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

/* Bio content styling */
.bio-content {
    padding: 1rem;
}

/* Bio heading */
.bio-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.bio-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* Bio subheading */
.bio-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Bio text */
.bio-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Social links styling */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Individual social link */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Social link hover effect */
.social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Bluesky icon styling */
.bluesky-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* Bluesky icon hover effect */
.social-links a:hover .bluesky-icon {
    filter: brightness(0) invert(1);
}

/* Education section styling */
.education-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.education-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Education header styling */
.education-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Education icon */
.education-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Education heading */
.education-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Education list styling */
.education-list {
    list-style: none;
    padding-left: 2rem;
}

/* Education list items */
.education-list li {
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Education list item markers */
.education-list li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.9rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

/* Skills section */
.skills-section {
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    width: 155%;
    max-width: 1200px;
    margin-left: 50%;
    transform: translateX(-67%);
    box-sizing: border-box;
}

.skills-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skills-header i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* First category takes full width on smaller screens but first column on larger screens */
.skills-categories .skill-category:nth-child(1) {
    grid-column: 1 / 2;
}

/* Second category aligned in the middle */
.skills-categories .skill-category:nth-child(2) {
    grid-column: 2 / 3;
}

/* Third category aligned to the right */
.skills-categories .skill-category:nth-child(3) {
    grid-column: 3 / 4;
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .skills-categories {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-categories .skill-category:nth-child(1),
    .skills-categories .skill-category:nth-child(2),
    .skills-categories .skill-category:nth-child(3) {
        grid-column: unset;
    }
}

.skill-category {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.skill-category h4 i {
    margin-right: 0.4rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.skill-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.skill-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.mini-icon {
    height: 12px;
    width: 12px;
    margin-right: 3px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-item {
        padding: 0.4rem;
    }
    
    .skill-icon {
        font-size: 0.85rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
    
    .skill-details {
        font-size: 0.7rem;
    }
}

@media (max-width: 580px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Project link styling */
.project-description a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

/* Project link hover effect */
.project-description a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Projects section styling */
.projects-section {
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    z-index: 1; /* Ensure it's above any background elements */
}

.projects-section .container {
    width: 100%;
    max-width: 1200px;
}

.projects-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(9, 132, 227, 0.05), transparent 60%);
    z-index: 0;
}

.projects-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.projects-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* Projects grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Project card styling */
.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 2rem;
    opacity: 1 !important; /* Ensure it's visible */
    transform: none !important; /* Reset any transforms */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Project image container */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Project info container */
.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Project title */
.project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Project description */
.project-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    flex: 1;
}

/* Project links container */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* Project link buttons */
.project-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--text-light);
}

/* Project demo link */
.project-links a:not([href*="doi.org"]):last-child {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Project paper link */
.project-links a[href*="doi.org"] {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Project github link */
.project-links a:not([href*="doi.org"]):first-child {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Project link hover effect */
.project-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Project tag styling */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 500;
}

/* Publications Section */
.publications-section {
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    z-index: 1;
}

.publications-section .container {
    width: 100%;
    max-width: 1200px;
}

.publications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.05), transparent 60%);
    z-index: 0;
}

.publications-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.publications-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.publications-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.publications-header a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.publications-header a:hover {
    text-decoration: underline;
}

.loading-indicator {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.loading-indicator i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.error-message {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.error-message a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.error-message a:hover {
    text-decoration: underline;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.publication-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

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

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.publication-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-title a:hover {
    color: var(--accent-color);
}

.publication-authors {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.publication-venue {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    padding-top: 0.75rem;
}

.publication-year {
    font-weight: 500;
}

.publication-citations {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.publication-citations:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .publication-card {
        padding: 1.25rem;
    }
    
    .publication-title {
        font-size: 1rem;
    }
}

/* Blog section styling */
.blog-section {
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    z-index: 1; /* Ensure it's above any background elements */
}

.blog-section .container {
    width: 100%;
    max-width: 1200px;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(108, 92, 231, 0.05), transparent 60%);
    z-index: 0;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.blog-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* Blog grid layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Blog card styling */
.blog-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Blog image container */
.blog-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
}

/* Blog image styling */
.blog-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s ease;
    background-color: var(--card-bg);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* Blog content area */
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog title */
.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Blog post date */
.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date i {
    color: var(--accent-color);
}

/* Blog excerpt */
.blog-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    flex: 1;
}

/* Read more link */
.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
}

/* Read more hover effect */
.read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog links container */
.blog-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Blog link buttons */
.blog-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--text-light);
}

/* Read more button */
.blog-links .read-blog {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Read paper button */
.blog-links .read-paper {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Website button */
.blog-links .visit-website {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Blog link hover effect */
.blog-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Contact section styling */
.contact-section {
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(9, 132, 227, 0.05), transparent 60%);
    z-index: 0;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* Contact container */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Contact form styling */
.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Form group styling */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form label styling */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Form input and textarea styling */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

/* Form input and textarea focus state */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Submit button container */
.submit-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Submit button styling */
.submit-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Submit button hover effect */
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Footer styling */
.footer {
    background-color: var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-color);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-image-container {
        margin: 0 auto;
    }
    
    .bio-content {
        text-align: center;
    }
    
    .bio-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .education-section, .skills-section {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .projects-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .bio-content h1 {
        font-size: 2rem;
    }
    
    .bio-content h2 {
        font-size: 1.2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .bio-content h1 {
        font-size: 1.8rem;
    }
    
    .project-card, .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .project-links, .blog-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-links a, .blog-links a {
        width: 100%;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        width: 85%;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

/* Animation delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* Scroll animations */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(108, 92, 231, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Severance game section */
.easter-egg-section {
    background-color: var(--severance-background);
    color: var(--severance-text);
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Update easter egg section to be a normal section */
.easter-egg-section {
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 4rem 0;
}

/* Severance game container */
.severance-game {
    width: 1300px;
    height: 850px;
    background-color: #0f1923;
    border: 3px solid var(--severance-primary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 162, 255, 0.3);
    overflow: hidden;
    position: relative;
    font-family: 'Courier New', monospace;
}

/* Severance game title */
.severance-title {
    color: var(--severance-text);
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Numbers grid for game */
.numbers-grid {
    position: relative;
    height: 70%;
    margin-bottom: 20px;
    user-select: none;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 5px;
    padding: 20px;
    align-items: center;
    justify-items: center;
}

/* Number cell animation */
@keyframes circularMotion {
    from {
        transform: rotate(var(--start-angle)) translate(var(--x-radius), var(--y-radius)) rotate(calc(-1 * var(--start-angle)));
    }
    to {
        transform: rotate(calc(var(--start-angle) + 360deg)) translate(var(--x-radius), var(--y-radius)) rotate(calc(-1 * (var(--start-angle) + 360deg)));
    }
}

/* Individual number cells in game */
.number-cell {
    color: var(--severance-text);
    cursor: pointer;
    font-size: var(--font-size); /* Use the dynamic font size */
    min-width: 40px; /* Ensure cell size consistency */
    min-height: 40px;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
    font-family: 'Courier New', monospace;
    padding: 10px;
    user-select: none;
    text-shadow: 0 0 5px rgba(0, 162, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: circularMotion var(--duration) linear infinite;
    transform-origin: center;
}

/* Number cell hover state */
.number-cell:hover {
    color: var(--severance-primary);
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.8);
    transform: scale(1.5);
}

/* Selected number cell */
.number-cell.selected {
    color: var(--severance-primary);
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.8);
    transform: scale(1.2);
    cursor: grab;
}

/* Active selected number cell */
.number-cell.selected:active {
    cursor: grabbing;
}

/* Add spawn animation */
@keyframes spawn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.number-cell.spawning {
    animation: spawn 0.5s ease-out forwards, circularMotion var(--duration) linear infinite;
}

/* Selection box for game */
.selection-box {
    position: absolute;
    border: 1px solid var(--severance-primary);
    background-color: rgba(0, 162, 255, 0.1);
    pointer-events: none;
    z-index: 100;
}

/* Drop zones container */
.drop-zones {
    display: flex;
    justify-content: center;
    gap: 20px;
    height: 20%;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Individual drop zone */
.drop-zone {
    width: 28%;
    height: 100%;
    min-height: 80px;
    background-color: rgba(0, 150, 136, 0.2);
    border: 2px dashed var(--severance-secondary);
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Drop zone when being dragged over */
.drop-zone.dragover {
    background-color: rgba(0, 150, 136, 0.4);
    border-style: solid;
}

/* Dropped number display */
.dropped-number {
    background-color: rgba(0, 162, 255, 0.7);
    color: white;
    padding: 2px 4px;
    margin: 2px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

/* Zone progress container */
.zone-progress-container {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
}

/* Zone progress bar */
.zone-progress-bar {
    height: 4px;
    background-color: rgba(0, 150, 136, 0.2);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.zone-progress {
    height: 100%;
    background-color: var(--severance-secondary);
    transition: width 0.3s ease;
}

/* Zone numbers container */
.zone-numbers {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding-top: 12px; /* Reduced padding since we only show progress bar */
}

/* Game message display */
.game-message {
    position: absolute;
    bottom: 100px;
    width: calc(100% - 40px);
    color: var(--severance-text);
    text-align: center;
    font-size: 14px;
}

/* Progress bar container */
.progress-bar {
    height: 4px;
    background-color: rgba(0, 150, 136, 0.3);
    margin-top: 10px;
    position: relative;
}

/* Progress indicator */
.progress {
    height: 100%;
    background-color: var(--severance-secondary);
    width: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Game completion message */
.congratulations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(14, 22, 33, 0.9);
    color: var(--severance-text);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Successful completion */
.congratulations.show.success {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(14, 22, 33, 0.95);
}

.congratulations.show.success h2 {
    color: var(--severance-primary);
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.congratulations.show.success p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    max-width: 80%;
    margin-bottom: 30px;
}

.congratulations.show.success button {
    background-color: var(--severance-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.congratulations.show.success button:hover {
    background-color: #0077cc;
    transform: translateY(-1px);
}

/* Failed completion */
.congratulations.show.failure {
    opacity: 1;
    pointer-events: auto;
    animation: glitchEffect 0.3s ease-out;
}

.congratulations.show.failure h2 {
    animation: textGlitch 1s infinite;
    color: #ff3333;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.congratulations.show.failure p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.congratulations.show.failure button {
    background-color: #ff3333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.congratulations.show.failure button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Congratulations heading */
.congratulations h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--severance-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.congratulations.show h2:not(:only-child) {
    animation: textGlitch 1s infinite;
    color: #ff3333;
}

@keyframes textGlitch {
    0% {
        text-shadow: 2px 2px #ff3333, -2px -2px #00a2ff;
    }
    25% {
        text-shadow: -2px 2px #ff3333, 2px -2px #00a2ff;
    }
    50% {
        text-shadow: 2px -2px #ff3333, -2px 2px #00a2ff;
    }
    75% {
        text-shadow: -2px -2px #ff3333, 2px 2px #00a2ff;
    }
    100% {
        text-shadow: 2px 2px #ff3333, -2px -2px #00a2ff;
    }
}

/* Congratulations text */
.congratulations p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Congratulations button */
.congratulations button {
    background-color: var(--severance-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Congratulations button hover state */
.congratulations button:hover {
    background-color: #00796b;
    transform: translateY(-2px);
}

/* Main progress container */
.main-progress-container {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
}

.main-progress-bar {
    height: 10px;
    background-color: rgba(255, 0, 0, 0.2);
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.main-progress {
    height: 100%;
    background-color: #ff3333;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Remove unused score display styles */
.zone-score,
.zone-score-container,
.main-progress-label {
    display: none;
}

/* Game mobile responsiveness */
@media (max-width: 768px) {
    .severance-game {
        width: 100%;
        max-width: 800px;
        height: auto;
        min-height: 100vh;
        padding: 10px;
    }

    .severance-game-container {
        width: 100%;
        padding: 10px;
        overflow: hidden;
    }

    .severance-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        gap: 5px;
        padding: 10px;
        height: 50vh;
        margin-bottom: 15px;
    }

    .number-cell {
        min-width: 25px;
        min-height: 25px;
        font-size: 14px !important;
        padding: 5px;
    }

    .drop-zones {
        flex-direction: column;
        gap: 10px;
        height: auto;
        margin: 10px 0;
    }

    .drop-zone {
        width: 100%;
        height: 50px;
        min-height: unset;
    }

    .zone-numbers {
        padding-top: 8px;
    }

    .dropped-number {
        font-size: 10px;
        padding: 1px 3px;
        margin: 1px;
    }

    .game-message {
        font-size: 12px;
        padding: 8px;
        bottom: 60px;
    }

    .main-progress-container {
        bottom: 20px;
    }

    .main-progress-bar {
        height: 8px;
    }

    .congratulations h2 {
        font-size: 24px;
    }

    .congratulations p {
        font-size: 14px;
    }

    .congratulations button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Additional breakpoint for very small screens */
@media screen and (max-width: 360px) {
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(25px, 1fr));
        gap: 3px;
    }

    .number-cell {
        min-width: 22px;
        min-height: 22px;
        font-size: 12px !important;
        padding: 3px;
    }
}

/* Game mobile responsiveness */
@media (max-width: 768px) {
    .severance-game {
        width: 100%;
        max-width: 800px;
        height: 500px;
    }
}

/* Success specific styles */
.success-title {
    color: var(--severance-primary) !important;
    font-size: 28px !important;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: none;
    animation: none !important;
    text-shadow: none !important;
}

.success-message {
    color: var(--severance-text) !important;
    font-size: 16px;
    text-shadow: none !important;
    animation: none !important;
}

.success-button {
    background-color: var(--severance-primary);
    text-transform: none;
    letter-spacing: normal;
    padding: 12px 24px;
}

.success-button:hover {
    background-color: #0077cc;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.3);
}

/* Override any glitch animations for success state */
.congratulations.show.success h2,
.congratulations.show.success p,
.congratulations.show.success button {
    animation: none !important;
    text-shadow: none !important;
}

.congratulations.show.failure .failure-message p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    line-height: 1.5;
    text-align: center;
}

.congratulations.show.failure .failure-message p:last-child {
    margin-bottom: 30px;
}

/* Easter egg trigger styling */
@keyframes subtle-pulse {
    0% {
        transform: scale(1);
        color: var(--text-color);
    }
    50% {
        transform: scale(1.05);
        color: var(--severance-easter-egg-logo);
    }
    100% {
        transform: scale(1);
        color: var(--text-color);
    }
}

/* Easter egg trigger animations - separate for header and footer */
@keyframes subtle-pulse-header {
    0% {
        transform: scale(1);
        color: var(--text-color);
    }
    50% {
        transform: scale(1.05);
        color: var(--severance-easter-egg-logo);
    }
    100% {
        transform: scale(1);
        color: var(--text-color);
    }
}

@keyframes subtle-pulse-footer {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Base easter egg trigger styling */
.easter-egg-trigger {
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Header-specific trigger styling */
.logo.easter-egg-trigger {
    animation: subtle-pulse-header 3s ease-in-out infinite;
}

/* Footer-specific trigger styling */
.footer .easter-egg-trigger {
    animation: subtle-pulse-footer 3s ease-in-out infinite;
}

/* Update hover effects */
.easter-egg-trigger:hover {
    color: var(--severance-primary);
    animation-play-state: paused;
    transform: scale(1.1);
}

.easter-egg-trigger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--severance-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.easter-egg-trigger:hover::after {
    transform: scaleX(1);
}

/* Apply the same animation to the logo when it's a trigger */
.logo.easter-egg-trigger {
    animation: subtle-pulse 3s ease-in-out infinite;
}

.logo.easter-egg-trigger:hover {
    animation-play-state: paused;
}

/* Language panel styling */
.language-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    width: 100%;
}

.language-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Language header styling */
.language-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Language icon */
.language-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Language heading */
.language-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Language list styling */
.language-list {
    list-style: none;
    padding-left: 0;
}

/* Language list items */
.language-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-list li:last-child {
    border-bottom: none;
}

/* Language name */
.language-name {
    font-weight: 500;
}

/* Language level */
.language-level {
    color: var(--text-light);
    background-color: rgba(108, 92, 231, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* For screens below 768px */
@media (max-width: 768px) {
    .skills-section {
        width: calc(100% - 2rem);
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

/* Scroll to top button styling */
.scroll-to-top {
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.scroll-to-top:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.scroll-to-top::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.scroll-to-top:hover::after {
    transform: scaleX(1);
}

/* Add specific styling for blog images */
.blog-content img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
}