:root {
  --primary-color: #f8b400;
  --primary-color-rgb: 248, 180, 0;
  --secondary-color: #e63946;
  --accent-color: #4ecdc4;

  --gameHub-btn: #7c3aed;
  
  --accent-color-rgb: 78, 205, 196;

  --background-color: #1b1b1b;
  --surface-color: #2a2a2a;
  --surface-color-rgb: 42, 42, 42;

  --text-color: #ffffff;
  --text-muted: #b0b0b0;
  --text-secondary: #888888;

  --border-color: rgba(255, 255, 255, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.5);
}

.light {
  --primary-color: #2563eb;
  --primary-color-rgb: 37, 99, 235;
  --secondary-color: #7c3aed;
  --accent-color: #059669;
  --accent-color-rgb: 5, 150, 105;

  --gameHub-btn: #f8b400;

  --background-color: #f7f7f7;
  --surface-color: #ffffff;
  --surface-color-rgb: 255, 255, 255;

  --text-color: #1b1b1b;
  --text-muted: #555555;
  --text-secondary: #777777;

  --border-color: rgba(0, 0, 0, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  scrollbar-width: thin;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a[href="https://www.free-counters.org/"] {
  display: none !important;
}

a[href="https://www.free-counters.org/stats/ifqw"] {
  pointer-events: none;
  cursor: default;
}

a[href="https://www.free-counters.org/stats/ifqw"] svg {
  display: block;
  margin: 0 auto;
  max-width: 100px;
  height: auto;
}

.custom-cursor {
  display: none;
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  opacity: 0.85;
  transition:
    transform 0.15s,
    opacity 0.2s;
  transform: translate(-50%, -50%);
}

.custom-cursor.active {
  transform: scale(1.15) translate(-50%, -50%);
  opacity: 1;
  border-color: var(--secondary-color);
  background: var(--primary-color);
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background-color: var(--background-color);
  color: var(--text-color);
}

#menu-icon {
  margin: 20px;
  width: 2em;
  height: 2em;
  color: var(--text-color);
  position: fixed;
  z-index: 1000;
  cursor: pointer;
  top: 0;
  left: 0;
}

aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 25%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  background-color: var(--surface-color);
  padding: 20px;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

aside.hidden {
  transform: translateX(-100%);
  pointer-events: none;
}

aside > hr {
  margin: 10px 0;
  border: 1px solid var(--accent-color);
  width: 100%;
}

aside > .circleShadow > img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  box-shadow: 0 0 40px var(--shadow-color);
}

.circleShadow {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--shadow-color);
}

nav {
  margin: 25px;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  text-align: center;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: color 0.3s, transform 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.1s ease;
}

nav a:hover,
nav a:focus {
  color: var(--primary-color);
}

nav a:hover {
  transform: scale(1.1);
}

nav a:active {
  transform: scale(1) translateY(-2px);
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

/*--------------------------------------Title Styling------------------------------------- */
.title {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.top {
  width: 20%;
  border: 2px solid;
  position: absolute;
  top: 0;
  left: -20px;
}

.left {
  position: absolute;
  border-left: 4px solid;
  height: 40%;
  width: 20%;
  top: 0px;
  left: -20px;
}

.bottom {
  position: absolute;
  border-bottom: 4px solid;
  height: 0%;
  width: 20%;
  bottom: 0px;
  right: -20px;
}

.right {
  position: absolute;
  border-right: 4px solid;
  height: 40%;
  width: 20%;
  bottom: 0px;
  right: -20px;
}
.top,
.left,
.bottom,
.right {
  border-color: var(--primary-color);
}

#typewriter-name {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary-color);
  animation: 
    typing 2.5s steps(12, end) 0.5s both,
    blink-name 0.75s step-end infinite 3s;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-name {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

aside > nav > button {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.5em;
  opacity: 1 !important;
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.5em;
  transition: color 0.3s, transform 0.2s ease;
}

#theme-toggle:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

#theme-toggle:active {
  transform: scale(1) translateY(-2px);
}
/*--------------------------------------------MAIN------------------------------------ */
#main-content {
  margin-left: 25%;
  padding: 40px 60px 0;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
  width: 75%;
  max-width: 75%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.aside-hidden #main-content {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}

#main-content section {
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

#main-content section:last-child {
  padding-bottom: 0;
}

#main-content h2 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.5rem;
}

