:root {
    --bg: #F8F7F4;
    --surface: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --accent: #2563EB;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.grid-pattern {
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hover-lift {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--accent);
    border-color: var(--accent);
}

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

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

::selection {
    background: var(--accent);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: var(--bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    font-family: monospace;
}

.nav-underline {
    position: relative;
}

.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.2s ease;
}

.nav-underline:hover::after {
    width: 100%;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.logo {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    padding: 4px 8px;
    transition: border 0.2s;
}

.logo:hover {
    border-color: black;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}

.nav-item {
    color: var(--text);
    text-decoration: none;
}

.contact-btn {
    border: 1px solid var(--text);
    padding: 6px 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.contact-btn:hover {
    background: var(--text);
    color: var(--surface);
}

.mobile-menu {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-links {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: monospace;
  font-size: 14px;
}

.mobile-links a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-links a:last-child {
  border-bottom: none;
  color: var(--accent);
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  transition: border-color 0.2s;
}

.mobile-toggle:hover {
  border-color: var(--text);
}

.mobile-toggle .icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }
}


/*
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }   
}
*/
/* Home */
.home-style {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
}

.home-grid {
    display: grid;
    gap: 32px;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .home-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .home-left {
        grid-column: span 8;
    }

    .home-right {
        grid-column: span 4;
    }
}

.home-subtitle {
    font-family: monospace;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.home-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 24px;
}


@media (min-width: 768px) {
    .home-title {
        font-size: 88px;
    }
}

@media (min-width: 1024px) {
    .home-title {
        font-size: 104px;
    }
}

.home-description {
    font-size: 18px;
    color: #475569;
    max-width: 520px;
    line-height: 1.6;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin-bottom: 32px;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: monospace;
    font-size: 14px;
}

.home-btn-primary {
    background: var(--text);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    transition: background 0.2s;
}

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

.home-btn-secondary {
    border: 1px solid var(--text);
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.home-btn-secondary:hover {
    background: var(--text);
    color: white;
}

.home-right {
    display: none;
}

@media (min-width: 1024px) {
    .home-right {
        display: flex;
        justify-content: flex-end;
    }
}

.home-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.profile-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 18px;
    width: fit-content;
}

.profile-card img {
    display: block;
    width: 440px;
    height: auto;
    object-fit: cover;
}

.stats-box {
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--border);
    padding: 18px 24px;
    background: white;
    min-width: 480px;
}

.stats-title {
    color: var(--muted);
    margin-bottom: 12px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-rows {
    display: grid;
    grid-template-columns: 110px auto;
    column-gap: 24px;
    align-items: center;
    white-space: nowrap;
}

.stats-rows span:last-child {
    text-align: right;
}

.stats-label {
    color: var(--muted);
}

/* About */
.about-style {
    padding: 96px 10px;
    border-top: 1px solid var(--border);
}

.section-title {
    font-family: monospace;
    font-size: 18px;
    margin-bottom: 40px;
}

.section-index {
    color: var(--accent);
}

.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

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

.about-text {
    color: #475569;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text strong {
    color: var(--text);
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    background: var(--surface);
    border: solid 1px var(--border);
    padding: 24px;
    width: 480px;
    min-width: 480px;
}

@media (min-width: 768px) {
    .about-right {
        align-items: flex-end;
    }
}

@media (max-width: 767px) {
    .about-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}

.about-card-title {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.education-title {
    font-weight: 500;
}

.education-meta {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.badge {
    display: inline-block;
    margin-top: 12px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 8px;
}

/* Projects */
.projects-style {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    gap: 24px;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 22px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-tag {
    font-family: monospace;
    font-size: 11px;
    border: 1px solid var(--border);
    padding: 2px 6px;
}

.project-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.project-meta {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
}

/* Blog */
.blog-style {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.blog-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.blog-card {
    width: 100%;
    min-width: 900px;
    max-width: 900px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 24px;
}

@media (max-width: 767px) {
    .blog-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .blog-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.blog-date {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
}

.blog-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-family: monospace;
    font-size: 11px;
    color: var(--muted);
}

.blog-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.blog-btn {
    font-family: monospace;
    font-size: 13px;
    border: 1px solid var(--text);
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.blog-btn:hover {
    background: var(--text);
    color: white;
}

/* Skills */
.skills-style {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    gap: 24px;
}

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

.skills-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 22px;
}

.skills-card-title {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: monospace;
    font-size: 13px;
}

.skills-item {
    border: 1px solid var(--text);
    padding: 6px 12px;
    background: var(--bg);
}

/* Contact */
.contact-style {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.contact-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.contact-description {
    color: #475569;
    margin: 0 auto 32px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-family: monospace;
    font-size: 13px;
}

.contact-link {
    display: inline-block;
    border: 1px solid var(--border);
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
}

/* Blog Post */
.post-container {
    max-width: 720px !important;
    margin: 0 auto;
    width: 100%;
    padding-top: 80px; 
}

.post-back {
    display: inline-block;
    margin-bottom: 32px;
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.post-header {
    margin-bottom: 48px;
}

.post-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 40px;
    }
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: #F1F5F9;
    color: var(--text);
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
}

.post-content {
    margin-top: 32px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 32px;
}

/* Headings */
.post-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;

    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.post-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--muted);
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    border: 1px solid #334155;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    background: #f8fafc;
    padding: 12px 16px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}