
html{
  scroll-behavior: smooth;
}
/* =========================
   THEME VARIABLES
   ========================= */

/* ----- DARK MODE (default) ----- */
:root {
  --bg-color: #0d1117;
  --text-color: #ffffff;
  --border-color: #ffffff;
  --shadow-color: #ffffff;

  --title-color: #ffffff;

  --line-color: #ffffff;

  --circle-outer-border: #ffffff;
  --circle-inner-bg: #ffffff;
  --switch-bg: #555555;
  --switch-active: #d29922;
}

/* ----- LIGHT MODE ----- */
body.light {
  --bg-color: #F8EBE1;
  --text-color: #2D2B29;
  --border-color: #353330;
  --shadow-color: #353330;

  --title-color: #222222;

  --line-color: #353330;

  --circle-outer-border: #353330;
  --circle-inner-bg: #353330;

  --switch-bg: #bbbbbb;
  --switch-active: #8a5a14;
}

/* =========================
   FONTS
   ========================= */

@font-face {
  font-family: pixel;
  src: url(fonts/Pixelbasel-zr5Ll.ttf);
}

/* =========================
   BASE LAYOUT
   ========================= */

body {
  cursor: url(pics/cursor/pixel-cursor.png) 4 0 , auto;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 15px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px var(--shadow-color);
  font-family: pixel;
  font-size: 30px;
  padding: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a:hover , button:hover ,nav:hover , .switch:hover , .knob:hover , .menu:hover , .dropdown-menu:hover , .menu-item :hover , ul.menu :hover{
  cursor: url(pics/cursor/pixel-pointer.png) 4 0 , auto;
}

.profile-img:hover{
  cursor: url(pics/cursor/pixel-cursor.png) 4 0 , auto;
}
/* =========================
   HEADER & TITLE
   ========================= */
/* Pixel art animated background */
#pixel-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  image-rendering: pixelated;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.profile {
  position: absolute;
  top: 20px;
  right: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 15px;
}

/* FIX image */
.profile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px var(--shadow-color);
  border-radius: 10px;
  overflow: hidden;

}
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  font-family: pixel;
  font-size: 24px;
  padding: 14px 22px;

  background-color: var(--bg-color);
  color: var(--text-color);

  border: 2px solid var(--border-color);
  border-radius: 6px;

  box-shadow: 0 3px 10px var(--shadow-color);

  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}


/* Hover */
.download-button:hover {
  color: var(--switch-active);
  border-color: var(--switch-active);
  box-shadow: 0 0 12px var(--switch-active);
  transform: translateY(-3px) scale(1.05);
}

/* SVG animation */
.download-button:hover .download-svg {
  transform: translateY(2px);
}

/* Click */
.download-button:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 0 6px var(--shadow-color);
}
.contacts {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  border: 2px solid var(--border-color);
  box-shadow: 0 3px 10px var(--shadow-color);
  border-radius: 10px;
  padding: 5px 0;
}

.social-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 30px;
  margin: 0 15%;     
  margin-top: 5px;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.contacts a:nth-child(1):hover { /* GitHub */
  color: #6cc644;
  transform: translateY(-3px) scale(1.1);

}

.contacts a:nth-child(2):hover { /* Gmail */
  color: #ea4335;
  transform: translateY(-3px) scale(1.1);
}

.contacts a:nth-child(3):hover { /* LinkedIn */
  color: #0077b5;
  transform: translateY(-3px) scale(1.1);
}

.social-link:active {
  transform: translateY(0) scale(1);
  text-shadow: none;
}
.social-link:focus {
  outline: none;        /* remove default browser outline */
  color: var(--text-color); /* reset to normal */
  text-shadow: none;    /* remove glow */
}


.title {
  font-family: monospace;
  font-size: 14px;
  color: var(--title-color);
  margin: 0;
}

/* =========================
   PIXEL-ART THEME SWITCH
   ========================= */
