body,
html {
  height: auto;
  width: 100vw;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  color: white;
  font-family: "Source Code Pro", monospace;
  overflow-x: hidden;
}
main {
  margin-top: 80px; /* Adjust this value based on your header's height */
}
#starry-sky {
  width: 100%;
  height: 100%;
  background-color: black;
  position: fixed; /* Changed from sticky to fixed to cover the entire viewport */
  top: 0;
  left: 0;
  z-index: -10;
}
.footer {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  position: relative; /* Changed from fixed */
}

.solar-system {
  position: relative;
  width: calc(330px * 1.5); /* Increased from 300px */
  height: calc(330px * 1.5); /* Increased from 300px */
}

.sun {
  position: absolute;
  width: calc(55px * 1.1); /* Adjust based on your preference */
  height: calc(55px * 1.1);
  border-radius: 50%;
  background-image: url("/img/solar/sun.png");
  background-size: cover;
  background-position: center; /* Ensures the image is centered */
  z-index: 5;
  top: 50%; /* Center the div vertically */
  left: 50%; /* Center the div horizontally */
  transform: translate(-50%, -50%); /* Adjust positioning to truly center */
  cursor: pointer;
}
.li-img {
  background-image: url("/img/solar/sun.png");
  background-size: cover;
  width: 20px; /* Set your desired width */
  height: 20px; /* Set your desired height */
  display: inline-block;
}

.orbit {
  position: absolute;
  border: 1px dashed white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 50%;
  top: 50%;
}

/* Defining orbit sizes with custom properties (all increased by 10%) */
.orbit:nth-child(2) {
  --orbit-size: 110px; /* Increased from 100px */
  --orbit-radius: 55px; /* Increased from 50px */
}
.orbit:nth-child(3) {
  --orbit-size: 180px; /* Increased from 150px */
  --orbit-radius: 90px; /* Increased from 75px */
}
.orbit:nth-child(4) {
  --orbit-size: 270px; /* Increased from 200px */
  --orbit-radius: 135px; /* Increased from 100px */
}
.orbit:nth-child(5) {
  --orbit-size: 390px; /* Increased from 250px */
  --orbit-radius: 195px; /* Increased from 125px */
}

.planet {
  /* Common styles for planets */
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.planet1 {
  z-index: 4;
  background-image: url("/img/solar/planet 1.png");
  width: calc(15px * 1.5);
  height: calc(15px * 1.5); /* Adjust as needed */
}

.planet2 {
  z-index: 3;
  background-image: url("/img/solar/planet 2.png");
  width: calc(20px * 1.5);
  height: calc(20px * 1.5); /* Adjust as needed */
}

.planet3 {
  z-index: 2;
  background-image: url("/img/solar/planet 3.png");
  width: calc(25px * 1.5);
  height: calc(25px * 1.5); /* Adjust as needed */
}

.planet4 {
  z-index: 1;
  background-image: url("/img/solar/planet 4.png");
  width: calc(30px * 1.5);
  height: calc(30px * 1.5); /* Adjust as needed */
}

@keyframes orbit-around-sun {
  0% {
    transform: rotate(0deg) translateX(var(--orbit-radius));
  }
  100% {
    transform: rotate(360deg) translateX(var(--orbit-radius));
  }
}

.orbit .planet {
  animation: orbit-around-sun linear infinite;
}

/* Adjusting margins based on new orbit sizes */
.orbit:nth-child(2) {
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: calc(var(--orbit-radius) * -1) 0 0 calc(var(--orbit-radius) * -1);
}
.orbit:nth-child(3) {
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: calc(var(--orbit-radius) * -1) 0 0 calc(var(--orbit-radius) * -1);
}
.orbit:nth-child(4) {
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: calc(var(--orbit-radius) * -1) 0 0 calc(var(--orbit-radius) * -1);
}
.orbit:nth-child(5) {
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: calc(var(--orbit-radius) * -1) 0 0 calc(var(--orbit-radius) * -1);
}

/* Customizing orbit duration for each planet */
.orbit:nth-child(2) .planet {
  animation-duration: 10s;
}
.orbit:nth-child(3) .planet {
  animation-duration: 12s;
}
.orbit:nth-child(4) .planet {
  animation-duration: 15s;
}
.orbit:nth-child(5) .planet {
  animation-duration: 17s;
}

/* Mouse tooltip styles */
.mouse-tooltip {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid mediumpurple;
  font-family: "Source Code Pro", monospace;
  font-size: 14px;
  pointer-events: none; /* Ensures the tooltip doesn't interfere with mouse events */
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5); /* Subtle glow effect */
  transform: translate(10px, 10px); /* Offset from cursor */
}
.center {
  text-align: center;
}
.planet-link {
  text-decoration: none; /* Removes underline from links */
  color: inherit; /* Prevents color changes */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  height: 100vh;
    margin: 100px;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* or whatever max-width you prefer */
  margin: 0 auto;
  padding: 0 20px;
}


