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

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f5f5f5;
            color: #1a1a1a;
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 0.5s ease-in forwards;
        }

        /* Dark mode styles */
        body.dark-mode {
            background-color: #1a1a1a;
            color: #f5f5f5;
        }

        /* Header styles */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            padding: 1rem 2rem;  /* Changed from padding: 2rem */
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            z-index: 100;
            opacity: 0;
            animation: fadeIn 0.5s ease-in forwards;
            animation-delay: 0.05s;
            /* removed the color property */
        }

        .header-column h2 {
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 0.2rem;
            color: #666666;
        }

        .header-column p, 
        .header-column a {
            font-size: 0.9rem;
            color: inherit;
            text-decoration: none;
            font-weight: 600; /* Added bold weight */
        }

        /* Navigation link styles */
        .header-column a {
            color: inherit;
            text-decoration: none;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        /* Inactive navigation links */
        .header-column a.inactive {
            color: #666666;
        }

        /* Dark mode override for inactive navigation links */
        body.dark-mode .header-column a.inactive {
            color: #999999;
        }

        .header-column a:hover {
            opacity: 0.7;
        }

        .header-column a[href="#work"],
        .header-column a[href="#contact"] {
            color: #666666;
        }

        /* Dark mode override for header titles */
        body.dark-mode .header-column h2 {
            color: #999999; /* Lighter grey for dark mode */
        }

        /* Dark mode override for grey navigation links */
        body.dark-mode .header-column a[href="#work"],
        body.dark-mode .header-column a[href="#contact"] {
            color: #999999;
        }

        /* Keep the existing hover effect */
        .header-column a[href="#work"]:hover,
        .header-column a[href="#contact"]:hover {
            opacity: 0.7;
        }

        .header-right {
            text-align: right;
        }

        /* Theme link colors */
        #dark-mode {
            color: #666666; /* Grey color for dark mode link in light mode */
        }

        /* Dark mode overrides */
        body.dark-mode #light-mode {
            color: #999999; /* Grey color for light mode link in dark mode */
        }

        body.dark-mode #dark-mode {
            color: inherit; /* Reset dark mode link color in dark mode */
        }

        /* Keep hover effects */
        #light-mode:hover,
        #dark-mode:hover {
            opacity: 0.7;
        }

        /* Main content styles */
        main {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-start; /* Changed from center to flex-start */
            align-items: center;
            padding-top: 8rem; /* Add top padding to account for fixed header */
            padding-bottom: 2rem;
            opacity: 0;
            animation: fadeIn 0.1s ease-in forwards;
            animation-delay: 0.2s;
        }

        .portrait-image {
            width: 250px;
            height: 320px;
            object-fit: cover;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }

        @font-face {
            font-family: 'Bile';
            src: url('bile.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        .main-name {
            font-family: "Bile", monospace;
            font-optical-sizing: auto;
            font-weight: 300; /* Changed from 700 to 300 for a thinner appearance */
            font-style: normal;
            font-variation-settings: "wdth" 100;
            font-size: 20vw; /* Increased from 10vw to 20vw for full width */
            text-align: center;
            line-height: 1;
            margin-top: auto;
            width: 100%;
            margin-left: 0;
            margin-right: 0;
            position: relative;
            padding: 0; /* Removed padding to allow full width */
            overflow: hidden; /* Prevent horizontal scrolling if text is too wide */
            white-space: nowrap; /* Keep text on one line */
        }

        /* Fade-in animation keyframes */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            header {
                grid-template-columns: 1fr;
                gap: 0.8rem;
                padding: 1rem;
            }

            .header-column h2 {
                margin-bottom: 0.1rem;
            }

            .header-column a {
                letter-spacing: -0.03em;
            }

            .header-right {
                text-align: left;
            }

            main {
                padding-top: 16rem; /* Significantly increased to 16rem to prevent overlap with stacked header columns */
                padding-bottom: 0;
                min-height: 100vh;
                justify-content: flex-start; /* Keep flex-start for mobile too */
            }

            .portrait-image {
                width: 200px;
                height: 256px;
                margin-bottom: 1rem;
            }

            .main-name {
                font-size: 18vw; /* Increased from 15vw to 18vw for mobile */
                margin-left: 0; /* Removed negative margins */
                margin-right: 0; /* Removed negative margins */
                margin-top: 3rem;
                padding: 0; /* Ensure no padding on mobile */
            }
        }

        /* Add tablet-specific styles */
        @media (max-width: 1024px) and (min-width: 769px) {
            .portrait-image {
                width: 220px;
                height: 280px;
                margin-bottom: 1.5rem;
            }

            .main-name {
                font-size: 19vw; /* Increased from 12vw to 19vw for tablet */
            }

            main {
                padding-top: 7rem; /* Medium top padding for tablet */
                padding-bottom: 2rem;
                justify-content: flex-start; /* Keep flex-start for tablet too */
            }
        }

