* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: linear-gradient(76deg, #1d3c5e 0%, #181719 100%);
  --neon-blue: rgba(0, 243, 255, 0.85);
  --neon-purple: rgba(0, 81, 255, 0.85);
  --color-accent: #0077cce8;
  --bg:#0a0a0f;
  --card:#141420;
  --text:#e0e0ff;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  background: #333;
  color: #f4f4f4;
  transition: background 0.3s, color 0.3s;
}

/* GLOBAL MOBILE SAFETY */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header fallback*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0077cc;
  color: #fff;
  padding: 1rem;
  position: relative;
}
header h1 { font-size: 1.5rem; }
header p { font-size: 0.9rem; }
.header-actions { display: flex; gap: 0.5rem; }

/* Menu buttons */
button {
  background: none;
  border: 2px solid #e0dede;
  color: #e0dede;
  font-size: 1rem;
  padding: 1px 10px;
  border-radius: 5px;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #00ffcc;
  outline-offset: 3px;
}

button:hover { background: #ffcc00; color: #1e1e1e; }

.btn-neoglass-premium {
  padding: 4px 15px;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: .35s ease;
  
  /* Neon colors */
  color: rgb(184, 245, 235);
  background: rgba(84, 245, 218, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Exact borders */
  border-top: 1px solid rgb(84, 245, 218);
  border-bottom: 1px solid rgb(84, 245, 218);

  /* Neon glow */
  box-shadow:
    0 0 12px rgba(84, 245, 218, 0.45),
    inset 0 0 6px rgba(84, 245, 218, 0.35);
}

/* Premium light reflection sweep */
.btn-neoglass-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 160%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.45) 45%,
    rgba(255,255,255,0.15) 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: .75s ease;
}

/* Hover effects */
.btn-neoglass-premium:hover::after {
  left: 130%;
}

.btn-neoglass-premium:hover {
  transform: translateY(-3px) scale(1.05);
  border-top-color: #0ffcf0;
  border-bottom-color: #0ffcf0;

  box-shadow:
    0 0 22px #0ffcf036,
    inset 0 0 12px rgba(84, 245, 218, 0.55);
}

.btn-press {
  padding: 6px 15px;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: .2s ease;

  /* Colors */
  color: rgb(84, 245, 218);
  background: rgba(84, 245, 218, 0.08);
  backdrop-filter: blur(12px);

  border-top: 1px solid rgb(84, 245, 218);
  border-bottom: 1px solid rgb(84, 245, 218);

  box-shadow:
    0 6px 14px rgba(84, 245, 218, 0.3),
    inset 0 0 6px rgba(84, 245, 218, 0.35);
}

/* Hover = raise button */
.btn-press:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Active/Pressed = push down */
.btn-press:active {
  transform: translateY(2px);

  box-shadow:
    0 2px 6px rgba(84, 245, 218, 0.4),
    inset 0 0 12px rgba(84, 245, 218, 0.45);

  background: rgba(84, 245, 218, 0.15);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 14vh;
  max-height: 64px;
  border-top: 1px solid rgb(8, 212, 248);
  border-bottom: 1px solid rgb(6, 213, 250);
  background-color: rgb(15, 49, 77);
  font-weight: bold;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

#navbar a:hover {
  color: #0ffcf0;
}

/* Reset default button/link look */
#navbar a {
  color: #e9e1f1;
  text-decoration: none;
  display: inline-block;
  width: auto;
  font-size: 1rem;
  padding: 10px 12px;
}

/* Tablet + mobile navbar */
@media (max-width: 768px) {
  #navbar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 12px;
    justify-content: flex-start; /* IMPORTANT */
  }

  #navbar::-webkit-scrollbar {
    display: none;
  }

  #navbar a {
    font-size: 0.95rem;
    padding: 8px 10px;
    flex-shrink: 0; /* CRITICAL */
  }
}

/* Small phones */
@media (max-width: 480px) {
  #navbar a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
}