.site-title {
  margin: 0;
  flex: 0 0 auto; /* Don't grow or shrink, use auto basis */
  text-align: left;
  font-size: 1.5rem;
}
.site-title a {
  color: white;
  text-decoration: none;
}
.header-tooltip {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid mediumpurple;
  font-family: "Source Code Pro", monospace;
  font-size: 14px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.site-nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.site-nav li {
  margin: 0 10px;
}
.header-img {
  height: 50px; /* Adjust height as needed */
  width: auto;
}
/* Center-aligned navigation */
.site-nav {
  flex: 1; /* Allow it to grow and take available space */
  display: flex;
  justify-content: center;
}

.site-nav ul li a {
  color: #fff; /* Navigation links color */
  text-decoration: none; /* Removes underline */
  font-size: 18px; /* Font size for navigation links */
}

.site-nav ul li a:hover {
  text-decoration: underline; /* Underline on hover for visual feedback */
}
/* Header styling with background gradient and transition */
.site-header {
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.3s ease;
  padding: 10px 0;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3); /* Subtle purple glow */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.header-img:hover::after {
  content: attr(title); /* Display title content as tooltip */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  white-space: nowrap;
  background-color: black;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.header-img:hover::after {
  opacity: 1;
  visibility: visible;
}
.site-header .header-img {
  position: relative; /* Context for absolute positioning */
  display: inline-block; /* To ensure proper alignment */
  cursor: pointer;
}

.site-header .header-img::after {
  content: attr(title);
  position: absolute;
  left: 50%; /* Center the tooltip */
  transform: translateX(-50%); /* Ensure it's centered irrespective of the width */
  bottom: -30px; /* Adjust this value based on your specific layout */
  white-space: nowrap;
  background-color: black;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Ensures the tooltip is above other elements */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.site-header .header-img:hover::after {
  opacity: 1;
  visibility: visible;
}


.social-links {
  text-align: center;
  margin-top: 20px;
}

.social-links h2 {
  color: white;
  font-family: "Source Code Pro", monospace;
  font-size: 24px;
  margin-bottom: 10px;
}

.social-links ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.social-links li {
  margin: 0 15px;
}

.social-links a {
  text-decoration: none;
  color: white;
  font-size: 20px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: mediumpurple;
}

.social-links i {
  margin-right: 8px;
}
.home-page {
  padding-top: 80px;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  padding-top: 60px;
}

.modal-content p a {
  text-decoration: none;
  color: rebeccapurple;
  font-weight: bold;
}
.modal-content p a:hover {
  text-decoration: none;
  color: mediumpurple;
  font-weight: bold;
}

/* Modal Content/Box */
.modal-content {
  background-color: yellow;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border-radius: 15px;
  border: 5px dotted indianred;
  width: 80%; /* Could be more or less, depending on screen size */
  color: black;
  text-align: center;
}

/* The Close Button */
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Mobile Warning Page Styles */
.mobile-warning {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background-color: black;
  color: white;
  font-family: "Source Code Pro", monospace;
}

.mobile-warning h1 {
  font-size: 3em;
}

.mobile-warning p {
  font-size: 1.5em;
  max-width: 80%;
  margin: 0 auto;
}

/* Detect Portrait Mode on Mobile Devices */
@media (max-width: 768px) {
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-img {
    height: 30px; /* Smaller header image for mobile */
  }
  .content-wrapper {
    padding: 15px;
  }
}

/* Update language switcher for header placement */
.language-switcher {
  flex: 0 0 auto; /* Don't grow or shrink, use auto basis */
  display: flex;
  align-items: center;
}
.language-switcher .lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 5px;
  transition: transform 0.2s ease;
}
.language-switcher .lang-btn:hover {
  transform: scale(1.1);
}
.language-switcher a {
  color: white; /* Choose a color that fits your design */
  text-decoration: none; /* No underlines to keep it clean */
  padding: 5px; /* Padding for better clickability */
  font-size: 16px; /* Adjust size as needed */
}

.language-switcher a:hover {
  text-decoration: underline; /* Underline on hover for better UX */
}

.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.language-switcher .lang-btn img {
  width: 60px;
  height: auto;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .lang-btn {
    border: none;
    background: none;
    cursor: pointer;
  }

  .lang-btn img {
    width: 25px; /* Set the size of the flag images */
    height: auto;
    border-radius: 5px;
  }
}

/* Add this new keyframes animation at the end of your CSS file */

@keyframes twinkle {
  0% {
    opacity: 0.1;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.1;
    transform: scale(0.8);
  }
}

/* Optional: Add a class for stars with different animation timing */
.star {
  position: absolute;
  border-radius: 50%;
  z-index: -5;
  animation: twinkle 2s linear infinite; /* Apply the twinkle animation */
}



/* ================================
   PORTFOLIO PAGE — same scroll model as Contact
   ================================ */
.portfolio-page html, .portfolio-page body { height: auto; }
.portfolio-scroll-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;            /* internal scrolling viewport */
    overflow-y: auto;         /* scroll here, not <body> */
    overflow-x: hidden;
    padding-bottom: 280px;    /* comfy scroll after footer */
    background: transparent;
}

/* Intro + filter chips */
.portfolio-intro {
    max-width: 1200px;
    width: 100%;
    margin: 220px auto 10px;
    padding: 0 20px;
}
.portfolio-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chip {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    font-family: "Source Code Pro", monospace;
}
.chip.is-active { background: rgba(255,255,255,.16); }

/* 2-wide grid */
.projects-grid {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* Project card */
.project-card {
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 16px;
}
@media (max-width: 700px) {
    .project-card { grid-template-columns: 1fr; }
}

.project-media { position: relative; }
.project-media img { display: block; width: 100%; border-radius: 12px; }

.cover-btn {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    width: 100%;
}
.cover-btn:disabled { cursor: default; opacity: .85; }
.cover-btn:disabled img { outline: 2px dotted #444; }

.engine-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 42px;
    height: auto;
    border-radius: 8px;
    background: rgba(0,0,0,.5);
    padding: 4px;
}

.project-body { min-width: 0; }
.project-title { margin: 0 0 6px; font-size: 1.2rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge {
    --badge-color: #888;
    border: 1px solid var(--badge-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .85rem;
}
.project-desc { margin: 8px 0 12px; opacity: .95; }
.project-links a {
    display: inline-block;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,.35);
}
.project-links a:hover { color: mediumpurple; }

/* Card Maker */
.card-maker {
    max-width: 1200px;
    width: 100%;
    margin: 10px auto 40px;
    padding: 0 20px 20px;
    border-top: 1px dashed rgba(255,255,255,.2);
}
.card-maker h3 { margin: 10px 0 12px; }
.card-maker form label { display: block; font-size: .95rem; margin-bottom: 10px; }
.card-maker input, .card-maker textarea, .card-maker select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid #CC6666;
    color: #fff;
    font-family: "Source Code Pro", monospace;
}
.card-maker textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-span { grid-column: 1 / -1; }
.maker-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}
.btn.secondary { background: rgba(255,255,255,.1); }

/* Image carousel modal */
.carousel-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.carousel-modal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
}
.carousel-prev,
.carousel-next,
.carousel-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }
.carousel-close { top: 30px; right: 30px; transform: none; }
.carousel-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.5);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
}

