:root {
  --main-bg: linear-gradient(135deg, #151f2b 40%, #222f44 100%);
  --section-bg: #10192b;
  --text-light: #e0e8f6;
  --text-muted: #b7c4d9;
  --primary: #51a5fb;
  --highlight: #51a5fb;
  --btn-bg: #51a5fb;
  --btn-bg-hover: #2b7fd1;
  --secondary-bg: #17213b;
  --terminal-green: #00ffb3;
  --tag-bg: #17213b;
}

body.light-theme {
  --main-bg: linear-gradient(135deg, #f5f7fa 60%, #e0e8f6 100%);
  --section-bg: #f5f7fa;
  --text-light: #222f44;
  --text-muted: #5e6b81;
  --primary: #2b7fd1;
  --highlight: #2b7fd1;
  --btn-bg: #2b7fd1;
  --btn-bg-hover: #51a5fb;
  --secondary-bg: #e0e8f6;
  --terminal-green: #2b7fd1;
  --tag-bg: #e0e8f6;
}

body {
  background: var(--main-bg);
  color: var(--text-light);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  font-size: 1rem;
}

header,
main,
section,
footer {
  width: 100%;
  box-sizing: border-box;
}

/* NAVIGATION */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vw 4vw;
  background: var(--secondary-bg);
  position: fixed;
  /* Make nav bar fixed at top */
  top: 0;
  /* Stick at top */
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  z-index: 1000;
  /* Ensure it's above everything */
  height: 70px;
  /* Set a fixed height for consistency */
}

body {
  background: var(--main-bg);
  color: var(--text-light);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  font-size: 1rem;
  padding-top: 70px;
  /* Prevent content hiding under fixed nav */
}

.logo,
.footer-logo {
  color: var(--highlight);
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2vw;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links .resume-link {
  color: var(--primary);
}

.nav-links a:hover {
  color: var(--highlight);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 8px;
  z-index: 3;
}

.nav-toggle .bar {
  width: 28px;
  height: 3px;
  background: var(--highlight);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 900px) {
  nav {
    padding: 12px 2vw;
  }

  .nav-links {
    gap: 18px;
  }

  .logo {
    font-size: 1.1rem;
  }
}

@media (max-width: 700px) {
  nav {
    flex-direction: row;
    padding: 8px 2vw;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 14px;
    right: 18px;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    right: 0;
    width: 65vw;
    max-width: 280px;
    height: 100vh;
    background: var(--secondary-bg);
    padding: 54px 14px 16px 32px;
    box-shadow: -4px 0 24px #0006;
    border-radius: 0 0 0 12px;
    display: none;
    z-index: 10;
    animation: slidein .3s;
  }

  .nav-links.open {
    display: flex;
  }

  @keyframes slidein {
    from {
      opacity: 0;
      right: -100px;
    }

    to {
      opacity: 1;
      right: 0;
    }
  }
}

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: none;
  margin-left: 18px;
  font-size: 1.35rem;
  color: var(--highlight);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 3;
}

.theme-toggle:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3vw;
  padding: 6vw 4vw 0 4vw;
  min-height: 70vh;
  background: var(--section-bg);
}