.menu-btn,
.theme-btn {
  background: none;
  border: 2px solid #25acc4;
  color: #ebe1f1;
  font-size: 1.2rem;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.menu-btn:hover,
.theme-btn {
  background: #06f3df;
  color: #1e1e1e;
}

/** Contact Slide Menu and Float Button **/
.float-btn { position: fixed; 
  bottom: 30px; 
  right: 30px; 
  width: 65px; 
  height: 65px; 
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); 
  border-radius: 50%; 
  border: none;
  
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none;
  font-size: 1.8rem; 
  cursor: pointer; 
  box-shadow: 0 0 10px rgba(0,243,255,0.6); 
  z-index: 999; 
  transition: all 0.3s; 
  animation: float 3s ease-in-out infinite; 
}
@keyframes 
  float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
  
.float-btn:hover { 
  transform: scale(1.15); 
  box-shadow: 0 0 20px rgba(0,243,255,0.9); 
}

/* CONTACT OVERLAY */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .35s ease,
    backdrop-filter .35s ease;
  z-index: 998;
}

.contact-open .contact-overlay {
  opacity: 1;
  backdrop-filter: blur(2px);
}

/* PANEL VISIBILITY */
.panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--card, #141420);
  z-index: 10000;
  transform: translateX(100%);
  transition:
    transform .45s cubic-bezier(.22, .61, .36, 1),
    box-shadow .45s ease;
  will-change: transform;
  border-left:2px solid var(--neon-blue);
  box-shadow:-2px 0 2px rgba(0,243,255,.3);
}

.panel > * {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .3s ease,
    transform .3s ease;
}

.contact-open .panel > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .15s;
}

.close{
  font-size:2.5rem;
  cursor:pointer;
  transition:.3s;
}
.close:hover{
  transform:rotate(90deg) scale(1.2);
  color: #ff0000;
}

/** Mobile Screen **/
@media (max-width: 480px) {
  .panel {
    width: 100%;
    transition: transform .35s cubic-bezier(.25,.8,.25,1);
  }

  .panel > * {
    transition-delay: .1s;
  }
}

.header{
  padding:1.5rem;
  background:linear-gradient(135deg,var(--neon-blue), var(--neon-purple));
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.header h2{
  color:#fff;
  padding: 1rem;
}

form {padding:2rem}
label {display:block;margin-bottom:.5rem;color:var(--neon-blue)}
input,textarea,select {
  width:100%;
  max-width: 100%;
  margin-bottom:1.2rem;
  padding:1rem;
  background:rgba(0,243,255,.05);
  border:2px solid rgba(0,243,255,.2);
  border-radius:12px;
  color:var(--text);
}
input:focus,textarea:focus,select:focus {
  outline:none;
  border-color:var(--neon-blue);
  box-shadow:0 0 20px rgba(0,243,255,.3);
  width: 100%;
  max-width: 100%;
}

.button-submit {
  width:100%;
  padding:1.2rem;
  border:none;
  border-radius:50px;
  background:linear-gradient(135deg,var(--neon-blue),var(--neon-purple));
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

#msg {margin-top:1rem;font-size:.95rem}

.button-submit:hover {
  box-shadow:0 0 20px rgba(0,243,255,.3);
  transform: translateY(8px) scale(1.05);
}

/* ACTIVE STATE */
.contact-open .contact-overlay {
  opacity: 1;
  pointer-events: auto;
}

.contact-open .panel {
  transform: translateX(0);
}

/* ===== Main Content ===== */
main {
  margin: 0;
  padding: 0;
  display: block;
}
  
.page {
  display: none;
}
  
.page.active {
  display: inherit;
  animation: fadeIn 0.3s ease-in-out;
}
  
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html {
  scroll-behavior: smooth;
}

.side-menu .menu-panel ul {
  padding: 0;
}

.side-menu .menu-panel li {
  margin: 0.4rem 0;
}
  
/* Welcome Section */
#welcome-section {
  margin-top: 28px;
  padding-top: 2.2rem;
  text-align: center;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: var(--bg-main);
  font-family: 'Poppins', sans-serif;
}

#welcome-section h1 {
  font-size: 2.8rem;
  font-weight: bold;
  padding: 5px;
  color: rgb(63, 223, 252);
  text-shadow: 2px 2px 0 #0949fa, -2px 2px 0 #a3dce6;
}