#main-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}


/*-------------------------------------------------------------------------*/
#Home {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

#Home h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: scrollDown 0.7s ease-in-out infinite;
  z-index: 10;
}

.scroll-indicator span {
  font-size: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.8;
  -webkit-text-fill-color: var(--text-muted) !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

#scroll-down {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.8;
}

@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/*---------------------------------------------------------------------------------- */
.highlight {
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#About,
#Skills,
#Projects,
#Achievements,
#Contact {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/*---------------------------------------------------------------------------------- */

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  margin-top: 40px;
  align-items: start;
}

.about-text {
  text-align: left;
  max-width: 100%;
  overflow-wrap: break-word;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color);
  opacity: 0.9;
  word-wrap: break-word;
  max-width: 100%;
}

.personal-info-card {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personal-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(var(--primary-color), 0.3);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.basic-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.basic-info .title {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 8px;
  width: 100%;
  max-width: none;
  position: static;
  margin: 0 0 8px 0;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.location i {
  width: 16px;
  height: 16px;
}

.info-details {
  margin-bottom: 25px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(var(--primary-color), 0.1);
  transition: background 0.3s ease;
}

.detail-item:hover {
  background: rgba(var(--primary-color), 0.15);
}

.detail-item i {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
}

.detail-item span {
  color: var(--text-color);
  font-size: 0.95rem;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  background: transparent;
  color: var(--text-color);
}

.btn i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.btn-primary {
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.btn-accent {
  border: 2px solid var(--accent-color);
}

.btn-accent:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-gamehub {
  border: 2px solid var(--gameHub-btn);
}
.btn-gamehub:hover {
  background: var(--gameHub-btn);
  transform: translateY(-2px);
}


.github-section {
  margin-top: 60px;
  width: 100%;
  max-width: 1400px;
}

.stats-title {
  text-align: center;
  margin-bottom: 40px;
}

.stats-title h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.stats-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
  padding-top: 15px;
  align-items: stretch;
  max-width: 100%;
  overflow-x: hidden;
}

.stat-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  background: var(--surface-color);
  padding: 5px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.stat-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card.large {
  min-height: 200px;
}

.contribution-graph {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.stat-card.wide {
  width: 100%;
}

#About,
#GitHub,
#Achievements,
#Projects,
#Contact {
  padding: 80px 0;
  border-bottom: 1px solid var(--accent-color);
}

#Contact {
  border-bottom: none;
}

/*-------------------------------Skills Section-------------------------------- */

#Skill-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.skill-filter-button {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  white-space: nowrap;
}

.skill-filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.skill-filter-button.skill-button-active {
  background: var(--primary-color);
  color: var(--surface-color);
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.4);
}

.light .skill-filter-button:hover {
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.light .skill-filter-button.skill-button-active {
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.4);
}

#Skills {
  padding: 60px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 100%;
  width: 100%;
  margin: 40px auto 0;
  padding: 15px 0 0 0;
  box-sizing: border-box;
}

.skill-card {
  background: var(--surface-color);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  max-width: 350px;
}


.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-color);
  border-color: var(--primary-color);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.skill-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s ease-in-out 0.5s;
  position: relative;
}

.skill-card:hover .skill-fill {
  box-shadow: 0 0 10px rgba(var(--primary-color), 0.5);
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: shimmer 1s ease-in-out 2s;
}

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

.skill-level {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--text-color);
}

.skill-level:contains("Advanced") {
  background: rgba(var(--accent-color), 0.2);
  color: var(--accent-color);
}

.skill-level:contains("Intermediate") {
  background: rgba(var(--primary-color), 0.2);
  color: var(--primary-color);
}

.skill-level:contains("Beginner") {
  background: rgba(var(--secondary-color), 0.2);
  color: var(--secondary-color);
}


