/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome, Safari, and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge */
body {
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for Firefox */
body {
    scrollbar-width: none;
    /* Firefox */
}

.hline-fixed {
    position: absolute;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Vertical Side Lines */
.page-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.page-lines::before,
.page-lines::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.page-lines::before {
    left: 11%;
}

.page-lines::after {
    right: 11%;
}

/*Selection Colors*/
/* Default yellow selection for the entire site */
::selection {
    background-color: #ffc107;
    color: #000000
}

::-moz-selection {
    background-color: #ffc107;
    color: #000000;
}

/* Footer Section - Light Gray */
.footer ::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.footer ::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Navigation/Header - White selection */
.header ::selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Logo specific selection */
.logo ::selection,
.logo *::selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Updated button selection styles */
.about-btn::selection,
.about-btn *::selection {
    background-color: #e0e0e0;
}

.resume-btn::selection,
.resume-btn *::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.open-to-work-btn::selection,
.open-to-work-btn *::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.blog-btn::selection,
.blog-btn *::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.search-overlay ::selection {
    background-color: #e0e0e0;
    /* Same gray as footer/header */
    color: #000000;
}

.search-overlay ::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Search input specific selection */
.search-input-container ::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.search-input-container ::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Search results selection */
.search-results ::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.search-results ::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Search footer selection */
.search-footer ::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.search-footer ::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Section Divider Lines */
.section-divider {
    position: relative;
    width: 100%;
    height: 40px;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        /* top line */
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) top/100% 1px no-repeat,
        /* bottom line */
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) bottom/100% 1px no-repeat,
        /* single hatch pattern */
        repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(255, 255, 255, 0.08) 3px, rgba(255, 255, 255, 0.08) 4px);
    background-position:
        top left,
        bottom left,
        center;
    background-repeat:
        no-repeat,
        no-repeat,
        repeat;
    background-size:
        100% 1px,
        100% 1px,
        16px 16px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    transition: transform 0.3s ease;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #ffffff);
    z-index: 1001;
    transition: width 0.1s ease;
    opacity: 0;
}

