@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Outfit:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500&display=swap');

/* reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0e14;
    color: #c5cdd8;
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.7;
    font-size: 16px;
}

/* subtle grid texture background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(79, 197, 208, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 197, 208, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

/* ========== NAVIGATION ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background-color: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(79, 197, 208, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-name {
    font-family: 'JetBrains Mono', monospace;
    color: rgb(79, 197, 208);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #5a6270;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(79, 197, 208);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: rgb(79, 197, 208);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ========== MAIN CONTENT ========== */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 5rem;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-family: 'Outfit', sans-serif;
    color: #f0f4f8;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 span.accent {
    color: rgb(79, 197, 208);
}

h2 {
    font-family: 'Outfit', sans-serif;
    color: #f0f4f8;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2::before {
    content: "//";
    color: rgb(79, 197, 208);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 400;
}

.subtitle {
    color: #5a6270;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ========== HERO BANNER ========== */
.hero-banner {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(79, 197, 208, 0.1);
}

.hero-marquee {
    display: flex;
    gap: 0;
    animation: heroScroll 10s linear infinite reverse;
    width: max-content;
}

.hero-marquee img {
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
}

@keyframes heroScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-credit {
    color: #3a4150;
    font-size: 0.95rem;
    font-style: italic;
    text-align: right;
    opacity: 0.5;
    transform: scale(0.7);
    transform-origin: right;
    padding: 0.3rem 2rem;
}

.hero-credit a {
    color: #4a5568;
    text-decoration: underline;
}

/* ========== UPDATES TICKER ========== */
.updates-ticker {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(79, 197, 208, 0.08);
    background: rgba(16, 22, 30, 0.4);
}

.update-card {
    position: absolute;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    padding: 0 2rem;
}

.update-card.active {
    opacity: 1;
}

.update-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(79, 197, 208);
    display: block;
    margin-bottom: 0.3rem;
}

.update-card p {
    color: #c5cdd8;
    font-size: 0.95rem;
}

/* ========== HERO / ABOUT ========== */
#about p {
    color: #8b95a5;
    font-size: 1.05rem;
    max-width: 600px;
}

/* ========== ABOUT LAYOUT ========== */
.about-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.about-text {
    flex: 1;
}

.about-photo {
    flex-shrink: 0;
    cursor: pointer;
}

.about-photo img {
    width: 270px;
    height: 330px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(79, 197, 208, 0.15);
    transition: border-color 0.3s;
}

.about-photo img:hover {
    border-color: rgba(79, 197, 208, 0.4);
}

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

    .about-photo img {
        width: 180px;
        height: 230px;
    }
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    border: 1px solid rgba(79, 197, 208, 0.2);
}

/* ========== IMAGE ========== */
.image-container {
    margin: 2.5rem 0;
    display: inline-block;
}

.image-container img {
    max-width: 300px;
    max-height: 250px;
    border-radius: 4px;
    border: 1px solid rgba(79, 197, 208, 0.15);
    object-fit: cover;
    transition: border-color 0.3s;
}

.image-container .img-large {
    max-width: 600px;
    max-height: 500px;
}

.image-container img:hover {
    border-color: rgba(79, 197, 208, 0.4);
}

.image-credit {
    color: #3a4150;
    font-size: 0.75rem;
    margin-top: 0rem;
    font-style: italic;
    text-align: right;
    opacity: 0.3;
    transform: scale(0.7);
    transform-origin: right;
}

.image-credit a {
    color: #4a5568;
    text-decoration: underline;
}

.img-small {
    max-width: 250px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(79, 197, 208, 0.15);
    cursor: pointer;
}

/* ========== HIGHLIGHTS ========== */
.highlights {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(79, 197, 208, 0.06);
}

.highlight-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(79, 197, 208);
    min-width: 120px;
    flex-shrink: 0;
}

.highlight-value {
    color: #c5cdd8;
    font-size: 0.95rem;
}

/* ========== SKILLS ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.skill-category {
    background: linear-gradient(135deg, rgba(16, 22, 30, 0.8), rgba(20, 28, 38, 0.6));
    border: 1px solid rgba(79, 197, 208, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.skill-category:hover {
    border-color: rgba(79, 197, 208, 0.25);
    transform: translateY(-2px);
}

.skill-category h3 {
    font-family: 'JetBrains Mono', monospace;
    color: rgb(79, 197, 208);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(79, 197, 208, 0.1);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: #c5cdd8;
    padding: 0.25rem 0;
    font-size: 0.88rem;
}

.skill-list li::before {
    content: "→ ";
    color: rgba(79, 197, 208, 0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* ========== SKILL TOGGLE ========== */
.skill-toggle {
    font-family: 'JetBrains Mono', monospace;
    color: rgb(79, 197, 208);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(79, 197, 208, 0.1);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.skill-toggle::after {
    content: "+";
    font-size: 1rem;
    transition: transform 0.3s;
}

.skill-toggle.open::after {
    content: "−";
}

.skill-toggle:hover {
    color: #f0f4f8;
}

.skill-toggle:focus-visible {
    outline: 2px solid rgb(79, 197, 208);
    outline-offset: 2px;
}

.skill-list.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.skill-list.expanded {
    max-height: 800px;
    transition: max-height 0.4s ease;
}

/* ========== CONTACT ========== */
.contact-intro {
    color: #5a6270;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-card {
    display: block;
    background: rgba(16, 22, 30, 0.6);
    border: 1px solid rgba(79, 197, 208, 0.08);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s;
}

.contact-card:hover,
.contact-card:focus {
    border-color: rgba(79, 197, 208, 0.3);
    transform: translateY(-2px);
}

.contact-card:focus-visible {
    outline: 2px solid rgb(79, 197, 208);
    outline-offset: 2px;
}

.contact-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    color: rgb(79, 197, 208);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
}