#welcome-section p {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 5px;
  color: rgba(248, 82, 5, 0.877);
  text-shadow: 1px 2px 0 #070505, -1px -2px 0 #299ae6;
}

.special-text {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: 2s;
}

#welcome-section .special {
  padding-left: 20px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  gap: 10px;
  font-family: 'Lobster', cursive;
  font-size: 1.1rem;
  background: linear-gradient(to right, rgb(247, 78, 36), gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: 4s;;
}

.slide-background {
  padding-top: 40px;
  background: linear-gradient(76deg, #234972 0%, #151218 100%);
}

.slideshow-container {
  background-image: var(--bg-main);
}

.slide .caption {
  background: rgba(15, 49, 77, 0.85);
}

/* SLIDESHOW + CARD WRAPPER */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  height: 300px;
  cursor: not-allowed;
}

/* wrapper that moves left/right */
.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

/* --- INDIVIDUAL PROJECT CARDS --- */
.slide {
  min-width: 33.33%; 
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  opacity: 1;          
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Image inside card */
.slide img {
  width: 85%;
  height: 65%;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 10px;
}

/* Caption under card */
.slide .caption {
  background: rgba(3,141,111,0.90);
  color: #f7df0ef3;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  width: 85%;
}

/* --- NAV BUTTONS --- */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,77,51,0.7);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0,77,51,0.9);
}

/* Tablets – show 2 slides */
@media (max-width: 900px) {
  .slide {
    min-width: 50%;
  }
}

/* Mobile – show 1 slide */
@media (max-width: 600px) {
  .slideshow-container {
    height: 260px;
  }
  .slide {
    min-width: 100%;
  }
  .slide img {
    width: 90%;
    height: 60%;
  }
  .slide .caption {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* Optional smooth swipe feeling */
.slides-wrapper.touching {
  transition: none; /* disables slide animation during finger drag */
}

#about {
  text-align: center;
  padding-bottom: 20px;
  gap: 10px;
  font-size: 1.2rem;
  color: rgb(5, 253, 241);
  background-image: var(--bg-main);
}  

  /* BIO & SKILLS SECTION */
.section-bio-skills {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  background-image: var(--bg-main);
  color: #e9e1f1;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgb(84, 245, 218);
  border-bottom: 1px solid rgb(84, 245, 218);
}

/* Wrap for layout */
.bio-skills-wrap {
  width: 100%;
  max-width: 1700px;
  display: flex;
  flex-direction: column; 
  gap: 30px;
  align-items: center;
}

.card-base.bio-col {
  text-align: center;
}

.card-base.bio-col h2 {
  text-align: left;
}

.photo-card {
  width: 100%;
  max-width: 450px;
  margin: 20px auto;     
  padding: 20px;
  background: #1e1e1e;  
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.photo-card h3 {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.photo-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;     
  display: block;
  object-fit: contain;       
  background: #111;          
  padding: 10px;            

  /* Gold frame */
  background: #f8eee7;
  padding: 16px;
  border: 10px solid transparent;
  border-radius: 6px;

  border-image: linear-gradient(
      135deg,
      #d4af37,
      #f7e488,
      #b8860b,
      #eedc82,
      #c9a227
    ) 1;

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.2) inset,
    0 8px 28px rgba(0, 0, 0, 0.45);  
}

/* Columns / Cards */
.bio-col {
  line-height: 1.6;
  font-family: 'Century Gothic';
}

.bio-col,
.skills-col {
  width: 100%;
  background: rgba(15, 49, 77, 0.85);
  border-radius: 22px;
  padding: 30px 35px;
  position: relative;
  border: 1px solid rgba(15, 49, 77, 0.6);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bio-col:hover,
.skills-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* Gradient Headings */
.bio-col h2,
.skills-col h3 {
  margin-bottom: 18px;
  width: 960px;
  height: auto;
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #0ffcf0, #25acc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 
    0 0 2px #0ffcf0, 
    0 0 5px #0ffcf0, 
    0 0 10px #25acc4, 
    0 0 15px rgba(15,252,240,0.6);
  border-bottom: 2px solid rgba(15, 252, 240, 0.4);
  padding-bottom: 5px;
}

/* Skills Category Titles */
.skills-col h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 25px 0 12px;
  color: #0ffcf0;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid #25acc4;
  padding-left: 10px;
  opacity: 0.9;
}

/* Skill List Layout */
.skills-list {
  list-style: none; 
  padding: 0;
  margin: 0 0 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 15px;
}

/* Category Visual Grouping */
.skills-list.category {
  padding-left: 10px;
  border-left: 2px solid rgba(0, 255, 240, 0.35);
  margin-bottom: 35px;
  
}

/* Skill Items */
.skills-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e9e1f1;
  background: rgba(36, 88, 130, 0.6);
  border-left: 4px solid #25acc4;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.skills-list li:hover {
  background: rgba(36, 88, 130, 0.8);
  transform: translateX(3px);
}

