@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Cyber Security Design Tokens */
:root,
.theme-ghost {
  --bg-dark: #060814;
  --bg-section: #0c0f24;
  --bg-card: rgba(17, 22, 45, 0.65);
  --bg-nav: rgba(6, 8, 20, 0.85);

  --color-primary: #00f0ff;
  /* Neon Cyber Cyan */
  --color-primary-light: #5dfdff;
  /* Bright Hover Cyan */
  --color-primary-dark: #007799;
  /* Deep Accent Cyan */
  --color-accent: #39ff14;
  /* Matrix Neon Green */
  --color-accent-blue: #0055ff;
  /* Laser Blue */

  --text-main: #f1f5f9;
  /* Ice White */
  --text-muted: #94a3b8;
  /* Slate Muted */

  --border-glow: rgba(0, 240, 255, 0.2);
  --border-glow-active: rgba(0, 240, 255, 0.6);

  --shadow-cyber: 0 0 15px rgba(0, 240, 255, 0.15);
  --shadow-cyber-heavy: 0 0 25px rgba(0, 240, 255, 0.35);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --header-height: 75px;
}

.theme-matrix {
  --bg-dark: #050a05;
  --bg-section: #091209;
  --bg-card: rgba(10, 25, 10, 0.7);
  --bg-nav: rgba(5, 10, 5, 0.85);

  --color-primary: #39ff14;
  /* Matrix Green */
  --color-primary-light: #80ff66;
  --color-primary-dark: #1f800a;
  --color-accent: #00f0ff;
  --color-accent-blue: #00aa00;

  --text-main: #d0ffd0;
  --text-muted: #629e62;

  --border-glow: rgba(57, 255, 20, 0.2);
  --border-glow-active: rgba(57, 255, 20, 0.6);

  --shadow-cyber: 0 0 15px rgba(57, 255, 20, 0.15);
  --shadow-cyber-heavy: 0 0 25px rgba(57, 255, 20, 0.35);
}

.theme-redteam {
  --bg-dark: #0f0505;
  --bg-section: #180909;
  --bg-card: rgba(26, 10, 10, 0.7);
  --bg-nav: rgba(15, 5, 5, 0.85);

  --color-primary: #ff003c;
  /* Threat Red */
  --color-primary-light: #ff5c7d;
  --color-primary-dark: #aa0022;
  --color-accent: #ff8c00;
  --color-accent-blue: #cc0000;

  --text-main: #ffdcd0;
  --text-muted: #ad8383;

  --border-glow: rgba(255, 0, 60, 0.2);
  --border-glow-active: rgba(255, 0, 60, 0.6);

  --shadow-cyber: 0 0 15px rgba(255, 0, 60, 0.15);
  --shadow-cyber-heavy: 0 0 25px rgba(255, 0, 60, 0.35);
}

.theme-soc {
  --bg-dark: #030a1c;
  --bg-section: #061230;
  --bg-card: rgba(10, 25, 64, 0.7);
  --bg-nav: rgba(3, 10, 28, 0.85);

  --color-primary: #3b82f6;
  /* SOC Blue */
  --color-primary-light: #60a5fa;
  --color-primary-dark: #1d4ed8;
  --color-accent: #a855f7;
  --color-accent-blue: #2563eb;

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  --border-glow: rgba(59, 130, 246, 0.2);
  --border-glow-active: rgba(59, 130, 246, 0.6);

  --shadow-cyber: 0 0 15px rgba(59, 130, 246, 0.15);
  --shadow-cyber-heavy: 0 0 25px rgba(59, 130, 246, 0.35);
}

/* Core Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid rgba(0, 240, 255, 0.1);
}

html {
  min-height: 100%;
  min-width: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
}

body {
  width: 100%;
  height: 100%;
  position: relative;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(var(--border-glow) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.001) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.001) 1px, transparent 1px);
  background-size: 32px 32px, 96px 96px, 96px 96px;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
}

.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-dark) 0%, transparent 70%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  animation: drift 25s infinite alternate ease-in-out;
}

.ambient-glow-1 {
  top: -10%;
  left: -10%;
}

.ambient-glow-2 {
  bottom: -10%;
  right: -10%;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, 80px) scale(1.15);
  }
}

/* Custom Selection Highlight */
::selection {
  background-color: var(--color-primary);
  color: #000000;
  text-shadow: none;
}