.contact-value {
    color: #c5cdd8;
    font-size: 0.92rem;
}

/* ========== TABS (Projects Page) ========== */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab {
    font-family: 'JetBrains Mono', monospace;
    padding: 0.5rem 1.2rem;
    background-color: transparent;
    color: #5a6270;
    border: 1px solid rgba(79, 197, 208, 0.1);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: all 0.3s;
}

.tab:hover,
.tab.active {
    color: rgb(79, 197, 208);
    border-color: rgb(79, 197, 208);
    background-color: rgba(79, 197, 208, 0.06);
}

.tab:focus-visible {
    outline: 2px solid rgb(79, 197, 208);
    outline-offset: 2px;
}

/* ========== PROJECT CARDS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(16, 22, 30, 0.8), rgba(20, 28, 38, 0.6));
    border: 1px solid rgba(79, 197, 208, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
    border-color: rgba(79, 197, 208, 0.3);
    transform: translateY(-2px);
}

.project-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #f0f4f8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #6b7685;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tags span {
    font-family: 'JetBrains Mono', monospace;
    background-color: rgba(79, 197, 208, 0.07);
    color: rgb(79, 197, 208);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.project-link {
    font-family: 'JetBrains Mono', monospace;
    color: rgb(79, 197, 208);
    text-decoration: none;
    font-size: 0.82rem;
    transition: opacity 0.3s;
}

.project-link:hover {
    opacity: 0.7;
}

.project-link:focus-visible {
    outline: 2px solid rgb(79, 197, 208);
    outline-offset: 2px;
}

/* ========== PROJECT DETAIL PAGE ========== */
.back-link {
    font-family: 'JetBrains Mono', monospace;
    color: #5a6270;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: rgb(79, 197, 208);
}

.project-detail {
    margin-bottom: 2.5rem;
}

.project-detail p {
    color: #8b95a5;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
}

.feature-list {
    list-style: none;
    max-width: 700px;
}

.feature-list li {
    color: #c5cdd8;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(79, 197, 208, 0.06);
}

.feature-list li::before {
    content: "▸ ";
    color: rgb(79, 197, 208);
    font-family: 'JetBrains Mono', monospace;
}

.problem-statement {
    border-left: 3px solid rgb(79, 197, 208);
    padding: 1rem 1.5rem;
    margin-bottom: 3rem;
    background: rgba(79, 197, 208, 0.04);
    border-radius: 0 6px 6px 0;
}

.problem-statement p {
    color: #8b95a5;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
}

.empty-state {
    font-family: 'JetBrains Mono', monospace;
    color: #5a6270;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.5;
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    display: none;
}

.project-detail-caption {
    color: #c5cdd8;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

/* ========== BEFORE / AFTER ========== */
.before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.before-after-item {
    text-align: center;
}

.before-after-item img {
    max-width: 250px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(79, 197, 208, 0.15);
}

.before-after-label {
    display: block;
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(79, 197, 208);
}

.before-after-arrow {
    font-size: 2rem;
    color: rgb(79, 197, 208);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .before-after {
        flex-direction: column;
    }

    .before-after-arrow {
        transform: rotate(90deg);
    }
}

/* ========== INFO GRID (Project Detail) ========== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.info-card {
    background: linear-gradient(135deg, rgba(16, 22, 30, 0.8), rgba(20, 28, 38, 0.6));
    border: 1px solid rgba(79, 197, 208, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
}

.info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6270;
    display: block;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #f0f4f8;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: #8b95a5;
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-accent {
    border-left: 3px solid rgb(79, 197, 208);
    padding-left: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== TITLE WITH LOGO ========== */
.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.title-logo {
    height: 30px;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.title-logo:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .title-with-logo {
        flex-direction: column;
        align-items: flex-start;
    }
}

.trademark-note {
    font-size: 0.75rem;
    color: #3a4150;
    opacity: 0.5;
    margin-top: 2rem;
    font-style: italic;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(79, 197, 208, 0.08);
    background: rgba(10, 14, 20, 0.5);
}

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

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    color: #5a6270;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: rgb(79, 197, 208);
}

.footer-links a:focus-visible {
    outline: 2px solid rgb(79, 197, 208);
    outline-offset: 2px;
}

.footer-credit {
    color: #2a3040;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    main {
        padding: 2rem 1.2rem;
    }

    .skills-grid,
    .contact-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    gap: 1.2rem;
}

.blog-card {
    display: block;
    background: linear-gradient(135deg, rgba(16, 22, 30, 0.8), rgba(20, 28, 38, 0.6));
    border: 1px solid rgba(79, 197, 208, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s;
}

.blog-card:hover {
    border-color: rgba(79, 197, 208, 0.3);
    transform: translateY(-2px);
}

.blog-card:focus-visible {
    outline: 2px solid rgb(79, 197, 208);
    outline-offset: 2px;
}

.blog-date {
    font-family: 'JetBrains Mono', monospace;
    color: #5a6270;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #f0f4f8;
    font-weight: 600;
    margin: 0.4rem 0;
}

.blog-card p {
    color: #6b7685;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.blog-read-more {
    font-family: 'JetBrains Mono', monospace;
    color: rgb(79, 197, 208);
    font-size: 0.82rem;
}