/*-------------------------------Achievements Section-------------------------------- */

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 100%;
  width: 100%;
  margin: 40px auto 0;
  padding: 15px 0 0 0;
  justify-items: center;
  box-sizing: border-box;
}

.achievement-card {
  background: var(--surface-color);
  border-radius: 15px;
  padding: 25px;
  padding-bottom: 80px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-color);
  border-color: var(--primary-color);
}

.achievement-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.achievement-image:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.light .achievement-image:hover {
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.achievement-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.achievement-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.achievement-card a {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}

.achievement-card .btn {
  width: auto;
  min-width: 140px;
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 0;
}

/* Responsive achievements section */
@media screen and (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    margin: 30px auto 0;
    justify-items: center;
    overflow-x: hidden;
  }

  .achievement-card {
    max-width: 350px;
    width: 100%;
    padding: 20px;
    padding-bottom: 75px;
    box-sizing: border-box;
  }

  .achievement-image {
    max-width: 100%;
    width: 100%;
    height: 150px;
    object-fit: contain;
  }
}

@media screen and (max-width: 480px) {
  .achievements-grid {
    gap: 20px;
    padding: 0 10px;
  }

  .achievement-card {
    padding: 18px;
    padding-bottom: 70px;
    gap: 15px;
  }

  .achievement-image {
    max-width: 180px;
    height: 130px;
  }

  .achievement-card h3 {
    font-size: 1.2rem;
  }

  .achievement-card p {
    font-size: 0.9rem;
  }
}

/*-------------------------------Projects Section-------------------------------- */

#project-category {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 30px 0 40px 0;
}

.project-filter-button {
  padding: 10px 20px;
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  white-space: nowrap;
}

.project-filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}

.project-filter-button.project-button-active {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.4);
}

.light .project-filter-button:hover {
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.light .project-filter-button.project-button-active {
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 100%;
  width: 100%;
  margin: 40px auto 0;
  padding: 15px 0 0 0;
  justify-items: center;
  box-sizing: border-box;
}

.project-card {
  background: var(--surface-color);
  border-radius: 15px;
  padding: 25px;
  padding-bottom: 70px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-color);
  border-color: var(--accent-color);
}

.project-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-card:hover .project-image {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.project-card h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 600;
}

.project-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.project-card .btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 160px;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.project-card .btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateX(-50%) translateY(-2px);
}

/*-------------------------------Image Modal-------------------------------- */

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: var(--surface-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.modal-close i {
  width: 20px;
  height: 20px;
}

/* Mobile modal adjustments */
@media screen and (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .modal-image {
    max-height: 75vh;
  }
  
  .modal-close {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .modal-overlay {
    padding: 15px;
  }
  
  .modal-content {
    max-width: 100%;
  }
  
  .modal-image {
    max-height: 70vh;
  }
}

/* Responsive skills section */
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    overflow-x: hidden;
  }

  .skill-card {
    padding: 20px;
    gap: 12px;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
  }

  .skill-icon {
    font-size: 2.5rem;
  }

  .skill-title {
    font-size: 1.2rem;
  }
}

/* Responsive projects section */
@media screen and (max-width: 768px) {
  #project-category {
    gap: 10px;
    margin: 20px 0 30px 0;
  }

  .project-filter-button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    overflow-x: hidden;
  }

  .project-card {
    max-width: 350px;
    width: 100%;
    padding: 20px;
    padding-bottom: 65px;
    box-sizing: border-box;
  }

  .project-image {
    height: 180px;
    max-width: 100%;
    width: 100%;
    object-fit: contain;
  }
}