.switch {
  display: inline-block;
  position: relative;
  width: 60px;
  /* length of the line */
  height: 5px;
  /* thickness of the line */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The line / track */
.switch .track {
  position: absolute;
  inset: 0;
  background-color: var(--switch-bg);
  border: 2px solid var(--border-color);
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* The knob that moves */
.switch .knob {
  width: 16px;
  height: 16px;
  background-color: var(--switch-bg);
  /* use line color by default */
  border: 2px solid var(--border-color);
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Knob color when checked */
.switch input:checked+.track .knob {
  transform: translateX(31px);
  background-color: var(--switch-active);
  /* active color */
}

/* =========================
   ABOUT SECTION
   ========================= */

.about {
  margin-top: 0px;
  margin-left: 40px;
  padding-left : 40px;
}

/* =========================
   TITLES
   ========================= */
h1,h2 {
  font-weight: bold;
  margin: 2px;
  padding: 2px;
}


/* =========================
   VERTICAL LINE
   ========================= */

.vertical-line {
  border-left: 2px solid var(--line-color);
  margin: 81px;
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================
   CIRCLES (THEME AWARE)
   ========================= */

.circle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outer-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--circle-outer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 65px;
}

.inner-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--circle-inner-bg);
}

/* =========================
   LISTS
   ========================= */

ul {
  padding-top: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.slider-container {
  position: absolute;
  top: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-menu {
  position: relative;
  display: inline-block;
  margin-right: auto;
}


/* Dropdown container */
.menu {
  position: absolute;

  left: 120%;
  top: -10%;
  min-width: 180px;
  background-color: var(--bg-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px var(--shadow-color);
  border-radius: 10px;
  padding: 10px;
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: 0.2s ease;
  z-index: 100;
}

/* Show menu */
.dropdown-menu.open .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu:hover .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Menu items */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.menu-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

/* Trigger button */
.trigger {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  font-size: 20px;
  padding: 10px;
  padding-right: 6px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trigger-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
  image-rendering: pixelated;
  display: block;
}
.down-arrow .end-arrow {
  margin-left: 70px;
  padding: 0;
  margin-top: -5px;
  display: none; /* hide by default */
}

/* Show dark arrow when NOT in light mode */
body:not(.light) .down-arrow .end-arrow:first-child {
  display: inline-block;
}

/* Show light arrow when in light mode */
body.light .down-arrow .end-arrow:last-child {
  display: inline-block;
}


/* Base link style */
a {
  color: var(--text-color);
  /* matches current text color */
  font-family: pixel;
  /* pixel font like the rest of site */
  text-decoration: none;
  /* remove default underline */
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover effect */
a:hover {
  color: var(--switch-active);
  /* bright accent color for hover */
  text-decoration: underline;
}

/* Optional: active/focused state */
a:active,
a:focus {
  color: var(--switch-active);
  outline: none;
}

.end-arrow {
  transform: rotate(-90deg) scale(1.5);
  display: block;
}
.project p {
  margin: 0.3rem 0;
  line-height: 1.5;
}
.project strong {
  font-weight: 600;
  text-decoration: underline;
}
/* Shortcut Panel Overlay */
.shortcut-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
  font-family: pixel;
}

/* Visible state */
.shortcut-panel.open {
  display: flex;
}

/* Modal window */
.shortcut-window {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px var(--shadow-color);
  padding: 2rem;
  border-radius: 12px;
  width: min(450px, 90%);
  max-height: 80vh;
  overflow-y: auto;
  font-size: 1rem;
  text-align: left;
  animation: bounce 500ms forwards ;
 }
@keyframes bounce {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }

  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-6px);
  }

  80% {
    transform: scale(0.98) translateY(3px);
  }

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

/* Title */
.shortcut-window h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--title-color);
  text-align: center;
}

/* List */
.shortcut-window ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shortcut-window li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

/* Keys styling (pixel look) */
kbd {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  font-family: pixel;
  font-size: 0.9rem;
  text-align: center;
}
.shortcut-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-family: pixel;
  font-size: 1.2rem;
  box-shadow: 0 0 10px var(--shadow-color);
  opacity: 0;
  pointer-events: none;
  animation: fadeInOut 4s forwards;
  z-index: 10000;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
/* =========================
   FOOTER
========================= */

.footer-container {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}
.footerclass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: pixel;
  font-size: 22px;
}

/* Social icons */
.footer-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 30px;
  margin: 0 40px;     
  margin-top: 5px;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.footer-link:hover {
  text-decoration: none;
  color: var(--switch-active);
  transform: translateY(-3px) scale(1.1);
}
.footer-link:active{
  transform: translateY(0) scale(1);
  text-shadow: none;
}
.footer-link:focus{
  outline: none;        
  color: var(--text-color); 
  text-shadow: none;  
}

