/* Reset and universal box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* General styles */
html,
body {
position: fixed;
display: flex;
top: 0;
left: 0;
margin: 0;
padding: 0;
height: 100vh; /* Important to limit height strictly */
touch-action: pan-x; /* Only allow horizontal swiping */
width: 100vw;
font-family: "Slabo 13px", serif;
background-color: #fff;
overflow-y: hidden;
overscroll-behavior-y: contain;
touch-action: pan-x;
}
.slabo-13px-regular {
font-family: "Slabo 13px", serif;
font-weight: 400;
font-style: normal;
}
.projects .logo-top,
.skills .logo-top,
.contact .logo-top {
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 100dvh; /* 👈 Ensures full height per slide */
width: 100;
scroll-snap-align: start;
}
.snap-wrapper {
  position: relative;
  display: flex;
  top: 0;
  left: 0;
  height: 100dvh; /* ✅ Full viewport height */
  width: calc(var(--section-count, 8) * 100vw);
  background-color: white;
  padding: 5vh 0vw;
  scroll-snap-type: x mandatory;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
@supports not (scroll-snap-type: x mandatory) {
.snap-wrapper {
scroll-behavior: auto; 
}
}
.inner-padding {
display: flex;
height: 100%; /* ✅ keep height expressed as % */
width: 100%;
padding: 0 2vw;
flex-direction: column;
justify-content: center;
border-radius: 1rem; 
box-sizing: border-box;
overflow: hidden;
}
.card-inner {
border-radius: 1rem;
overflow: hidden;
height: 100%;
width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
section {
height: 100vh;
width: 100vw;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 0;
}
@media (max-width: 1280px) {
section {
height: 100vh;
flex-direction: column;
overscroll-behavior-y: contain;
overflow-y: hidden;
touch-action: pan-x;
}
}
a {
font-family: "Bebas Neue", sans-serif;
text-decoration: none;
}
h2 {
font-family: "Bebas Neue", sans-serif;
text-align: center;
}
.svg-container-about {
padding: 0 !important;
min-width: 50vw;
opacity: 0.5;
transition: transform 0.5s;
}
.svg-container {
padding: 0 !important;
width: 100vw;
opacity: 1;
transition: transform 0.5s;
}
.svg-container:hover {
transform: scale(1.05);
}
/* Animation styles */
#Layer_1 path {
stroke-dasharray: 1500;
stroke-dashoffset: 1500;
animation:
draw 4s ease forwards,
colorFade 6s ease-in-out infinite alternate;
}
@keyframes draw {
to {
stroke-dashoffset: 0;
}
}
@keyframes colorFade {
0% {
stroke: #fff;
}
100% {
stroke: rgb(130, 110, 110);
}
}
/* Hover state with no animation */
#Layer_1:hover path {
animation: none;
}

/* The class for resetting animation */
.reset-animation path {
animation: none;

}
.carousel-container {
display: flex;
margin: 0 auto;
transition: transform 0.5s ease-in-out;
object-fit: contain; /* Ensures the image is fully visible without cropping */
overscroll-behavior-y: contain;
}
/* Projects Section */
.projects-layout-bg-one {
position: relative; /* This makes nav buttons position *relative to the wrapper* */
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: calc(var(--vh, 1vh) * 100);
border-radius: 1rem; 
color: #fff;
background-image: url(/images/slides/digital-layout-montage-01.jpg);
background-size: contain; /* Keeps image aspect ratio */
background-repeat: repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
scroll-snap-align: start;
overflow: hidden;
z-index: 1; /* Lower z-index so it doesn’t layer over the whole site */
}

/* Projects Section */
.projects-layout-bg-two {
position: relative; /* This makes nav buttons position *relative to the wrapper* */
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: calc(var(--vh, 1vh) * 100);
border-radius: 1rem; 
color: #fff;
background-image: url(/images/slides/digital-layout-montage-02.jpg);
background-size: contain; /* Keeps image aspect ratio */
background-repeat: repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
scroll-snap-align: start;
overflow: hidden;
z-index: 1; /* Lower z-index so it doesn’t layer over the whole site */
}

