/* Floating Hex Menu CSS Fix - True Hexagon with Centered Plus Sign */

.hex-menu-isolation {
  position: fixed;
  top: 170px;
  left: 140px;
  width: 160px;
  height: 140px;
  z-index: 1000;
  pointer-events: none;
}

.hex-menu-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.container, .menu {
  height: 140px;
  width: 160px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  margin: 0; /* Reduced spacing between hexagons */
}

.menu {
  z-index: -1;
  transform: scale(0.9);
}

/* Create a true hexagon using clip-path */
.toggle, .item {
  width: 100%;
  height: 100%;
  clip-path: polygon(
    25% 0%, 75% 0%, 100% 50%,
    75% 100%, 25% 100%, 0% 50%
  );
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
}

.toggle {
  background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.1));
  backdrop-filter: blur(5px);
}

.container:hover .toggle {
  background: linear-gradient(145deg, rgba(0, 255, 255, 0.4), rgba(0, 128, 255, 0.2));
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.7)) drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

.container.active .toggle {
  background: linear-gradient(145deg, rgba(0, 255, 255, 0.6), rgba(0, 128, 255, 0.3));
  filter: brightness(1.4);
}

#add {
  font-size: 60px;
  color: #00fff2;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-shadow: 0 0 6px #0ff, 0 0 10px #0ff;
  -webkit-text-stroke: 1px #004c66; /* Outline */
  
}

.container:hover #add {
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

.container.active #add {
  color: #fc0404;
  text-shadow: 0 0 15px #0ff, 0 0 25px #0ff;
  filter: brightness(1.5);
  transform: translate(-50%, -50%) rotate(45deg);
}

.item {
  background: linear-gradient(145deg, rgba(0, 200, 255, 0.15), rgba(0, 255, 255, 0.616));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 2px solid #00ddfa; /* Added border */
  box-shadow: inset 0 0 10px #01fdd3, 0 0 10px #01f8a6fd; /* Glossy look */
}
.item:hover {
  border-color: #ff0040;
  box-shadow: 0 0 12px #ff0040, 0 0 18px #ff0040;
}
.item a > .fa {
  color: #ff009d;
  font-size: 20px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.8), 0 0 12px rgba(0, 255, 255, 0.6);
  -webkit-text-stroke: 1px #004c66; /* Outline */
  filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.5));
}
.item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.item a > .fa:hover {
  color: #ff0040;
  transform: scale(1.3);
  transition: 1s;
  text-shadow: 0 0 10px #ff0040, 0 0 20px #ff0040;
}
/* Disable pop-out menu on mobile devices */
@media (max-width: 768px) {
  .hex-menu-isolation {
    display: none !important; /* hides it entirely on mobile */
  }
}

/* Content Styles - Unaffected by menu */
body {
  font-family: "Montserrat", sans-serif;
  background: #ee05b498;
  margin: 0;
  padding: 0;
}

/* Rest of your honeycomb styles remain unchanged */
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");
body {
  font-family: "Montserrat", sans-serif;
  background: #0a0f1c;
  margin: 0;
  padding-top: 50px; 
}
:root {
  --background-color: #0a0f1c;
  --text-color: #00f0ff;         /* Tron blue for main text */
  --accent-color: #00f0ff;       /* Tron blue for highlights, borders, etc. */
  --highlight: #00ffff;          /* Lighter neon for hover effects */
  --card-text: #b8ffff;          /* Slightly softer for subheadings */
}

*, *::before, *::after {
  box-sizing: border-box;
}

