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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme */
body.light-theme {
    background-color: #ffffff;
    color: #1a1a1a;
}

body.light-theme .header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light-theme .logo-icon {
    color: #1a1a1a;
}

body.light-theme .logo-text,
body.light-theme .nav-link {
    color: #1a1a1a;
    font-weight: 500;
}

body.light-theme .logo-text:hover,
body.light-theme .nav-link:hover {
    color: #374151;
}

body.light-theme .nav-icon,
body.light-theme .theme-toggle {
    color: #374151;
}

body.light-theme .nav-icon:hover,
body.light-theme .theme-toggle:hover {
    color: #1a1a1a;
}

body.light-theme .hero-title {
    color: #1a1a1a;
}

body.light-theme .hero-subtitle {
    color: #666;
}

body.light-theme .intro-text,
body.light-theme .about p {
    color: #333;
}

body.light-theme .link {
    color: #1a1a1a;
    text-decoration-color: #999;
}

body.light-theme .link:hover {
    color: #333;
    text-decoration-color: #333;
}

body.light-theme .divider {
    background-color: #e5e5e5;
}

body.light-theme .social-title {
    color: #333;
}

body.light-theme .social-link {
    background-color: #f8f9fa;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

body.light-theme .social-link:hover {
    background-color: #e9ecef;
    border-color: #d5d5d5;
    color: #000;
}

body.light-theme .footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

body.light-theme .footer-text,
body.light-theme .footer-credits {
    color: #666;
}

body.light-theme .footer-link {
    color: #666;
}

body.light-theme .footer-link:hover {
    color: #1a1a1a;
}

/* Blog page light theme */
body.light-theme .blog-title,
body.light-theme .projects-title {
    color: #1a1a1a;
}

body.light-theme .blog-subtitle,
body.light-theme .projects-subtitle {
    color: #666;
}

body.light-theme .blog-description {
    color: #333;
}

body.light-theme .post-title {
    color: #1a1a1a;
}

body.light-theme .post-title:hover {
    color: #333;
}

body.light-theme .post-date {
    color: #666;
}

/* Projects page light theme */
body.light-theme .category-title {
    color: #333;
}

body.light-theme .category-title::before {
    background-color: #999;
}

body.light-theme .project-category-title {
    color: #333;
}

body.light-theme .project-category-title::before {
    background-color: #999;
}

body.light-theme .project-item {
    background-color: #f8f9fa;
    border-color: #e5e5e5;
}

body.light-theme .project-item:hover {
    background-color: #e9ecef;
    border-color: #d5d5d5;
}

body.light-theme .project-icon {
    color: #333;
    background-color: #e9ecef;
}

body.light-theme .project-name {
    color: #1a1a1a;
}

body.light-theme .project-description {
    color: #666;
}

body.light-theme .year-separator {
    color: #999;
    opacity: 0.8;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5e5e5;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #ffffff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-icon {
    color: #e5e5e5;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    color: #ffffff;
}

.theme-toggle {
    background: none;
    border: none;
    color: #e5e5e5;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #ffffff;
}

/* Main content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #999;
    margin-bottom: 3rem;
    font-weight: 300;
}

.intro {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.125rem;
    color: #e5e5e5;
    margin-bottom: 2rem;
    font-weight: 400;
}

.about {
    margin-bottom: 3rem;
}

.about p {
    font-size: 1rem;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #666;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.link:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.divider {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 3rem 0 2rem 0;
}

.social-title {
    font-size: 1.125rem;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #1a1a1a;
    color: #e5e5e5;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background-color: #2a2a2a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 2rem 0;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    text-align: center;
}

.footer-text {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.footer-credits {
    color: #666;
    font-size: 0.875rem;
}

.footer-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e5e5e5;
}

/* Blog page styles */
.blog-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 2rem;
    font-weight: 300;
}

.blog-description {
    font-size: 1rem;
    color: #e5e5e5;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.year-separator {
    font-size: 8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 4rem 0;
    line-height: 1;
    opacity: 0.6;
}

.post-item {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #e5e5e5;
}

.post-date {
    font-size: 0.875rem;
    color: #666;
}

/* Skills page styles */
.skills-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.skills-subtitle {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 2rem;
    font-weight: 300;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-left: 1rem;
}

.skill-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background-color: #666;
    border-radius: 2px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.skill-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #666, #999);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    border-color: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    flex-shrink: 0;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.skill-description {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

/* Light theme for skills */
body.light-theme .skills-title {
    color: #1a1a1a;
}

body.light-theme .skills-subtitle {
    color: #666;
}

body.light-theme .skill-category-title {
    color: #333;
}

body.light-theme .skill-category-title::before {
    background-color: #999;
}

body.light-theme .skill-item {
    background-color: #f8f9fa;
    border-color: #e5e5e5;
}

body.light-theme .skill-item:hover {
    background-color: #e9ecef;
    border-color: #d5d5d5;
}

body.light-theme .skill-icon {
    color: #333;
    background-color: #e9ecef;
}

body.light-theme .skill-name {
    color: #1a1a1a;
}

body.light-theme .skill-description {
    color: #666;
}

/* Contact page styles */
.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 2rem;
    font-weight: 300;
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-category {
    margin-bottom: 3rem;
}

.contact-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-left: 1rem;
}

.contact-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background-color: #666;
    border-radius: 2px;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.contact-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #666, #999);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    border-color: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 2rem;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 1rem;
}