/* Projects Section */
.projects-layout-bg-three {
position: relative; /* This makes nav buttons position *relative to the wrapper* */
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: calc(var(--vh, 1vh) * 100);
border-radius: 1rem; 
color: #fff;
background-image: url(/images/slides/digital-layout-montage-03.jpg);
background-size: contain; /* Keeps image aspect ratio */
background-repeat: repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
scroll-snap-align: start;
overflow: hidden;
z-index: 1; /* Lower z-index so it doesn’t layer over the whole site */
}

/* Projects Section */
.projects-layout-bg-four {
position: relative; /* This makes nav buttons position *relative to the wrapper* */
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: calc(var(--vh, 1vh) * 100);
border-radius: 1rem; 
color: #fff;
background-image: url(/images/slides/digital-renewables.jpg);
background-size: contain; /* Keeps image aspect ratio */
background-repeat: repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
scroll-snap-align: start;
overflow: hidden;
z-index: 1; /* Lower z-index so it doesn’t layer over the whole site */
}

/* Projects Section */
.projects-layout-bg-five {
position: relative; /* This makes nav buttons position *relative to the wrapper* */
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: calc(var(--vh, 1vh) * 100);
border-radius: 1rem; 
color: #fff;
background-image: url(/images/slides/jaLogo_skills_blk_slide.jpg);
background-size: contain; /* Keeps image aspect ratio */
background-repeat: repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
scroll-snap-align: start;
overflow: hidden;
z-index: 1; /* Lower z-index so it doesn’t layer over the whole site */
}

.projects-layout-bg-one h2,
.projects-layout-bg-two h2,
.projects-layout-bg-three h2,
.projects-layout-bg-four h2,
.projects-layout-bg-five h2 {
font-family: "Bebas Neue", sans-serif;
font-size: 4em;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 2.5em 1em;
}

@media (max-width: 768px) {
.projects-layout-bg-one h2,
.projects-layout-bg-two h2,
.projects-layout-bg-three h2,
.projects-layout-bg-four h2,
.projects-layout-bg-five h2 {
font-size: 2em;
}
}
.projects-layout-bg-one h3,
.projects-layout-bg-two h3,
.projects-layout-bg-three h3,
.projects-layout-bg-four h3,
.projects-layout-bg-five h3 {
font-family: "Bebas Neue", sans-serif;
font-size: 6em;
opacity: 0.8;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 1.5em 1em;
line-height: 0.8;
}

@media (max-width: 768px) {
.projects-layout-bg-one h3,
.projects-layout-bg-two h3,
.projects-layout-bg-three h3,
.projects-layout-bg-four h3,
.projects-layout-bg-five h3 {
font-size: 3em;
opacity: 0.8;
}
}

.projects-layout-bg-one p,
.projects-layout-bg-two p,
.projects-layout-bg-three p,
.projects-layout-bg-four p,
.projects-layout-bg-five p {
font-size: 1.75rem;
text-align: left;
justify-content: left;
padding: 1.5em;
background-color: rgb(0, 0, 0);
opacity: 0.8;
max-width: 600px;
}

@media (max-width: 768px) {
.projects-layout-bg-one p,
.projects-layout-bg-two p,
.projects-layout-bg-three p,
.projects-layout-bg-four p,
.projects-layout-bg-five p {
font-size: 1.5em;
}
}
.carousel-slide {
opacity: 0;
position: fixed;
margin: 0 auto;
width: 100vw;
object-fit: contain; /* Ensures the image is fully visible without cropping */
overscroll-behavior-y: contain;
transition: opacity 0.6s ease;
}
.carousel-slide.active {
opacity: 1;
position: relative;
}
.overlay {
position: fixed;
bottom: 0;
width: 100vw;
background-color: #fff;
color: #000;
font-size: 0.875rem;
font-stretch: condensed;
font-weight: 100;
letter-spacing: 2px;
line-height: 1.38;
text-align: center;
justify-content: center;
margin: 0 auto;
display: none;
}

#lightbox {
display: none;
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 1.0);
justify-content: center;
align-items: center;
flex-direction: column;
height:100dvh;
width: 100vw;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 99999;
}

#lightbox.show {
display: flex;
opacity: 1;
}

#lightbox-content-wrapper {
    display: flex; /* Or block, depending on desired layout */
    justify-content: center;
    align-items: center;
    max-height: 90dvh; /* Max size for the wrapper */
    max-width: 90vw;
    overflow: hidden; /* Important for containing oversized media */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: relative; /* To contain media elements if needed */
}