/* Footer follows normal flow (already defined) */


/* ===== SKILLS PAGE (same scroll model) ===== */
.skills-scroll-wrapper{
    position:relative; z-index:1; width:100%; height:100vh;
    overflow-y:auto; overflow-x:hidden; padding-bottom:280px; background:transparent;
}
.skills-intro{
    max-width:1200px; width:100%; margin:220px auto 10px; padding:0 20px;
}
.skills-note{ opacity:.9; margin:.25rem 0 1rem; }

/* 2-wide grid */
.skills-grid{
    max-width:1200px; width:100%; margin:20px auto 40px; padding:0 20px;
    display:grid; grid-template-columns:1fr; gap:24px; align-items:start; box-sizing:border-box;
}

@media (max-width:900px){ .skills-grid{ grid-template-columns:1fr; } }

/* Card */
.skill-card{
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.06);
    border-radius:16px; overflow:hidden;
    display:grid; grid-template-columns:160px 1fr; gap:16px; padding:16px;
}
@media (max-width:2000px){ .skill-card{ grid-template-columns:1fr; } }


.skill-media img{ width:100%; display:block; border-radius:12px; background:#111; }
.skill-placeholder{
    width:100%; height:120px; display:grid; place-items:center;
    border-radius:12px; background:#111; color:#777; font-size:2rem;
}

.skill-title{ margin:0 0 8px; font-size:1.2rem; }
.skill-desc{ margin:10px 0 0; opacity:.95; }

/* Level scale */
.skill-level{ margin:6px 0 8px; }
.level-labels{
    display:grid; grid-template-columns:repeat(5,1fr);
    font-size:.78rem; opacity:.85; margin-bottom:6px;
}
.level-bar{
    position:relative; height:10px; border-radius:999px;
    background:linear-gradient(90deg,#444 0%, #555 100%);
    outline:1px solid rgba(255,255,255,.18);
}
.level-fill{
    height:100%; border-radius:999px; background:mediumpurple;
}
.level-pin{
    position:absolute; top:50%; transform:translateY(-50%);
    width:20px; height:20px; border-radius:50%; border:2px solid #fff; background:#000;
    box-shadow:0 0 0 3px rgba(255,255,255,.15);
}
.level-current{ font-size:.9rem; margin-top:6px; opacity:.9; }
