@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');

/* Theme variables */
:root {
  --bg: #000;
  --fg: #fff;
  --accent: #fff;
  --gap-lg: 60px;
  --gap-sm: 40px;
  --body-margin: 50px 0 50px 24px;
  --carousel-height: 65vh;
  --flicker-duration: 0.6s;
  --menu-delay: 1.6s;
  --focus-outline: 2px dashed var(--accent);
}

/* Global */
html {
  color: var(--fg);
  background: var(--bg);
  font-family: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  max-width: 100vw;
  margin: var(--body-margin);
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  box-sizing: border-box;
}

/* Sections */
section {
  display: none;
  opacity: 0;
  z-index: -1;
  overflow: hidden;
  color: var(--fg);
  padding-bottom: 20px;
  box-sizing: border-box;
}

section.active {
  display: block;
  z-index: 2;
  animation: flicker var(--flicker-duration) 0s forwards;
}

section.initial-active {
  display: block;
  z-index: 2;
  animation: flicker var(--flicker-duration) var(--menu-delay) forwards;
}

/* Headings & text */
body > h1,
body > h2 {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 20px;
  font-weight: 400;
}

p {
  margin: 0;
  padding: 0;
}

/* Interactive elements (links, buttons) */
a,
button,
.menu-burger {
  font-family: inherit;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  padding: 0 2px;
  width: min-content;
  box-sizing: border-box;
}

a:hover,
a.active,
button:hover,
.menu-burger:hover {
  color: var(--bg);
  background: var(--accent);
  outline-offset: 4px;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
.menu-burger:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 4px;
}

/* Layout containers */
header {
  width: 100%;
}

.body-container {
  display: flex;
  gap: 100px;
  flex-direction: row;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
}

body:not(.loaded) .menu {
  animation: flicker var(--flicker-duration) var(--menu-delay) forwards;
}

/* burger */
.menu-burger {
  display: none;
}

/* Typing output */
[data-typer] {
  display: none;
}

[data-typer-output]::after {
  content: "_";
  animation: blink 1s step-start infinite;
}

.loaded * {
  opacity: 1;
}

.loaded [data-typer-output]::after {
  display: none;
}

/* Carousel */
.carousel-container {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.carousel {
  height: var(--carousel-height);
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  box-sizing: border-box;
  margin-top: -20px;
  padding-right: 24px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  display: flex;
  position: relative;
  flex-direction: column;
  flex: 0 0 auto; /* do not shrink; ensures horizontal overflow */
  height: 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
  padding: 1px;
  padding-top: 20px;
  padding-bottom: 65px;
  margin: 0;
}

.carousel-item img {
  display: block;
  height: 100%;
  border: 1px solid white;
}

.carousel-item p {
  position: absolute;
  left: 0;
  bottom: 0;
}

/* Carousel controls placeholder (layout only) */
.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;

  p {
      opacity: 0.4;
      pointer-events: none;
  }
}

/* Content helpers */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.profile-image {
  width: 300px;
  object-fit: cover;
  object-position: center;
  border: 1px solid white;
}

/* Contact links */
#contact a {
  display: inline-flex;
  gap: 10px;
}

/* Tablet */
@media (max-width: 768px) {
  .carousel {
    height: 50vh;
    
    p {
      font-size: 14px;
    }
  }

  .hide-for-small {
    display: none;
  }
}


/* Mobile */
@media (max-width: 600px) {
  html { font-size: 20px; }

  body {
    margin: 0 24px;
    flex-direction: column;
    gap: var(--gap-sm);
  }

  .loaded .menu {
    animation: none;
    opacity: 1;
  }

  .header-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
  }

  .header-toggle {
    width: 100%;
    height: 100%;
    position: absolute;
    transition: all .2s ease-in-out;
    opacity: 0;
    background-color: var(--bg);
  }

  .header-toggle.active {
    opacity: 1 !important;
    z-index: 3;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .menu-burger {
    color: var(--fg);
    display: block;
    opacity: 0;
    animation: flicker var(--flicker-duration) var(--menu-delay) forwards !important;
  }

  .loaded .menu-burger {
    animation-delay: 0s !important;
  }

  .carousel {
    height: auto;
    padding-right: 0;
  }

  .carousel-item {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;

    p {
        font-size: 14px;
    }
  }

  .carousel-item img {
    object-fit: contain;
    width: 99%;
    max-height: none;
  }

  .carousel-controls {
    margin-top: 12px;

    p {
        font-size: 12px;
    }
  }

  .about-container {
    flex-direction: column;
    gap: 20px;
  }

  .profile-image {
    width: 100%;
    max-width: 150px;
  }
}

/* Keyframes */
@keyframes flicker {
  0% { opacity: 0; }
  10% { opacity: .05; }
  40% { opacity: .15; }
  100% { opacity: 1; }
}

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

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* End of file */
