:root.theme-lightmode {
  /* Colors */
  --background-dark: #FFFFFF; /* Changed to white for light mode */
  --accent-blue: #1E90FF; /* Brighter blue for accents */
  --accent-purple: #9370DB; /* Softer lavender-like purple */
  --accent-pink: #FF69B4; /* Kept vibrant for accents */
  --text-primary: #121212; /* Changed to dark for primary text */
  --text-secondary: #4F4F4F; /* Subtle dark gray for secondary text */
  --highlight-cyan: #00CED1; /* Slightly darker for light mode contrast */
  --hover-glow: #32CD32; /* Kept vibrant for hover effects */
  --divider-line: #E0E0E0; /* Light gray for divider lines */
  --footer-bg: #F5F5F5; /* Light gray background for footer */
  --stars-detail: #8A2BE2; /* purple for star-like details: updated color, kept variable name */

  /* Fonts */
  --font-heading: 'Orbitron', sans-serif; /* Futuristic font for headings */
  --font-body: 'Roboto', sans-serif; /* Clean, modern font for body text */
  --font-mono: 'Fira Code', monospace; /* Optional for code snippets or techy accents */
}

:root.theme-darkmode {
    /* Colors */
    --background-dark: #121212e9;
    --accent-blue: #0047AB;
    --accent-purple: #8A2BE2;
    --accent-pink: #FF69B4;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --highlight-cyan: #00FFFF;
    --hover-glow: #39FF14;
    --divider-line: #303030;
    --footer-bg: #0D0D1A;
    --stars-detail: #FFFFE0;
  
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif; /* Futuristic font for headings */
    --font-body: 'Roboto', sans-serif; /* Clean, modern font for body text */
    --font-mono: 'Fira Code', monospace; /* Optional for code snippets or techy accents */
  }
  
  
  body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
    font-size: 16px;
    position: relative;
}

/* Overlay Styling */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--overlay-color); /* Defined per theme */
  transition: background-color 0.3s ease;
}

  h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--accent-purple);
  }
  
  a:hover {
    color: var(--hover-glow);
  }

/* Headings */
h1 {
    font-size: 2.5rem; /* ~40px */
    line-height: 1.2;
}
h2 {
    font-size: 2rem; /* ~32px */
    line-height: 1.3;
}
h3 {
    font-size: 1.75rem; /* ~28px */
    line-height: 1.4;
}

  /* Header container to contain both the logo and navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure it stays above other content */
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto; /* Adjust height as needed */
    background-color: var(--background-dark);
    padding: 5px 20px; /* Optional padding for better spacing */
    box-sizing: border-box;
}
  
/* Navigation styles: Center-align the nav links */
.main-nav {
    display: flex;
    flex: 1; /* Take up remaining space */
    justify-content: center; /* Center navigation */
    align-items: center;

}

.main-nav a {
    font-size: 16px; /* Adjust as needed */
    font-weight: 500; /* Medium weight for better emphasis */
    text-transform: uppercase; /* Optional: Adds a bold and modern look */
    letter-spacing: 0.05em; /* Slight spacing for clarity */
    line-height: 1.5; /* Keeps links spaced nicely */
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

  .author-link a{
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: xx-large;
  }

.author-link a:hover {
    color: var(--accent-purple);
}

  /* CSS for the Logo Section */
.logo img {
    display: block;
    width: 40px; /* Adjust size as needed */
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px var(--accent-purple)); /* Glowing effect */
  }
  
  .logo img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    filter: drop-shadow(0 0 20px var(--accent-blue)); /* Change glow color on hover */
  }
  