@media screen and (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    overflow-x: hidden;
  }

  .skill-card {
    padding: 18px;
    gap: 10px;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
  }

  .skill-icon {
    font-size: 2.2rem;
  }

  .skill-title {
    font-size: 1.1rem;
  }

  .skill-bar {
    height: 6px;
  }

  #project-category {
    gap: 8px;
    margin: 15px 0 25px 0;
    padding: 0 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-filter-button {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-width: auto;
    white-space: nowrap;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    justify-items: center;
  }

  .project-card {
    max-width: 320px;
    width: 100%;
    padding: 18px;
    padding-bottom: 60px;
    margin: 0 auto;
    position: relative;
  }

  .project-image {
    height: 160px;
    max-width: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 5px;
  }

  .project-title {
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
  }

  .project-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .project-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .project-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 414px) {
  body, html {
    overflow-x: hidden !important;
  }
  
  #menu-icon {
    width: 3em !important;
    height: 3em !important;
    margin: 20px;
  }
  
  #main-content {
    width: 100vw;
    max-width: 100vw;
    padding: 15px 10px;
    margin: 0;
    overflow-x: hidden;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin: 20px auto 0;
    justify-items: center;
  }
  
  .achievement-card {
    max-width: calc(100vw - 40px);
    width: 100%;
    padding: 15px;
    padding-bottom: 60px;
    margin: 0;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin: 0 auto;
  }
  
  .skill-card {
    max-width: calc(100vw - 40px);
    width: 100%;
    padding: 15px;
    margin: 0;
  }
}

/*---------------------------------------------------------------------------------- */

.inline-link {
  color: var(--text-muted);
  text-decoration: none;
}

/*---------------------------------------------------------------------------------------- */

/* Large Desktop optimization */
@media screen and (min-width: 1400px) {
  #main-content {
    padding: 40px 80px;
  }
  
  #main-content section {
    padding: 60px 60px;
    max-width: 1100px;
  }
  
  .github-stats-grid {
    gap: 25px;
  }
}

/* Height-based media query for short screens */
@media screen and (max-height: 700px) {
  aside {
    gap: 20px;
    padding: 15px;
    overflow-y: hidden;
  }

  nav {
    gap: 18px;
    margin: 8px;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 70px;
    height: 70px;
  }

  .title h1.name {
    font-size: 1.2em;
  }

  aside > hr {
    margin: 8px 0;
  }
}

@media screen and (max-height: 600px) {
  aside {
    gap: 12px;
    padding: 12px;
    overflow-y: hidden;
    justify-content: space-between;
  }

  nav {
    gap: 12px;
    margin: 5px;
    font-size: 0.9em;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 55px;
    height: 55px;
  }

  .title h1.name {
    font-size: 1em;
  }

  aside > hr {
    margin: 5px 0;
  }

  #theme-toggle {
    font-size: 1.2em;
  }
}

/* Very short screens (landscape phones) */
@media screen and (max-height: 480px) {
  aside {
    gap: 8px;
    padding: 8px;
    justify-content: space-between;
    overflow-y: hidden;
  }

  nav {
    gap: 6px;
    margin: 3px;
    font-size: 0.8em;
  }

  nav a {
    padding: 6px 0;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 40px;
    height: 40px;
  }

  .title {
    max-width: 150px;
  }

  .title h1.name {
    font-size: 0.9em;
  }

  aside > hr {
    margin: 3px 0;
    display: none;
  }

  #theme-toggle {
    font-size: 1em;
  }
}

/* Extra short screens */
@media screen and (max-height: 400px) {
  aside {
    gap: 5px;
    padding: 5px;
    font-size: 0.9em;
  }

  nav {
    gap: 4px;
    margin: 2px;
    font-size: 0.7em;
  }

  nav a {
    padding: 4px 0;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 35px;
    height: 35px;
  }

  .title h1.name {
    font-size: 0.8em;
  }

  .title {
    max-width: 120px;
  }

  aside > hr {
    display: none;
  }

  #theme-toggle {
    font-size: 0.9em;
  }
}

