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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f1115;
  color: #e0e0e0;
  line-height: 1.6;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

:root {
  --color-primary: #00bcd4;
  --color-primary-dark: #0097a7;
  --color-gray-light: #f5f7fa;
  --color-text-dark: #2c3e50;
}

.cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Base styles */
.navbar {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

/* Hamburger Button */
#hamburger {
  display: none; /* only for mobile */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: fixed;   /* always visible */
  top: 15px;
  right: 15px;
  z-index: 9999;     /* above everything */
}

/* Hamburger bars */
#hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #ff9800; /* Change this to your desired color */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Optional: active state when menu is open */
#hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #ff5722; /* Optional: different color when active */
}

#hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

#hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #ff5722; /* Optional */
}

/* Desktop view: show links side by side for Hamburger */

@media (min-width: 769px) {
  .navbar {
    position: static;        /* normal flow */
    height: auto;
    width: auto;
    background: transparent;
    transform: none;         /* don’t hide offscreen */
    flex-direction: row;     /* horizontal */
    gap: 1.5rem;
    padding-top: 0;
  }

  .nav-link {
    color: inherit;
    padding: 0;
    font-size: 1rem;
  }

  #hamburger {
    display: none; /* hide hamburger on desktop */
  }
}

/* Desktop header with white background */
@media (min-width: 769px) {
  header {
    background: #fff;          /* white background */
    padding: 1rem 2rem;        /* space around nav */
  }

  .navbar {
    position: relative;        /* scrolls away with page */
    height: auto;
    width: auto;
    background: transparent;   /* no drawer background */
    transform: none;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
  }

  .nav-link {
    color: #000;               /* black text on white background */
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-link:hover {
    color: #00bcd4;            /* accent hover color */
    background: transparent;   /* no background hover */
  }

  #hamburger {
    display: none;             /* hide hamburger on desktop */
  }
}

/* remove the above code to line 86 if it becomes unresponsive or corrupted */ 


/* Navbar Menu */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 220px;
  background: #111;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9998; /* below hamburger */
  overflow-y: auto;
}

.navbar.open {
  transform: translateX(0);
}

.nav-link {
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-link:hover {
  background: #222;
}

/* Mobile visibility */
@media (max-width: 768px) {
  #hamburger {
    display: flex;
  }
}

/* Navbar for mobile */
@media (max-width: 768px) {
  #hamburger {
    display: flex;
  }
  .navbar {
    position: absolute;
    top: 60px;
    right: 0;
    background: #111;
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
  }
  .navbar.open {
    transform: translateX(0);
  }
  .navbar .nav-link {
    padding: 1em;
    color: white;
    text-decoration: none;
  }
}

/* Spinner */

/* Loader overlay (full page) */
.loader-overlay {
  position: fixed;
  inset: 0;                       /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,17,21,0.6); /* subtle backdrop */
  z-index: 9999;                  /* ensure it's above other content */
  transition: opacity 0.35s ease;
  pointer-events: auto;
}

/* fade-out helper */
.loader-overlay.loaded {
  opacity: 0;
  pointer-events: none;
}

/* Spinner base variables */
.spinner {
  --size: 64px;
  --thickness: 6px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  animation: spin 4s linear infinite;
  /* keep accessible fallback background removed by default */
  background: none;
}

/* Use conic-gradient + mask when supported (modern browsers) */
@supports (background: conic-gradient(red, yellow)) {
  .spinner {
    background: conic-gradient(
      from 0deg,
      #ff6b6b,
      #fbc531,
      #4cd137,
      #00a8ff,
      #9c88ff,
      #ff6b6b
    );
    /* create a hollow ring using mask (include -webkit- for Safari) */
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
    mask: radial-gradient(farthest-side, #0000 calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
  }
}

/* Fallback: classic bordered spinner for older browsers */
@supports not (background: conic-gradient(red, yellow)) {
  .spinner {
    border: var(--thickness) solid rgba(255,255,255,0.08);
    border-top-color: #00bcd4;
    background: none;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .loader-overlay { transition: none; }
}


  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
 }
/* Light Theme */
body.light {
  background: #ffffff;
  color: #000000;
}

body.light header h1,
body.light h2 {
  color: #000000;
}

body.light .tagline {
  color: #333333;
}

body.light form input,
body.light form textarea {
  background: #f0f0f0;
  color: #000000;
  border: 1px solid #ccc;
}

body.light a {
  color: #00796b;
}

/* Code rain canvas positioned behind header content */
#code-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind text */
  pointer-events: none;
}

header {
  position: relative; /* so canvas is positioned relative to header */
  overflow: hidden;
}