.hero-left,
.hero-right {
  flex: 1 1 300px;
  min-width: 0;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.profile-container {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.profile-img {
  width: clamp(80px, 20vw, 200px);
  height: clamp(80px, 20vw, 200px);
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 6px 32px rgba(51, 171, 255, 0.15);
}

.social-icons {
  margin: 15px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icons a {
  color: var(--primary);
  background: #232f44;
  padding: 8px;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
  background: var(--primary);
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  margin: 22px 0 10px 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.highlight {
  color: var(--highlight);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.8rem);
}

.subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn,
.btn.large {
  background: var(--btn-bg);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(51, 171, 255, 0.12);
  transition: background 0.2s;
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.large {
  font-size: 1.1rem;
  padding: 15px 32px;
  border-radius: 22px;
}

.btn.secondary,
.btn.large.secondary {
  background: #232323;
  color: var(--highlight);
  border: 1.5px solid var(--highlight);
}

.btn:hover,
.btn.large:hover {
  background: var(--btn-bg-hover);
}

.btn.secondary:hover,
.btn.large.secondary:hover {
  background: var(--highlight);
  color: #fff;
}

.resume-link i {
  font-size: 1.1em;
}

/* PROJECTS */
.projects-section {
  background: var(--section-bg);
  color: var(--text-light);
  padding: 48px 0 32px 0;
  width: 100vw;
  box-sizing: border-box;
}

.projects-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 24px;
}

.project-list {
  display: flex;
  gap: 2vw;
  flex-wrap: wrap;
  justify-content: left;
}


.project-card {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 18px;
  width: min(90vw, 320px);
  box-shadow: 0 4px 24px #0001;
  text-align: center;
  margin: 18px 0;
  color: var(--text-light);
  transition: box-shadow 0.2s cubic-bezier(0.54, 0.12, 0.32, 1), transform 0.2s cubic-bezier(0.54, 0.12, 0.32, 1);
}

.project-card:hover {
  box-shadow: 0 16px 48px 0 rgba(22, 34, 51, 0.22), 0 2px 8px 0 rgba(0, 0, 0, 0.11);
  transform: scale(1.05) translateY(-2px);
}

.project-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.project-cover {
  width: 90%;
  max-width: 280px;
  border-radius: 9px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px #0003;
}

.repo-link {
  display: block;
  color: var(--highlight);
  font-size: 0.95rem;
  margin-top: 8px;
}

.project-img {
  width: 100%;
  max-width: 300px;
  height: 280px;           
  object-fit: cover;      
  border-radius: 9px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px #0003;
  display: block;
  position: relative;
}

.project-img-wrapper {
  width: 90%;
  max-width: 280px;
  position: relative;
  margin: 0 auto;
}

.project-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(44, 62, 80, 0.83);
  color: #fff;
  font-size: 1.00em;
  font-weight: 600;
  text-align: center;
  padding: 9px 7px 7px 7px;
  border-radius: 0 0 9px 9px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

@media (max-width: 700px) {
  .project-img,
  .project-img-wrapper {
    max-width: 100;
    height: 110px;
  }
  .project-caption {
    font-size: 1em;
    padding: 6px 4px 5px 4px;
  }
}
.play-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 26px;
  font-size: 1em;
  background: linear-gradient(90deg,#ff4b4b 0%, #ff6b6b 100%);
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255,75,75,0.18);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
}

.play-btn:hover, .play-btn:focus {
  background: linear-gradient(90deg,#ff6b6b 0%, #ff4b4b 100%);
  box-shadow: 0 4px 16px rgba(255,75,75,0.22);
  color: #fff;
}

.github-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 18px;
  font-size: 1.12em;
  background: #232e3a;         /* dark blue/gray */
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30,35,41,0.08);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  border: none;
}
.github-btn i {
  margin-right: 7px;
  font-size: 1.05em;
  vertical-align: middle;
}
.github-btn:hover, .github-btn:focus {
  background: #1780e3;         /* blue accent on hover */
  color: #fff;
  box-shadow: 0 4px 14px rgba(23,128,227,0.12);
}

/* Light theme */
body.light-theme .github-btn {
  background: #e0e8f6;         /* light blue/gray */
  color: #1780e3;              /* blue accent text */
}
body.light-theme .github-btn:hover,
body.light-theme .github-btn:focus {
  background: #51a5fb;         /* highlight blue */
  color: #fff;
  box-shadow: 0 4px 14px rgba(81,165,251,0.15);
}

/* TERMINAL CARD */
.terminal-card {
  width: 88vw;
  max-width: 590px;
  min-width: 0;
  margin: 28px auto 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #191e2e 0%, #10192b 100%);
  box-shadow: 0 10px 36px 0 rgba(22, 34, 51, 0.28), 0 2px 8px 0 rgba(0, 0, 0, 0.10);
  padding-bottom: 0;
  border: 2px solid #232f44;
  display: flex;
  flex-direction: column;
}

.terminal-card:hover {
  box-shadow: 0 20px 52px 0 rgba(22, 34, 51, 0.48), 0 2px 8px 0 rgba(0, 0, 0, 0.14);
  transform: scale(1.04) translateY(-2px);
}

.terminal-header {
  padding: 8px 18px 6px 18px;
  border-radius: 16px 16px 0 0;
  min-height: 16px;
  background: rgba(29, 38, 54, 0.97);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 0 0 2px #222a36;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.terminal-title {
  color: #51a5fb;
  font-size: 1rem;
  font-weight: 500;
  margin-left: auto;
  letter-spacing: 0.12em;
  opacity: 0.92;
}

.terminal-content {
  font-family: 'Fira Mono', 'Consolas', 'Segoe UI Mono', monospace;
  font-size: 1.05rem;
  padding: 14px 18px 14px 18px;
  min-height: 60px;
  background: transparent;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #e0e8f6;
  border-radius: 0 0 16px 16px;
  word-break: break-word;
  box-sizing: border-box;
}

.terminal-line {
  display: block;
  margin-bottom: 4px;
  color: #de8212;
  font-weight: bold;
  white-space: pre-line;
  font-size: 0.89em;
  transition: color 0.2s;
}

.terminal-content:last-child {
  margin-bottom: 0;
}

.terminal-content .terminal-name {
  color: #51a5fb;
  font-weight: bold;
  font-size: 1.09em;
  letter-spacing: 1px;
}

.terminal-content .terminal-role {
  color: #f0c700;
  font-weight: bold;
  font-size: 1.03em;
  letter-spacing: 0.5px;
}

.terminal-content .terminal-desc {
  color: #b7c4d9;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.4;
  display: inline-block;
}

.terminal-content .terminal-cyan {
  color: #51a5fb;
  font-weight: 600;
}

.terminal-content .terminal-green {
  color: #00ffb3;
  font-weight: 600;
}

.terminal-content .terminal-yellow {
  color: #ffd700;
  font-weight: 600;
}

.terminal-content .terminal-purple {
  color: #c58fff;
  font-weight: 600;
}

.terminal-content .terminal-quote {
  color: #2b7fd1;
  font-style: italic;
  font-weight: bold;
  margin-top: 5px;
  display: inline-block;
}

@media (max-width: 900px) {
  .terminal-card {
    width: 97vw;
    max-width: 99vw;
    border-radius: 14px;
  }

  .terminal-header {
    padding: 7px 10px 5px 10px;
    border-radius: 14px 14px 0 0;
    min-height: 28px;
  }

  .terminal-content {
    padding: 9px 8px 9px 10px;
    font-size: 0.86rem;
    border-radius: 0 0 14px 14px;
    min-height: 36px;
  }

  .terminal-title {
    font-size: 0.92rem;
  }
}

@media (max-width: 540px) {
  .terminal-card {
    padding: 6px 2px;
    font-size: 0.95rem;
  }
}

/* EXPERIENCE */
.experience {
  margin-top: 1px;
  margin-left: 12px;
  font-size: 1.07rem;
  color: #2653a3;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.97;
}

.experience i {
  font-size: 1.14em;
  margin-right: 7px;
  color: #31ffc7;
}

/* SCROLL BUTTON */
.scroll-btn {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-90%);
  background: #263343;
  color: #54a0ff;
  border: none;
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 1.00rem;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(84, 160, 255, 0.14);
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.scroll-btn:hover {
  background: var(--highlight);
  color: #fff;
}

.arrow {
  font-size: 0.90rem;
  animation: bounce 1.1s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }
}

