/* General setup */
body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #3b82f6);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

/* Resume Section */
.resume {
  background: white;
  padding: 30px;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: left;
}

header img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #3b82f6;
}

h1 {
  margin: 10px 0 5px;
  font-size: 24px;
  color: #333;
}

/* Contact Section */
h2 {
  border-bottom: 2px solid #667eea;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 20px;
  color: #333;
}

p, li {
  color: #555;
}

/* Skills Section */
.skills .bar {
  min-height: 10px;
  background: #e0e0e0;
  margin: 5px 0;
  border-radius: 5px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  transition: width 0.5s ease-in-out;
}

.html {
  width: 90%;
  background: #ff5733;
}

.css {
  width: 85%;
  background: #33a1ff;
}

.responsive {
  width: 80%;
  background: #33ff57;
}

button {
  display: block;
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: 0.3s;
}

button:hover {
  background: #5563c1;
}

/* Print layout */
@media print {
  button { display: none; }

  body {
    display: block;
    height: auto;
    min-height: unset;
    background: white;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
  }

  .resume {
    max-width: 100%;
    width: 100%;
    padding: 0.5in 0.75in;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  h1      { font-size: 20pt; margin-bottom: 4pt; }
  h2      { font-size: 13pt; margin-bottom: 6pt; }
  p, li   { font-size: 10pt; color: #333; }
  strong  { font-size: inherit; }

  section:last-child,
  p:last-child,
  li:last-child { margin-bottom: 0; }

  li, p { page-break-inside: avoid; }
}
/* Hide text behind a dark bar */
.spoiler {
  display: inline;
  position: relative;
  color: transparent;           /* text invisible */
  cursor: pointer;
  border-radius: 3px;
  transition: color 300ms ease 60ms;
}

/* The dark redaction bar */
.spoiler::before {
  content: '';
  position: absolute;
  inset: -2px -4px;
  background: #1a1a1a;
  border-radius: 3px;
  transition: opacity 350ms ease;
  pointer-events: none;
}

/* The label text inside the bar */
.spoiler::after {
  content: '⚠ Redacted ⚠';
  position: absolute;
  inset: -2px -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ADFF2F;
  transition: opacity 200ms ease;
  pointer-events: none;
}

/* Hover — swap label, add glow */
.spoiler:not(.revealed):hover::before {
  background: #adff2f;
  box-shadow: 0 0 0 2px teal;
}
.spoiler:not(.revealed):hover::after {
  content: 'Click to reveal';
  color: teal;
}

/* Revealed — fade overlay, restore text */
.spoiler.revealed {
  color: inherit;
  background: rgba(173, 255, 47, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 105, 111, 0.3);
  padding: 0 4px;
}

.spoiler.revealed::before,
.spoiler.revealed::after {
  opacity: 0;
}

/* Nuke trailing whitespace from any section/div at the end */
section:last-child,
  div:last-child,
  ul:last-child,
  p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

 /* Prevent the page from breaking mid-element */
  li, p {
    page-break-inside: avoid;
  }

/* visit counter */  
body {
  background: #237ccf;
  color: #fff;
  font-size: 24px;
  font-family: Verdana;
}
span {
  display: inline-block;
  padding: 10px 10px 6px;
  border-radius: 6px;
  background: #80b4e5;
  margin: 5px 5px;
  font-size: 5rem;
}
.counter{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.message {
  color: #ccc6e3;
    text-align: center;
    margin-top: 10px;
}

}