/* Logo styles: Keep it on the far left */
.logo-div {
    flex-shrink: 0; /* Prevent resizing of the logo */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Navigation links styling */
.nav-links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}
  
  /* Left Navigation Links */
  .nav-links-left {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .nav-links-left ul {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .nav-links-left ul li {
    list-style: none;
    padding: 0 10px;
  }
  
  .nav-links-left ul li a {
    text-decoration: none; /* Remove default underline */
    color: var(--text-primary); /* Keep text color unchanged */
    position: relative; /* Necessary for pseudo-element positioning */
}

.nav-links-left ul li a::after {
    content: ""; /* Creates the pseudo-element */
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px; /* Position the underline below the text */
    height: 3px; /* Thickness of the underline */
    background-color: var(--accent-purple); /* Underline color */
    border-radius: 3px; /* Smooth edges */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Fully hide */
    box-shadow: 0 0 10px var(--accent-purple); /* Glowing effect */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links-left ul li a:hover::after {
    opacity: 1; /* Make the underline visible */
    visibility: visible; /* Ensure consistent glow */
}

  
  /* Right Navigation Links */
  .nav-links-right {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .nav-links-right ul {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .nav-links-right ul li {
    list-style: none;
    padding: 0 10px;
  }
  
  .nav-links-right ul li a {
    text-decoration: none; /* Remove default underline */
    color: var(--text-primary); /* Keep text color unchanged */
    position: relative; /* Necessary for pseudo-element positioning */
}

.nav-links-right ul li a::after {
    content: ""; /* Creates the pseudo-element */
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px; /* Position the underline below the text */
    height: 3px; /* Thickness of the underline */
    background-color: var(--accent-purple); /* Underline color */
    border-radius: 3px; /* Smooth edges */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Fully hide */
    box-shadow: 0 0 10px var(--accent-purple); /* Glowing effect */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links-right ul li a:hover::after {
    opacity: 1; /* Make the underline visible */
    visibility: visible; /* Ensure consistent glow */
}


.hamburger {
    display: none;
}

.language-switcher {
    display: inline-block;
    position: relative;
    background-color: var(--background-dark);
    border: 1px solid var(--divider-line); 
    border-radius: 20px;
    padding: 5px 10px;
    margin-left: 15px;
    box-shadow: 0 0 5px var(--accent-purple); 
    transition: all 0.3s ease;
  }
  
  .language-switcher:hover {
    box-shadow: 0 0 10px var(--accent-pink); 
  }
  
  .language-switcher select {
    background-color: transparent; 
    color: var(--text-primary);
    border: none;
    padding: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    appearance: none; 
    outline: none; 
    text-align-last: center;
  }
  
  .language-switcher select:focus {
    outline: none;
  }
  
  .language-switcher:after {
    font-size: 12px;
    color: var(--highlight-cyan);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  
.lang-form {
    margin: 0%;
  }

  /* Footer Container */
footer {
    background-color: var(--background-dark); /* Matches overall aesthetics */
    color: var(--text-secondary); /* Secondary color for subtle contrast */
   
    text-align: center;
    font-size: 14px;
}


/* Inner Footer Layout */
.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Add spacing between sections */
}

/* Copyright Section */
.copyright {
    margin: 0;
    line-height: 1.5;
}

.copyright a {
    color: var(--text-primary); /* Primary text color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--accent-purple); /* Accent color on hover */
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px; /* Space between social icons */
}

.social-icon {
    color: var(--text-secondary); /* Subtle color for icons */
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 20px; /* Standard icon size */
}

.social-icon:hover {
    color: var(--accent-purple); /* Accent color on hover */
    transform: scale(1.2); /* Slight zoom effect */
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-bg-color); 
    color: var(--support-text-color);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
}

.back-to-top.show { 
    opacity: 1; 
    transition: opacity 0.5s ease-in-out; 
}

.back-to-top:hover {
    color: var(--accent-purple); 
    cursor: pointer;
}
/* Theme Switcher */
.theme-switcher {
  position: absolute;
  top: 10px;
  right: 10px;
}

.theme-switcher input[type="checkbox"] {
  display: none;
}

.theme-switcher label {
  display: flex;
  align-items: start;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-switcher .theme-icon {
  font-size: 1.2rem;
}

/* Dark/Light mode specific styling */
.theme-darkmode {
  --overlay-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.theme-lightmode {
  --overlay-color: rgba(255, 255, 255, 0.3); /* Light overlay */
}

.theme-icon span {
  font-size: 1.5rem;
}