/* SKILLS SECTION */
.skills-section {
  background: var(--section-bg);
  color: var(--text-light);
  padding: 56px 0 32px 0;
  width: 100vw;
  box-sizing: border-box;
}

.skills-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 24px;
}

.skills-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 10px 0 32px 24px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-card,
.tag {
  background: var(--secondary-bg);
  color: var(--text-light);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px #111a2b0a;
  border: 1.5px solid #151f2b;
  transition: box-shadow 0.2s, border 0.2s;
}

.skill-card .icon {
  font-size: 1.1rem;
  color: var(--highlight);
}

.skills-tags {
  margin: 32px 0 0 24px;
}

/* Skill Card Progress Bars */
.skill-bar {
  display: inline-block;
  background: #232f44;
  border-radius: 8px;
  margin: 0 10px;
  height: 10px;
  width: 100px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}

.skill-fill {
  display: inline-block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #51a5fb 70%, #2b7fd1 100%);
  transition: width 0.8s;
}

.skill-percent {
  font-size: 0.97rem;
  font-weight: bold;
  color: var(--highlight);
  margin-left: 6px;
  vertical-align: middle;
}

/* Responsive adjustments for skill bars */
@media (max-width: 700px) {
  .skill-bar {
    width: 80px;
    height: 8px;
  }

  .skill-percent {
    font-size: 0.89rem;
  }
}