/* Scrollbar Customization */
body::-webkit-scrollbar-track {
  background-color: var(--bg-dark);
  border-left: 1px solid var(--border-glow);
}

body::-webkit-scrollbar {
  width: 0.5rem;
  background-color: var(--bg-dark);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  box-shadow: 0 0 8px var(--color-primary);
}

/* Typography & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

#hero-title {
  background: linear-gradient(135deg, #ffffff 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-max {
  width: max-content;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.uppercase {
  text-transform: uppercase;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.align-center {
  align-items: center;
}

.self-center {
  align-self: center;
}

.self-start {
  align-self: flex-start;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-16 {
  gap: 4rem;
}

.p-4 {
  padding: 1rem;
}

.p-2 {
  padding: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.cursor-pointer {
  cursor: pointer;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 1px solid var(--border-glow);
}

.border-b {
  border-bottom: 1px solid var(--border-glow);
}

.border-primary {
  border-color: var(--color-primary);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-background {
  background-color: var(--bg-dark);
}

.bg-primary-section {
  background-color: var(--bg-section);
}

.bg-primary-block {
  background-color: var(--bg-card);
}

.bg-primary-gray {
  background-color: var(--bg-card);
}

.bg-primary-text {
  background-color: var(--bg-dark);
}

.text-primary {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.text-primary-background {
  color: #000000;
}

.text-primary-gray {
  color: var(--text-muted);
}

.text-primary-text {
  color: var(--text-main);
}

.shadow {
  box-shadow: var(--shadow-cyber);
}

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

.brightness-50 {
  filter: brightness(0.4) grayscale(0.2);
}

.transition-all {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-500 {
  transition-duration: 500ms;
}

/* Interactive Hover States */
.hover-text-primary:hover {
  color: var(--color-primary-light);
  text-shadow: 0 0 15px var(--color-primary);
}

.hover-bg-primary-light:hover {
  background-color: var(--color-primary);
  color: #000000;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-cyber-heavy);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1200px;
  height: 64px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 8, 20, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
}

header a.active {
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.header-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header-mobile {
  display: flex;
  align-items: center;
}

/* Mobile Side Menu */
#menu {
  display: flex;
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 90;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#menu.active {
  height: auto;
}

#menu ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
  background-color: rgba(6, 8, 20, 0.95);
  border-bottom: 2px solid var(--color-primary);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#menu ul a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#menu ul a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
}

/* Selfie Morph & Cyber HUD Reticle */
.hero-selfie {
  position: relative;
  width: 300px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing background scanlines / tech aura */
.hero-selfie::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  animation: pulse-aura 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulse-aura {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Rotating HUD scan rings */
.hud-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--color-primary);
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
  transition: all 0.5s ease;
}

.ring-outer {
  width: 340px;
  height: 340px;
  border-width: 1.5px;
  border-style: double;
  animation: rotate-clockwise 30s linear infinite;
}

.ring-inner {
  width: 290px;
  height: 290px;
  border-style: dashed;
  border-color: var(--color-accent);
  animation: rotate-counter 20s linear infinite;
}

@keyframes rotate-clockwise {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate-counter {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* Modern Status Badge styling */
.status-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.theme-ghost .status-badge-wrapper {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.theme-matrix .status-badge-wrapper {
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.05);
}

.theme-redteam .status-badge-wrapper {
  background: rgba(255, 0, 60, 0.05);
  border: 1px solid rgba(255, 0, 60, 0.2);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.05);
}

.theme-soc .status-badge-wrapper {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Dynamic targeting scope overlay corners */
.hero-selfie::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px dashed rgba(0, 240, 255, 0.15);
  pointer-events: none;
  z-index: 3;
}

/* Corner HUD Brackets */
.hero-selfie-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-primary);
  border-style: solid;
  z-index: 4;
  pointer-events: none;
}

