* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #efe8e2;
    background-color: #171411;
    /* svg noise texture (feTurbulence), inlined so there's no extra image file - just a subtle grain over the bg */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding: 1rem 1.5rem;
    background: #3f3027;
    border-bottom: 1px solid #7b5c4b;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

nav.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

nav a {
    color: #efe8e2;
    text-decoration: none;
}

nav a:hover {
    color: #c0ab9a;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0ab9a;
}

.socials a:hover {
    color: #f7f5f2;
}

.hero {
    position: relative;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    max-width: 100%;
    background: radial-gradient(circle, rgba(192, 171, 154, 0.25), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    color: #f7f5f2;
}

.hero p {
    max-width: 500px;
    margin: 0 auto;
    color: #c0ab9a;
}

.ViewResume {
    display: inline-block;
    background: #c0ab9a;
    color: #171411;
    text-decoration: none;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
}

.ViewResume:hover {
    background: #f7f5f2;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.ViewProjects {
    display: inline-block;
    background: transparent;
    color: #efe8e2;
    text-decoration: none;
    border: 1px solid #7b5c4b;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ViewProjects:hover {
    border-color: #c0ab9a;
    color: #f7f5f2;
}

section {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
}

#projects,
#experience {
    max-width: 1200px;
}

section h2 {
    color: #f7f5f2;
    border-bottom: 2px solid #7b5c4b;
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
}

.about-education-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
}

.about-education-row section {
    max-width: none;
    margin: 0;
    padding: 0;
}

.tab-switcher {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid #7b5c4b;
    color: #c0ab9a;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
    border-color: #c0ab9a;
    color: #f7f5f2;
}

.tab-btn.active {
    background: #c0ab9a;
    color: #171411;
    border-color: #c0ab9a;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-content img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-content p {
        text-align: left;
    }
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-education-row .skills {
    margin-top: 2.5rem;
}

.skills li {
    background: #3f3027;
    color: #efe8e2;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

article {
    margin-bottom: 1.5rem;
}

article h3 {
    margin: 0 0 0.15rem;
    color: #f7f5f2;
    font-weight: normal;
}

.entry-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.entry-header h3 {
    flex: 1 1 auto;
    min-width: 0;
}

.Major-details {
    margin: 0;
}

.date {
    /*font-style: italic;*/
    color: #c0ab9a;
    margin: 0 0 0.5rem;
    flex: 0 0 150px;
    text-align: right;
}

.experience-intro {
    margin: 0 0 2.5rem;
    color: #c0ab9a;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
}

@media (min-width: 900px) {
    .timeline {
        grid-template-columns: 1fr 1fr;
    }
}

.timeline-entry {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1rem;
    margin-bottom: 0;
}

.code-window {
    background: #171411;
    border: 1px solid #7b5c4b;
    border-radius: 8px;
    overflow: hidden;
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #3f3027;
    border-bottom: 1px solid #7b5c4b;
}

.dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.code-tab {
    margin-left: 0.75rem;
    font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
    font-size: 0.8rem;
    color: #c0ab9a;
}

.code-body {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #efe8e2;
    overflow-x: auto;
}

.code-kw {
    color: #c0ab9a;
    font-weight: 600;
}

.code-str {
    color: #f7f5f2;
}

.code-notes {
    color: #c0ab9a;
    font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    padding-left: 1.25rem;
    margin: 0;
}

.project-carousel {
    position: relative;
}

.project-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #7b5c4b;
    border-radius: 50%;
    background: #3f3027;
    color: #efe8e2;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-arrow-left {
    left: -3rem;
}

.carousel-arrow-right {
    right: -3rem;
}

.carousel-arrow:hover {
    background: #7b5c4b;
}

@media (max-width: 700px) {
    .carousel-arrow {
        display: none;
    }
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 260px;
    scroll-snap-align: start;
    border: 1px solid #7b5c4b;
    border-radius: 3px;
    padding: 1rem;
    color: #efe8e2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-grid .project-card:nth-child(odd) {
    background: #171411;
}

.project-grid .project-card:nth-child(even) {
    background: #c0ab9a;
    color: #171411;
    border-color: #000000;
}

.project-grid .project-card:nth-child(even) h3 {
    color: #171411;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: -1rem;
    background: radial-gradient(ellipse at center, rgba(192, 171, 154, 0.25), transparent 70%);
    filter: blur(30px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card h3 {
    margin: 0 0 0.5rem;
    color: #f7f5f2;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
}

.status-tag ~ h3 {
    padding-right: 5.5rem;
}

.project-card p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.tech-tags li {
    border: 1px solid currentColor;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 0.85;
}

.status-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #c0ab9a;
    color: #171411;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    z-index: 2;
}

.project-card.lift {
    transform: translateY(-6px);
    border-color: #c0ab9a;
}

.project-card.lift::before {
    opacity: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border: none;
    border-radius: 6px;
    margin: 0 0 0.75rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #c0ab9a;
    font-size: 0.9rem;
}
