.caption-color {
    color: #7cb2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6a6a6a;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #fafafa;
    --card-border: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-color: #1e90ff;
    --hover-bg: #f0f0f0;
}

body.dark-mode {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: rgba(110, 118, 129, 0.3);
    --card-bg: #161b22;
    --card-border: #30363d;
    --shadow: rgba(0, 0, 0, 0.8);
    --accent-color: #1e90ff;
    --hover-bg: #21262d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

.case-study-toggle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--accent-color); /* CHANGED: Blue */
    background-color: transparent;
    font-size: 16px;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.case-study-toggle:hover {
    color: #4169e1;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

p a {
    color: var(--accent-color);
}

.project-content a,
.card-content a,
.contact-method,
.social-link {
    color: var(--accent-color);
}

.project-content a:hover,
.card-content a:hover {
    color: #4169e1;
    text-decoration: underline;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme='dark'] .navbar {
    background-color: rgba(13, 17, 23, 0.95);
    border-bottom-color: var(--border-color);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

[data-theme='dark'] .navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta {
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background-color: #1e90ff;
    transform: translateY(-2px);
}

.about {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    text-align: center;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 4px solid var(--bg-color);
    box-shadow: 0 10px 30px var(--shadow);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme='dark'] .avatar-placeholder {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border-color: var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.avatar-placeholder i {
    font-size: 4rem;
    color: #9a9a9a;
    transition: color 0.3s ease;
}

[data-theme='dark'] .avatar-placeholder i {
    color: #6e7681;
}

.about-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.role {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 10px rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #4169e1;
    background-color: var(--hover-bg);
}

.social-link i {
    font-size: 1.1rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.projects {
    padding: 80px 0;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.project-card {
    background: var(--card-bg);
    margin-left: 0px;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 10px var(--shadow);
    height: auto;
    align-self: start;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact {
    padding: 80px 0;
    background-color: var(--card-bg);
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.contact-method:hover {
    color: #4169e1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-method i {
    font-size: 1.2rem;
}

.footer {
    background-color: var(--text-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    color: #1a1a1a;
    margin: 0;
}

body.dark-mode .footer {
    background-color: #161b22;
    color: #c9d1d9;
}

body.dark-mode .footer p {
    color: #c9d1d9;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .avatar-placeholder {
        width: 150px;
        height: 150px;
    }

    .avatar-placeholder i {
        font-size: 3rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-method {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .about-text h2 {
        font-size: 2rem;
        
    }
    .avatar-placeholder {
        width: 120px;
        height: 120px;
    }

    .avatar-placeholder i {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

a:focus,
button:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

@media print {
    .navbar,
    .hamburger {
        display: none;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
      body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

.navbar,
.nav-logo a,
.nav-link {
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active,
.nav-logo a:hover {
    color: var(--accent-color);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--text-color);
}

.navbar.scrolled .nav-logo a,
.navbar.scrolled .nav-link {
    color: var(--text-color);
}

body.dark-mode .navbar {
    background-color: #1e1e1e;
}

body.dark-mode .nav-logo a,
body.dark-mode .nav-link {
    color: #f5f5f5;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active,
body.dark-mode .nav-logo a:hover {
    color: #fff;
}

body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-mode * {
    color: inherit;
}

body.dark-mode a {
    color: var(--accent-color);
}

body.dark-mode a:hover,
body.dark-mode a:focus {
    color: #4169e1;
}

body.dark-mode .btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

body.dark-mode .btn-primary:hover {
    background-color: #1e90ff;
    transform: translateY(-2px);
}

body.dark-mode .navbar,
body.dark-mode .nav-logo a,
body.dark-mode .nav-link {
    color: #c9d1d9;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active,
body.dark-mode .nav-logo a:hover {
    color: var(--accent-color);
}

body.dark-mode .bar {
    background-color: #c9d1d9;
}

body.dark-mode .project-card,
body.dark-mode .contact-method,
body.dark-mode .about {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 0 10px var(--shadow);
}

body.dark-mode ::-webkit-scrollbar {
    width: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #161b22;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 2px solid #161b22;
}

.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-wrapper {
  width: 300px;
  height: 300px;
  max-width: 400px;
  max-height: 400px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 3px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transform: scale(1.1);
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1;
}

.footer {
  background-color: #ffffff;
  color: #1a1a1a;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 55%;
  text-align: left;
  max-width: 600px;
}

.about-image {
  flex: 1 1 35%;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: left;
}

.about-image figure {
    text-align: left;
    margin: 0;
    display: block;
}

.about-image figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: left;
    padding-left: 0;
    width: 100%;
}

.electric-border-wrapper {
  --electric-border-color: #1e90ff;
  --eb-border-width: 2px;
  position: relative;
  border-radius: 12px;
  overflow: visible;
  isolation: isolate;
}

body:not(.dark-mode) .electric-border-wrapper {
  --electric-border-color: #1e90ff;
}

.eb-svg {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 10px;
  height: 10px;
  opacity: 0.001;
  pointer-events: none;
}

.eb-content {
  position: relative;
  border-radius: inherit;
  z-index: 1;
}

.eb-layers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.electric-border-wrapper:hover .eb-layers {
  opacity: 1;
}

.eb-stroke,
.eb-glow-1,
.eb-glow-2,
.eb-background-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
}

.eb-stroke {
  border: var(--eb-border-width) solid var(--electric-border-color);
}

.eb-glow-1 {
  border: var(--eb-border-width) solid var(--electric-border-color);
  opacity: 0.6;
  filter: blur(calc(0.5px + (var(--eb-border-width) * 0.25)));
}

.eb-glow-2 {
  border: var(--eb-border-width) solid var(--electric-border-color);
  opacity: 0.5;
  filter: blur(calc(2px + (var(--eb-border-width) * 0.5)));
}

.eb-background-glow {
  z-index: -1;
  transform: scale(1.08);
  filter: blur(32px);
  opacity: 0.3;
  background: linear-gradient(-30deg, var(--electric-border-color), transparent, var(--electric-border-color));
}

.projects-grid {
  overflow: visible;
}

.project-card,
.blog-card {
  overflow: visible;
}

.pixel-blast-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: auto;
}

.pixel-blast-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

body.dark-mode .hero-content {
  background: rgba(13, 17, 23, 0.3);
}

.case-study-content {
  display: none;
  margin-top: 1em;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
}

.case-study-content.open {
  display: block;
  opacity: 1;
  max-height: 500px;
}

.decrypted-text-wrapper {
  display: inline-block;
  white-space: pre-wrap;
}

.decrypted-text-char {
  display: inline-block;
  transition: all 0.3s ease;
}

.encrypted-char {
  color: var(--text-muted);
  opacity: 0.7;
}

.revealed-char {
  color: var(--text-color);
  opacity: 1;
}

.hero-title.has-decrypt {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-type {
  display: inline-block;
  white-space: pre-wrap;
}

.text-type__content {
  display: inline;
}

.text-type__cursor {
  margin-left: 0.25rem;
  display: inline-block;
  opacity: 1;
  animation: cursor-blink 0.5s infinite alternate;
}

.text-type__cursor--hidden {
  display: none;
}

@keyframes cursor-blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.text-type--color-0 { color: var(--text-color); }
.text-type--color-1 { color: var(--accent-color); }
.text-type--color-2 { color: #1e90ff; }

.project-card .card-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

.tech-stack-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.9rem;
}

.project-tech .tech-tag:first-child {
  min-width: 100px;
  font-weight: 100;
}

.project-links {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

@media screen and (max-width: 968px) {
  .project-card .card-content {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    grid-column: 1;
  }
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

@media screen and (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .profile-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .about-info {
        text-align: center;
        width: 100%;
    }
    
    .about-info h2 {
        text-align: center;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .about-text {
        text-align: left;
        padding: 0 1rem;
    }
    
    .about-text h1 {
        text-align: center;
    }
    
    .about-description p {
        font-size: 1rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media screen and (max-width: 480px) {
    .profile-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .about-text {
        padding: 0 0.5rem;
    }
    
    .about-description p {
        font-size: 0.95rem;
    }
}

.github-graph-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
}

#graph-content {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for graph */
#graph-content::-webkit-scrollbar {
    height: 6px;
}

#graph-content::-webkit-scrollbar-track {
    background: var(--hover-bg);
    border-radius: 3px;
}

#graph-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

#graph-content::-webkit-scrollbar-thumb:hover {
    background: #4169e1;
}

@media screen and (max-width: 968px) {
    .github-graph-container {
        padding: 12px;
        margin-top: 15px;
    }
    
    .github-graph-header {
        font-size: 13px !important;
    }
    
    #graph-content > div {
        min-width: max-content;
    }
    
    .github-graph-container > div:last-child {
        font-size: 10px !important;
        margin-top: 8px !important;
    }
}

@media screen and (max-width: 480px) {
    .github-graph-container {
        padding: 10px;
        margin-top: 12px;
    }
    
    #graph-content div[style*="width: 10px"] {
        width: 8px !important;
        height: 8px !important;
    }
    
    .github-graph-header {
        font-size: 12px !important;
    }
}

p, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-description p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-content {
        padding-top: 80px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

@media screen and (max-width: 968px) {
    .social-links {
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    .social-link i {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .social-links {
        gap: 0.5rem;
        flex-direction: row;
    }
    
    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .page-header p {
        font-size: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #tooltip {
        font-size: 10px !important;
        padding: 5px 8px !important;
        max-width: 200px;
        white-space: normal !important;
    }
}

@media screen and (max-width: 968px) {
    .github-graph-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 100%;
        background: linear-gradient(to left, var(--card-bg), transparent);
        pointer-events: none;
        opacity: 0.7;
    }
}

@media screen and (max-width: 968px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .about-content,
    .container {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    #graph-content,
    #graph-content * {
        max-width: none;
    }
}

.github-graph-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#graph-content {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--hover-bg);
}

#graph-content::-webkit-scrollbar {
    height: 8px;
}

#graph-content::-webkit-scrollbar-track {
    background: var(--hover-bg);
    border-radius: 4px;
}

#graph-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

#graph-content::-webkit-scrollbar-thumb:hover {
    background: #4169e1;
}

@media screen and (max-width: 968px) {
    .about-image {
        max-width: 100%;
        overflow: hidden;
    }
    
    .github-graph-container {
        padding: 12px;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .github-graph-header {
        font-size: 13px !important;
    }
    
    #graph-content {
        max-width: 100%;
    }
    
    #graph-content > div {
        min-width: max-content;
    }
    
    #graph-content::-webkit-scrollbar {
        height: 10px;
    }
    
    .github-graph-container > div:last-child {
        font-size: 10px !important;
        margin-top: 8px !important;
    }
}

@media screen and (max-width: 480px) {
    .github-graph-container {
        padding: 10px;
        margin-top: 12px;
    }
    
    #graph-content div[style*="width: 10px"] {
        width: 8px !important;
        height: 8px !important;
    }
    
    .github-graph-header {
        font-size: 12px !important;
    }
}

@media screen and (max-width: 968px) {
    .about-info {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .about-content {
        max-width: 100%;
        overflow: hidden;
    }
}