/* ===== CSS Variables for Dark/Light Mode ===== */
:root {
  /* Dark Mode Colors (Default) */
  --bg-primary: #0a192f;
  --bg-secondary: #020c1b;
  --bg-tertiary: #112240;
  --text-primary: #e6f1ff;
  --text-secondary: #ccd6f6;
  --text-tertiary: #8892b0;
  --accent-primary: #00bfff;
  --accent-secondary: #64ffda;
  --border-color: rgba(0, 191, 255, 0.1);
  --shadow-color: rgba(0, 191, 255, 0.15);
  --card-bg: #020c1b;
  --card-text: #e6f1ff;
  --input-bg: #020c1b;
}

/* Light Mode - Manual Toggle */
body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f0f0;
  --bg-tertiary: #e8e8e8;
  --text-primary: #1a1a1a;
  --text-secondary: #333333;
  --text-tertiary: #555555;
  --accent-primary: #0052a3;
  --accent-secondary: #0066cc;
  --border-color: #2a2a2a;
  --shadow-color: rgba(0, 0, 0, 0.15);
  --card-bg: #c0d9d4;
  --card-text: #000000;
  --input-bg: #f9f9f9;
  font-weight: bold;
}
/* ===== Global Reset ===== */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  width: 100%;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* ===== Common ===== */
a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 100px 8%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition:
    0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn.primary {
  background-color: var(--accent-primary);
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background-color: var(--accent-secondary);
  box-shadow: 0 0 18px var(--accent-primary);
}

