* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --section-padding: 2rem;
  --section-padding-mobile: 1rem;
  --accent-color: rgb(0, 135, 255);
  --bright-white: #fff;
  --pale-white: #dfe4ea;
  --light-gray: #a1a1a1;
}


body {
  background-color: #131313;
  background: url("../images/bgr.webp") no-repeat center center fixed;
  background-size: cover;
  color: var(--pale-white);
  font-family: "Prompt", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-shadow: 0px 0px 1px #dfe4ea96;
  
}

html, body {
  min-height: 100vh; 
  min-height: 100dvh;
  height: 100%;
  scroll-snap-type: y mandatory;
  overscroll-behavior-x: contain;
}

html, body, main {
  scroll-behavior: smooth;
}


a {
  text-decoration: none;
  color: inherit;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: column nowrap;
  padding: 1.5rem 1rem;
  gap: 2.3rem;
    backdrop-filter: blur(1.2px);
  position: fixed;
border-width: 0 1px 1px 0;
  border-radius: 0 0 7px 0;
  z-index: 5;
}

.menu, .nav {
  border-color: var(--pale-white);
  border-style: dotted;
}


.logo {
  font-size: 1.3rem;
  color: var(--accent-color);
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.nav-container {
  display: flex;
  flex-flow: column nowrap;
}

.nav {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  border-width: 0;
  margin: .5rem;
}

.nav:not(:first-child) {
  border-width: 1px 0 0 0;
}


.nav > * {
  border-width: 2px;
  border-color: transparent;
  border-style: solid;
  padding: 6px 10px;
  width: 100%;
  /* text-align: center; */
  transition: .4s ease-in-out;
}

.nav p {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: 2px;
  color: var(--light-gray); 
}

.nav-item {
  position: relative;
}

#copy-feedback {
  opacity: 0;
  position: absolute;
  left: 35px;
  top: 5px;
  font-size: 0.8rem;
  transition: opacity .4s ease, left 30s;
  pointer-events: none;
  width: max-content;
}

#copy-feedback.show {
  opacity: 1;
  left: 600px;
}


main {
  padding: 5vh 0;
  margin: 0 auto;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  gap: 10vh;
  width: 95vw;
  max-width: calc(850px + var(--section-padding));
}

section {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  height: 100vh;             /* fill the screen */
  scroll-snap-align: start;
  padding: var(--section-padding);
  backdrop-filter: blur(5px);
  max-width: 100vw;
}

/* Centered box that fits its content */
.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* remove height:100% so it can shrink to fit content */
  width: 100%;
  max-width: 1200px; /* optional, keeps content readable on wide screens */
  min-height: min(100%, 60vh);

  
  border-radius: 100px 5px 5px 5px;
  box-shadow: 8px 8px 25px 7px rgb(0, 4, 21);
  padding: 2rem 1rem 1rem;
background-color: #1a1a1af2;
  background-image: radial-gradient( ellipse farthest-corner at 4px 4px , #000, #1b1c31 50%, #000 50%);
  background-size: 4px 4px;
}

.skills-box {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  /* align-items: center; */
  gap: 2rem;
    margin: 3rem;
}

.skills-box ul li {
  font-weight: 300;
}

.skills-box b {
  font-weight: 500;
}

h2 {
  font-size: 3.5rem;
  margin-bottom: 1.3rem;
  text-align: center;
}

h3 {
font-size: 2rem;
font-weight: 400;
margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
    font-weight: 200;
    text-decoration: underline;
    text-decoration-thickness: from-font;
}

h1, h2 {
  text-align: right;
    font-family: "Goldman", sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  font-weight: 700;
  
}

p {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-top: .75rem;
}

ul {
  list-style: none;
  padding-left: 1rem;
}

li {
  margin-top: .5rem;
  font-size: 1.1rem;
}

li::before {
  content: '•';
  margin-right: 0.5rem;
}

.text-content {
  margin: 4rem 2rem;
  text-align: justify;
  align-self: center;
  line-height: 1.8;
  padding: .5rem;
}

.text-content span {
  display: block;
  margin: .6rem 0;
}

.light-weight {
  font-weight: 200;
}

.intro span, .contact span {
  display: block;
  margin-bottom: 1rem;
}

.offer-list li { margin-bottom: 0.5rem; font-weight: 300; }

