:root {
    /* Color Palette */
    --bg-base: #0a0a0c;
    --bg-header: rgba(10, 10, 12, 0.75);
    --bg-card: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.16);

    /* Text Palette */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;

    --accent: #8ba4f9;
    --accent-dim: rgba(139, 164, 249, 0.1);

    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --max-width: 900px;

    /* Project Card Settings */
    --project-image-size: 128px;
    --project-spacing: 1rem;
    --project-image-bottom-gap: 2rem;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--border-glass), transparent);
    margin: 4rem 0;
}

/*navigation*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Layout Container */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 2rem 0;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background-color: var(--accent-dim);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 164, 249, 0.2);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.accent-text {
    color: var(--accent);
    font-weight: 600;

    text-shadow:
        0 0 12px rgba(139, 164, 249, 0.5),
        0 0 24px var(--accent-dim);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-base);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Tech Stack Section */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.stack-category h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
}

.tech-tag.high-contrast {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 2rem;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

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

.project-title {
    font-size: 1.2rem;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
}

.project-link:hover {
    color: var(--text-primary);
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mini-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.01);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/*  Timeline */
.timeline {
    position: relative;
    border-left: 1px solid var(--border-glass);
    padding-left: 1.75rem;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: var(--bg-base);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    left: calc(-1.75rem - 4px);
    top: 0.4rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-title {
    font-size: 1.1rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.company-name {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.experience-details {
    list-style-type: none;
}

.experience-details li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.experience-details li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border-glass-hover);
}

/* Contact */
.site-footer {
    border-top: 1px solid var(--border-glass);
    margin-top: 6rem;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 1.5rem 0 2rem 0;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 0.25rem;
}

.contact-email:hover {
    color: var(--accent);
    border-bottom-style: solid;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Project Card Styles */
.project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.project-body {
    margin-bottom: var(--project-image-bottom-gap);
    min-width: 0;
}

.project-content {
    position: relative;
    width: 100%;
}

.project-text {
    max-height: var(--project-image-size);
    overflow: hidden;
    position: relative;
    margin-right: calc(var(--project-image-size) + var(--project-spacing));
}
.project-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4rem;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.project-text .toggle-btn {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.2s,
        color 0.2s;
    z-index: 2;
    border: none;
}
.project-text .toggle-btn:hover {
    color: var(--text-primary);
}
.project-text.show-button::after {
    opacity: 1;
}

.project-text.show-button .toggle-btn {
    opacity: 1;
    pointer-events: auto;
}

.project-card.expanded .project-text .toggle-btn {
    position: static;
    display: block;
    transform: none;
    margin: 0.75rem auto 0;
    opacity: 1;
    pointer-events: auto;
}

.project-card.expanded .project-text::after {
    opacity: 0;
    pointer-events: none;
}

.project-image {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--project-image-size);
    height: var(--project-image-size);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

/* Lightbox */
body.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    border: 1px solid var(--border-glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.project-card--no-image .project-image {
    display: none;
}

.project-card--no-image .project-text {
    margin-right: 0;
}

/* Expanded */
.project-card.expanded .project-text {
    max-height: none;
    overflow: visible;
}

/* Description styling */
.project-description {
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .nav-links {
        display: none;

    .hero-title {
        font-size: 2.25rem;
    }

    .timeline-header {
        flex-direction: column;
    }

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