.skill-card:hover,
.tag:hover {
  box-shadow: 0 4px 16px #51a5fb33;
  border-color: var(--highlight);
  background: var(--highlight);
  color: #fff;
}

.skill-card .icon {
  font-size: 1.1rem;
  color: var(--highlight);
}

.skills-tags {
  margin: 32px 0 0 24px;
}

/* EDUCATION */
.education-section {
  background: var(--section-bg);
  color: var(--text-light);
  padding: 48px 0 32px 0;
  width: 100vw;
  box-sizing: border-box;
}

.education-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 24px;
}
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 38px 0 0 0;
  position: relative;
  padding-left: 25px;
}

.edu-item {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.edu-icon {
  background: var(--highlight);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 2px 8px #51a5fb33;
  flex-shrink: 0;
}

.edu-content h3 {
  font-size: 1.18em;
  font-weight: bold;
  margin: 0 0 2px 0;
  color: var(--primary);
}

.edu-content p {
  margin: 0 0 4px 0;
  color: var(--text-light);
  font-size: 1.07em;
}

.edu-year {
  font-size: 0.97em;
  color: var(--text-muted);
  background: var(--secondary-bg);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 0;
  font-weight: 500;
  letter-spacing: 1px;
}

.edu-scholar {
  font-style: italic;
  color: #f0c700;
  font-size: 0.94em;
  margin-left: 6px;
}

.edu-inst {
  color: #7ec3fa;
  font-size: 0.99em;
  margin: 2px 0 0 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-inst i {
  color: #51a5fb;
  margin-right: 3px;
}

@media (max-width: 700px) {
  .edu-timeline {
    gap: 18px;
    padding-left: 0;
  }

  .edu-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

/* ACHIEVEMENTS - make grid responsive */
.achievement-section {
  background: var(--section-bg);
  color: var(--text-light);
  padding: 48px 0 32px 0;
  width: 100vw;
  box-sizing: border-box;
}

.achievement-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 24px;
}
.achievement-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: start;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.achievement-gallery figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 100%;
  max-width: 280px;
}

.achievement-gallery img {
  width: 100%;
  min-width: 140px;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s;
  object-fit: cover;
}

.achievement-gallery img:hover {
  transform: scale(1.05);
}

.achievement-gallery figcaption {
  margin-top: 10px;
  font-size: 1em;
  color: #e7f70d;
  font-weight: 500;
  text-align: center;
}

/* CTA Banner */
.cta-banner {
  background: var(--secondary-bg);
  color: #fff;
  text-align: center;
  padding: 48px 0 54px 0;
  margin-top: 48px;
  width: 100vw;
  box-sizing: border-box;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 26px;
}

.cta-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  background: var(--section-bg);
  color: var(--text-muted);
  padding: 36px 0;
  font-size: 1rem;
  margin-top: 0;
  width: 100vw;
  box-sizing: border-box;
}

.footer-main {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-brand {
  flex: 2 1 260px;
}

.footer-desc {
  margin: 10px 0 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.footer-nav,
.footer-content,
.footer-connect {
  flex: 1 1 140px;
}

.footer-nav h4,
.footer-content h4,
.footer-connect h4 {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer-nav ul,
.footer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li,
.footer-content ul li {
  margin-bottom: 7px;
}

.footer-nav ul li a,
.footer-content ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav ul li a:hover,
.footer-content ul li a:hover {
  color: var(--highlight);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  color: var(--highlight);
  font-size: 1.25rem;
  padding: 6px;
  border-radius: 50%;
  background: var(--secondary-bg);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--highlight);
  color: #fff;
}

/* CONTACT */
.coonact-section {
  background: var(--section-bg);
  color: var(--text-light);
  padding: 48px 0 32px 0;
  width: 100vw;
  box-sizing: border-box;
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 24px;
}
.contact-info {
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: 400px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: .6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color .2s, background .2s;
  background: var(--secondary-bg);
  color: var(--text-light);
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--highlight);
  background: #eef0ff;
  color: #222;
}

.contact-form button {
  background: var(--highlight);
  color: #fff;
  border: none;
  padding: .7rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background .2s;
}

.contact-form button:hover {
  background: #574fd6;
}

.contact-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1 1 0;
  max-width: 100%;
}

