:root {
    --bg-color: #fafafa;
    --text-color: #171717;
    --secondary-color: #737373;
    --border-color: #e5e5e5;
    --font-main: 'JetBrains Mono', 'Courier New', 'Courier', monospace;
    --max-width: 800px;
}

[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ededed;
    --secondary-color: #a3a3a3;
    --border-color: #262626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 2rem 1.5rem;
    padding-top: 6rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem;
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(250, 250, 250, 0.8);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.8);
}

.navbar-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.navbar-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8rem;
    padding-bottom: 2rem;
}

.footer-icons {
    display: flex;
    gap: 1rem;
}

.footer-icons a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.footer-icons a:hover {
    opacity: 0.6;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 12px;
    color: var(--secondary-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

#theme-toggle:hover {
    opacity: 0.6;
}

/* Intro Section */
.intro {
    margin-bottom: 8rem;
}

.intro h1 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    min-height: 1.6em;
}

#typewriter::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.subtitle {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 400;
}

/* About Section */
.about {
    margin-bottom: 8rem;
}

h2 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.about-content {
    max-width: 600px;
}

.about-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

a {
    color: inherit;
    text-decoration: none;
}

.inline-link {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.inline-link:hover {
    text-decoration-color: var(--text-color);
}

/* Timeline Section */
.timeline {
    margin-bottom: 8rem;
}

/* Education Section */
.education {
    margin-bottom: 8rem;
}

.education-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.degree {
    color: var(--text-color);
    font-size: 15px;
}

.school {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Certifications Section */
.certifications {
    margin-bottom: 8rem;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.cert-badge {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cert-badge:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.cert-placeholder {
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    color: var(--secondary-color);
    font-size: 11px;
    text-align: center;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: baseline;
}

.timeline-date {
    color: var(--secondary-color);
    font-size: 15px;
}

.timeline-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 15px;
}

.timeline-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-name {
    color: var(--text-color);
    font-size: 15px;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
}

.role-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-color);
    position: relative;
}

.role-list-container::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 5px;
    height: 5px;
    background: var(--text-color);
    border-radius: 50%;
}

.role-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role {
    color: var(--text-color);
    font-size: 14px;
}

.role-date {
    color: var(--secondary-color);
    font-size: 13px;
}

.company-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    margin-left: 1rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.emoji {
    font-size: 14px;
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }

    .intro,
    .about,
    .timeline {
        margin-bottom: 5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-meta {
        font-size: 10px;
    }
}