.corner-tl {
  top: -5px;
  left: -5px;
  border-width: 3px 0 0 3px;
}

.corner-tr {
  top: -5px;
  right: -5px;
  border-width: 3px 3px 0 0;
}

.corner-bl {
  bottom: -5px;
  left: -5px;
  border-width: 0 0 3px 3px;
}

.corner-br {
  bottom: -5px;
  right: -5px;
  border-width: 0 3px 3px 0;
}

#selfie {
  animation: morph 12s ease-in-out infinite;
  background-origin: border-box;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid var(--color-primary);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  height: 300px;
  width: 250px;
  transition: all 1s ease-in-out;
  box-shadow: var(--shadow-cyber);
  z-index: 2;
}

@keyframes morph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  33% {
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  }

  66% {
    border-radius: 50% 40% 60% 40% / 60% 50% 40% 60%;
  }
}

/* Cyber Scanning Line Animation overlaying the Selfie */
.hero-selfie .scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  box-shadow: 0 0 10px var(--color-primary);
  animation: scan 3.5s linear infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes scan {
  0% {
    top: 0%;
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Sections Layout & Section Scans */
section {
  position: relative;
  overflow: hidden;
}

/* Alternate sections dark background styling */
.bg-primary-section {
  background-color: var(--bg-section);
  border-top: 1px solid rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
}

section main {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Custom Cyber Section Title Elements */
h2[id$="-section-title"] {
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2[id$="-section-title"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Cards (Services & Portfolio) */
.card {
  width: 100%;
  background-color: rgba(10, 15, 30, 0.5) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--border-glow);
}

/* Tech corner brackets on hover */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-primary);
  border-style: solid;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.card::before {
  top: 4px;
  left: 4px;
  border-width: 1.5px 0 0 1.5px;
}

.card::after {
  bottom: 4px;
  right: 4px;
  border-width: 0 1.5px 1.5px 0;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

/* Image aspect for project cards */
.card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  transition: all 0.5s ease;
}

.card .relative {
  position: relative;
  overflow: hidden;
}

/* Acunetix text overlay */
.card .relative h3.bottom-title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.75rem 1rem;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.card:hover .relative h3.bottom-title {
  opacity: 0;
}

.card:hover img {
  filter: brightness(1) grayscale(0);
}

/* Placeholder media for project cards without a screenshot yet */
.card-placeholder-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--bg-card) 0%, var(--bg-dark) 100%);
  filter: brightness(0.7);
  transition: all 0.5s ease;
}

.card-placeholder-media .icon {
  width: 56px;
  height: 56px;
  opacity: 0.7;
}

.card:hover .card-placeholder-media {
  filter: brightness(1);
}

/* Collapsible Section logic */
.collapsible-container {
  overflow: hidden;
  height: 0;
  opacity: 0;
  padding: 0 1rem;
  transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, padding 0.4s ease;
  background-color: rgba(12, 15, 36, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.collapsible-container h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
  margin-top: 0.5rem;
}

.card:hover .collapsible-container,
.card.expanded .collapsible-container {
  height: auto;
  opacity: 1;
  padding: 1.25rem 1rem;
}

/* Custom list layout */
.list-disc {
  list-style-type: square;
  padding-left: 1.25rem;
}

.list-disc li {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.list-disc li::marker {
  color: var(--color-primary);
}

/* Experience Layout & Connected Timeline */
#experiences main section:not(:last-child) {
  padding-bottom: 4rem;
}

.timeline-container {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.timeline-line {
  position: absolute;
  left: 7.5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0.5;
  box-shadow: 0 0 8px var(--color-primary);
}

.timeline-item {
  position: relative;
  width: 100%;
}

.timeline-dot {
  position: absolute;
  left: -29.5px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-primary);
  transform: scale(1.25);
  box-shadow: 0 0 15px var(--color-primary);
}

.timeline-item .card {
  margin-left: 0.5rem;
  width: calc(100% - 0.5rem);
}

/* Custom experience tags/years (Fira Code) */
.card .text-primary-background.bg-primary {
  background-color: rgba(0, 240, 255, 0.1) !important;
  border: 1px solid var(--color-primary);
  color: var(--color-primary) !important;
  font-family: var(--font-mono);
  font-weight: 600;
  box-shadow: var(--shadow-cyber);
}

.card h3 {
  font-family: var(--font-display);
}

.card a.text-primary {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Skills progress bar logic */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-cyber);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow-active);
  box-shadow: var(--shadow-cyber-heavy);
  background: rgba(17, 22, 45, 0.85);
}

