body {
    font-family: Arial, sans-serif;
}

section {
    padding: 2%;
    background-color: #E9CEAE;
}

.section-spacer {
    background-color: #000; 
    height: .8vh; 
}


footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.responsive-box {
    border: .55vh solid #000;
    background-color: #e7dcce;
    padding: 5px;
    max-width: 110%; 
    margin: 5px;
}

.responsive-box h1 {
    font-size: 180%;
}

.major {
    color: rgb(207, 103, 51);
    font-weight: 900;
}

.minor {
    color: rgb(30, 114, 162); 
    font-weight: 600; 
}

.skill {
    color: rgb(222, 121, 71); 
    font-weight: 600; 
}   


/* HEADER CONTENT */

header {
    background-color: #E9CEAE;
    color: #381B38;
    padding: 4%;
    padding-bottom: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    margin-top: 2%;
    height: 50vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

.headText {
    color: #82204A; 
}

.header-text h1 {
  /* Desktop / tablet */
  font-size: clamp(3rem, 5vw, 4.5rem);
}

/* Mobile */
@media screen and (max-width: 767px) {
  .header-text h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }
}


.header-image {
    max-width: 26vw; 
    max-height: 26vw; 
    border: solid .7vw #000;    
    margin-left: 6vw;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ABOUT ME CONTENT */

.about-me {
    background-color: #431818;
    height: 40vh;
    padding: 2%;
    color: #381B38;
    text-align: left;
}

.about-me h1 {
    font-size: 200%;
    color: #381B38;
    
}

.about-me p {
    font-size: 500%;
}


/* PROJECT CONTENT*/

.project-image {
    border: solid #000; 
    border-width: .1vw;
    width: 100%;
    height: 100%; 
    overflow: hidden; 
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

body, h1, p {
    margin: 0;
    padding: 0;
    font-family: 'Sora', sans-serif;
}


.boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    background-color: #e7dcce;
    margin: 1%;
}


.boxes.no-grid {
    display: block; 
}

.box {
    flex-grow: 1;
    height: 30vh;
    background-color: #e7dcce;
    border: .5vh solid #000;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden; 
}


/* Flippable Card Styles */
.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card {
    transform: rotateY(0deg);
    cursor: pointer;
    position: relative;
}

.card-front,
.card-back {
    width: 100%;
    height: 90%;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.card-front h1 {
    text-align: center;
    font-size: 110%;
}

.card-back {
    display: none; 
    transform: rotateY(180deg);
    background-color: #e7dcce;
}

.card-inner p {
    text-align: left;
    margin-top: -2%;
    font-size: 95%;
}

.card.clicked .card-inner {
    transform: rotateY(180deg);
}

.card.clicked .card-front {
    display: none;
}

.card.clicked .card-back {
    display: block;
}


/* MEDIA QUERIES FOR SMALLER SCREENS*/

@media screen and (max-width: 767px) {
    .boxes {
        grid-template-columns: repeat(1, 1fr); 
    }

    .header-text h1 {
        font-size: 15vw;
    }

    .header-image {
        display: none; 
    }

    .header-content {
        height:38vh;
        text-align: center;
        padding: 5%;
    }

    .about-me{
        padding-top: 10vh;
        height:200vh;
    }

    section {
        padding-top: 8%;
        padding-bottom: 8%;
    }

    .about-me{
        padding-top: 0%;   
    }
}

.image-container {
    width: 10vh; /* Ensure consistent width */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Crop any overflow */
}

.work-logo {
    width: 100%; /* Scale the logo to fill the container width */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure no distortion or cropping */
}

/* Specific adjustment for Limbitless Solutions logo */
.smaller-logo {
    width: 8vh; /* Slightly smaller than the others */
}

/* Add additional spacing between text and image */
.box h2 + .image-container {
    margin-left: 10px; /* Add left margin for spacing */
}

.box {
    flex-grow: 1;
    height: auto; /* Allows text to dictate height */
    min-height: 30vh; /* Ensure minimum height for text */
    background-color: #e7dcce;
    border: 0.5vh solid #000;
    padding: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}




#skills a {
    text-decoration: none;
}

:root { --we-gap: 12px; }

.carousel {
  position: relative;
  background-color: #E9CEAE; /* matches your sections */
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--we-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 16px;   /* ⬅ no left/right padding */
}


/* Hide scrollbars (still scrollable / swipeable) */
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { -ms-overflow-style: none; scrollbar-width: none; }

.we-card {
  flex: 0 0 calc((100% - (var(--we-gap) * 2)) / 3);
  min-height: 30vh;
  scroll-snap-align: start;
  box-sizing: border-box;
  margin: 0;             /* just in case */
}


/* Tablet: 2 per view */
@media (max-width: 1024px) {
  .we-card { flex-basis: calc((100% - var(--we-gap)) / 2); }
}

/* Mobile: 1 per view; hide arrow buttons (swipe instead) */
@media (max-width: 767px) {
  .we-card { flex-basis: 100%; }
  .carousel-btn { display: none; }
}

/* arrows – same look for both */
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0.25vh solid #000;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;

  /* make BOTH arrows semi-transparent by default */
  opacity: 0.22;
  transition: opacity 0.2s ease;
}