.contact-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.contact-description {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

/* Light theme for contact */
body.light-theme .contact-title {
    color: #1a1a1a;
}

body.light-theme .contact-subtitle {
    color: #666;
}

body.light-theme .contact-category-title {
    color: #333;
}

body.light-theme .contact-category-title::before {
    background-color: #999;
}

body.light-theme .contact-item {
    background-color: #f8f9fa;
    border-color: #e5e5e5;
}

body.light-theme .contact-item:hover {
    background-color: #e9ecef;
    border-color: #d5d5d5;
}

body.light-theme .contact-icon {
    color: #333;
    background-color: #e9ecef;
}

body.light-theme .contact-name {
    color: #1a1a1a;
}

body.light-theme .contact-description {
    color: #666;
}

/* Homepage mobile layout - make it consistent with other pages */
.home-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.home-category {
    margin-bottom: 3rem;
}

.home-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-left: 1rem;
}

.home-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background-color: #666;
    border-radius: 2px;
}

.home-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.home-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.home-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #666, #999);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-item:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    border-color: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.home-item:hover::before {
    opacity: 1;
}

.home-icon {
    font-size: 2rem;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.home-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.home-description {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

/* Light theme for home items */
body.light-theme .home-category-title {
    color: #333;
}

body.light-theme .home-category-title::before {
    background-color: #999;
}

body.light-theme .home-item {
    background-color: #f8f9fa;
    border-color: #e5e5e5;
}

body.light-theme .home-item:hover {
    background-color: #e9ecef;
    border-color: #d5d5d5;
}

body.light-theme .home-icon {
    color: #333;
    background-color: #e9ecef;
}

body.light-theme .home-name {
    color: #1a1a1a;
}

body.light-theme .home-description {
    color: #666;
}

/* Hide social section when bottom nav appears */
@media (max-width: 768px) {
    .social-section {
        display: none;
    }
    
    /* Hide desktop layout and show mobile layout for homepage */
    .intro {
        display: none;
    }
    
    .home-grid {
        display: block;
    }
}

/* Hide mobile layout on desktop */
@media (min-width: 769px) {
    .home-grid {
        display: none;
    }
}

/* Blog meta styling */
.post-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

.post-category {
    font-weight: 500;
}

.post-read-time {
    opacity: 0.6;
}

/* Projects meta styling */
.project-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

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

.project-status {
    opacity: 0.6;
}

/* Skills meta styling */
.skill-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

.skill-level {
    font-weight: 500;
    color: var(--accent-color);
}

.skill-years {
    opacity: 0.6;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    color: #ffffff;
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #666;
    border-radius: 0 0 2px 2px;
}

.mobile-nav-item:hover {
    color: #999;
}

.mobile-nav-item.active:hover {
    color: #ffffff;
}

/* Light theme for mobile nav */
body.light-theme .mobile-nav {
    background-color: #ffffff;
    border-top-color: #e5e5e5;
}

body.light-theme .mobile-nav-item {
    color: #666;
}

body.light-theme .mobile-nav-item.active {
    color: #1a1a1a;
}

body.light-theme .mobile-nav-item.active::before {
    background-color: #999;
}

body.light-theme .mobile-nav-item:hover {
    color: #333;
}

body.light-theme .mobile-nav-item.active:hover {
    color: #1a1a1a;
}

/* Mobile theme toggle - hidden on desktop */
.mobile-theme-toggle {
    display: none;
}

/* Hide header on mobile and show bottom nav */
@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .main {
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 1rem;
    }
    
    /* Mobile dark mode toggle */
    .mobile-theme-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: rgba(26, 26, 26, 0.8);
        border: 1px solid #2a2a2a;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .mobile-theme-toggle:hover {
        background-color: rgba(42, 42, 42, 0.9);
        transform: scale(1.05);
    }
    
    .mobile-theme-toggle svg {
        width: 20px;
        height: 20px;
        color: #e5e5e5;
    }
    
    /* Light theme for mobile toggle */
    body.light-theme .mobile-theme-toggle {
        background-color: rgba(255, 255, 255, 0.8);
        border-color: #e5e5e5;
    }
    
    body.light-theme .mobile-theme-toggle:hover {
        background-color: rgba(248, 249, 250, 0.9);
    }
    
    body.light-theme .mobile-theme-toggle svg {
        color: #1a1a1a;
    }
}

/* Projects page styles */
.projects-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.projects-subtitle {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 2rem;
    font-weight: 300;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-left: 1rem;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background-color: #666;
    border-radius: 2px;
}

/* Project category title styling */
.project-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-left: 1rem;
}

.project-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background-color: #666;
    border-radius: 2px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.project-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #666, #999);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    border-color: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-item:hover::before {
    opacity: 1;
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-description {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

/* Responsive design */
@media (min-width: 1200px) {
    .projects-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .contact-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .home-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .projects-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .contact-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .home-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .skill-category-title,
    .contact-category-title,
    .project-category-title {
        font-size: 1.5rem;
    }
    
    .skills-list,
    .contact-list,
    .home-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skill-item,
    .contact-item,
    .home-item {
        padding: 1.25rem;
    }
    
    .skill-icon,
    .contact-icon,
    .home-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .skill-category-title,
    .contact-category-title,
    .project-category-title,
    .home-category-title {
        font-size: 1.5rem;
    }
    
    .year-separator {
        font-size: 4rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .projects-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .project-item {
        padding: 1.25rem;
    }
    
    .project-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .skill-category-title,
    .contact-category-title,
    .project-category-title,
    .home-category-title {
        font-size: 1.25rem;
    }
    
    .skills-list,
    .contact-list,
    .home-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .skill-item,
    .contact-item,
    .home-item {
        padding: 1rem;
    }
    
    .skill-icon,
    .contact-icon,
    .home-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
    
    .year-separator {
        font-size: 3rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .projects-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .project-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        display: none;
    }
}