/* HOBBIES SECTION */
.hobbies-section {
  background: var(--section-bg);
  color: var(--text-light);
  padding: 48px 0 32px 0;
  width: 100vw;
  box-sizing: border-box;
}

.hobbies-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 24px;
}

.hobbies-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 10px 0 32px 24px;
}

.hobbies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 0 24px;
}

.hobby-card {
  background: var(--secondary-bg);
  color: var(--text-light);
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 1.07rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px #111a2b0a;
  border: 1.5px solid #151f2b;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s, color 0.2s;
}

.hobby-card:hover {
  box-shadow: 0 4px 18px #51a5fb33;
  border-color: var(--highlight);
  background: var(--highlight);
  color: #fff;
}

.hobby-icon {
  font-size: 1.6rem;
  color: var(--highlight);
  transition: color 0.2s;
}

.hobby-card:hover .hobby-icon {
  color: #fff;
}

.hobby-title {
  font-weight: 600;
}

@media (max-width: 700px) {
  .hobbies-list {
    gap: 12px;
    margin-left: 8px;
    flex-direction: column;
  }

  .hobby-card {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .hobby-icon {
    font-size: 1.2rem;
  }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
  .footer-main {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    padding: 0 10px;
  }
}

.nav-close {
  display: none;
}

@media (max-width: 700px) {
  .nav-close {
    display: block;
    text-align: right;
    margin-bottom: 8px;
  }

  .nav-close button {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 16px 4px 0;
  }

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

  .hero-right,
  .hero-left {
    min-width: 0;
    width: 100vw;
  }
}

/* More responsive for hero and terminal */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 38px;
    padding: 32px 2vw 0 2vw;
    text-align: center;
  }

  .hero-right,
  .hero-left {
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .terminal-card {
    min-width: 220px;
    max-width: 99vw;
    border-radius: 14px;
    padding-bottom: 0;
  }

  .terminal-header {
    padding: 12px 10px 8px 14px;
    border-radius: 14px 14px 0 0;
  }

  .terminal-content {
    padding: 12px 10px 12px 14px;
    font-size: 0.98rem;
    border-radius: 0 0 14px 14px;
  }

  .skills-section {
    padding: 32px 0 18px 0;
  }

  .footer-main {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    padding: 0 10px;
  }

  .scroll-btn {
    position: static;
    margin: 18px auto 0 auto;
    transform: none;
    padding: 12px 18px;
    font-size: 1rem;
  }

  .profile-img {
    width: 110px;
    height: 110px;
  }

  .project-list {
    gap: 16px;
  }
}