header h1,
header .tagline,
#theme-toggle {
  position: relative;
  z-index: 1; /* ensure text is above canvas */
}

/* Header */
header {
  text-align: center;
  margin-bottom: 50px;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.tagline {
  font-size: 1.2rem;
  color: #bbbbbb;
}

#theme-toggle {
  margin-top: 15px;
  padding: 8px 16px;
  background: #00bcd4;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

body.light #theme-toggle {
  background: #00796b;
  color: #fff;
}

#theme-toggle .icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#theme-toggle .icon.spin {
  animation: spinIcon 0.6s ease;
}

/* Download CV button */
.download-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, opacity 0.6s ease, transform 0.6s ease;

  /* start hidden */
  opacity: 0;
  transform: translateY(20px);
}

.download-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.download-btn:hover {
  background: var(--color-primary-dark);
}

body.light .download-btn {
  background: #00796b;
  color: #fff;
}

body.light .download-btn:hover {
  background: #005f56;
}

/* Paper shake animation */
@keyframes shakePaper {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

.download-btn .icon.shake {
  animation: shakePaper 0.6s ease;
}

/* Download the CV loading animation */

#download-cv {
  position: relative;
  overflow: hidden;
}

#download-cv.loading::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(0, 123, 255, 0.2);
  animation: loading 1s linear forwards;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

#download-cv {
  position: relative;
  overflow: hidden;
}

#download-cv .loader {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: #00bcd4;
  transition: width 2.05s linear; /* short steps for smooth animation */
}

#download-cv.loading .loader {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.profile-pic {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: block;
}

@media (max-width: 500px) {
  .profile-pic {
    max-width: 120px;
  }
}

main {
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  margin-bottom: 50px;
  padding: 20px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
}

.section:hover {
  background: rgba(255, 255, 255, 0.05);
}

.section.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Service list tick setup */

#services ul {
  list-style: none;
  padding-left: 0;
}

#services ul li {
  position: relative;
  padding-left: 28px;
  opacity: 0;
  transform: translateY(15px);
}

/* Tick styling (hidden by default) */

#services ul li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(0);
  opacity: 0;
}

/* When section is visible, trigger li animations */

#services.visible ul li {
  animation: fadeInListItem 0.4s ease forwards;
}

#services.visible ul li::before {
  animation: tick-pop 1.4s ease forwards;
}

/* Delay each li for a staggered effect */

#services.visible ul li:nth-child(1) {
  animation-delay: 1.2s;
}
#services.visible ul li:nth-child(1)::before {
  animation-delay: 1.2s;
}

#services.visible ul li:nth-child(2) {
  animation-delay: 1.4s;
}
#services.visible ul li:nth-child(2)::before {
  animation-delay: 1.4s;
}

#services.visible ul li:nth-child(3) {
  animation-delay: 1.6s;
}
#services.visible ul li:nth-child(3)::before {
  animation-delay: 1.6s;
}

#services.visible ul li:nth-child(4) {
  animation-delay: 1.8s;
}
#services.visible ul li:nth-child(4)::before {
  animation-delay: 1.8s;
}

/* Keyframes */

@keyframes fadeInListItem {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tick-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.project {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.project.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.degree-info {
  text-align: center;
  margin: 2rem auto;
  font-size: 1rem;
  line-height: 1.5;
}
.degree-info p {
  margin: 0.3rem 0;
}
.degree-info strong {
  font-size: 1.1rem;
}

/* Case Studies button */

#case-studies-btn {
  background: #00bcd4;
  color: #000;
}
#case-studies-btn:hover {
  background: #0097a7;
}

/* Container to center the button */

.view-all-case-studies-container {
  display: flex;
  justify-content: center;  /* horizontal centering */
  margin: 40px 0;           /* optional spacing above and below */
}

/* Case Studies Button */

.case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                        
  padding: 12px 24px;               
  background-color: #00bcd4;        
  color: #000;                      
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;            
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.case-btn:hover {
  background-color: #0097a7;
  transform: translateY(-2px);
}


/* Button Animations */

/* === ICON ANIMATIONS === */

/* Spin */
@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin { animation: spinIcon 0.6s ease; }

/* Paper shake */

@keyframes shakePaper {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}
.shake { animation: shakePaper 0.6s ease; }

/* Bounce */

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.bounce { animation: bounceIcon 0.6s ease; }

