/* =====================
   RESET & BASE
   ===================== */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: url('pearl.png'), auto;
  }
  @font-face {
    font-family: 'retro'; /* Give your font a name */
    src: url('/fonts/RetroGaming.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  
  body {
    background-color: aliceblue;
    color: #020150;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  }
  
  h1 {
    color: lightgrey;
  }
  
  h2 {
    margin: 50px;
  }
  
  h3 {
    margin: 50px;
  }
  
  /* =====================
     NAVBAR
     ===================== */
  nav {
    position: fixed;
    top: 0;
    height: 12vmin;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 95%;
  }
  
  nav ul li {
    display: inline-block;
    float: none;
    line-height: normal;
  }
/* =====================
   NAVBAR (UPDATED HOVER)
   ===================== */

   nav ul li a {
    position: relative;
    text-decoration: none;
    padding: 0 20px;
    color: darkgray;
    display: block;
    transition: color 0.3s ease;
  }
  
  /* remove the translateY hover entirely */
  nav ul li a:hover {
    color: #020150;
  
  }
  
  /* animated underline */
  nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #020150;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  /* expand underline on hover */
  nav ul li a:hover::after {
    width: 100%;
  }
  nav ul li.social {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  nav ul li.social img {
    height: 25px;
  }
  
  /* =====================
     TITLE
     ===================== */
  .title {
    text-align: center;
  }
  
  /* =====================
     IMAGE STRIP
     ===================== */
  .image-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 20px 0;
    flex-wrap: wrap;
  }
  
  .image-strip li {
    display: block;
    float: none;
    line-height: normal;
  }
  
  .imgcrop {
    height: 350px;
    width: 350px;
    object-fit: cover;
    object-position: center;
  }
  
  /* =====================
     HERO
     ===================== */
  .hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
  }
  
  .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.6);
    z-index: -1;
  }
  
  .hero-content h1 {
    font-size: 4rem;
    letter-spacing: 3px;
    color: white;
  }
  
  .hero-content h2 {
    font-weight: 300;
    margin: 10px 0 0 0;
  }
  
  .hero-content p {
    margin-top: 8px;
    font-size: 1.2rem;
    opacity: 0.8;
  }
  
  /* =====================
     SKILLS SECTION
     ===================== */
  .skills-section {
    padding: 50px 10%;
    padding-bottom: 150px;
    text-align: center;
    transition: background-color 0.4s ease;
    background-color: #dceeff;
  }
  
  .skills-title {
    font-size: 36px;
    margin-bottom: 50px;
    padding-top: 40px;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
  }
  
  .skill-card {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background-color 0.4s ease;
  }
  
  .skill-card.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  .skills-grid .skill-card:nth-child(1) { transition-delay: 0s; }
  .skills-grid .skill-card:nth-child(2) { transition-delay: 0.15s; }
  .skills-grid .skill-card:nth-child(3) { transition-delay: 0.3s; }
  .skills-grid .skill-card:nth-child(4) { transition-delay: 0.45s; }
  
  .skill-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    border-bottom: 2px solid #020150;
    padding-bottom: 8px;
  }
  
  .skill-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
  }
  
  .skill-card ul li {
    display: list-item;
    float: none;
    line-height: 2;
    font-size: 15px;
    color: #333;
    list-style: disc;
    min-height: 1.5em;
  }
  
  /* =====================
     TYPEWRITER CURSOR
     ===================== */
  .type-cursor {
    display: inline-block;
    font-weight: 300;
    color: #020150;
    animation: blink 0.6s step-end infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }
  
  /* =====================
     DOTS ROW
     ===================== */
  .skills-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
    flex-wrap: wrap;
    min-height: 28px;
    align-items: center;
  }
  
  .skills-dots {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* match DIAMONDS count */
    align-items: center;
    margin-top: 60px;
    width: 100%;
    
  }
  
  .mini-diamond {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    grid-template-rows: repeat(3, 10px);
    gap: 2px;
  }
  
  .sdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #020150;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .sdot.pop {
    opacity: 1;
    transform: scale(1);
  }
  
  /* invisible spacers */
  .sdot-empty {
    width: 10px;
    height: 10px;
  }
  
  
  /* =====================
     CONTAINER / SPLIT LAYOUT
     ===================== */
  .container {
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .left, .right {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
  }
  
  .divider {
    border-left: 2px dashed #000;
    height: 100%;
  }
  
  /* =====================
     IMAGE TRACK
     ===================== */
  #image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
  }
  
  #image-track > .image {
    width: 30vmin;
    height: 46vmin;
    object-fit: cover;
    object-position: center;
  }
  
  /* =====================
     BUTTONS
     ===================== */
  button {
    font-size: 25px;
  }
  
  /* =====================
     RESUME PICKER
     ===================== */
  .resume-picker button {
    border: none;
    background: none;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.01s ease;
  }
  
  .resume-picker img {
    width: 500px;
    height: 500px;
    margin-left: 110px;
  }
  
  .resume-picker button:hover {
    opacity: 0.8;
  }
  
  .resume-picker button:hover img {
    transform: scale(1.1);
  }
  
  /* =====================
     PROJECTS
     ===================== */
  .projects-title {
    text-align: center;
    margin-top: 30px;
  }
  
  .tabs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
  }
  
  .tab {
    padding: 10px 25px;
    border: none;
    background: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .tab:hover {
    background: #d0d0d0;
  }
  
  .tab.active {
    background: #4CAF50;
    color: white;
  }
  
  .projects-container {
    width: 70%;
    margin: auto;
    margin-top: 40px;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .project-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }
  
  .project-card h3 {
    margin-top: 0;
  }
  
  .project-card a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
  }
  
  /* =====================
     DROPDOWN
     ===================== */
  .dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  /* =====================
     TIMELINE
     ===================== */
  .timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding-top: 60px;
    overflow-x: auto;
    gap: 40px;
  }
  
  .timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #555;
    z-index: 1;
  }
  
  .timeline-event {
    position: relative;
    text-align: center;
    width: 180px;
  }
  
  .timeline-event::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid #555;
    border-radius: 50%;
    z-index: 2;
  }
  
  .timeline-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    transition: transform 0.3s;
  }
  
  .timeline-card:hover {
    transform: translateY(-8px);
  }
  
  /* =====================
     LUNA SECTION
     ===================== */

  .Pacman-title {
    font-family: 'retro', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: lightyellow;
    margin: 0 0 20px 0;
  }
  .Pacman-demo {
    font-family: 'retro', sans-serif;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    color: lightyellow(107, 107, 91);
    margin: 0 0 20px 0;
    margin-top: 3%;
  }
  

  .Pacman-subtitle {
    font-family: 'retro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color:lightgray;
    max-width: none;
    margin-bottom: 28px;
  }
  .Pacman-demo-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
  }
  
  .Pacman-video {
    flex: 1 1 600px;
  }
  
  .Pacman-video video {
    width: 100%;
    display: block;
    border-radius: 10px;
  }
  
  .Pacman-demo-description {
    flex: 1 1 500px;
  }
  
  .Pacman-demo-description h3 {
    margin-top: 0;
    font-size: 1.5rem;
  }
  
  .Pacman-demo-description p {
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  .pacman-wall {
    width: 100%;
    height: 20px;               /* height of the wall */
    background-color: transparent; /* transparent inside */
    border: 4px solid #00008B;  /* dark blue border */
    margin: 40px 0;             /* space above and below */
    border-radius: 4px;         /* slightly rounded corners */
    box-sizing: border-box;     /* ensures border is included in height */
  }
  
/* =====================
   LUNA SECTION
   ===================== */

   .Luna-section {
    padding: 100px 8%;
    background: linear-gradient(to bottom, #f7f4ef, #e9e4db, #1f1f1f);
  }
  
  /* MAIN LAYOUT */
  .Luna-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
  }
  
  /* LEFT COLUMN */
  .Luna-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  
  /* SUMMARY */
  .Luna-summary-inner {
    max-width: 500px;
  }
  
  .Luna-tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: #888;
  }
  
  .Luna-title {
    font-size: 3rem;
    color: #020150;
    margin: 10px 0;
  }
  
  .Luna-subtitle {
    color: #444;
    line-height: 1.7;
  }
  
  .Luna-meta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
  }
  
  .Luna-meta span {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
  }
  
  /* DESCRIPTIONS */
  .Luna-descriptions {
    position: relative;
    min-height: 180px;
  }
  
  .Luna-desc {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
  }
  
  .Luna-desc.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
  }
  
  .Luna-desc h3 {
    margin: 0 0 10px 0;
    color: #020150;
  }
  
  .Luna-desc p {
    color: #555;
  }
  
  /* CENTER CAROUSEL */
  .Luna-carousel {
    position: relative;
    display: flex;
    flex-direction: column;  /* stack image + dots vertically */
    align-items: center;     /* center the content */
    width: fit-content;      /* shrink to image size */
    margin: 0 auto;
  }
  
  .Luna-images {
    width: 280px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
  }
  
  .Luna-track {
    display: flex;
    transition: transform 0.4s ease;
  }
  
  .Luna-card {
    min-width: 100%;
  }
  
  .Luna-card img {
    width: 100%;
  }
  
  /* BUTTONS */
  .Luna-prev,
  .Luna-next {
    background: none;      /* 🔥 removes box */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: darkblue;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1.8rem;
    
    z-index: 10;
  }
  .Luna-prev {
    left: -50px;  /* 🔥 pushes it outside */
    border-radius: 6px;
  }
  
  /* move RIGHT arrow outside */
  .Luna-next {
    right: -50px; /* 🔥 pushes it outside */
    border-radius: 6px;
  }
  .Luna-dots {
    display: flex;
    justify-content: center; /* center below image */
    gap: 8px;
    margin-top: 12px;       /* space below image */
    position: static;        /* make sure it's not absolute */
  }
  
  .Luna-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .Luna-dot.active {
    background: #020150;
    transform: scale(1.2);
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .Luna-layout {
      flex-direction: column;
      align-items: center;
    }
  
    .Luna-left,
    .Luna-carousel {
      width: 100%;
    }
  }

  
  /* =====================
     RESPONSIVE
     ===================== */
  @media (max-width: 768px) {
    .Luna-carousel {
      flex-direction: column;
    }
  
    .Luna-descriptions,
    .Luna-images {
      width: 100%;
    }
  
    .Luna-title {
      font-size: 2rem;
    }
  
    .imgcrop {
      width: 90vw;
      height: 260px;
    }
  }
  .toggle-buttons {
    margin: 20px 0;
  }
  
  .button {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background: #020150;
    color: white;
    border-radius: 6px;
    text-decoration: none;
  }
  .Pacman-section {
    min-height: 600px;
    position: relative;
    background-color: #1f1f1f;
    overflow: hidden;
    padding: 100px 8%;
    color: white;
  }
  .Pacman-summary-inner {
    max-width: none;
    width: 100%;
  }
  
  /* Pixel particles */
  .pixel {
    position: absolute;
    width: 6px;              /* bigger */
    height: 6px;
    background: #ffffff;     /* high contrast */
    opacity: 0.9;            /* more visible */
    border-radius: 1px;
    z-index: 0;
    animation: floatUp linear infinite;
  }
  
  /* Animation */
  @keyframes floatUp {
    from {
      transform: translateY(200vh);
    }
    to {
      transform: translateY(-70vh);
    }
  }
  /*.Pacman-section {
    padding: 100px 8%;
    position: relative;
    background-color: #1f1f1f;
    overflow: hidden;
    color: white;
  }
  
  /* Pixel grid layer */
  .pixel-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: movePixels 10s linear infinite;
    z-index: 0;
  }
  @keyframes movePixels {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 200px 200px;
    }
  }
  .pacman-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
  }
  
  /* Base button */
  .pacman-btn {
    font-family: 'retro', monospace;
    font-size: 18px;
    padding: 7px;
    background: #1f1f1f;
    color: #7aaee0;
    border: 2px solid #7aaee0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.2s ease;
    
  }
  
  /* Pixel / arcade border effect */
  .pacman-btn::before,
  .pacman-btn::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #7aaee0;
  }
  
  /* corner pixels */
  .pacman-btn::before {
    top: -4px;
    left: -4px;
  }
  
  .pacman-btn::after {
    bottom: -4px;
    right: -4px;
  }
  
  /* hover effect */
  .pacman-btn:hover {
    background: #7aaee0;
    color: #1f1f1f;
    box-shadow: 0 0 10px #7aaee0;
    transform: translateY(-2px);
  }
  
  /* active / pressed feel */
  .pacman-btn:active {
    transform: scale(0.96);
  }
  .experience-section {
    padding: 100px 10%;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .experience-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }
  
  .experience-header h3 {
    margin-bottom: 5px;
    color: #020150;
  }
  
  .experience-meta {
    font-size: 14px;
    color: #666;
  }
  
  .experience-summary {
    margin: 15px 0;
    line-height: 1.6;
  }
  
  .experience-bullets {
    padding-left: 20px;
  }
  
  .experience-bullets li {
    margin-bottom: 8px;
    line-height: 1.5;
  }
  .contact-page {
    background-image: url('assets/ContactBg2.png'); /* full-page background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    padding: 0;
    margin: 0;
}

.image-wrapper {
    position: relative;      /* allows overlay text positioning */
    display: inline-block;
    
}

.contact-img {
    display: block;
    width: 800px;  /* adjust size as needed */
    height: 600px;
    border-radius: 25px;     /* optional rounded corners */
    object-fit: cover;
    opacity: 0.4;
}

.contact-overlay {
    position: absolute;      /* overlay on top of image */
    top: 50%;                /* center vertically */
    left: 50%;               /* center horizontally */
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(64, 44, 35);          /* text color */
    padding: 1rem;
    background-color: rgb(232, 215, 218);
    opacity: .6;
    border-radius: 5%;
}
.contact-overlay:hover {
  opacity: .8;


}
.moon-strip {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 100px; /* adjust as needed */
  background-color: #f7f4ef;
  display: flex;
  align-items: center;
}

.moon-strip-inner {
  display: flex;
  gap: 10px;
  width: max-content; /* important for horizontal scrolling */
}

.moon-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(90deg); /* rotate each image */
  height: 200px; /* image height */
  width: auto;
}

.moon-img-wrapper img {
  display: block;
  width: auto;
  height: 120%;
  border: none;
  margin: 0;
  padding: 0;
}

/* animation */
.moon-strip-inner.scrolling {
  animation: scrollMoon 90s linear infinite;
}

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