@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap");

/* Reset and Base Styles */
@font-face {
    font-family: 'Paperlogy';
    src: url('assets/Paperlogy-4Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('assets/Paperlogy-5Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 7rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #000000;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
    color: #333333;
}

/* Profile Section */
.profile-section {
    text-align: left;
    margin-bottom: 4rem;
    padding: 2rem 0 0 0;
}

.profile-image {
    margin-bottom: 1.25rem;
}

.profile-pic-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
}

.profile-pic-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.profile-pic-wrap:hover {
    backdrop-filter: url(#glass);
    -webkit-backdrop-filter: url(#glass);
}

.profile-pic-wrap:hover::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 100%);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.profile-pic-wrap:hover .profile-pic {
    opacity: 0;
    transform: scale(1.05);
}

.name {
    color: #000000;
}

.name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: #9ca3af;
    border-radius: 9999px;
}

.subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 0.75rem;
}

.underline-link {
    color: #cbd5e1;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.underline-link:hover {
    color: #ffffff;
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 2rem 0 0 0;
    border-bottom: none;
}

section:last-of-type {
    border-bottom: none;
}

/* About Section */
.about-section p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333333;
}

/* Tech Stack Section */
.marquee {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #333333;
    transition: color 0.2s ease, transform 0.2s ease;
}

.marquee-item i {
    font-size: 2rem;
    line-height: 1;
}

/* Normalize Bootstrap Icons size to match FA */
.marquee-item .bi {
    font-size: 1.8rem;
    line-height: 1;
    display: inline-block;
}

/* Extra fine-tune for TypeScript specifically */
.marquee-item .bi-typescript {
    font-size: 1.7rem;
}

/* Ensure SVG icons (e.g., TypeScript) match FA icon size */
.marquee-item svg,
.marquee-item .ts-icon {
    width: 2rem;
    height: 2rem;
    display: block;
}

.marquee-item .ts-icon {
    width: 1.6rem;
    height: 1.6rem;
}

.marquee-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

.marquee-item:hover {
    color: #000000;
    transform: translateY(-2px);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Projects Section */
.projects-grid {
    margin-top: 1.25rem;
}

.project-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1.25rem;
}

.project-card:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Remove the complex ::before pseudo-element */
.project-card::before {
    display: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M14 2.5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0 0 1h4.793L2.146 13.146a.5.5 0 0 0 .708.708L13 3.707V8.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
}

.project-external {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.project-external a {
    display: block;
    width: 16px;
    height: 16px;
    text-decoration: none;
    color: transparent;
}

.eth-showcase-icon {
    transition: all 0.3s ease;
}

.project-card:hover .eth-showcase-icon path {
    fill: #6b7280;
}

.canvas-globe {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.project-card:hover .canvas-globe {
    color: #9ca3af;
}

.project-card:hover .canvas-globe path:first-child {
    d: path("M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 1a7 7 0 0 0-3.115.73.48.48 0 0 0 .137.292.488.488 0 0 1-.126.78l-.292.145a.7.7 0 0 0-.187.136l-.48.48a1 1 0 0 1-1.023.242l-.02-.007a1 1 0 0 0-.461-.041A6.97 6.97 0 0 0 1 8a6.96 6.96 0 0 0 .883 3.403l.86-.213c.444-.112.757-.512.757-.971v-.184a1 1 0 0 1 .445-.832l.04-.026a1 1 0 0 0 .153-1.54L3.12 6.622a.415.415 0 0 1 .542-.624l1.09.817a.5.5 0 0 0 .523.047A.5.5 0 0 1 6 7.31v.455a.8.8 0 0 0 .13.432l.796 1.193a1 1 0 0 1 .116.238l.73 2.19a1 1 0 0 0 .949.683h.058a1 1 0 0 0 .949-.684l.73-2.189q.042-.127.116-.238l.791-1.187A.45.45 0 0 1 11.743 8c.16 0 .306.083.392.218.557.875 1.63 2.282 2.365 2.282l.04-.003A7 7 0 0 0 8 1");
}

.project-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.project-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
    position: relative;
    z-index: 2;
}

/* When hovering the project card, also highlight tag borders */
.project-card:hover .tag {
    border-color: #9ca3af;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
}

.project-tags a.tag {
    text-decoration: none;
}

.project-links {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    gap: 0.5rem;
}

.project-link {
    color: #9ca3af;
}

.project-link:hover {
    color: #ffffff;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-more-btn {
    background: #9ca3af;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    margin: 0 auto;
}

.view-more-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
    border-color: #ffffff;
}

.view-more-btn svg {
    width: 24px;
    height: 24px;
}

/* Additional Projects */
.additional-projects {
    margin-top: 1.25rem;
}

.additional-projects .project-card:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-content {
    margin-top: 1.5rem;
}

.contact-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #000000;
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.5rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.contact-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tech Stack Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: url(#glass);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 2rem;
    color: #374151;
}


.tech-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

/* Education Section */
.education-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.education-item {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 2rem;
    align-items: start;
}

.education-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    margin-right: 0.5rem;
    display: flex;
}

.education-content .degree {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #4b5563;
}

.education-year {
    font-size: 1.1rem;
    color: #9ca3af;
    font-weight: 600;
    justify-self: end;
}



/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}


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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Size the wrapper on mobile, let the img fill it */
    .profile-pic-wrap {
        width: 120px;
        height: 120px;
    }

    /* Remove any image-level fixed sizing that could fight object-fit */
    .profile-pic {
        width: 100%;
        height: 100%;
    }

    .company-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .education-item {
        flex-direction: column;
        gap: 1rem;
    }

    .education-year {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .company-logos {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .additional-projects {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .additional-projects .project-card {
        width: 100%;
        margin-bottom: 0;
    }
}

@media (min-width: 1201px) {
    .additional-projects {
        gap: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

.burnhall-logo {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000000;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.mvj-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    margin-right: 0.5rem;
    display: flex;
}

.ethglobal-logo {
    height: 1.2em;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.mercatus-logo {
    height: 1.2em;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.monad-logo {
    height: 1.2em;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

/* Glass Button Styles */
.glass-button {
    cursor: pointer;
    outline: none;
    width: 100px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: url(#glass);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    display: block;
    margin: 0 auto;
}

.glass-button span {
    font-family: inherit;
    color: #000000;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.glass-button:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 100%);
}

/* Apply glass effect to view more buttons */
.view-more-btn {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    margin: 0 auto;
    backdrop-filter: url(#glass);
    -webkit-backdrop-filter: url(#glass);
}

.view-more-btn:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 100%);
    color: #000000;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer positioning */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

@media (hover: none),
(pointer: coarse) {
    .profile-pic-wrap {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .profile-pic-wrap::before {
        background: transparent !important;
    }

    .profile-pic {
        opacity: 1 !important;
        transform: none !important;
    }
}