/* Wiggle */
@keyframes wiggleIcon {
  0% { transform: rotate(0); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}
.wiggle { animation: wiggleIcon 0.5s ease; }

/* Keep hover behaviors */
#theme-toggle:hover .icon-anim { animation: spinIcon 0.6s ease; }
#download-cv:hover .icon-anim { animation: shakePaper 0.6s ease; }
#back-to-home:hover .icon-anim { animation: bounceIcon 0.6s ease; }
#case-studies-btn:hover .icon-anim { animation: wiggleIcon 0.5s ease; }


/* ===== Skills Section (3D Radial + Bars) ===== */

#skills .skills-toggle {
  display: flex;
  justify-content: center; /* centered as requested */
  gap: 10px;
  margin: 10px 0 18px;
}
 /* Show/hide project summary */
    .skill-details {
      display: none;
      margin-top: 8px;
      background: #f0f0f0;
      padding: 10px;
      border-radius: 6px;
    }
    .skill-details.visible {
      display: block;
    }
    .skill-card {
      cursor: pointer;
    }

#skills .skills-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.2));
  color: #e6f7fb;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
body.light #skills .skills-tab {
  color: #07343a;
  border-color: rgba(0,0,0,0.15);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(0,0,0,0.08));
}
#skills .skills-tab:hover { transform: translateY(-1px); }
#skills .skills-tab.active {
  box-shadow: 0 6px 18px rgba(0,188,212,.25);
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  color: #000;
}
body.light #skills .skills-tab.active {
  color: #fff;
}

#skills .skills-note {
  text-align: center;
  opacity: .7;
  margin-bottom: 12px;
  font-size: .95rem;
}

.skills-summary {
  margin-bottom: 1.5rem;
  background-color: #f5f7fa;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  line-height: 1.6;
  color: #333;
  transition: background 0.3s ease;
}

.skills-summary p {
  margin: 0.5rem 0;
}

/* Views */

.skills-view[hidden] { display: none !important; }

/* Radial grid */

.skills-grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(230px, 1fr) );
  gap: 18px;
  perspective: 800px; /* slight perspective for 3D vibe */
}

.skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  cursor: pointer;
}
.skill-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.skill-card:hover {
  transform: translateY(-2px) rotateX(2deg);
  box-shadow: 0 16px 28px rgba(0,0,0,0.35);
}
body.light .skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(0,0,0,0.04));
  border-color: rgba(0,0,0,0.08);
}

/* Donut ring (SVG) */

.ring-wrap { display: grid; place-items: center; gap: 10px; }
.ring { width: 140px; height: 140px; transform: rotate(-90deg); }

.ring .track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 14;
  filter: url(#inner-shadow-pen); /* harmless if id missing */
}
body.light .ring .track { stroke: rgba(0,0,0,0.08); }

.ring .depth {
  fill: none;
  stroke: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(0,0,0,0.2));
  stroke: rgba(0,0,0,0.2);
  stroke-width: 14;
  opacity: 0.15;
}

.ring .progress {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  /* subtle bevel highlight using double shadow via filter in defs */
}

.ring-label { text-align: center; line-height: 1.1; }
.ring-label .skill-name { display:block; font-weight:700; }
.ring-label .skill-value { font-variant-numeric: tabular-nums; opacity:.85; }

/* Details inside card */

.skill-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  font-size: .95rem;
  display: none;
}
.skill-card.open .skill-details { display: block; }
body.light .skill-details { border-top-color: rgba(0,0,0,0.15); }

/* Bars list */
.skills-list { display: grid; gap: 14px; }

.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
}
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr; }
}

.bar-label {
  text-align: left;
  font-weight: 700;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.bar-label:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.bar-label .bar-value { opacity:.8; font-weight:600; margin-left:.35rem; }

.bar-3d {
  position: relative;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.25));
  overflow: visible;
  transform: perspective(600px) rotateX(6deg); /* 3D tilt */
  border: 1px solid rgba(255,255,255,0.08);
}
body.light .bar-3d {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(0,0,0,0.06));
  border-color: rgba(0,0,0,0.08);
}

/* 3D faces via pseudo elements */

.bar-3d::before, .bar-3d::after {
  content: "";
  position: absolute;
  top: -8px;
  height: 8px;
  left: 0;
  border-radius: 6px 6px 0 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  pointer-events: none;
}
.bar-3d::after {
  top: auto; bottom: -8px; height: 10px; border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.35));
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 6px;
  display: block;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 6px 18px rgba(0,188,212,0.35);
  transition: width 1.2s ease-out;
}

.bar-details {
  grid-column: 1 / -1;
  display: none;
  font-size: .95rem;
  padding-left: 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}
.bar-row.open .bar-details { display: block; }
body.light .bar-details { border-top-color: rgba(0,0,0,0.15); }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .skills-tab, .skill-card, .bar-fill { transition: none !important; }
  .ring { transform: none; }
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #00bcd4;
  display: inline-block;
  padding-bottom: 5px;
  color: #ffffff;
}