.skill-card:hover::before {
  transform: translateX(100%);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.skill-percentage {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 8px var(--border-glow-active);
}

.progress-track {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  height: 0.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  box-shadow: 0 0 10px var(--color-primary);
  position: relative;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(-45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent);
  background-size: 15px 15px;
  animation: move-stripes 1.5s linear infinite;
  opacity: 0.4;
}

@keyframes move-stripes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 0;
  }
}

.skill-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.skill-card:hover .skill-tag {
  border-color: var(--border-glow-active);
  background: var(--border-glow);
  box-shadow: 0 0 5px var(--border-glow);
}

/* Contact Button Customizations */
#contact-buttons-container a {
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: var(--shadow-cyber);
  color: var(--text-main) !important;
  transition: all 0.3s ease;
}

#contact-buttons-container a:hover {
  background-color: rgba(0, 240, 255, 0.05);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-cyber-heavy);
  transform: translateY(-2px);
  color: var(--color-primary) !important;
}

#contact-buttons-container a .text-primary-background {
  color: inherit !important;
}

#contact-buttons-container .right-arrow {
  background-color: var(--bg-section) !important;
  border-right: 1px solid rgba(0, 240, 255, 0.15);
}

#contact-buttons-container .right-arrow::before {
  border-left-color: var(--bg-section);
}

#contact-buttons-container a:hover .right-arrow::before {
  border-left-color: var(--bg-section);
}

/* Footer layout */
#footer {
  border-top: 1px solid var(--border-glow);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
  background-color: var(--bg-dark);
  color: var(--text-main);
  padding: 4rem 0;
}



#copyright-text {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Responsive Media Queries */
@media (min-width: 480px) {
  #menu {
    justify-content: flex-end;
  }

  #menu ul {
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    border-bottom-left-radius: 0.5rem;
    width: 220px;
  }
}

@media (min-width: 768px) {
  header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header-desktop {
    display: flex;
    align-items: center;
  }

  .header-desktop a {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }

  .header-mobile {
    display: none;
  }

  section main {
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Grid splits for desktop */
  .hero-flex {
    flex-direction: row-reverse;
  }

  .hero-text {
    width: 50%;
    text-align: left;
    align-self: center;
  }

  .hero-selfie {
    width: 50%;
    display: flex;
    justify-content: center;
  }

  #selfie {
    height: 380px;
    width: 310px;
  }

  .hero-selfie {
    width: 350px;
    height: 420px;
  }

  .hero-selfie::after {
    width: 400px;
    height: 400px;
  }

  .about-flex {
    flex-wrap: nowrap;
    gap: 4rem;
  }

  .about-image-container {
    max-width: 450px;
  }

  .about-text-container h2,
  .about-text-container h3 {
    text-align: left;
  }

  .card-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .card {
    width: calc(50% - 1rem);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }


}

@media (min-width: 1024px) {
  /* Extra grid sizing adjustments */
}

/* Theme Selector UI */
.theme-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 9999px;
  padding: 6px 12px;
  margin-left: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 105;
}

.theme-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.theme-btn:hover {
  transform: scale(1.35);
  box-shadow: 0 0 8px currentColor;
}

.theme-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.15);
}