/* Copyright */
.copyright {
  margin-top: 10px;
  font-size: 20px;
  opacity: 0.7;
  text-align: center;
}

.myname {
  font-weight: bold;
  color: var(--switch-active);
}

/* =========================
   INPUT FIELD (PIXEL STYLE)
   ========================= */

.input-field {
  font-family: pixel;
  font-size: 22px;
  width: 50vw;
  height: 80px;
  padding: 8px 12px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 0 6px var(--shadow-color);
  outline: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Focus effect */
.input-field:focus {
  border-color: var(--switch-active);
  box-shadow: 0 0 8px var(--switch-active);
}

/* Placeholder text */
.input-field::placeholder {
  color: var(--border-color);
  opacity: 0.7;
}

/* Optional hover effect */
.input-field:hover {
  border-color: var(--switch-active);
}
form{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

form button {

  font-family: pixel;
  font-size: 22px;
  padding: 12px 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 6px var(--shadow-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

/* Hover effect */
form button:hover {
  border-color: var(--switch-active);
  box-shadow: 0 0 8px var(--switch-active);
  transform: translateY(-2px) scale(1.05);
  color: var(--switch-active);
}

/* Active / click effect */
form button:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 0 6px var(--shadow-color);
}
/* =========================
   FORM TOAST (PIXEL STYLE)
========================= */
.form-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 0 10px var(--shadow-color);
  padding: 12px 20px;
  font-family: pixel;
  font-size: 20px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.form-toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Success */
.form-toast.success {
  border-color: var(--switch-active);
  box-shadow: 0 0 12px var(--switch-active);
}

/* Error */
.form-toast.error {
  border-color: #ea4335;
  box-shadow: 0 0 12px #ea4335;
}

/* Input error state */
.input-field.error {
  border-color: #ea4335;
  box-shadow: 0 0 8px #ea4335;
}
/* =========================
   MOBILE RESPONSIVENESS
   ========================= */
@media (max-width: 768px) {

  /* Prevent overflow issues */
  * {
    box-sizing: border-box;
  }

  html, body {
    overflow-x: hidden;
  }

  /* Base scaling */
  body {
    font-size: 18px;
    padding: 20px;
    margin: 10px;
  }

  /* Headings scale */
  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.3em;
  }

  /* Mobile profile fix: smaller & aligned with menu */
  .profile {
    position: absolute;
    top: 20px;              /* same visual level as menu */
    right: 20px;

    width: 90px;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    z-index: 5;             /* below dropdown menu */
  }

  .profile-img {
    display: none;
  }

  .profile .contacts {
    display: none;
  }

  /* Smaller download button */
/* Mobile download button – fixed size & proportions */
  .download-button {
    font-size: 16px;
    padding: 10px 12px;
    margin-top: 8px;
    margin-left: 5px;
    width: 100%;
    max-width: 140px;
    text-align: center;
  }



  /* About section spacing */
  .about {
    margin-left: 10px;
    padding-left: 10px;
  }

  /* Vertical timeline fixes */
  .vertical-line {
    margin-left: 20px;
    margin-right: 0;
  }

  .outer-circle {
    margin-left: 11px;
    border: 3px solid var(--circle-outer-border);
  }
  .inner-circle{
    width: 5px;
    height: 5px;
    border: 3px solid var(--circle-inner-bg);
  }

  /* Dropdown menu touch-friendly */
  .menu {
    left: 0;
    top: 120%;
    min-width: 220px;
  }

  /* Footer icons spacing */
  .footer-link {
    margin: 0 20px;
  }

  /* Form responsiveness */
  .input-field {
    width: 90vw;
    height: 60px;
    font-size: 18px;
  }

  form button {
    width: 90vw;
    font-size: 20px;
  }

  /* Toast scaling */
  .form-toast,
  .shortcut-toast {
    font-size: 16px;
    padding: 10px 16px;
  }

  /* Reduce excessive arrows spacing */
  .down-arrow .end-arrow {
    margin-left: 9px;
  }
}
@media (max-width : 1591px){
  .profile-img{
    display: none;
  }
  .profile .contacts {
    display: none;
  }
}