/* Tooltip container */
.tooltip {
  position: relative;
  cursor: help;
}

/* Tooltip text (fixed position for stability) */
.tooltip::after {
  content: attr(data-tooltip);
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%) translateY(-10px);
  background-color: rgba(0, 0, 0, 0.85);
  color: #00ffcc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9999;
}

/* Show tooltip */
.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-14px);
}

/* Modern mini skill bar */
.skill-bar-mini {
  margin-top: 6px;
  width: 100%;
  height: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.skill-bar-mini div {
  width: var(--final-width);
  height: 100%;
  background: linear-gradient(
    90deg,
    #00d2ff 0%,
    #ffae42 60%,
    #ff4d4d 100%
  );
  width: 0;
  animation: fillMini 1s forwards;
  border-radius: 4px;
}

@keyframes fillMini {
  from { width: 0; }
  to { width: var(--final-width, 100%); }
}

/* Responsive: side by side on larger screens */
@media (min-width: 900px) {
  .bio-skills-wrap {
    flex-direction: row;
    align-items: flex-start;
  }
  .bio-col,
  .skills-col {
    width: 48%;
  }
}

/* Small screen tooltip adjustment */
@media (max-width: 500px) {
  .tooltip::after {
    top: 85%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }
}

/* README.md Inset */
.section-readme {
  padding: 60px 20px;
  background-image: var(--bg-main);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgb(5, 253, 241);
}

.readme-card {
  max-width: 900px;
  background: rgba(15, 49, 77, 0.85);
  border-radius: 20px;
  padding: 35px 40px;
  color: #e9e1f1;
  line-height: 1.7;
}

.readme-card h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #0ffcf0, #25acc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.readme-points {
  margin: 20px 0;
  padding-left: 18px;
}

.readme-points li {
  margin-bottom: 8px;
}

.readme-note {
  margin-top: 18px;
  font-style: italic;
  opacity: 0.9;
}

/* Feautured Project Badge */
.featured-project {
  position: relative;
  transform: scale(1.04);
  border: 2px solid #0ffcf0;
}

.featured-project:hover {
  transform: scale(1.18);
  box-shadow: 0 0 10px #0ffcf0;
}

.featured-project-section {
  padding: 80px 20px;
  text-align: center;
  background-image: var(--bg-main);
}

.featured-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #ffd27d, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-wrapper {
  display: flex;
  justify-content: center;
}

.featured-tile {
  max-width: 520px;
  background: rgba(15, 49, 77, 0.85);
  border-radius: 26px;
  padding: 35px;
  position: relative;
}

.featured-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, gold, orange);
  color: #000;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: bold;
}

.featured-card {
  display: inline-block;
  margin: 25px 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.featured-card img {
  display: block;
  margin: auto;
}

/* GOLD DUST SHIMMER */
.gold-dust {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,215,0,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.featured-card:hover .gold-dust {
  opacity: 1;
}

.featured-description {
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

.featured-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 10px;
}

.featured-tech {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.project-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f71791, #16eb887c);
  color: #fff;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(34, 252, 5, 0.63);
}
  
/* Projects Section */
#projects {
  background-image: var(--bg-main);
  padding-bottom: 1rem;
}

#projects h2 {
  text-align: center;
  background-image: var(--bg-main);
  color: rgb(5, 253, 241);
  padding-left: 10px;
  border-bottom: 1px solid rgb(5, 253, 241);
  font-size: 2rem;
}