ul {
  list-style: none;
}

ul li {
  margin-bottom: 10px;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
  margin-bottom: 5px;
}

form input,
form textarea {
  background: #1a1c22;
  border: 1px solid #333;
  color: #e0e0e0;
  padding: 10px;
  border-radius: 4px;
}

form button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #00bcd4;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

footer {
  background: #222;
  overflow: hidden;
  position: relative;
}

.footer-scroll {
  display: flex;
  white-space: nowrap;
}

.scroll-content {
  display: inline-flex;
  align-items: center;
  padding-right: 2rem; /* space between repeats */
  animation: scroll-footer 20s linear infinite;
}

.footer-logos {
  height: 40px; /* adjust as needed */
  margin-right: 1rem;
}

.scroll-content span {
  color: white;
  font-size: 0.9rem;
}

@keyframes scroll-footer {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-color, #00bcd4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}

#back-to-top.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

#back-to-top.hide {
  opacity: 0;
  transform: scale(0.9);
}


footer:hover .scroll-content {
  animation-play-state: paused;
}

/* Contact Form Status Messages */
.form-status {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Success message */
.form-status:contains("Thank you") {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error message */
.form-status:not(:contains("Thank you")) {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form container styling */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* Inputs, textarea, and button styling */
#contact input, 
#contact textarea, 
#contact button {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Button styling */
#contact button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#contact button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #contact h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    #contact p {
        font-size: 1rem;
        text-align: center;
    }

    #contact form {
        gap: 10px;
        padding: 0 10px;
    }

    #contact button {
        font-size: 1rem;
        padding: 12px 0;
    }
}

/* Page 2 - to be renamed later /*

/* Progress Bars Section */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress-container p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 24px;
  width: 0; /* starts at 0, JS grows it */
  background: var(--color-primary, #00bcd4);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 24px;
  text-align: right;
  padding-right: 8px;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.35);
  transition: width 1.2s ease-out; /* smooth animation */
}

.progress-bar[data-progress] {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.progress-label {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 0.25rem;
}

/* Progress Bars Animation */
.progress-bar {
  height: 24px;
  width: 0; /* will be animated by JS */
  opacity: 0; /* hidden at first */
  transform: translateY(10px); /* slight slide down */
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 9999px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 24px;
  text-align: right;
  padding-right: 8px;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.35);
  transition:
    width 1.4s ease-out,
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* When visible */
.progress-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

section {
  margin-bottom: 4rem; /* Increase space between sections */
}

.mb-6 {
  margin-bottom: 2rem; /* Increase the spacing for all .mb-6 elements */
}

.progress-bar {
  margin-top: 0.5rem; /* Adds space above the bar */
  margin-bottom: 0.5rem; /* Adds space below the bar */
}

/* Header Buttons on Page 2 */

.header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  align-items: center; /* ensures all buttons align on the same horizontal line */
}

/* Base style for all header buttons */
.header-btn {
  display: flex;
  align-items: center;        /* vertical centering of content */
  justify-content: center;    /* horizontal centering */
  gap: 8px;                   /* spacing between icon and text */
  padding: 12px 24px;         /* consistent padding */
  width: 160px;               /* fixed width for all buttons */
  height: 48px;               /* fixed height for all buttons */
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  line-height: 1;             /* ensures consistent vertical alignment */
}

/* Individual button colors */

/* Theme Toggle */
#theme-toggle {
  background: #6b7280;
  color: #fff;
}
#theme-toggle:hover {
  background: #4b5563;
}

/* Download CV */
#download-cv {
  background: #00bcd4;
  color: #000;
}
#download-cv:hover {
  background: #0097a7;
}

/* Back to Home */
#back-to-home {
  background: #00bcd4;
  color: #fff;
}
#back-to-home:hover {
  background: #4338ca;
}

/* ===== Progress Bar Variants ===== */

/* Academic (degrees) */
.progress-bar.progress-academic {
  background: linear-gradient(90deg, #2563eb, #1d4ed8); /* blue gradient */
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* Certifications in progress */
.progress-bar.progress-cert {
  background: linear-gradient(90deg, #22c55e, #15803d); /* green gradient */
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
}

/* Future goals */
.progress-bar.progress-future {
  background: linear-gradient(90deg, #f59e0b, #b45309); /* amber/orange gradient */
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

/* Hover effect for all bars */
.progress-bar:hover {
  filter: brightness(1.15);
}

.progress-bar {
  width: 0; /* animated by JS */
  opacity: 0;
  transform: translateY(10px);
}

.progress-bar.visible {
  opacity: 1;
  transform: translateY(0);
}