.carousel-btn.prev {
  left: 50%;      /* was -4px */
  top: 45%;       /* was ~40% via base rule */
}

.carousel-btn.next {
  right: 10%;     /* keep symmetry */
  top: 45%;       /* match the prev button */
}


/* brighten on hover/focus */
.carousel-btn:hover,
.carousel-btn:focus {
  opacity: 0.95;
}

/* completely hide when disabled */
.carousel-btn[disabled] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}



/* --- Work Experience carousel fixes & polish (paste at end) --- */

/* 1) Make width math include borders/padding to avoid clipping */
*, *::before, *::after { box-sizing: border-box; }

/* 2) Tiny right padding prevents Safari’s sub-pixel nibble */
.carousel { padding-right: 2px; }

/* ==== Work Experience carousel: layout + arrows (authoritative) ==== */

:root {
  --we-gap: 12px;
}

/* outer wrapper */
.carousel {
  position: relative;
  background-color: #E9CEAE;
  padding-right: 2px;          /* avoids tiny clipping on the right edge */
}

/* Match the Work Experience header box alignment */
#work-experience .carousel {
  margin: 5px;          /* same as .responsive-box */
}


/* scrolling row of cards */
.carousel-track {
  display: flex;               /* IMPORTANT: horizontal row */
  flex-wrap: nowrap;
  gap: var(--we-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* hide scrollbars but keep scroll/swipe */
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { -ms-overflow-style: none; scrollbar-width: none; }

/* cards inside carousel */
.we-card {
  flex: 0 0 calc((100% - (var(--we-gap) * 2)) / 3);  /* 3 per view */
  min-height: 30vh;
  scroll-snap-align: start;
  box-sizing: border-box;
}

/* tablet: 2 per view */
@media (max-width: 1024px) {
  .we-card {
    flex-basis: calc((100% - var(--we-gap)) / 2);
  }
}

/* mobile: 1 per view, arrows hidden (swipe only) */
@media (max-width: 767px) {
  .we-card {
    flex-basis: 100%;
  }
  .carousel-btn {
    display: none;
  }
}

/* arrows */
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: .25vh solid #000;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev { left: -4px; }
.carousel-btn.next { right: -4px; }

/* right arrow subtle until hover */
.carousel-btn.next {
  opacity: .22;
  transition: opacity .2s ease;
}
.carousel-btn.next:hover,
.carousel-btn.next:focus {
  opacity: .95;
}

/* hide disabled (left) arrow until there's something to go back to */
.carousel-btn[disabled] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* keep logos from stretching */
.we-card img {
  height: 35px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

/* Universal content box alignment (matches Work Experience) */
.section-content {
    max-width: 92%;
    margin: 0 auto;
}

/* Add this near the bottom of style.css */
#work-experience .carousel {
    margin: 1%;      /* same as .boxes uses */
}

/* Force arrow positioning */
#work-experience .carousel-btn.prev {
  left: -11px !important;   /* nudge this to taste */
  top: 45% !important;
}

#work-experience .carousel-btn.next {
  right: -11px !important;  /* nudge this to taste */
  top: 45% !important;
}

/* Reduce hero text size on smaller screens */
@media (max-width: 1100px) {
  #header h1 {
    font-size: 3.5rem !important;
    line-height: 1.15;
  }
  #header .headText {
    font-size: 4rem !important;
  }
}

/* Even smaller screens (iPad / small laptops) */
@media (max-width: 900px) {
  #header h1 {
    font-size: 3rem !important;
  }
  #header .headText {
    font-size: 3.5rem !important;
  }
}

/* Mobile */
@media (max-width: 650px) {
  #header h1 {
    font-size: 2.4rem !important;
  }
  #header .headText {
    font-size: 2.6rem !important;
  }
}

/* Mobile: give project cards more vertical room */
@media screen and (max-width: 767px) {
  .box.card {
    min-height: 60vh;   /* adjust 55–70vh to taste */
  }
}

/* Mobile: make all section headers align nicely */
@media screen and (max-width: 767px) {
  .responsive-box {
    max-width: 96%;
    margin: 0 auto 8px;   /* center + small bottom gap */
  }
}