.about-content {
 padding: 3rem;
}

strong {
  font-weight: 400;
}


/* Container for text + avatar (under heading) */
.about-content {
  position: relative;
}

/* Float avatar to the right of the text */
.about-avatar {
  float: right;
  width: 220px;
  height: 220px;
  margin-left: 2rem; /* space between text and avatar */
  margin-bottom: 1rem; /* ensure spacing at bottom */
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Text wraps around the floated avatar */
.about-text {
  overflow: hidden; /* ensures proper wrapping */
}


/* Responsive: stack avatar above text */
@media (max-width: 768px) {
  .about-avatar {
    /* float: none; */
    display: none;
    /* width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto; */
  }

  .intro {
    font-size: 1.2rem;
  }
  .offer-list li {
    font-size: 1rem;
  }
}


.projects-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.projects-container {
  overflow: hidden;
  display: flex;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* hide scrollbar */
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 0;
}

.projects-container::-webkit-scrollbar {
  display: none;
}

.page-box {
  flex: 1 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  transition: transform 0.5s ease;
  box-sizing: border-box;
}

.link-btn, .thumb-btns {
  position: absolute; 
}

.project-header {
text-align: center;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 auto 3rem;
    max-width: 80%;
}

.project-title {
  color: #ff6347; /* Tomato color */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.project-subtitle {
  font-size: 1rem;
  width: 80%;
  margin: 0 auto;
  line-height: 1.25;
}

.link-btn {
bottom: min(calc(3px + 1vw), 1rem);
  right: min(calc(2px + 1vw), .7rem);
  z-index: 3;
}

.link-btn a {
font-size: min(calc(5px + 2vw), 14px);
  font-weight: bold;
  background-color: gray;
  border-radius: 5px;
  padding: min(calc(1px + 1vw), 7px) min(calc(3px + 1vw), 12px);
  text-transform: uppercase;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.616);
  transition: all .12s;
}

.link-btn a:hover {
  background-color: rgb(99, 99, 99);
  text-shadow: 0px 0px 6px rgb(0, 0, 0);
}

.ss-area {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 53.02%; /* for 1000:530 aspect ratio */
  overflow: hidden;
}

.ss-container {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  max-width: 100%;
  max-height: 530px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 1px;
  box-shadow: 0 0 8px 2px inset rgba(10, 10, 10, 0.5), 0 -30px 24px 4px rgba(0, 0, 0, 0.85) inset, 0 30px 28px -2px rgba(0, 0, 0, 0.8) inset;
  opacity: 0;
  transition: opacity 1s;
}

.ss.active {
  opacity: 1;
}

.thumb-btns {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  padding: 5px;
  /* border-radius: 1px 15px 1px 1px; */
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
}


.thumb {
  display: inline-block;
  width: min(calc(10px + 5vw), 50px);
  height: min(calc(10px + 5vw), 50px);
  object-fit: cover;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  /* filter: blur(.5px); */
  transition: box-shadow 0.3s ease-in-out, opacity .1s, transform 0.2s ease;
  overflow: hidden;
  opacity: .7;
  z-index: 3;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb:hover, .thumb:focus-visible {
  opacity: .95;
  transform: scale(1.05);
}

.thumb.active {
  box-shadow: 0 0 0 2px white;
  opacity: .95;
}

.thumb-btns .thumb:hover,
.thumb-btns .video-thumb:hover,
.thumb:focus-visible {
  transform: scale(1.05);
  opacity: 0.9;
}

.video-thumb video,
.ss video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  pointer-events: none; /* ensures clicks trigger parent div */
}

/* Project 1 slides */
.ss[data-ss="czt1"] {
  background-image: image-set(
    url('../images/czt1_s.webp') type('image/webp'),
    url('../images/czt1_s.png') type('image/png')
  );
}
.ss[data-ss="czt2"] {
  background-image: image-set(
    url('../images/czt2_s.webp') type('image/webp'),
    url('../images/czt2_s.png') type('image/png')
  );
}
.ss[data-ss="czt3"] {
  background-image: image-set(
    url('../images/czt3_s.webp') type('image/webp'),
    url('../images/czt3_s.png') type('image/png')
  );
}
.ss[data-ss="czt4"] {
  background-image: image-set(
    url('../images/czt4_s.webp') type('image/webp'),
    url('../images/czt4_s.png') type('image/png')
  );
}