/* Extra Small Devices (Phones < 480px) */
@media screen and (max-width: 479px) {
  body {
    font-size: 14px;
  }

  #main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 20px 15px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #main-content h2 {
    font-size: 2rem;
  }

  #Home h2 {
    font-size: 2.5rem;
  }

  #main-content section {
    padding: 40px 0;
  }

  aside {
    width: 75%;
    padding: 15px;
    gap: 25px;
    box-shadow: 2px 0 10px var(--shadow-color);
  }

  aside.hidden {
    transform: translateX(-100%);
    pointer-events: none;
  }

  #menu-icon {
    margin: 15px;
    width: 2.2em;
    height: 2.2em;
    top: 5px;
    left: 5px;
    border-radius: 8px;
    padding: 8px;
  }

  nav {
    gap: 20px;
    margin: 10px;
    font-size: 0.9em;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 70px;
    height: 70px;
  }

  .title h1.name {
    font-size: 1.3em;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-text {
    text-align: center;
    order: 2;
  }

  .about-text p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .personal-info-card {
    order: 1;
    padding: 20px;
  }

  .info-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .action-buttons {
    justify-content: center;
  }

  .btn {
    flex: 1;
    justify-content: center;
    min-width: 100px;
  }

  .github-section {
    margin-top: 40px;
  }

  .github-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-title h3 {
    font-size: 1.5rem;
  }

  .stat-card {
    max-width: 100%;
  }
}

/* Small Devices (Phones, 480px – 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  #main-content {
    margin-left: 0;
    padding: 30px 20px;
  }

  #main-content h2 {
    font-size: 2.2rem;
  }

  aside {
    width: 60%;
    padding: 18px;
    gap: 30px;
  }

  #menu-icon {
    margin: 18px;
    width: 2.3em;
    height: 2.3em;
  }

  nav {
    gap: 25px;
    margin: 15px;
  }

  nav a {
    padding: 10px 0;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 85px;
    height: 85px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .about-text {
    text-align: center;
    order: 2;
  }

  .personal-info-card {
    order: 1;
  }

  .github-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Medium Devices (Tablets, 768px – 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  #main-content {
    margin-left: 50%;
    padding: 35px 30px;
  }

  aside {
    width: 50%;
    padding: 20px;
    gap: 35px;
  }

  nav {
    gap: 35px;
    margin: 20px;
  }

  nav a {
    padding: 8px 0;
  }
}

/* Large Devices (Small Laptops, 992px – 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  #main-content {
    margin-left: 35%;
  }

  aside {
    width: 35%;
  }

  nav {
    gap: 40px;
  }
}

/* Extra Large Devices (Desktops, 1200px – 1599px) */
@media screen and (min-width: 1200px) and (max-width: 1599px) {
  #main-content {
    margin-left: 28%;
  }

  aside {
    width: 28%;
  }

  nav {
    gap: 45px;
  }
}

/* Ultra-Wide Screens (≥1600px) */
@media screen and (min-width: 1600px) {
  body {
    font-size: 18px;
  }

  #main-content {
    margin-left: 22%;
    padding: 50px;
  }

  aside {
    width: 22%;
    padding: 25px;
  }

  nav {
    gap: 50px;
    margin: 30px;
  }

  .circleShadow,
  aside > .circleShadow > img {
    width: 120px;
    height: 120px;
  }
}

/*-------------------------------Contact Section-------------------------------- */

#Contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 0;
  position: relative;
}

#Contact h2 {
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

#Contact p {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#Contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

#Contact li {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

#Contact li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

#Contact li:hover::before {
  transform: scaleY(1);
}

#Contact li:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-color);
  border-color: var(--accent-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-icon i {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2;
}

#Contact li:hover .contact-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
  margin: 0;
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  word-break: break-all;
}

.contact-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Mobile responsive for contact section */
@media screen and (max-width: 768px) {
  #Contact {
    padding: 60px 15px;
  }

  #Contact h2 {
    font-size: 2.2rem;
  }

  #Contact p {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  #Contact ul {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  #Contact li {
    padding: 25px;
    gap: 15px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .contact-icon i {
    width: 22px;
    height: 22px;
  }
}

@media screen and (max-width: 480px) {
  #Contact {
    padding: 40px 10px;
  }

  #Contact h2 {
    font-size: 1.9rem;
  }

  #Contact p {
    font-size: 1rem;
  }

  #Contact li {
    padding: 20px;
    gap: 12px;
    flex-direction: row;
    text-align: left;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon i {
    width: 20px;
    height: 20px;
  }

  .contact-label {
    font-size: 1rem;
  }

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

