/* ===== GLOBAL LAYOUT / BACKGROUND ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  color: #e5e7eb;

  /* Dark + light blue tinted background */
  background:
    radial-gradient(circle at 10% 20%, rgba(56,189,248,0.13) 0, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(59,130,246,0.16) 0, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(37,99,235,0.18) 0, transparent 50%),
    linear-gradient(135deg, #020617 0%, #020617 45%, #0b1220 100%);
}

/* Reusable glass effect helper */
.glass {
  background: radial-gradient(circle at top left,
              rgba(148,163,184,0.28) 0,
              rgba(15,23,42,0.82) 40%,
              rgba(15,23,42,0.95) 100%);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.85),
    0 20px 40px rgba(15,23,42,0.85),
    0 0 60px rgba(59,130,246,0.35);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

/* Typography that scales nicely */
h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.12em;
  color: #f9fafb;
}

h2 {
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  color: #e5e7eb;
}

p, li {
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  color: #cbd5f5;
}

/* ===== NAVBAR (if you re-enable it) ===== */

.navbar {
  padding: 10px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.navbar,
.navBtn {
  /* both glassy */
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 18px 35px rgba(15,23,42,0.85);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.navBtn {
  color: #e5e7eb;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.navBtn:hover {
  transform: translateY(-1px);
  background: rgba(37,99,235,0.9);
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
}

/* ===== MAIN HEADER / PROFILE ===== */

.mainHeaders {
  margin: 26px auto 18px;
  padding: 26px 22px 30px;
  width: min(100%, 900px);
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mainHeaders::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.45) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56,189,248,0.3) 0, transparent 45%);
  opacity: 0.22;
  pointer-events: none;
}

.mainHeaders {
  composes: glass;
  /* fallback if composes not supported */
  background: radial-gradient(circle at top left,
              rgba(148,163,184,0.28) 0,
              rgba(15,23,42,0.82) 40%,
              rgba(15,23,42,0.95) 100%);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.85),
    0 20px 40px rgba(15,23,42,0.85),
    0 0 60px rgba(59,130,246,0.35);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

#profilePicture {
  display: block;
  margin: 0 auto 14px;
  width: 180px;
  height: 180px;
  border-radius: 32%;
  border: 3px solid rgba(56,189,248,0.75);
  box-shadow:
    0 18px 35px rgba(15,23,42,0.9),
    0 0 40px rgba(56,189,248,0.7);
  object-fit: cover;
}

/* About-me block as a glass card */

.aboutMe {
  width: min(95%, 720px);
  margin: 22px auto 0;
  padding: 20px 28px;
  border-radius: 24px;
  text-align: left;

  background: rgba(15,23,42,0.78);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 14px 36px rgba(15,23,42,0.95);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.aboutMe strong {
  color: #fbbf24;
}

/* CV Button – glassy neon accent */

.cvButton {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 42px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;

  color: #f9fafb;
  background: linear-gradient(135deg, rgba(59,130,246,0.85), rgba(56,189,248,0.8));
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 16px 40px rgba(15,23,42,0.9),
    0 0 40px rgba(56,189,248,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.25s ease;
  background-size: 200% auto;
}

.cvButton:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow:
    0 22px 50px rgba(15,23,42,1),
    0 0 55px rgba(96,165,250,0.95);
}

/* ===== ICONS / SKILLS STRIP ===== */

.icons {
  display: inline-block;
  height: 55px;
  width: 55px;
  margin: 10px;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,0.9));
}

/* ===== PROJECTS SECTION (GLASS PANEL) ===== */