/* Project 2 slides */
.ss[data-ss="rmh1"] {
  background-image: image-set(
    url('../images/rmh1_s.webp') type('image/webp'),
    url('../images/rmh1_s.png') type('image/png')
  );
}
.ss[data-ss="rmh2"] {
  background-image: image-set(
    url('../images/rmh2_s.webp') type('image/webp'),
    url('../images/rmh2_s.png') type('image/png')
  );
}
.ss[data-ss="rmh3"] {
  background-image: image-set(
    url('../images/rmh3_s.webp') type('image/webp'),
    url('../images/rmh3_s.png') type('image/png')
  );
}
.ss[data-ss="rmh4"] {
  background-image: image-set(
    url('../images/rmh4_s.webp') type('image/webp'),
    url('../images/rmh4_s.png') type('image/png')
  );
}

.ss {
  background-size: cover;
  background-position: center;
}


.arrow {
  position: absolute;
  top: 30px;
  transform: translateY(-50%); 
  z-index: 10;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: background 0.1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow:hover {
  background: rgba(0, 0, 0, 1);
}

/* proper placement */
.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* ---------- Arrow icons ---------- */
i {
  display: inline-block;
  height: 1.5em;
  width: 1.5em;
  background-color: white;
}

i.arrow-right, i.arrow-left {
  background-color: #fff;
  mask: url('../svg/arrow-right.svg') no-repeat center / contain;
  -webkit-mask: url('../svg/arrow-right.svg') no-repeat center / contain;
}

i.arrow-left {
  transform: rotate(180deg);
}


@media (max-width: 1150px) {

section {
  padding: var(--section-padding-mobile);
}

.text-content {
  margin: 0;
}

.menu {
  width: 100%;
  height: 50px;
  flex-flow: row nowrap;
  padding: 0rem 1rem;
  border-radius: 0;
  border: 1px solid;
  border-width: 0 0px 1px 0;
  border-style: solid;
  background-color: #000000db;
}
  
  .nav-container {
    display: none;
    position: fixed;
    padding: 1rem;     
    font-size: 1.2rem;
    
  }

  .nav-container.active {
    display: flex; /* shown when toggled */
    top: 53px;
    left: 0;
    background-color: #000000f7;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.86), 0 0 2px 2px rgba(0, 0, 0, 0.71);
    border-radius: 0 0 4px 0;
  }

  .nav {
    gap: 1.5rem;
    /* margin: 1.5rem; */
  }

  .nav > * {
    padding: 2px 5px;
   }

  .nav-item a {
    display: block;
  width: 100%;
  }

  .skills-box {

    gap: 1rem;
      margin: 1.5rem;
  }



.text-content {
    margin: 1rem auto;
    font-size: 1.1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.7rem;
}

  .hamburger {
    display: block; /* show only on mobile */
  }
}



@media (max-width: 600px) {

  main {
    padding: 7.5vh 0;
    margin: 0 .2rem;
    max-width: revert;
    width: auto;
  }

.section-content {
  padding: .8rem .6rem .6rem;
}

.about-content {
  padding: 1.5rem;
}

  .skills-box {
    gap: .8rem;
     margin: .15rem;
  }

  
h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

h3 {
  font-size: 1.03rem;
  margin-bottom: .5rem;
}

h4 {
  font-size: 1rem;
}

  .offer-list li {
    font-size: .92rem;
      margin-top: 0;
    margin-bottom: .1rem;
  }

.text-content {
    margin: 1rem auto;
    font-size: 1rem;
    line-height: 1.5;
}

  .intro {
    font-size: 1.1rem;
  }

}

a[target="_blank"]::after {
  content: "";
  display: inline-block;
  height: 0.55em;
  aspect-ratio: 1;
  vertical-align: super;
  margin-left: 0.2em;
  background-color: currentColor; /* ← inherits from link */
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 7 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.04261 6.80966L0.377841 6.14489L5.32102 1.19318H1.50284L1.51136 0.272727H6.90625V5.67614H5.97727L5.9858 1.85795L1.04261 6.80966Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 7 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.04261 6.80966L0.377841 6.14489L5.32102 1.19318H1.50284L1.51136 0.272727H6.90625V5.67614H5.97727L5.9858 1.85795L1.04261 6.80966Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}