.btn.secondary {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

.btn.secondary:hover {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 18px var(--accent-primary);
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* ===== Navbar ===== */
header {
  background-color: var(--bg-secondary);
  padding: 10px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  color: var(--accent-primary);
  font-size: 1.6rem;
  text-shadow: 0 0 10px var(--accent-primary);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: 0.3s;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2000;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--accent-primary);
  margin: 4px 0;
  transition: 0.4s ease;
}

/* ===== Hero Section ===== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  min-height: 90vh;
  overflow-x: hidden;
}

.hero-content h1 span {
  color: var(--accent-primary);
  text-shadow: 0 0 14px var(--accent-primary);
  animation: glowPulse 2.5s infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 8px var(--accent-primary);
  }
  to {
    text-shadow: 0 0 18px var(--accent-primary);
  }
}

.hero-content h2 {
  color: var(--text-tertiary);
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image img {
  border-radius: 12px;
  border: 3px solid var(--accent-primary);
  max-width: 360px;
  width: 100%;
  box-shadow: 0 0 20px var(--accent-primary);
  animation: float 3s ease-in-out infinite;
  transition: 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.05) translateY(-6px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== Skills Container ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  overflow-x: hidden;
}

.skill-card {
  background: var(--card-bg);
  color: var(--card-text);
  padding: 25px 15px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-color);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* ===== Mobile Responsive (Max Width 900px) ===== */
@media (max-width: 900px) {
  section {
    padding: 60px 5%;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    gap: 40px;
    z-index: 1500;
  }

  .nav-links.active {
    right: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin-right: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 30px;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
    order: -1;
  }

  .hero-image img {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile Responsive (Max Width 768px) ===== */
@media (max-width: 768px) {
  /* ===== Footer Mobile ===== */
  footer {
    padding: 5px 8%;
    min-height: auto;
  }

  #theme-toggle {
    position: fixed;
    top: 30px;
    left: 15px;
    z-index: 1000;
  }

  .footer-container {
    flex-direction: column !important;
    gap: 0px !important;
    text-align: center;
    margin-bottom: 0px !important;
  }

  .footer-contact,
  .footer-social {
    flex: auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-contact {
    margin-top: 15px !important;
  }

  .footer-contact h3,
  .footer-social h3 {
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .footer-contact p {
    font-size: 0.95rem;
    margin: 0px 0 !important;
    padding: 0 !important;
  }

  .footer-social {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-social h3 {
    flex-basis: 100%;
    width: 100%;
    margin: 0 !important;
    margin-top: 20px !important;
  }

  .footer-social a {
    margin: 0;
  }

  .footer-bottom {
    font-size: 0.9rem;
    margin-top: 2px;
  }
}

/* ===== Extra Small Mobile (Max Width 480px) ===== */
@media (max-width: 480px) {
  /* ===== Footer Extra Small ===== */
  footer {
    padding: 3px 8%;
    min-height: auto;
  }

  .footer-container {
    gap: 0px !important;
    margin-bottom: 0px !important;
  }

  .footer-contact,
  .footer-social {
    flex: auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-contact {
    margin-top: 10px !important;
  }

  .footer-contact {
    margin-top: 10px !important;
  }

  .footer-social {
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-social h3 {
    margin: 0 !important;
    margin-top: 20px !important;
  }

  .footer-bottom {
    margin-top: 1px;
  }
}

/* ===== Highlights ===== */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.highlight-card {
  background-color: var(--card-bg);
  color: var(--card-text);
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--accent-primary);
  border: 2px solid var(--border-color);
  border-left: 5px solid var(--accent-primary);
  box-shadow: 0 0 14px var(--shadow-color);
}

.highlight-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--card-text);
}

.highlight-card p {
  font-size: 1.1rem;
  color: var(--card-text);
}

/* ===== About Section ===== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: 0.4s ease;
}

.about-image img:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.about-content h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.8rem;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
  padding: 20px;
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 10px;
  border: 2px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
}

.about-details div {
  font-size: 0.95rem;
  color: var(--card-text);
}

.about-details strong {
  color: var(--accent-primary);
  margin-right: 8px;
}

.about-buttons {
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content h1 {
    text-align: center;
  }

  .about-details {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-image img {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ===== Skills Page ===== */
.skills h1 {
  text-align: center;
  color: var(--text-primary);
}

.skills-intro {
  text-align: center;

  font-size: 1.2rem;
  color: var(--text-secondary);
}

.skill-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  color: var(--card-text);
  padding: 25px 15px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-card:hover {
  transform: translateY(-10px);
  background: var(--card-bg);
  box-shadow: 0 15px 35px var(--shadow-color);
}

.skill-card h2 {
  font-size: 1.1rem;
  color: var(--card-text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-card ul {
  list-style: none;
  padding: 0;
}

.skill-card li {
  font-size: 0.9rem;
  color: var(--card-text);
  margin-bottom: 12px;
  transition: 0.3s;
}

.skill-card li:hover {
  color: var(--accent-primary);
}

@media (max-width: 1100px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* ===== Projects Page ===== */
.projects h1 {
  text-align: center;
  color: var(--text-primary);
}

.projects-intro {
  margin-bottom: 45px;
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-secondary);
}

.projects-container {
  display: grid;
  gap: 40px;
  overflow-x: hidden;
}

.project-card {
  background-color: var(--card-bg);
  color: var(--card-text);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 14px var(--shadow-color);
}

.project-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 30px;
  font-size: 1.1rem;
  color: var(--card-text);
}

.project-content h2 {
  color: var(--card-text);
}

.project-content p {
  color: var(--card-text);
}

.project-links a {
  margin-right: 15px;
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 1.1rem;
  text-shadow: 0 0 8px var(--accent-primary);
}

/* ===== Contact Page ===== */
.contact h1 {
  text-align: center;
  color: var(--text-primary);
}

body.light-mode .contact h1 {
  color: #1a1a1a;
}

.contact-intro {
  margin-bottom: 45px;
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-secondary);
}

body.light-mode .contact-intro {
  color: #333333;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.contact-links a {
  margin-right: 15px;
  color: var(--accent-primary);
  font-size: 1.2rem;
  text-shadow: 0 0 8px var(--accent-primary);
}

.contact-form input,
.contact-form textarea {
  background-color: var(--input-bg);
  border: 2px solid var(--border-color);
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.05rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
}

/* ===== Footer ===== */
footer {
  background-color: #0f1419;
  color: var(--text-secondary);
  padding: 20px 8%;
  text-align: center;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  border-top: 2px solid var(--border-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.light-mode footer {
  background-color: #0f1419;
  color: #cccccc;
}

body:not(.light-mode) footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
  overflow-x: hidden;
}

.footer-contact,
.footer-social {
  flex: auto;
}

.footer-social {
  margin-top: 20px;
}

.footer-contact h3,
.footer-social h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
}

body.light-mode .footer-contact h3,
body.light-mode .footer-social h3 {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

body.light-mode .footer-contact p {
  color: #cccccc;
}

.footer-social a {
  display: inline-block;
  margin: 0 8px;
  font-size: 1.6rem;
  color: var(--accent-primary);
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 12px var(--accent-primary);
  transform: scale(1.25);
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 10px;
}

body.light-mode .footer-bottom {
  color: #999999;
}

/* ===== Contact Cards ===== */
.contact-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 45px;
  width: 100%;
  overflow-x: hidden;
}

.contact-card {
  background-color: var(--card-bg);
  color: var(--card-text);
  padding: 35px 25px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  text-align: center;
  box-shadow: 0 0 12px var(--shadow-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

body.light-mode .contact-card {
  background-color: #c0d9d4;
  color: #000000;
  border-color: #2a2a2a;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px var(--shadow-color);
}

.contact-card i {
  font-size: 2.2rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
  text-shadow: 0 0 6px var(--accent-primary);
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.contact-card i:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 14px var(--accent-primary);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--card-text);
}

.contact-card a {
  display: block;
  color: var(--card-text);
  font-weight: 500;
  margin-top: 5px;
  font-size: 1.1rem;
}

.contact-card a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-primary);
}

.contact-card p {
  color: var(--card-text);
  margin-top: 5px;
  font-size: 1.1rem;
}

/* ===== Misc ===== */
.navbar.scrolled {
  background: var(--bg-secondary);
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: 0.3s;
}

.skill {
  margin: 15px 0;
}

.skill span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar {
  background: var(--bg-tertiary);
  border-radius: 20px;
  overflow: hidden;
  height: 8px;
}

.skill-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 20px;
}

.navbar {
  padding: 18px 8%;
  transition: all 0.3s ease;
  will-change: transform;
}

.navbar.shrink {
  padding: 8px 8%;
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* Mobile Responsive Updates */
@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden !important;
    position: relative;
  }

  html.menu-open {
    overflow: hidden !important;
    position: relative;
  }

  .nav-links {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-secondary) !important;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }

  .menu-toggle {
    z-index: 10000 !important;
    position: relative;
  }

  .nav-links:not(.active) a {
    opacity: 0;
  }

  .nav-links.active a {
    opacity: 1;
  }

  .btn {
    padding: 16px 40px;
    width: 90%;
    max-width: 320px;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .hero,
  .about-container,
  .contact-container,
  .project-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  h1 {
    text-align: center;
  }

  .skills-intro,
  .projects-intro,
  .contact-intro {
    text-align: center;
    max-width: 100%;
  }

  section {
    padding: 70px 6%;
  }

  .contact-cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .contact-card {
    padding: 25px 15px;
  }

  .hero-image img {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .footer-social a {
    font-size: 1.4rem;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

/* ===== Theme Toggle Button ===== */
#theme-toggle {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 82, 163, 0.3);
}

#theme-toggle:hover {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-primary);
}

body.light-mode #theme-toggle {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 82, 163, 0.3);
}

body.light-mode #theme-toggle:hover {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-primary);
}

body:not(.light-mode) #theme-toggle {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

body:not(.light-mode) #theme-toggle:hover {
  background-color: var(--accent-primary);
  color: #0a192f;
  box-shadow: 0 0 15px var(--accent-primary);
}

@media (max-width: 900px) {
  #theme-toggle {
    font-size: 0.95rem;
    padding: 6px 10px;
    position: fixed;
    top: 35px;
    left: 15px;
    z-index: 1000;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  #theme-toggle {
    font-size: 0.85rem;
    padding: 5px 8px;
    position: fixed;
    top: 35px;
    left: 15px;
    z-index: 1000;
    margin-top: 5px;
  }
  .about-details div {
    font-size: 13.04px;
  }
}