#projects-2 {
  background-image: var(--bg-main);
  padding-bottom: 1rem;
}

#projects-2 h2 {
  text-align: center;
  background-image: var(--bg-main);
  color: rgb(5, 253, 241);
  margin-left: auto;
  margin-right: auto;
  font-size: 2rem;
}

#projects-2 h3,
#projects-2 p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* WIDGET TEXT WIDTH FIX */
#projects-2 section p.neon-arrow {
  max-width: 92%;
  margin: 12px auto 0;
  text-align: center;
  line-height: 1.6;
}

@media (min-width: 900px) {
  #projects-2 section p.neon-arrow {
    max-width: 85%;
  }
}

.project-links a {
  margin-right: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.unique-text {
  padding-left: 20px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  gap: 10px;
  font-family: 'Lobster', cursive;
  font-size: 2rem;
  background: linear-gradient(to right, rgb(247, 78, 36), gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: 5s;
}

.project {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-grid,
#hide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px 20px;
  padding: 2rem;
}

.project-grid p,
#hide p {
  margin: 10px auto 0;
  text-align: center;
}

.tic-tac-toe-widget {
  cursor: not-allowed;
}

.widget-tile.widget-card,
.widget-card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; 
  max-width: 500px;
  background-color: #1e1e1e;
  color: #00ffcc;
  border-radius: 10px;
  border: 2px solid #00ffcc;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s scale(1.02–1.04);
  text-align: center;
  overflow: hidden;
}

.widget-card:hover {
  transform: translateY(-5px) scale(1.02–1.04);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.widget-tile.widget-card,
.widget-card p {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

img[src*="icon-192"] {
  aspect-ratio: 1;
}

.project-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;     
  display: block;
  object-fit: contain;       
  background: #111;          
}  

.project-tile.project-card,
.project-card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px; 
  padding: 10px;
  background-color: #1e1e1e;
  color: #00ffcc;
  border-radius: 10px;
  border: 2px solid #00ffcc;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.25s ease scale(1.02–1.04);
  text-align: center;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project-tile.project-card {
  min-height: 150px;
}

.project-card:hover img {
  filter: brightness(1.05);
}

.project-card:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 4px;
}

.project-grid h3,
#hide h3 {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0;
}

.project-grid p,
#hide p {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: rgb(218, 201, 196);
  max-width: 320px;
}

/* Toggle Hidden Projects / Widgets */
#toggleProjects {
  display: none;
}

.hidden-section {
  display: none;
}

/* Modern Neon Weather Widget */
#weather-widget {
  width: 260px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(15, 35, 55, 0.55); 
  border: 1px solid #07d0f3;
  backdrop-filter: blur(6px); 
  box-shadow: none;
  font-family: "Segoe UI", sans-serif;
  color: #dffcff;
  transition: transform 0.25s ease;
  margin: 10px;
}

#weather-widget:hover {
  transform: scale(1.02);
  box-shadow: 0 0 18px #07d0f3ee;
}

/* Input field */
#weather-widget input {
  width: 60%;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: #0d2438;
  border: 1px solid #07d0f3;
  color: #00ffee;
  font-size: 0.9rem;
  outline: none;
  transition: box-shadow 0.25s;
}

#weather-widget input:focus {
  box-shadow: 0 0 10px #07d0f3aa;
}

/* Button */
#weather-widget button {
  padding: 6px 8px;
  margin-left: 6px;
  margin: 4px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #07d0f3, #00ffaa);
  color: #033042;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

#weather-widget button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px #07d0f3;
}

/* Weather result output */
#weather-result {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #07d0f3;
  font-size: 0.95rem;
  color: #dffcff;
}

.neon-arrow {
  font-size: 32px;
  color: #00f5ff;
  text-shadow: 0 0 4px #00f7ffde, 0 0 10px #08c2b9da, 0 0 24px #00eaff;
}