.projects {
  margin: 26px auto;
  padding: 24px 16px 32px;
  width: min(100%, 1100px);
  border-radius: 26px;
  text-align: center;

  background: radial-gradient(circle at 10% 0%, rgba(59,130,246,0.28) 0, transparent 55%),
              rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 22px 45px rgba(15,23,42,0.95),
    0 0 60px rgba(59,130,246,0.35);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.projectProgrammingLanguage {
  font-weight: 700;
}

/* Filter “chips” */

.projectsFilterButtons-grad {
  margin: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  cursor: pointer;

  background: radial-gradient(circle at top left,
              rgba(59,130,246,0.9) 0,
              rgba(8,47,73,0.95) 60%);
  background-size: 220% auto;
  color: #f9fafb;
  box-shadow: 0 12px 26px rgba(15,23,42,0.95);
  border: 1px solid rgba(125,211,252,0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-position 0.25s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.projectsFilterButtons-grad:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15,23,42,1);
}

/* Project titles & buttons */

.projectHeaders {
  display: block;
  margin-top: 24px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.projectViewBtn,
.externalProjectsBtn,
.cyberSecurityBtn {
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,0.75);
  padding: 14px 34px;
  margin: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  min-width: 150px;

  color: #f9fafb;
  background: linear-gradient(135deg,
               rgba(15,118,110,0.85),
               rgba(37,99,235,0.9));
  background-size: 220% auto;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 16px 40px rgba(15,23,42,0.95),
    0 0 38px rgba(59,130,246,0.75);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: background-position 0.25s ease, transform 0.18s ease,
              box-shadow 0.2s ease, filter 0.2s ease;
}

.projectViewBtn:hover,
.externalProjectsBtn:hover,
.cyberSecurityBtn:hover {
  background-position: right center;
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow:
    0 22px 48px rgba(15,23,42,1),
    0 0 60px rgba(56,189,248,0.9);
}

/* External section container */

.externalProjects {
  margin-top: 32px;
}

/* ===== CYBER SECURITY BLOCK ===== */

.cyberSecurityDiv {
  margin: 24px auto;
  padding: 26px 22px;
  width: min(100%, 900px);
  border-radius: 24px;
  text-align: center;

  background: radial-gradient(circle at 85% 0%, rgba(59,130,246,0.25) 0, transparent 50%),
              rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 18px 42px rgba(15,23,42,0.9),
    0 0 50px rgba(59,130,246,0.4);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

#cyberSecurityText {
  font-size: 1.02rem;
}

/* ===== POPUP / MODAL (GLASS) ===== */

.hidden {
  display: none !important;
}

/* Dimmed, blurred overlay */
.popup-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 3vw;

  background: radial-gradient(circle at 10% 5%, rgba(59,130,246,0.35) 0, transparent 45%),
              rgba(15,23,42,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal card itself */
.popup-background {
  position: relative;
  width: min(960px, 100%);
  max-height: 86vh;
  border-radius: 24px;
  padding: 24px;
  overflow: auto;
  text-align: center;
  display: flex;

  background: radial-gradient(circle at top left,
              rgba(30,64,175,0.68) 0,
              rgba(15,23,42,0.96) 45%,
              rgba(15,23,42,0.98) 100%);
  border: 1px solid rgba(129,140,248,0.6);
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 26px 52px rgba(15,23,42,0.98),
    0 0 60px rgba(129,140,248,0.8);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  animation: modalIn 180ms ease-out;
}

/* Close button – more visible glass style */
.window-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-height: 46px;
  min-width: 46px;
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,0.9);
  background: radial-gradient(circle at 30% 20%,
              rgba(248,113,113,0.95) 0,
              rgba(185,28,28,1) 60%);
  color: #fef2f2;
  font-size: 1.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 16px 32px rgba(15,23,42,1),
    0 0 32px rgba(248,113,113,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.window-controls:hover {
  transform: scale(1.05);
  box-shadow:
    0 22px 40px rgba(15,23,42,1),
    0 0 40px rgba(248,113,113,0.95);
}

/* Popup content text */
/* ===== Language badges under project buttons ===== */

.project-languages {
  margin: 6px 0 18px;
}

.project-languages .lang-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  margin: 4px 6px;
  border-radius: 999px;            /* pill / circle feel */
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;

  background-size: 200% 200%;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.85),
    0 8px 18px rgba(15,23,42,0.9);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(148,163,184,0.8);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.25s ease;
}

.project-languages .lang-circle:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow:
    0 14px 26px rgba(15,23,42,1),
    0 0 26px rgba(96,165,250,0.85);
}

/* Individual gradient colour themes for each language */

.lang-html {
  background-image: conic-gradient(
    from 210deg,
    #f97316,
    #facc15,
    #fb923c,
    #f97316
  );
}

.lang-css {
  background-image: conic-gradient(
    from 200deg,
    #0ea5e9,
    #1d4ed8,
    #38bdf8,
    #0ea5e9
  );
}

.lang-js {
  background-image: conic-gradient(
    from 180deg,
    #eab308,
    #facc15,
    #fde047,
    #eab308
  );
}

.lang-csharp {
  background-image: conic-gradient(
    from 210deg,
    #a855f7,
    #6366f1,
    #7c3aed,
    #a855f7
  );
}

.lang-sql {
  background-image: conic-gradient(
    from 210deg,
    #22c55e,
    #16a34a,
    #4ade80,
    #22c55e
  );
}

.lang-python {
  background-image: conic-gradient(
    from 210deg,
    #facc15,
    #2563eb,
    #f59e0b,
    #facc15
  );
}

.lang-powershell {
  background-image: conic-gradient(
    from 210deg,
    #0ea5e9,
    #1e40af,
    #3b82f6,
    #0ea5e9
  );
}

