*, *::before, *::after {
  box-sizing: border-box;
}

/* Lightbox overlay for image zoom */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox-overlay.is-open {
  display: flex;
  animation: lb-fade 150ms ease-out;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #317AC1;
  background: #1A1A2E;
  color: #cfe6ff;
  font-size: 2rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: #317AC1 2px 2px 1px;
  transition: transform .1s ease, border-color .15s ease, color .15s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  border-color: #6a6abb;
  color: #eafffb;
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(.96);
}

.lightbox-nav:focus-visible {
  outline: 2px solid #00bfff;
  outline-offset: 2px;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .lightbox-overlay {
    padding: .5rem;
  }
  .lightbox-img {
    max-width: 100%;
    max-height: 80dvh;
  }
  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
    font-size: 1.2rem;
    padding: .5rem .8rem;
  }
  .lightbox-nav:active {
    transform: scale(.96);
  }
  .lightbox-prev {
    left: 1rem;
  }
  .lightbox-next {
    right: 1rem;
  }
}

html{
  scroll-behavior: smooth;
}
html, body {
  overflow-x: clip;
}
:root {
  --header-h: clamp(56px, 8vh, 80px);
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #1A1A2E;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  color: #ffffff;
  background-color: #1A1A2E;
}

#header {
  width: 100%;
  min-height: var(--header-h);
  padding: .5rem 1rem;
  gap: 1rem;
  background-color: #16213E;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: #317AC1 1px 1px 1px;
}
#nameContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
}
#menu{
  flex: 1 1 auto;
  max-width: 1000px;
}
#menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem clamp(.5rem, 2.5vw, 4rem);
  padding: 0;
  margin: 0;
}
#menu li{
  padding: .5rem clamp(.5rem, 1.5vw, 1.5rem);
  min-width: max-content;
  background-color: #1A1A2E;
  box-shadow: 5px 5px #317AC1;
  text-align: center;
}
#menu a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(.8rem, .7rem + .5vw, 1.15rem);
  transition: color 0.3s;
}
p {
    text-align: center;
}
/* Narrower "About" and "Contact" paragraphs */
.about p {
    width: 70%;
    margin-inline: auto;
}
@media (max-width: 700px) {
    .about p {
        width: 100%;
    }
}
#menu a:hover {
  color: #00bfff;
}
li{
  list-style: none;
}
main {
  margin-top: var(--header-offset, var(--header-h));
  padding: 2rem clamp(.75rem, 3vw, 2rem);
  text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  flex-direction: column;
}
section{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  margin: 2rem;
}
/* Burger button: hidden on large screens */
.burger-btn {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 10px;
  background-color: #0c1526;
  border: none;
  box-shadow: #317AC1 3px 3px 1px;
  cursor: pointer;
}
.burger-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  transition: transform .25s ease, opacity .2s ease;
}
/* Turns into a cross when the menu is open */
.burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.burger-btn:focus-visible {
  outline: 2px solid #00bfff;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  #header{
    justify-content: flex-end;
    padding: .5rem 1rem;
    gap: .75rem;
  }
  /* Name on the left, language and burger buttons on the right */
  #header .accent{
    display: inline-grid;
    margin-right: auto;
    font-size: 1.1rem;
  }
  .burger-btn{
    display: flex;
  }
  /* The menu becomes a dropdown panel below the header */
  #menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    background-color: #16213E;
    border-bottom: 1px solid #317AC1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  #header.menu-open #menu{
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  #menu ul{
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .75rem;
    padding: 1rem 1.25rem 1.25rem;
  }
  #menu li{
    padding: 0;
    min-width: 0;
    box-shadow: 4px 4px #317AC1;
  }
  #menu a{
    display: block;
    padding: .75rem 1rem;
    font-size: 1rem;
  }
}
@media (max-height: 500px) {
  #header{
    padding-block: .3rem;
  }
  #header .accent{
    display: none;
  }
  #menu li{
    padding-block: .25rem;
  }
}
/* Footer matching the header's art direction */
.footer-min{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  /* same background as #header */
  background-color: #16213E;
  color: #ffffff;
  margin-top: 56px;
  padding: 28px 16px 36px;
  text-align: center;

  /* echoes the header's border/relief */
  box-shadow: #317AC1 1px 1px 1px inset;
  border-top: 1px solid #317AC1;
}

/* Line 1: badge identical to the menu items */
.f-line1{
  margin: 0 0 6px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;

  padding: 10px 14px;
  background-color: #1A1A2E;      /* same block as #menu li */
  box-shadow: 5px 5px #317AC1;     /* same offset shadow */
  border: 1px solid #317AC1;       /* same blue border */
  border-radius: 0;                 /* menu items have no rounded corners */
  font-size: clamp(1rem, .85rem + .5vw, 1.1rem);
  letter-spacing: .4px;
}

/* Line 2: more subtle, centered */
.f-line2{
  margin: 6px 0 0;
  color: #c2bdbd;
  font-size: .95rem;
}

/* Accents (same colors as the rest of the site) */
.f-name{
  /* if New Rocker is used for headings */
  font-family: 'Kumar One';
  color: #00bfff;
  letter-spacing: .5px;
}
/* Option: smaller badge on mobile */
@media (max-width: 700px){
  .footer-min{ padding: 22px 12px 28px; }
  .f-line1{ padding: 8px 12px; gap: .45rem; box-shadow: 4px 4px #317AC1; display: block; }
    section{
        margin: 1rem 0;
    }

}
#hero, #projects, #skills, #contact {
  scroll-margin-top: calc(var(--header-offset, var(--header-h)) + 4rem);
}
/* Language button */
.lang-switcher {
  top: 20px;
  right: 20px;
  z-index: 1000;
}
.lang-code{
  display: block;
}
.lang-btn {
  display: inline-grid;
  place-items: center;
  text-align: center;
  color: white;
  background-color: #0c1526;
  border: none;
  flex: 0 0 auto;
  padding: .5rem .75rem;
  min-width: 44px;
  min-height: 40px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: #317AC1 6px 6px 1px;
  line-height: 1;
}

.lang-btn:hover {
  transform: scale(1.05);
}

.lang-btn:active {
  transform: scale(0.98);
}

@media (max-width: 700px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
  }

  .lang-btn {
    font-size: 0.75rem;
    box-shadow: #317AC1 3px 3px 1px;
  }
}


