:root {
    --primary: #2dd4bf;
    --secondary: #0ea5e9;
    --text: #e5e7eb;
    --background: #111827;
    --secondary-bg: #1f2937;
    --muted: #9ca3af;
    --link: var(--primary);
    --link-hover: #5eead4;
    --border: #374151;
    --code-bg: #374151;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    margin-bottom: 5rem;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--border);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.1);
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.2);
}

.intro {
    text-align: left;
    max-width: 500px;
}

h1 {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.social-links {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem .8rem;
    color: var(--text);
    background-color: var(--secondary-bg);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    stroke-width: 2;
}

.social-links a:hover {
    color: var(--text);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.social-links a:hover .social-icon {
    color: var(--primary);
}

.social-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-links a:hover::before {
    transform: scaleX(1);
}

.section {
    margin: 4rem 0;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--primary);
    border: none;
    display: block;
    padding-bottom: 0;
}

.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.project-media {
    position: relative;
    width: 100%;
    height: 230px;
    background: var(--code-bg);
    overflow: hidden;
    display: block;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}


.project-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.project-card:hover .project-media img {
    opacity: 1;
}

.project-media .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-bg) 25%, var(--border) 100%);
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    text-align: center;
    padding: 1rem;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .7rem;
}

.project-title-group {
    flex: 1;
}

.project-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.25rem 0 0.75rem 0;
    line-height: 1.4;
    font-family: var(--font-mono);
}

.project-year {
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--background);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    margin-left: 1rem;
}

.project-description {
    margin: 0rem 0 1rem 0;
    color: var(--muted);
    font-size: 0.9rem;
    flex-grow: 1;
}

.project-description ul {
    list-style-type: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.project-description li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.project-description li::before {
    content: "-";
    color: var(--primary);
    position: absolute;
    left: 0.25rem;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tech-stack-top {
    margin: 0.5rem 0 1rem 0;
    padding-top: 0;
    padding-bottom: 0.75rem;
    border-top: none;
    border-bottom: 1px solid var(--border);
    opacity: 0.85;
}

.project-card:hover .tech-stack-top {
    opacity: 1;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-links a {
    color: var(--link);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: var(--link-hover);
}

.view-more-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.view-more-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-bg);
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.view-more-link:hover {
    background-color: var(--code-bg);
    border-color: var(--primary);
    color: var(--link-hover);
    transform: translateY(-2px);
}

.timeline,
.education {
    margin: 2rem 0;
    max-width: 800px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: .5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-year {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    padding-top: 0.15rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.timeline-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.timeline-location {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0 !important;
    font-style: normal;
}

.timeline-location::before {
    content: '@ ';
}

.timeline-note {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 0.25rem !important;
    font-weight: 400;
}

.timeline-note::before {
    content: '↳ ';
    opacity: 0.7;
    color: var(--primary);
}


.education-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.education-details {
    color: var(--muted);
    font-size: 0.95rem;
}

.education-note {
    font-size: 0.85rem;
    color: var(--primary);
}

.audio-container {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.audio-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.audio-date {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: normal;
    text-align: right;
    font-family: var(--font-mono);
}

.native-audio-player {
    width: 100%;
    margin-top: 0.5rem;
    filter: invert(0.9) hue-rotate(180deg) contrast(0.9);
}

.lyrics-container {
    margin-top: 1.5rem;
    position: relative;
}

.lyrics-toggle {
    background-color: var(--secondary-bg);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.lyrics-toggle:hover {
    background-color: var(--code-bg);
    border-color: var(--primary);
    color: var(--link-hover);
}

.lyrics-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--code-bg);
    border-radius: 0 0 6px 6px;
    margin-top: 0.5rem;
}

.lyrics-content.show {
    max-height: 1000px;
    border: 1px solid var(--border);
}

.lyrics-content-inner {
    padding: 20px;
}

.lyrics-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
    white-space: pre-wrap;
    margin: 0;
}

footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 1024px) {}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .intro {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .timeline-year {
        padding-top: 0;
        margin-bottom: 0.25rem;
    }

    h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .project-card {
        border-radius: 6px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}