@media (max-width: 540px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 4px;
    font-size: 1rem;
  }

  .hero {
    padding: 8px 0 0 0;
    gap: 14px;
  }

  .profile-img {
    width: 75px;
    height: 75px;
  }

  .highlight,
  .hero h1 {
    font-size: 1.3rem;
  }

  .btn,
  .btn.large {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .skills-section h2,
  .cta-banner h2 {
    font-size: 1.05rem;
  }

  .footer-logo {
    font-size: 0.95rem;
  }

  .terminal-card {
    padding: 6px 2px;
    font-size: 0.95rem;
  }

  .scroll-btn {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .project-card {
    width: 98vw;
  }

  .achievement-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.nav-links .active-link {
  color: var(--highlight);
  font-weight: bold;
  border-bottom: 2px solid var(--highlight);
  background: rgba(81,165,251,0.10); /* subtle background */
  border-radius: 6px;
  padding: 2px 8px;
  transition: all 0.2s;
}

/* Colorful Friends' GitHub Links Footer Design */
.contact-friends {
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(81,165,251,0.18);
  padding: 18px 28px 18px 28px;
  margin: 24px 0;
  color: #ffffff;
  max-width: 500px;
  width: 98%;
}

.contact-friends h4 {
  font-size: 1.18em;
  font-weight: bold;
  margin-top: 2px;
  margin-bottom: 2px;
  letter-spacing: 1.9px;
  color: #3b21e6;
  text-shadow: 0 2px 18px #4442;
  text-align: center;
}

.contact-friends ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.contact-friends li {
  margin: 0 0 6px 0;
}

.contact-friends a {
  display: flex;
  background: linear-gradient(90deg, #ff6b6b 0%, #51a5fb 100%);
  color: #fff;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1em;
  box-shadow: 0 1px 8px #2222;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  min-width: 90px;
}

.contact-friends a:hover, .footer-friends a:focus {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  color: #222;
  transform: scale(1.07);
  box-shadow: 0 4px 18px #38f9d7aa;
}

.contact-friends i {
  margin-right: 8px;
  font-size: 1em;
  vertical-align: middle;
  color: #ffd700;
  transition: color 0.2s;
}

.contact-friends a:hover i,
.contact-friends a:focus i {
  color: #38f9d7;
}

/* Light theme element overrides... */
body.light-theme .hero,
body.light-theme .skills-section,
body.light-theme .cta-banner,
body.light-theme .projects-section,
body.light-theme .education-section,
body.light-theme .achievement-section,
body.light-theme .contact-section,
body.light-theme footer,
body.light-theme .project-card,
body.light-theme .terminal-card,
body.light-theme .scroll-btn,
body.light-theme .skill-card,
body.light-theme .tag,
body.light-theme .btn,
body.light-theme .btn.large,
body.light-theme .btn.secondary,
body.light-theme .btn.large.secondary,
body.light-theme .profile-img,
body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: var(--section-bg);
  color: var(--text-light);
}

body.light-theme .profile-img {
  border: 4px solid #222;
}

body.light-theme .btn,
body.light-theme .btn.large {
  background: var(--btn-bg);
  color: #fff;
}

body.light-theme .btn.secondary,
body.light-theme .btn.large.secondary {
  background: #fff;
  color: var(--highlight);
  border: 1.5px solid var(--highlight);
}

body.light-theme .btn:hover,
body.light-theme .btn.large:hover,
body.light-theme .btn.secondary:hover,
body.light-theme .btn.large.secondary:hover {
  background: var(--btn-bg-hover);
  color: #fff;
}

body.light-theme .footer-desc,
body.light-theme .footer-nav ul li a,
body.light-theme .footer-content ul li a {
  color: var(--text-muted);
}

body.light-theme .footer-nav h4,
body.light-theme .footer-content h4,
body.light-theme .footer-connect h4 {
  color: var(--primary);
}

body.light-theme .footer-social a {
  background: #fff;
  color: var(--primary);
}

body.light-theme .footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

body.light-theme .skills-section h2,
body.light-theme .cta-banner h2,
body.light-theme .footer-main,
body.light-theme .footer-desc,
body.light-theme .footer-nav h4,
body.light-theme .footer-content h4,
body.light-theme .footer-connect h4,
body.light-theme .highlight,
body.light-theme .logo,
body.light-theme .terminal-title {
  color: var(--primary);
}

body.light-theme .terminal-content {
  color: var(--terminal-green);
}

body.light-theme .achievement-gallery figcaption {
  color: #2b7fd1;
}

body.light-theme .edu-list p {
  color: #2b7fd1;
}

body.light-theme .edu-list em {
  color: #b8860b;
}

body.light-theme .edu-list strong {
  color: #574fd6;
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: #fff;
  color: #222;
  border: 1px solid #e0e8f6;
}

body.light-theme .contact-form input:focus,
body.light-theme .contact-form textarea:focus {
  border-color: var(--highlight);
  background: #e0e8f6;
}

body.light-theme .footer-main {
  background: var(--section-bg);
}

body.light-theme .terminal-header .dot.red {
  background: #ff5f56;
}

body.light-theme .terminal-header .dot.yellow {
  background: #ffbd2e;
}

body.light-theme .terminal-header .dot.green {
  background: #27c93f;
}

body.light-theme .scroll-btn {
  background: #e0e8f6;
  color: #2b7fd1;
}

body.light-theme .scroll-btn:hover {
  background: #51a5fb;
  color: #fff;
}