/* ===== Accessible language filter chips ===== */

.lang-filter-form {
  margin-top: 8px;
}

.lang-filter-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.lang-filter-fieldset legend {
  width: 100%;
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.lang-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;

  background: radial-gradient(circle at 0% 0%,
              rgba(59,130,246,0.35) 0,
              rgba(15,23,42,0.95) 60%);
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow:
    0 6px 16px rgba(15,23,42,0.9),
    0 0 20px rgba(56,189,248,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.lang-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,0.95);
  box-shadow:
    0 10px 22px rgba(15,23,42,1),
    0 0 26px rgba(96,165,250,0.9);
}

.lang-filter-chip input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin: 0;
  accent-color: #60a5fa;            /* modern browsers */
}

/* Make checked state visually stronger */
.lang-filter-chip input[type="checkbox"]:checked + span {
  color: #bfdbfe;
  font-weight: 600;
}

/* Reset button */

.lang-filter-reset {
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(15,23,42,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s ease, transform 0.12s ease;
}

.lang-filter-reset:hover {
  background: rgba(30,64,175,0.95);
  transform: translateY(-1px);
}

/* Mobile layout tweak */
@media (max-width: 640px) {
  .lang-filter-fieldset {
    justify-content: flex-start;
  }
}


.projectInfo {
  text-align: left;
  margin: 0 auto;
  padding: 18px 20px;
  max-width: 760px;
  width: 100%;
  font-size: clamp(14px, 2.4vw, 18px);
  line-height: 1.55;
  color: #e5e7eb;
  overflow-wrap: break-word;
  word-break: break-word;
}

.projectInfo h2, .projectInfo h3 {
  color: #e5e7eb;
}

.projectInfo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 16px;
  box-shadow:
    0 18px 35px rgba(15,23,42,0.95),
    0 0 40px rgba(30,64,175,0.85);
}

/* Animation */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  min-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 10000;

  background: radial-gradient(circle at 0% 0%,
              rgba(59,130,246,0.35) 0,
              transparent 55%),
              rgba(15,23,42,0.98);
  border-left: 1px solid rgba(148,163,184,0.7);
  box-shadow:
    -10px 0 40px rgba(15,23,42,1),
    0 0 60px rgba(59,130,246,0.65);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.side-panel.is-visible {
  transform: translateX(0);
}

.panel-scroll {
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-title {
  margin: 10px 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.panel-content p,
.panel-content li {
  color: #e5e7eb;
}

.panel-content a {
  color: #7dd3fc;
  text-decoration: none;
}
.panel-content a:hover {
  text-decoration: underline;
}

.panel-close {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 80px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(15,23,42,1),
    0 12px 30px rgba(15,23,42,1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.18s ease, transform 0.15s ease;
}

.panel-close:hover {
  background: rgba(30,64,175,0.95);
  transform: translateY(-1px);
}

.panel-edge-grabber { display: none; }
.panel-edge-grabber.active { display: block; }

body.panel-open {
  overflow: hidden;
}

/* ===== IMAGES / CODE BLOCKS ===== */

.FM_images,
.projectImage,
.sidepanelimg {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 12px auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow:
    0 18px 35px rgba(15,23,42,0.95),
    0 0 40px rgba(30,64,175,0.8);
}

#toDoImage {
  width: 60%;
  height: auto;
}

/* Code block styling */

pre,
code,
pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
               monospace;
}

pre {
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  line-height: 1.45;
  font-size: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow:
    0 18px 36px rgba(15,23,42,1),
    0 0 40px rgba(37,99,235,0.7);
}

pre code {
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
}

pre ::selection {
  background: #1d4ed8;
  color: #fff;
}

pre::-webkit-scrollbar {
  height: 10px;
}
pre::-webkit-scrollbar-track {
  background: transparent;
}
pre::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.5);
  border-radius: 8px;
}
pre::-webkit-scrollbar-thumb:hover {
  background: rgba(191,219,254,.8);
}


@media (max-width: 768px) {
  .aboutMe {
    width: 92%;
    padding: 16px 18px;
  }

  .projects {
    border-radius: 20px;
  }

  .side-panel {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .cyberSecurityDiv {
    width: 100%;
    padding: 18px 12px;
    border-radius: 18px;
  }

  #cyberSecurityText {
    font-size: 0.95rem;
  }

  .popup-background {
    width: 100%;
    max-height: 90vh;
    padding: 16px;
    border-radius: 16px;
  }

  .projectInfo {
    font-size: 0.98rem;
  }

  .projectViewBtn,
  .externalProjectsBtn,
  .cyberSecurityBtn {
    min-width: 120px;
    padding: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popup-background {
    animation: none;
  }
}