.typewriter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  min-height: 40px;
}

.typewriter-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-right: 2px;
}

.cursor {
  font-size: 1.5rem;
  color: var(--primary-color);
  animation: blink 0.8s infinite;
  font-weight: bold;
  opacity: 1;
  display: inline-block;
  position: relative;
  z-index: 10;
  line-height: 1;
  vertical-align: top;
  margin-left: 2px;
  -webkit-text-fill-color: var(--primary-color) !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 40% {
    opacity: 1;
  }
  41%, 100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@media screen and (max-width: 768px) {
  .typewriter-text {
    font-size: 1.2rem;
  }
  
  .cursor {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .typewriter-text {
    font-size: 1rem;
  }
  
  .cursor {
    font-size: 1rem;
  }
  
  .typewriter-container {
    margin: 15px 0;
    min-height: 30px;
  }
}

#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s infinite ease-in-out;
}

.particle:nth-child(2n) {
  background: var(--primary-color);
  animation-duration: 8s;
  animation-delay: -2s;
}

.particle:nth-child(3n) {
  background: var(--secondary-color);
  animation-duration: 10s;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.9;
  }
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}


.skill-card,
.achievement-card,
.project-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}


.main-footer {
  background: transparent;
  margin-top: 0;
  border-top: none;
  position: relative;
  margin-left: 25%;
  width: 75%;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

body.aside-hidden .main-footer {
  margin-left: 0;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .main-footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-color);
  font-style: italic;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--background-color);
  transform: translateX(5px);
}

.social-link.github:hover {
  color: var(--text-color);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.social-link.linkedin:hover {
  color: #0077b5;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.3);
}

.social-link.gamehub {
  color: #4ecdc4;
}
.social-link.gamehub:hover {
  color: #1b1b1b;
  background: #4ecdc4;
  box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}
}

.social-link.email:hover {
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}

.social-link.phone:hover {
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.3);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
}

.info-item i {
  width: 16px;
  height: 16px;
}

.status-available {
  color: var(--accent-color);
}

.status-available i {
  color: var(--accent-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.footer-bottom {
  padding: 1.5rem 0;
  position: relative;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.back-to-top {
  position: absolute;
  right: 2rem;
  top: -25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--background-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.back-to-top i {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 968px) {
  .main-footer {
    margin-left: 0;
    width: 100%;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 0 1.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .social-links {
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .footer-info {
    align-items: center;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .back-to-top {
    right: 1rem;
    top: -20px;
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    padding: 0 1.5rem;
  }
  
  .footer-top {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-brand h3 {
    font-size: 1.5rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .social-links {
    gap: 0.6rem;
  }
  
  .social-link {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
  
  .footer-info {
    gap: 0.6rem;
  }
  
  .info-item {
    font-size: 0.9rem;
    gap: 0.6rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 0.8rem;
  }
  
  .back-to-top i {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 480px) {
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-brand {
    margin-bottom: 1rem;
  }
  
  .footer-brand h3 {
    font-size: 1.3rem;
  }
  
  .footer-brand p {
    font-size: 0.9rem;
  }
  
  .footer-tagline {
    font-size: 0.85rem;
  }
  
  .social-link {
    flex-direction: column;
    text-align: center;
    padding: 0.6rem 0.4rem;
    gap: 0.3rem;
  }
  
  .social-link span {
    font-size: 0.8rem;
  }
  
  .footer-bottom {
    padding: 1rem 0;
  }
  
  .footer-copyright p {
    font-size: 0.8rem;
  }
  
  .footer-note {
    font-size: 0.75rem;
  }
}

.interactive-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(var(--surface-color-rgb), 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.aside-hidden .interactive-sidebar {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media screen and (max-width: 768px) {
  .interactive-sidebar {
    display: none;
  }
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-item:hover {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

.sidebar-item.active {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.4);
  opacity: 1;
}

.sidebar-item.active:hover {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.6);
}

.sidebar-item i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.sidebar-item:hover i {
  transform: scale(1.1);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 8px;
  opacity: 0.5;
}