.arrow-pulse {
  color: #00eaff;
  font-size: 24px;
  text-shadow: 0 0 6px #00eaff, 0 0 12px #00eaff;
  animation: pulse 1.3s infinite ease-in-out;
}

@keyframes pulse {
  0% { text-shadow: 0 0 6px #00eaff; }
  50% { text-shadow: 0 0 14px #00eaff; }
  100% { text-shadow: 0 0 6px #00eaff; }
}

/* Toggle Button */
.toggle-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: #1e1e1e;
  color: #00ffcc;
  border: 2px solid #00ffcc;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background-color: #00ffcc;
  color: #1e1e1e;
  transform: translateY(-2px);
}

#toggleWidgets {
  display: none;
}

#hide {
  display: none;
  margin-top: 2rem;
}

#toggleProjects:checked ~ #hide {
  display: grid;
}

input[type="checkbox"] {
  display: none;
}

#toggleWidgets:checked ~ #hide {
  display: grid;
}

/* Contact Section */
#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  background-image: var(--bg-main);
  position: relative;
  height: 100px;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgb(84, 245, 218);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#contact-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  background-image: linear-gradient(76deg, #3a3d40 0%, #181719 100%);
  position: relative;
  height: 100px;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgb(84, 245, 218);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#contact-2 h3 {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333030 0%, #181719 100%;
  padding: 5px 20px;
  border-radius: 10px;
  font-size: 1.4rem;
  color: rgb(22, 247, 198);
}

#contact-2 p {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333030 0%, #181719 100%;
  padding: 5px 20px;
  border-radius: 5px;
  color: rgb(23, 247, 191);
}

#contact a {
  padding: 5%;
  color: #00ffbf;
}

#contact a:hover {
  color: #ffcc00;
}

/* Footer */
footer {
  height: auto;
  font-weight: 300;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  background-color: rgb(13, 77, 107);
  border-top: 1px solid rgb(212, 208, 208);
  text-align: center;
  padding: 10px 0;
}

footer p {
  margin: 5px 0;
  padding: 2%;
  color: rgb(196, 209, 218);
}

/* Responsive */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }
  
  footer p {
    font-size: 0.9rem;
    padding: 5px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #contact,
  #contact-2 {
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  #contact h3, #contact p,
  #contact-2 h3, #contact-2 p {
    position: static;
    transform: none;
  }
}
  
  /* Show menu */
.side-menu.open {
  left: 0;
}
  
  /* ===== Dark Mode ===== */
body.dark .project-card {
  background: #222;
}

body.dark .project-grid {
  background: #222;
}

body.dark #contact {
  background: #222;
}

body.dark #navbar {
  background: #222;
}

body.dark .slide-background {
  background: #111;
}

body.dark .slideshow-container {
  background: #222;
}
  
body.dark header {
  background: #222;
}
  
body.dark .side-menu {
  background: #111;
}

body.dark #welcome-section {
  background: #111;
}

body.dark #about {
  background: #111;
}

body.dark #bio-skills {
  background: #111;
}

body.dark .section-readme {
  background: #111;
}

body.dark #featured-project {
  background: #111;
}

body.dark #projects {
  background: #111;
}

body.dark #menuOther {
  background: #222;
}

body.dark #menuHelp {
  background: #222;
}

body.dark #menuExtra {
  background: #222;
}

body.dark #menuSettings {
  background: #222;
}

body.dark #welcome-section {
  background: #111;
}

body.dark #hide {
  background: #111;
}

body.dark #projects {
  background: #111;
}

body.dark #projects h2 {
  background: #111;
}

body.dark #projects u {
  background: #111;
}

body.dark #projects-2 {
  background: #111;
}

body.dark #projects-2 h2 {
  background: #111;
}

body.dark #projects-2 u {
  background: #111;
}

body.dark .project-grid {
  background: #111;
}

body.dark #contact-2 {
  background: #222;
}
  
body.dark footer {
  background: #222;
}
  
  /* ===== Responsive ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.2rem;
  }
  
.side-menu {
    width: 180px;
  }
}
  