/*Color*/
.orange { background: #FFA500; }
.pink { background: #ED1556; }
.royalblue { background: #4169E1; }
.darkgey { background: #34568B; }
.browny { background: #960200; }
.darksky { background: #295e8d; }
.greeny { background: #547E24; }
.purple { background: #8D295E; }
.Spooky { background: #C67E3D; }

.honeycomb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  margin-top: 0;
  
  transform: translateY(34.375px);
}

.honeycomb-cell {
  flex: 0 1 220px;
  max-width: 320px;
  height: 121px;
  margin: 20px 10px 60px;
  position: relative;
  padding: 0.5em;
  text-align: center;
  z-index: 1;
}


.honeycomb-cell__title {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  hyphens: none;
  word-break: break-word;
  text-transform: uppercase;
  color: #000000;
  font-weight: 700;
  font-size: 1.75em;
  transition: opacity 350ms;
}

.honeycomb-cell__title > small {
  font-weight: 300;
  margin-top: 0.25em;
}

.honeycomb-cell__image {
  object-fit: cover;
  object-position: center;
}

.honeycomb-cell::before, .honeycomb-cell::after {
  content: "";
}

.honeycomb-cell::before, .honeycomb-cell::after, .honeycomb-cell__image {
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  display: block;
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}

.honeycomb-cell::before {
  background: #0ff;
  transform: scale(1.055);
  filter: brightness(1.2) contrast(1.2);
  box-shadow: 0 0 15px #0ff, 0 0 30px #0ff;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Bouncy easing */
}

.honeycomb-cell::after {
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.2;
  transition: opacity 350ms;
  backdrop-filter: blur(2px);
}

.honeycomb-cell:hover .honeycomb-cell__title {
  color: #00ffff; /* Tron blue */
  text-shadow: 
    0 0 5px #00ffff,
    0 0 10px #00ffff,
    0 0 15px #00ffff;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.honeycomb-cell:hover::before {

  margin: 0; /* Creates offset effect */
  transform: scale(1.15);
    box-shadow:
        0 0 5px var(--highlight),
        0 0 15px var(--highlight),
        0 0 25px var(--highlight);
  background: #ff003c;
  
  border: 1px solid var(--highlight);
}

.honeycomb-cell:hover::after {
  opacity: 0.2;
}
.honeycomb__placeholder {
  display: none;
  opacity: 0;
  width: 220px;
  margin: 0 10px;
}
@media (max-width: 480px) {

  /* 🔧 Adjust these two to fit your taste */
  :root {
    --hc-size: 20vw;     /* hex width on mobile (makes 4 per row)     */
    --hc-gap-x: 1.9vw;   /* 🔧 HORIZONTAL GAP between hexagons         */
  }

  .honeycomb {
    display: grid;
    grid-template-columns: repeat(4, var(--hc-size));
    column-gap: var(--hc-gap-x);
    row-gap: 36px;
    justify-content: center;   /* center the 4 columns on the screen */
    max-width: 100%;
    padding: 0 2vw;
  }

  /* Hex sizing with no outer margins (grid handles gaps) */
  .honeycomb-cell {
    width: var(--hc-size);
    height: calc(var(--hc-size) * 0.58);
    margin: 0;
  }

  .honeycomb-cell:nth-child(5),
  .honeycomb-cell:nth-child(6),
  .honeycomb-cell:nth-child(7) {
    transform: translateX(11vw); /* move right (reduce value if too much) */
  }
  /* Remove any desktop offsets that break mobile layout */
  .honeycomb-cell:nth-child(n),
  .honeycomb__placeholder:nth-child(n) {
    margin-left: var(--hc-gap-x) !important;
    margin-right: var(--hc-gap-x) !important;
  }

  /*
    4–3–4 rhythm repeats every 7:
      Row1: items 1–4
      Row2: items 5–7 (centered with offsets below)
      Row3: items 8–11
      Row4: items 12–14
      …
  */
  .honeycomb-cell:nth-child(7n + 5),
  .honeycomb__placeholder:nth-child(7n + 5) {
    /* push 1st item of 3-hex row inward by half a hex + the gap */
    margin-left: calc(var(--hc-size) / 2 + var(--hc-gap-x));
  }
  
  .honeycomb-cell:nth-child(7n + 7),
  .honeycomb__placeholder:nth-child(7n + 7) {
    /* pull last item of 3-hex row inward symmetrically */
    margin-right: calc(var(--hc-size) / 2 + var(--hc-gap-x));
  }
  .honeycomb-cell:nth-child(8) {
    grid-column: 1; /* Force to start of third row */
    transform: none; /* Remove any previous transforms */
    margin-left: 9px !important; /* Reset any conflicting margins */
    clear: both; /* Ensure it starts on new row */
  }

  /* Optional: calm text a bit on phones */
  .honeycomb-cell__title { 
    font-size: 0.55rem; 
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }
} 

/* ===== SMALL TABLET (481–768px): still 4–3–4, slightly larger hexes ===== */
@media (min-width: 481px) and (max-width: 768px) {
  .honeycomb-cell {
    flex: 0 0 22.5vw;
    max-width: 22.5vw;
    height: calc(22.5vw * 0.55);
    margin: 18px 1.2vw 28px;
  }

  .honeycomb-cell:nth-child(n),
  .honeycomb__placeholder:nth-child(n) {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .honeycomb-cell:nth-child(7n + 5),
  .honeycomb__placeholder:nth-child(7n + 5) {
    margin-left: calc(11.25vw + 1.2vw);
  }
  .honeycomb-cell:nth-child(7n + 7),
  .honeycomb__placeholder:nth-child(7n + 7) {
    margin-right: calc(11.25vw + 1.2vw);
  }
  /* Optional: calm text a bit on phones */
  .honeycomb-cell__title { font-size: 0.4rem; }
}
@media (min-width: 1100px) {
  .honeycomb-cell:nth-child(7n+5) {
    margin-left: calc(50% - 350px);
  }
  .honeycomb-cell:nth-child(7n+7), .honeycomb-cell:nth-child(7n+5):nth-last-child(2) {
    margin-right: calc(50% - 350px);
  }
  .honeycomb__placeholder:nth-child(7n+7), .honeycomb__placeholder:nth-child(7n+9), .honeycomb__placeholder:nth-child(7n+11) {
    display: block;
  }
}

/*profile photo*/
/* Enhanced Hero Profile Pic Styling */
.hero-profile-pic {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center 15%;
    clip-path: polygon(
        50% 0%,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );
    border: 12px solid var(--accent-color);
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #03e6f7;
    box-shadow:
        0 0 12px var(--accent-color),
        0 0 24px var(--accent-color),
        0 0 36px var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-profile-pic:hover {
    transform: scale(1.4);
    box-shadow:
        0 0 16px var(--highlight),
        0 0 32px var(--highlight),
        0 0 48px var(--highlight);
}

.apple-style-hero {
    background: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 60px 20px 40px; /* reduced top padding from 120px to 60px */
}

.hero-inner {
    max-width: 600px; /* increased from 100px */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-color); /* strong neon blue */
    text-shadow: 0 0 10px var(--text-color), 0 0 20px var(--text-color);/
}

.hero-subheading {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--card-text);
    margin-bottom: 30px;
    text-shadow: 0 0 8px var(--card-text);
    word-break: normal;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Improved hero-link contrast */
.hero-link {
    background: linear-gradient(to right, #00cfff, #0099cc);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    transition: background 0.3s ease;
    text-decoration: none;
}

.hero-link:hover {
    background: #00a0e6;
}

.hero-link.secondary {
    background: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.hero-link.secondary:hover {
    background: #0c970c;
}

/* General Section Styles */
section {
    padding: 30px 10px;
}

.aboutcontainer p {
    color: var(--card-text); /* ensures body text is also readable */
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 0 6px var(--card-text);
}
/* 📱 Mobile adjustments */
@media (max-width: 768px) {
    .aboutcontainer p {
        font-size: 0.9rem;   /* slightly smaller text */
        line-height: 1.4;    /* tighter line spacing for small screens */
        padding: 0 10px;     /* side padding so text doesn’t touch edges */
    }
}

@media (max-width: 480px) {
    .aboutcontainer p {
        font-size: 0.85rem;  /* even smaller for very small phones */
        line-height: 1.4;
        padding: 0 8px;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 5px;
    text-align: center;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}
.section-title:hover  {
    color: #00ffff;
    background: rgba(255, 0, 60, 0.1);
    box-shadow:
        0 0 6px rgba(255, 251, 0, 0.4),
        0 0 10px rgba(255, 251, 0, 0.824),
        0 0 14px rgba(255, 234, 0, 0.89);
    border-color: #fff200;
}
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;   /* smaller for mobile */
    margin-bottom: 12px;
    margin-top: 3px;
    text-align: center;
    text-shadow: 0 0 6px var(--accent-color); /* lighter glow for small text */
  }
}
.aboutcontainer {
      width: 100%;
      display: flex;
      justify-content: center;
    }

/* Popup Styles */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    display: none;
  }
  
.popup {
    position: fixed;
    top: 50%;
    right: 20px; /* Changed from left:50% to right positioning */
    transform: translateY(-50%); /* Removed horizontal translation */
    background: #06cff3c4;
    padding: 20px;
    border-radius: 12px;
    z-index: 999;
    max-width: 80%;
    width: 840px; /* Adjusted width for side placement */
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease; /* Added for smooth glow effect */
}

/* Glow effect on hover */
.popup:hover {
    border: 2px solid #06cff3;
    box-shadow: 0 0 15px #06cff3, 
                0 0 30px rgba(6, 207, 243, 0.6),
                0 0 45px rgba(6, 207, 243, 0.3);
}
/* Image inside popup */
.popup img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

/* Optional: container for popup inner layout */
.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Optional: responsive adjustments for image-only popups */
@media (max-width: 480px) {
  .popup img {
    max-width: 100%;
    height: auto;
  }
}
/* Optional: responsive adjustments for image-only popups */
@media (max-width: 480px) {
  .popup img {
    max-width: 100%;
    height: auto;
  }
}
/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .popup {
        right: 10px;
        width: 90%;
        max-width: calc(100% - 20px);
    }
}
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fd005f;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-btn:hover {
    background: #fc5191;
  }

  /* Technical stack Grid */
  .grid-three-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 15px;
}
  .grid-three-rows {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  grid-template-rows: 1fr 1fr 1fr ;
  gap: 15px;
  padding: 15px;
}
.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 3 equal columns */
  gap: 20px;
  padding: 20px;
}
  .project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.project-four-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 equal columns */
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.grid-box {
  flex: 1;
  background: #444;
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 15px rgb(0, 191, 255);
  transition: box-shadow 0.4s ease-in-out, transform 0.3s ease;
}
/* Mobile fixes for equal columns */
@media (max-width: 480px) {
  /* 2 equal columns on phones */
  .grid-three-columns,
  .project-grid,
  .grid-three-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 9px;
  }

  /* Let cards shrink evenly inside tracks */
  .grid-box {
    min-width: 0;
    overflow: hidden;
  }

  /* Friendlier headings on small screens */
  .grid-box h2,
  .grid-box h3 {
    font-size: 0.95rem;
    word-break: break-word;
    text-align: center;
    margin: 0 0 6px;
  }

  /* Keep media from stretching columns */
  .grid-box img { max-width: 100%; height: auto; }
  .grid-box .hexagon-container,
  .grid-box .course-hexagon-container { width: 100%; }

 
  .hexagon img {
    max-width: 62%;
    height: auto;
  }

  /* Optional: force 1 column for two-column grids */
  .grid-two-columns {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
}