/* Work links container styles */
.work-links-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 500px;
    background-color: rgba(245, 245, 245, 0.95);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    animation-delay: 0.3s;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode styles for work links container */
body.dark-mode .work-links-container {
    background-color: rgba(26, 26, 26, 0.95);
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

        .work-link {
            display: grid;
            grid-template-columns: 50px 1fr auto auto;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.3s ease;
            text-decoration: none; /* Remove underline from links */
            color: inherit; /* Inherit text color from parent */
        }

        .work-link:last-child {
            border-bottom: none;
        }

        .work-link:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }

        /* Dark mode styles for work links */
        body.dark-mode .work-link {
            border-bottom: 1px solid #333333;
            color: inherit; /* Ensure color inheritance in dark mode */
        }

        body.dark-mode .work-link:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

.work-number {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
}

.work-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 1rem;
    letter-spacing: 0.02em;
}

.work-pics {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
    margin-right: 1rem;
}        .work-arrow {
            font-size: 1rem;
            color: #666666;
        }

        /* Dark mode overrides for work link elements */
        body.dark-mode .work-number,
        body.dark-mode .work-pics,
        body.dark-mode .work-arrow {
            color: #999999;
        }

        /* Responsive styles for work links */
        @media (max-width: 768px) {
            .work-links-container {
                width: calc(100vw - 2rem);
                left: 1rem;
                bottom: 1rem;
            }
            
            .work-link {
                grid-template-columns: 40px 1fr auto auto;
                padding: 0.8rem;
            }
            
            .work-title {
                font-size: 0.8rem;
                margin-left: 0.5rem;
            }
            
            .work-number {
                font-size: 0.8rem;
            }
            
            .work-pics {
                font-size: 0.7rem;
                margin-right: 0.5rem;
            }
        }

        /* Contact page styles */
        .contact-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem;
            width: 90%;
            min-height: calc(100vh - 8rem);
            justify-content: center;
            transform: translateY(-3rem);
        }

        .contact-intro {
            font-family: 'Inter', sans-serif;
            font-size: 1.8rem;
            font-weight: 400;
            line-height: 1.6;
            margin-bottom: 2rem;
            color: inherit;
        }

        .contact-email {
            margin-bottom: 2rem;
        }

        .email-link {
            font-family: 'Inter', sans-serif;
            font-size: 1.2rem;
            font-weight: 600;
            color: inherit;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: opacity 0.2s ease;
            display: inline-block;
        }

        .email-link:hover {
            opacity: 0.7;
        }

        .contact-links {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
        }

        .contact-link {
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: inherit;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: opacity 0.2s ease;
        }

        .contact-link:hover {
            opacity: 0.7;
        }

        /* Responsive styles for contact page */
        @media (max-width: 768px) {
            .contact-content {
                padding: 0.5rem;
                width: 95%;
                max-width: none;
                min-height: calc(100vh - 16rem);
                transform: translateY(-2rem);
            }
            
            .contact-intro {
                font-size: 1.4rem;
                margin-bottom: 1.5rem;
            }

            .contact-email {
                margin-bottom: 1.5rem;
            }

            .email-link {
                font-size: 1rem;
                padding: 0.5rem 1rem;
            }
            
            .contact-links {
                flex-direction: column;
                gap: 1rem;
            }
            
            .contact-link {
                font-size: 0.9rem;
            }
        }

        /* Tablet styles for contact page */
        @media (max-width: 1024px) and (min-width: 769px) {
            .contact-content {
                max-width: 900px;
                width: 85%;
                min-height: calc(100vh - 7rem);
                transform: translateY(-2.5rem);
            }

            .email-link {
                font-size: 1.1rem;
            }
        }