.lightbox-media-element {
    max-height: 100%; /* Fill container */
    max-width: 100%; /* Fill container */
    object-fit: contain; /* Ensure media fits */
    opacity: 0; /* Default opacity for transition */
    transition: opacity 0.3s ease;
}

.lightbox-media-element.opacity-100 {
    opacity: 1;
}

#lightbox-caption {
color: #fff;
font-family: "Slabo 13px", serif;
font-size: 0.875rem;
padding-top: 1rem;
opacity: 0.8;
text-align: center;
max-width: 90%;
}

#close-lightbox {
position: absolute;
top: 1rem;
right: 1rem;
color: #fff;
background: none;
border: none;
cursor: pointer;
line-height: 1;
padding: 0.25em 0.5em;
z-index: 100000;
}

/* About Section */
.about {
background: linear-gradient(90deg, #1A1A1A 0%, #444444 50%, #B0BEC5 100%);
text-align: center;
border-radius: 1rem; /* or 20px, depending on your style */
overflow: hidden;
}

h1 {
font-family: "Bebas Neue", sans-serif;
font-size: 3rem;
font-weight: bold;
color:#fff;
justify-content: center;
align-items: center;
text-decoration: underline;
margin: 0;
padding: 0.5em 0em;
opacity: 0.8;
}

.about p {
font-size: 3rem;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 0.5em 1em;
}

/* Skills Section */
.skills {
background: linear-gradient(90deg, #FF5C00 0%, #FF1E56 100%);
background-size: cover; /* Keeps image aspect ratio */
background-repeat: no-repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
text-align: center;
margin: 0;
padding: 0;
border-radius: 1rem; /* or 20px, depending on your style */
overflow: hidden;
}

.skills h2 {
color: #fff;
font-size: 3.0rem;
font-weight: 600;
text-decoration: underline;
justify-content: center;
align-items: center;
min-width: 180px !important;
margin: 0;
padding: 0.5em 1em;
opacity: 0.8;
}

.skills p {
color: rgba(255, 255, 255, 0.8);
font-size: 1.25rem;
max-width: 720px;
justify-content: center;
align-items: center;
margin: 0;
padding: 0.5em 1em;
}


/* Contact Section */
.contact {
background: linear-gradient(90deg, #1A1A1A 0%, #444444 50%, #B0BEC5 100%);
background-size: cover; /* Keeps image aspect ratio */
background-repeat: no-repeat; /* Prevents tiling */
background-position: center; /* Centers the image */
text-align: center;
border-radius: 1rem; /* or 20px, depending on your style */
overflow: hidden;
}
.contact h2 {
color: #fff;
font-size: 3.0rem;
font-weight: 600;
text-decoration: underline;
justify-content: center;
align-items: center;
min-width: 180px !important;
margin: 0;
padding: 0.775rem 1.775rem;
opacity: 0.8;
}
.contact p {
color: rgba(255, 255, 255, 0.8);
font-size: 1.25rem;
max-width: 480px;
justify-content: center;
align-items: center;
margin: 0;
padding: 0.5em 1em;
opacity: 0.8;
}
.view-more-heading {
cursor: pointer;
transition:
color 0.3s ease,
transform 0.3s ease;
}
.view-more-heading:hover {
color: #000;
transform: scale(1.03);
}
.heading-align {
width: 90vw;
box-sizing: border-box;
}
.project-title {
position: relative;
display: inline-flex;
align-items: center;
font-size: 6em;
font-family: "Bebas Neue", sans-serif;
font-weight: normal;
text-align: left;
margin: 0;
cursor: pointer;
transition:color 0.3s ease,transform 0.3s ease;
}
.project-title:hover {
text-decoration: underline;
color:rgba(255, 255, 255, 0.8);
transform: scale(1.03);
}
.project-title {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;  
}
.click-hint {
  font-style: italic;
  color: #fff;
  align-items: center;
  text-align: center;
  opacity: 0.8;
}
.arrow-indicator {
  opacity: 0;
  margin-left: 0.5em;
  display: inline-block;
  align-items: center;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 14px;
  transform: translateX(2px);
  color: #fff;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.3s ease;
}
.arrow-indicator:hover {
 opacity: 1;
transform:rotate(90deg);
cursor: pointer;
}
/* Rotate arrow on hover or focus */
.project-title:hover .arrow-indicator,
.project-title:focus-within .arrow-indicator {
  opacity: 1;
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 1);
}

/* Toggled rotation when clicked */
.arrow-indicator.rotated {
  transform: rotate(90deg);
 
}
.carousel-reveal {
position: relative;
display: none;
height: calc(var(--vh, 1vh) * 100);
width: 100vw;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
z-index: 2;
}
.carousel-reveal.show {
display: flex;
}
/* Projects Section */
.carousel-wrapper {
position: relative; /* This makes nav buttons position *relative to the wrapper* */
display: flex;
align-items: center;
justify-content: center;
height: 90dvh; /* ✅ keep value as 90 viewport height */
width: 100vw;
border-radius: 1rem; /* Creates rounded corners */
padding: 0;
margin: 0 auto; /* Centers it horizontally */
padding: 0 2vw;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
color: #fff;
background-color: yellow;
overflow: hidden;
z-index: 1; /* Lower z-index so it doesn’t layer over the whole site */
}
.carousel-track {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.5s ease;
will-change: transform;
}
.carousel-track img { /* 👈 this affects the desktop scaling */
margin: 0 auto;
height: 100vh;
width: 90vw;
max-height: 70dvh;
object-fit: contain;
flex-shrink: 0;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
}
@media (max-width: 768px) { /* 👈 this affects the scaling for devices */
.carousel-track img  {
min-height: 50dvh;
}
}
.carousel-track:hover img {
transform: scale(1.01);
}
.carousel-track:hover .overlay {
display: block;
}

.carousel-track video {
  margin: 0 auto;
  height: auto;
  max-width: 90vw;
  max-height: 70dvh;
  object-fit: contain;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.carousel-arrow {
  display: flex;
  position: absolute;
  bottom: 0;
  padding: 0.75rem 0.75rem;
  color: #fff;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  line-height: 1;
  border-radius: 50%; /* 👈 This makes it circular */
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
  transition: background 0.3s ease;
  z-index: 10;
}
.carousel-arrow.left {
left: 1.5rem;
}
@media (max-width: 768px) {
.carousel-arrow.left {
left: 1.0rem;
}
}
.carousel-arrow.right {
right: 1.5rem;
}
@media (max-width: 768px) {
.carousel-arrow.right {
right: 1.0rem;
}
}
.carousel-arrow:hover {
  color:#000;
  background: rgba(255, 255, 255, 0.8);
}
/* Optional: hover effect */
.arrow:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
}
.carousel-indicator {
  position: absolute;
  bottom: 1.25rem;
  matgin: 0 auto;
  font-size: 1rem;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 0.3em 0.8em;
  border-radius: 1rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  z-index: 5;
}

.carousel-close {
position: absolute;
top: 1.5rem;
right: 1.5rem;
font-size: 2rem;
color: rgba(0, 0, 0, 0.8);
background: none;
border: none;
cursor: pointer;
z-index: 10;
}
@media (max-width: 768px) {
.carousel-close {
top: 0.25rem;
right: 0.5rem;
}
}
.carousel-close:hover {
  filter: drop-shadow(0 0 2px #aaa);
}

/* Improved Carousel Caption Overlay */
.carousel-caption {
position: absolute;
top: 2.25rem;
left: 50%;
transform: translateX(-50%);
color: #000;
font-size: 1rem;
padding-bottom: 1em;
border-radius: 4px;
text-align: center;
width:100vw;
max-width: 80vw;
line-height: 1.4;
pointer-events: none;
white-space: normal;
height: auto;
z-index: 2;
}

@media (max-width: 768px) {
.carousel-caption {
font-size: 0.85rem;
top: 1.25rem;
max-width: 77vw;
}
}
a.cta-button,
button.cta-button {
display: inline-block;
background-color: #ffffff; /* Your primary brand color */
color: #3730a3;
font-family: 'Bebas Neue', sans-serif;
font-size: 1.25rem;
letter-spacing: 0.05em;
text-transform: uppercase;
text-align: center;
border: none;
border-radius: 1.5rem;
padding: 0.75rem 2.5rem;
margin: 0.5rem 0;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
text-decoration: none; /* Removes underline from links */
}

a.cta-button:hover,
button.cta-button:hover {
  background-color: #3730a3; 
  color:#ffffff;
  transform: translateY(-2px);
}

a.cta-button:focus,
button.cta-button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .cta-button {
    font-size: 1rem;
    padding: 0.65rem 1.25rem;
  }
}