.progress-bar.visible {
    opacity: 1;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Space between search button and open to work button */
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.logo.hidden {
    transform: translateY(-50px);
    opacity: 0;
}

.open-to-work-btn {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0 2rem;
    border-radius: 8px;
    font-size: 0.90rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    box-shadow: none;
    letter-spacing: 0.02em;
    outline: none;
    width: 180px;
    height: 40px;
}

.open-to-work-btn:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-text {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 3rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-corner-text {
    position: absolute;
    bottom: 2.5rem;
    left: 12rem;
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    z-index: 10;
    max-width: 300px;
}

.corner-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.corner-link:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.about-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2.5rem;
    z-index: 2;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.90rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    box-shadow: none;
    letter-spacing: 0.02em;
    outline: none;
    width: 250px;
    height: 48px;
}

.about-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* About Section */
.about-section {
    padding: 2rem 0;
}

.about-header {
    display: flex;
    justify-content: flex-start;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.about-content {
    margin-top: 2rem;
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0rem;
    text-align: left;
}

.about-text {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #a3a3a3;
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-corner-text {
    display: none;
}

/* Work Section */
.work-section {
    padding: 2rem 0;
}

.work-header {
    display: flex;
    justify-content: flex-start;
    gap: 23.3rem;
    /* space between title and details */
    ;
}

.work-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.details-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.work-items {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.work-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: block;
}

.work-company {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.work-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
}

/*Skills section*/
.skills-section {
    padding: 2rem 0;
}

.skills-header {
    display: flex;
    justify-content: flex-start;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.skills-list {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-start;
}

.skill-link {
    text-decoration: none;
    position: relative;
    /* For tooltip positioning */
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

.skill-link:hover {
    transform: translateY(-5px);
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    width: 64px;
    /* Smaller since no text */
    height: 64px;
}

.skill-item:hover {
    transform: scale(1)
}

.skill-logo {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.skill-link:hover .skill-logo {
    transform: scale(1.1);
}

/* Custom Tooltip Styles */
.skill-link::after {
    content: attr(data-title);
    position: absolute;
    bottom: -40px;
    /* Position below the skill item */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

/* Show tooltip on hover */
.skill-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.skill-link:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Triangle pointer for tooltip */
.skill-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    /* Just touching the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.10);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .skills-list {
        justify-content: center;
    }

    .skill-item {
        width: 60px;
        height: 60px;
        padding: 1.25rem;
    }

    .skill-logo {
        width: 32px;
        height: 32px;
    }

    /* Adjust tooltip position for mobile */
    .skill-link::after {
        bottom: -30px;
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .skill-link::before {
        display: none;
    }
}

/* ==========================================================================
   Stacking Projects Section
   ========================================================================== */

.projects-section {
    position: relative;
    background: #0a0a0a;
    padding-bottom: 4rem;
    scroll-margin-top: 80px;
}

.projects-header {
    display: flex;
    justify-content: flex-start;
}

.projects-section-title {
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Stacking Container */
.stacking-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
    padding: 0 2rem;
}

.stack-card {
    position: sticky;
    top: 100px;
    margin-bottom: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    width: 100%;
    /* Force it to respect container width */
    max-width: 100%;
    /* Don't overflow */
    transform-origin: center top;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.stack-card {
    transform: scale(1);
    opacity: 1;
    filter: blur(0px);
}

/* Stacking offset - each card slightly lower */
.stack-card[data-index="0"] {
    top: 80px;
}

.stack-card[data-index="1"] {
    top: 100px;
}

.stack-card[data-index="2"] {
    top: 120px;
}

.stack-card[data-index="3"] {
    top: 140px;
}

/* Card becomes smaller/faded when scrolled past */
.stack-card.stacked {
    transform: scale(0.95);
    opacity: 0.5;
    filter: blur(2px);
}

/* Card Inner Layout */
.card-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    max-width: 100%;
}

.card-number {
    position: absolute;
    top: -2rem;
    left: -0.5rem;
    font-size: 6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Card Content */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.card-title {
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.card-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
}

.card-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translate(2px, -2px);
}

/* Card Image */
.card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 16/10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .card-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-image {
        order: -1;
        /* Image on top */
    }

    .card-number {
        font-size: 6rem;
    }

    .stack-card {
        padding: 2rem;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .stacking-container {
        padding: 0 1.5rem;
    }

    .stack-card {
        top: 70px !important;
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .card-number {
        font-size: 4rem;
        top: 27rem;
        left: 0;
    }

    .projects-section {
        scroll-margin-top: 60px;
    }

    .projects-section-title {
        font-size: 1.75rem;
    }

    .card-inner {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .stacking-container {
        padding: 0 1rem;
    }

    .stack-card {
        padding: 1.5rem 1rem;
        top: 65px !important;
    }

    .card-inner {
        gap: 1.5rem;
    }

    .card-tags {
        gap: 0.5rem;
    }

    .card-number {
        font-size: 4rem;
        top: 0.3rem;
        left: 0.4rem;
        color: rgba(255, 255, 255, 0.2);
    }

    .tag {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .card-link {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
    }

    .projects-section {
        scroll-margin-top: 50px;
    }
}


/* Blog Button */
.blog-button {
    position: fixed;
    bottom: 20px;
    right: 193px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition:
        opacity 0.4s cubic-bezier(.77, 0, .18, 1),
        transform 0.4s cubic-bezier(.77, 0, .18, 1);
}

.blog-button.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.blog-button.hide-away {
    opacity: 0;
    transform: translateY(40px);
    /* slides it further down as it fades out */
    pointer-events: none;
}

.blog-btn {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.90rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    box-shadow: none;
    letter-spacing: 0.02em;
    outline: none;
    width: 180px;
    height: 45px;
}

.blog-btn:hover {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 1rem 0;
    }

    .page-lines {
        display: none;
    }

    .hero-text {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-corner-text {
        bottom: 1rem;
        left: 1.5rem;
        font-size: 0.8rem;
    }

    .open-to-work-btn {
        display: none !important;
    }

    .about-text {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0rem;
    }

    .work-section {
        padding: 4rem 0;
    }

    .about-section {
        padding: 1rem 0;
    }

    .knowledge-pool {
        bottom: 1rem;
        right: 1rem;
    }

    .blog-button {
        bottom: 25px;
        right: 20px;
        left: auto;
    }

    .blog-btn {
        width: 120px;
        height: 40px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .details-text {
        display: none;
    }

    .hero-corner-text {
        display: none;
    }

    .about-corner-text {
        display: none;
    }

    .about-corner-text {
        display: block;
        margin-top: 2.5rem;
        font-size: 1rem;
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.5;
    }

    .corner-link {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.4);
        text-underline-offset: 3px;
        transition: all 0.3s ease;
    }

    .corner-link:hover {
        color: #ffffff;
        text-decoration-color: rgba(255, 255, 255, 0.8);
    }

}

@media (max-width: 480px) {
    .hero-text {
        font-size: 1.75rem;
    }

    .page-lines {
        display: none;
    }

    .hero-corner-text {
        bottom: 0.75rem;
        left: 1rem;
        font-size: 0.75rem;
    }

    .about-text {
        font-size: 1.125rem;
    }

    .open-to-work-btn {
        display: none !important;
    }

    .work-company {
        font-size: 1.25rem;
    }

    .work-description {
        font-size: 1rem;
    }

    .blog-button {
        bottom: 20px;
        right: 15px;
    }

    .blog-btn {
        width: 100px;
        height: 36px;
        font-size: 0.90rem;
        padding: 0.4rem 0.6rem;
    }

    .details-text {
        display: none;
    }
}

/* Footer */
.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    /* Changed from 1fr 1fr 1fr to push links right */
    gap: 4rem;
    margin-bottom: 1rem;
    align-items: start;
}

.footer-logo-link {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.footer-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    line-height: 1.4;
}

.footer-center {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    /* Force to the right */
}

.footer-link {
    display: flex;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    justify-content: flex-end;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 1.25rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-location {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.footer-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* Single column layout */
        gap: 2.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-left {
        align-items: center;
        /* Center logo and tagline */
    }

    .footer-center {
        justify-content: center;
        /* Center the links */
        margin-left: 0;
    }

    .footer-links {
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .footer-link {
        font-size: 0.9rem;
        /* Slightly smaller on mobile */
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-divider {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-logo-link {
        font-size: 1.125rem;
        /* Slightly smaller logo */
    }

    .footer-links {
        gap: 1.5rem;
        /* Tighter spacing between links */
        flex-direction: row;
        /* Keep horizontal but allow wrapping */
    }

    .footer-link {
        font-size: 0.85rem;
        padding: 0.15rem 0;
    }

    .footer-tagline {
        font-size: 0.7rem;
    }

    .footer-location,
    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background-color: #0a0a0a;
    scroll-margin-top: 100px;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

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

.meet-link {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    pointer-events: auto;
    cursor: pointer;
}

.meet-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.resume-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.resume-btn:hover {
    transform: translateY(-2px);
}


/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .social-links {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.75rem;
    }

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

    .social-links {
        gap: 1rem;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 40px;
}

.search-btn:hover {
    transform: translateY(-1px);
}

.search-shortcut {
    font-size: 0.90rem;
    color: #ffffff;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.10);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Search Dialog Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

.search-overlay * {
    font-family: inherit;
    /* Ensures all child elements inherit the font */
}

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

.search-dialog {
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.95) 0%,
            rgba(20, 20, 20, 0.9) 50%,
            rgba(15, 15, 15, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(-10px);
    transition: all 0.2s ease;
}

.search-overlay.active .search-dialog {
    transform: scale(1) translateY(0);
}

/* Search Header */
.search-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.125rem;
    font-family: inherit;
    outline: none;
    padding: 0;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Custom scrollbar styling */
.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-section {
    margin-bottom: 1rem;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
}

.search-item:hover,
.search-item.selected {
    background: rgba(255, 255, 255, 0.05);
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.125rem;
}

/* Search Footer */
.search-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.search-shortcuts {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

kbd {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    font-size: 0.625rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   PRELOADER (Cinematic Reveal)
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    /* Your site bg */
    z-index: 999999;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* The container for text/line */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Your Name */
.loader-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    animation: textPulse 2s ease-in-out infinite;
}

/* The Loading Line */
.loader-line {
    width: 0%;
    /* Starts empty */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.5s ease;
    /* JS will fill this */
}

/* Animation State: Loaded */
body.loaded #preloader {
    opacity: 0;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Subtle Pulse Animation */
@keyframes textPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .search-btn {
        padding: 0.5rem;
    }

    .search-shortcut {
        display: none;
    }

    .search-overlay {
        padding-top: 10vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .search-dialog {
        max-height: 80vh;
    }

    .search-shortcuts {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .search-footer {
        display: none;
    }
}

/* Hide search button on mobile initially */
@media (max-width: 480px) {
    .nav-right {
        gap: 1rem;
    }
}