/* --------------------------------- */
/* ----- Basic Setup -----*/
/* --------------------------------- */

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("assets/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

.skills-imgs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  margin-top: 150px;
  background: black;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Previous Button (Left Arrow) */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 8 8'%3E%3Cpath d='M5.5 0l-4 4 4 4 1-1-3-3 3-3-1-1z'/%3E%3C/svg%3E");
}

/* Next Button (Right Arrow) */
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 8 8'%3E%3Cpath d='M2.5 8l4-4-4-4-1 1 3 3-3 3 1 1z'/%3E%3C/svg%3E");
}



.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skills-img {
  width: 80px;
  /* Adjust as needed */
  height: 80px;
  object-fit: contain;
}

.skill-label {
  margin-top: 7px;
  font-size: 17px;
  font-weight: 600;
  color: var(--body);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.levements-imgs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.achievement-img {
  width: 80px;
  /* Adjust as needed */
  height: 80px;
  object-fit: contain;
}

.achievement-label {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* .achievement-img CODE */
.achievements {
  text-align: center;
  padding: 40px 0;
}

.achievements h1 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  /* Centers the heading */
  margin-bottom: 30px;
  /* Adds space between h1 and cards */
}

.achievements-row {
  display: flex;
  justify-content: space-between;
  /* Ensures equal horizontal spacing */
  gap: 20px;
  /* Adds gap between all cards */
  flex-wrap: wrap;
  max-width: 1000px;
  /* Restricts row width for better alignment */
  margin: 0 auto;
  /* Centers content */
}

.achievement-card {
  background: #161211;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  margin-top: 35px;
  margin-left: 19px;
  width: 30%;
  /* Ensures 3 cards fit in a row */
  min-width: 280px;
  /* Prevents cards from getting too small on smaller screens */
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.achievement-title {
  font-size: 18px;
  font-weight: bold;
  color: #e2dddd;
  margin-bottom: 5px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.achievement-desc {
  font-size: 14px;
  color: #8C8C8C;
  margin-top: 15px;
  font-family: serif;
}

.link_card {
  text-decoration: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  width: 100%;
  background-color: #0056b3;
  padding: 5px 10px;
  color: white;
  border-radius: 7px;
  display: inline-block;
  /* Fixes margin issue */
  margin-top: 25px;
  /* Moves the button down */
}


/* Click for More Content Styling */
.more-content {
  text-align: center;
  margin-top: 20px;
}

.more-link {
  font-size: 16px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.more-link:hover {
  color: #0056b3;
  text-decoration: underline;
}



/* ------ */



:root {
  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 2.145rem;
  --h4: 1.5rem;
  --text-large: 1.6rem;
  --text-medium: 1.275rem;
  --text-small: 1.125rem;

  --gradient-brand: radial-gradient(at 60% 31%,
      rgb(255, 131, 139) 0px,
      transparent 50%),
    radial-gradient(at 48% 98%, rgba(0, 255, 166, 0.707) 0px, transparent 50%),
    radial-gradient(at 84% 67%, rgb(255, 129, 125) 0px, transparent 50%),
    radial-gradient(at 16% 47%, rgb(255, 90, 112) 0px, transparent 50%),
    radial-gradient(at 73% 11%, rgb(115, 255, 225) 0px, transparent 50%),
    radial-gradient(at 49% 37%, rgba(255, 249, 89, 0.695) 0px, transparent 50%),
    radial-gradient(at 70% 21%, rgba(58, 255, 186, 0.715) 0px, transparent 50%);
  --easing: cubic-bezier(0.86, 0, 0.07, 1);

  --site-max-width: 1280px;
  --gutter-nano: 0.5rem;
  --gutter-micro: 1rem;
  --gutter-x-small: 1.5rem;
  --gutter-small: 2rem;
  --gutter-medium: 2.5rem;
  --gutter-large: 3rem;
  --gutter-x-large: 6rem;
  --gutter-huge: 12rem;

  --scroll-padding: 4.375rem;
  --radius: 85px;
}

body.dark {
  --bg-color-primary: #0c0a0a;
  --bg-color-secondary: #161211;
  --important: #fff;
  --sub: #c3c3c3;
  --body: #989898;
  --border: #c0c0c015;
  --border-dark: #c0c0c02f;
  --gradient-border: linear-gradient(to left bottom, #777, #0e0d0d);
  --shadow: 0 1rem 1rem #00000040;
}

body.light {
  --bg-color-primary: #fbfbfb;
  --bg-color-secondary: #ffffff;
  --important: #000;
  --sub: #111;
  --body: #585b63;
  --border: #62626234;
  --border-dark: #5e5e5e1f;
  --gradient-border: linear-gradient(to left bottom, #000000c6, #0e0d0d00);
  --shadow: 0 1rem 1rem rgba(0, 0, 0, 0.25);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: "Mona Sans", sans-serif;
  box-sizing: border-box;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 645px) {
  html {
    font-size: 80%;

  }

}

body {
  font-size: var(--text-medium);
  color: var(--body);
  background-color: var(--bg-color-primary);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Improve media defaults */

picture,
svg,
img {
  display: block;
  max-inline-size: 100%;
  object-fit: contain;
}

textarea {
  resize: none;
}

/* --------------------------------- */
/* ----- Typography -----*/
/* --------------------------------- */

input,
textarea,
button {
  font: inherit;
}

p,
h1,
h2,
h3,
.h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.h4 {
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--important);
}

.h1 {
  font-size: var(--h1);
}

.h2 {
  font-size: var(--h2);
  text-align: center;
}

.h3 {
  font-size: var(--h3);
}

.h4 {
  font-size: var(--h4);
}

@media (max-width: 845px) {
  :root {
    --h1: 2.845rem;
    --h2: 2.45rem;
    --h3: 1.85rem;
  }
}

@media (max-width: 700px) {
  :root {
    --h1: 2.545rem;
  }
}

@media (max-width: 545px) {
  :root {
    --h1: 2.4rem;
    --text-large: 1.5rem;
  }
}

@media (max-width: 485px) {
  :root {
    --h1: 2.145rem;
    --h2: 1.875rem;
    --h3: 1.6rem;
    --text-large: 1.345rem;
  }
}

/* --------------------------------- */
/* ----- Utilities -----*/
/* --------------------------------- */

/* Center and constrain the width of page sections */

.container {
  max-inline-size: var(--site-max-width);
  margin-inline: auto;
}

@media (max-width: 1375px) {
  :root {
    --site-max-width: 1160px;
  }
}

@media (max-width: 1275px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter-medium);
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

/* disable scroll when menu is opened */

.lock-screen {
  overflow-y: hidden;
}

/* hides visually and removes from accessibility tree  */

.hidden {
  visibility: hidden;
  transform: translateX(-100%);
}

.transform {
  transform: translateY(6rem);
  opacity: 0;
}

.shown {
  transition: 0.1s;
  color: lightgrey;
}

/* --------------------------------- */
/* ----- Components -----*/
/* --------------------------------- */

.btn {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 18px 60px;
  border-radius: var(--gutter-nano);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

@media (max-width: 700px) {
  .btn {
    padding: 16px 48px;
  }
}

@media (max-width: 485px) {
  .btn {
    font-size: 1.2rem;
    padding: 14px 38px;
  }
}

.btn-cta {
  color: var(--bg-color-primary);
  background-color: var(--important);
}

body.dark .btn-cta:hover,
body.dark .btn-cta:focus {
  box-shadow: #ffffff40 0 0 0 var(--gutter-nano);
}

body.light .btn-cta:hover,
body.light .btn-cta:focus {
  box-shadow: #07070733 0 0 0 var(--gutter-nano);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--important);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--important);
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-small);
  padding: var(--gutter-nano) 0;
  text-decoration: none;
  color: var(--important);
  position: relative;
}

.link::after,
.link::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-block-start: var(--gutter-nano);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: 300ms;
}

body.dark .link::before {
  background-color: #d3d3d357;
}

body.dark .link::after {
  background-color: white;
}

body.light .link::before {
  background-color: lightgray;
}

body.light .link::after {
  background-color: black;
}

.link::after {
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
}

.link:hover::after,
.link:focus::after {
  transform: scaleX(1);
}

/* --------------------------------- */
/* ----- Layout -----*/
/* --------------------------------- */

section:not(:first-child) {
  padding-block-start: var(--gutter-huge);
}

section:first-child {
  padding-block-start: 7rem;
}

@media (max-width: 885px) {
  :root {
    --gutter-huge: 8rem;
    --gutter-x-large: 4rem;
  }
}

main {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: var(--bg-color-primary);
  transform: translateY(calc(-1 * var(--radius)));
}

@media (max-width: 1185px) {
  :root {
    --radius: 45px;
  }
}

/* --------------------------------- */
/* ----- Menu Button -----*/
/* --------------------------------- */

.menu-btn-container {
  position: fixed;
  width: 100%;
  top: var(--gutter-x-small);
  left: 0;
  z-index: 4;
}

.menu-btn {
  display: block;
  margin-inline-start: auto;
  border: 1px solid var(--border-dark);
  inline-size: 132px;
  padding-block: var(--gutter-nano);
  border-radius: var(--gutter-large);
  text-decoration: none;
  background-color: var(--bg-color-secondary);
  color: var(--important);
  cursor: pointer;
}

.menu-btn,
.nav-items a {
  font-stretch: 125%;
  font-weight: 900;
}

/* --------------------------------- */
/* ----- Navigation -----*/
/* --------------------------------- */

.nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  /* background-color: #ff5e99; */
  /* background-image: var(--gradient-brand); */
  /* background: linear-gradient(135deg, #0F2027, #203A43, #2C5364); */
  background-image: url("https://ik.imagekit.io/ug3weuxhp/work/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  transition: 450ms var(--easing);
  z-index: 3;
}

.carousel {
  max-height: 400px;
  /* Set the desired carousel height */
  overflow: hidden;
  /* Ensures no unwanted overflow */
}

.carousel-inner {
  max-height: 400px;
  /* Restricts inner carousel height */
}

.carousel-inner img {
  max-height: 400px;
  /* Ensures images do not exceed the height */
  width: 100%;
  /* Maintains full width */
  object-fit: cover;
  /* Keeps images properly scaled */
}


.nav-items {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) translateX(-15%);
  list-style-type: none;
}

.nav-item:not(:last-child) {
  margin-block-end: var(--gutter-x-small);
}

.nav-item a {
  display: inline-block;
  font-size: var(--h2);
  text-decoration: none;
  color: #fff;
}

.nav-item a::after {
  content: "";
  display: block;
  block-size: var(--gutter-nano);
  width: 100%;
  transform: scale(0);
  transform-origin: left;
  background-color: white;
  transition: transform 250ms var(--easing);
}

.nav-item a:hover::after,
.nav-item a:focus::after {
  transform: scale(1);
}

/* --------------------------------- */
/* ----- Header -----*/
/* --------------------------------- */

.header {
  min-block-size: calc(100vh + var(--radius));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.dark .header {
  background-image: linear-gradient(#0000008b, #000000e6),
    url("assets/images/hero-bg.webp");
}

body.light .header {
  background-image: linear-gradient(#ffffffa2, #ffffffe6),
    url("assets/images/hero-bg-light.webp");
}

.header-textbox {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.h1 span {
  display: block;
}

.header-text {
  font-size: var(--text-large);
  font-weight: 400;
  max-inline-size: 745px;
  margin-block-start: var(--gutter-micro);
  margin-block-end: var(--gutter-medium);
}

@media (max-width: 1200px) {
  .header-text {
    max-inline-size: 685px;
  }
}

@media (max-width: 845px) {
  .header-text {
    max-inline-size: 585px;
  }
}

.header-btns {
  display: inline-flex;
  gap: var(--gutter-x-small);
}

/* @media (max-width: 400px) {
  .header-textbox {
    left: 0;
    text-align: center;
    padding-inline: 0.6rem;
  }
  .header-btns {
    flex-direction: column;
    width: 80%;
  }
} */
@media (max-width: 768px) {

  /* Allow carousel container and inner to grow */
  .carousel,
  .carousel-inner {
    max-height: none;
    height: auto;
  }

  /* Optionally limit the image height so it doesn’t overwhelm the text */
  .carousel-inner img {
    max-height: 300px;
    /* Adjust this value if needed */
    height: auto;
    object-fit: cover;
  }

  /* Ensure each carousel item has enough vertical space for all content */
  .carousel-item {
    height: 100vh;
    /* Increase this value if necessary */
  }
}


/* --------------------------------- */
/* ----- Clients -----*/
/* --------------------------------- */

.logos {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-block-start: var(--gutter-x-large);
}

@media (max-width: 885px) {
  .logos {
    padding-block-start: calc(var(--gutter-x-large) + var(--gutter-x-large) - 2rem);
  }
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo {
  position: absolute;
  top: 0;
  max-block-size: 60px;
  max-inline-size: 150px;
  transition: all 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 845px) {
  .logo {
    max-inline-size: 100px;
  }

  .logo-group:last-child {
    display: none;
  }
}

@media (max-width: 400px) {
  .logo {
    max-inline-size: 85px;
  }
}

.logo.hide {
  opacity: 0;
}

.logo.to-top {
  transform: scale(0.4) translateY(-150px);
}

.logo.to-bottom {
  transform: scale(0.4) translateY(150px);
}

body.dark .logo {
  filter: invert(97%) grayscale(100%) opacity(0.6);
}

body.light .logo {
  filter: grayscale(100%) opacity(0.6);
}

/* --------------------------------- */
/* ----- Work -----*/
/* --------------------------------- */

.work-boxes {
  padding-block-start: var(--gutter-x-large);
}

.work-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1045px) {
  .work-boxes {
    max-inline-size: fit-content;
    margin-inline: auto;
  }

  .work-box {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .work-img {
    margin-block-end: var(--gutter-medium);
  }
}

.work-box:not(:last-child) {
  margin-block-end: var(--gutter-huge);
}

@media (max-width: 1285px) {
  .work-box:not(:last-child) {
    margin-block-end: 8rem;
  }
}

.work-img,
.box {
  flex-basis: 49%;
}

.work-img {
  max-inline-size: 785px;
  transition: 0.6s all;
}

body.light .work-img {
  box-shadow: var(--shadow);
}

.work-textbox {
  max-inline-size: 445px;
}

@media (max-width: 885px) {
  .work h2 {
    margin-block-start: 45px;
  }
}

@media (max-width: 485px) {
  .work h2 {
    margin-block-start: 0;
  }
}

.work-text {
  margin-block: var(--gutter-micro);
}

.work-technologies {
  list-style-position: inside;
  list-style-type: disc;
  margin-block-end: var(--gutter-x-small);
}

.work-links {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-x-small);
}

.work-links img {
  block-size: 28px;
  inline-size: 28px;
}

body.dark .work-links img {
  filter: invert(1);
}

/* Github icon */

.work-links>a:last-child {
  transition: 0.3s transform ease-in;
}

.work-links>a:last-child:hover,
.work-links>a:last-child:focus {
  transform: scale(1.1);
}

.work-text,
.contact-text,
.work-technologies {
  font-weight: 300;
}

.work-textbox h3,
.work-text,
.work-technologies,
.work-links {
  --delay: 0.2s;
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-play-state: paused;
}

.work-text {
  animation-delay: var(--delay);
}

.work-technologies {
  animation-delay: calc(var(--delay) * 1.5);
}

.work-links {
  animation-delay: calc(var(--delay) * 2);
}

@keyframes slide-up {
  from {
    transform: translateY(45px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* --------------------------------- */
/* ----- Articles -----*/
/* --------------------------------- */

.article-boxes {
  display: flex;
  flex-flow: row wrap;
  gap: 3.5%;
  margin-block-start: var(--gutter-x-large);
}

.article-box {
  flex-basis: 31%;
  border: 1px solid var(--border);
  padding: var(--gutter-medium) var(--gutter-small);
  border-radius: var(--gutter-nano);
  background-color: var(--bg-color-secondary);
}

.article-textbox {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-text {
  font-size: var(--text-small);
  margin-block: var(--gutter-x-small);
}

.article-info {
  display: flex;
  justify-content: space-between;
  margin-block-start: auto;
}

.reaction-count {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
}
/* ------------------article-------- */
@media (max-width: 650px) {
  /* 1. Add some bottom padding so indicators don't overlap content */
  #cardCarousel {
    padding-bottom: rem;
    position: relative;
  }

  /* 2. Turn off the flex/overflow trick so slides stack vertically */
  .carousel-track,
  .carousel-inner {
    display: block !important;
    overflow: visible !important;
  }

  /* 3. Style each slide as its own full-width “card” */
  .carousel-slide {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
  }

  /* 4. Image on top, full-width */
  .carousel-slide .article-illustration {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .carousel-slide .article-illustration img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* 5. Text section below */
  .carousel-slide .article-textbox {
    display: block !important;
    width: 100% !important;
    padding: 1rem !important;
  }
  .carousel-slide .article-textbox h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .carousel-slide .article-textbox p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  /* 6. Hide nav arrows on mobile for a cleaner look */
  .carousel-button {
    display: none !important;
  }

  /* 7. Bring indicators in closer under each card */
  .carousel-indicators {
    position: absolute !important;
    bottom: 0.75rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .carousel-indicators li {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* --------------------------------- */
/* ----- Featured article -----*/
/* --------------------------------- */

.featured-article {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 44.8px;
}

@media (max-width: 985px) {
  .featured-article {
    margin-block-end: 24.4px;
    flex-direction: column-reverse;
  }
}

.featured-article .article-textbox {
  flex-basis: 44%;
}

.featured-article h3 {
  margin-block-start: var(--gutter-x-small);
}

.featured-article .article-illustration {
  flex-basis: 50%;
}

.article-illustration img {
  border-radius: var(--gutter-nano);
}

.featured-article .article-text {
  font-size: var(--text-medium);
}

.featured-article .article-info {
  justify-content: flex-start;
  gap: var(--gutter-medium);
}

/* --------------------------------- */
/* ----- Testimonials -----*/
/* --------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-block-start: var(--gutter-x-large);
  list-style-type: none;
  background-image: linear-gradient(rgba(88, 88, 88, 0.297),
      rgba(214, 214, 214, 0.082));
}

@media (max-width: 1100px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 645px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding: var(--gutter-small);
  background-color: var(--bg-color-primary);
}

.testimonial-text {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-x-small);
}

.testimonial-author {
  margin-block-start: auto;
  display: flex;
  align-items: center;
  gap: var(--gutter-micro);
}

.testimonial-author-name {
  margin-block-end: 0.3rem;
}

.testimonial-author-name,
.testimonial-author-job {
  font-size: initial;
}

.testimonial-author>img {
  block-size: 52px;
  inline-size: 52px;
  border-radius: 50%;
  background-color: var(--bg-color-secondary);
}

/* --------------------------------- */
/* ----- Skills -----*/
/* --------------------------------- */

.skills-imgs {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: var(--gutter-x-large);
  padding-block-start: var(--gutter-x-large);
}

.skills-img {
  block-size: 135px;
  inline-size: 135px;
}

@media (max-width: 1100px) {
  .skills-img {
    block-size: 100px;
    inline-size: 100px;
  }
}

@media (max-width: 810px) {
  .skills-img {
    block-size: 85px;
    inline-size: 85px;
  }
}

@media (max-width: 675px) {
  .skills-imgs {
    gap: var(--gutter-large);
  }

  .skills-img {
    block-size: 70px;
    inline-size: 70px;
  }
}

@media (max-width: 340px) {
  .skills-img {
    block-size: 55px;
    inline-size: 55px;
  }
}

/* --------------------------------- */
/* ----- Contact -----*/
/* --------------------------------- */

.contact-content {
  display: grid;
  grid-template-columns: minmax(245px, 35%) 1fr;
  margin-block: var(--gutter-x-large);
  border: 1px solid var(--border);
  border-radius: var(--gutter-nano);
}

@media (max-width: 1032px) {
  .contact-content {
    display: flex;
    flex-direction: column-reverse;
    max-inline-size: 845px;
    margin-inline: auto;
  }
}

.contact-textbox,
.contact-form {
  padding: var(--gutter-large) var(--gutter-small);
}

.hire-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
  padding: var(--gutter-nano) var(--gutter-micro);
  border-radius: var(--gutter-small);
  position: relative;
  z-index: 1;
  margin-block-end: var(--gutter-small);
  color: var(--important);
}

.hire-alert::before,
.hire-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hire-alert::after {
  background-image: var(--gradient-border);
  z-index: -2;
}

.hire-alert::before {
  background-color: var(--bg-color-primary);
  inset: 1px;
  z-index: -1;
}

.indicator {
  display: inline-block;
  block-size: var(--gutter-nano);
  inline-size: var(--gutter-nano);
  border-radius: 50%;
  background-color: red;
  animation: blink 550ms alternate infinite var(--easing);
}

@keyframes blink {
  100% {
    opacity: 0;
  }
}

.contact-text {
  margin-block-end: var(--gutter-small);
}

.signatures {
  inline-size: 150px;
}

body.light .signatures {
  filter: invert(1);
}

.contact-form {
  background-color: var(--bg-color-secondary);
  border-top-right-radius: var(--gutter-nano);
  border-bottom-right-radius: var(--gutter-nano);
}

.form-field label,
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
}

.form-field label {
  color: var(--important);
}

.form-field input,
.form-field textarea {
  font-size: var(--text-small);
  color: var(--sub);
  border: none;
  outline: none;
  border-bottom: 1px solid var(--border);
  background-color: transparent;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #888;
}

.form-field input,
.form-field textarea {
  margin-block-end: var(--gutter-small);
  padding: var(--gutter-nano);
  margin-inline: var(--gutter-nano);
}

.form-field label {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-nano);
  margin-inline-start: var(--gutter-nano);
}

.contact-form button[type="submit"] {
  border: none;
}

/* --------------------------------- */
/* ----- Footer -----*/
/* --------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--gutter-x-large);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 875px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: var(--gutter-small);
  }

  .footer-text {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
  }
}

.footer-text {
  font-size: var(--text-small);
}

.footer-text a {
  color: var(--sub);
}

.footer-links {
  display: flex;
  gap: var(--gutter-small);
  list-style-type: none;
}

@media (max-width: 1040px) {
  .footer-links {
    gap: var(--gutter-micro);
  }
}

.footer-link img {
  block-size: 32px;
  inline-size: 32px;
}

.footer-link a {
  opacity: 0.875;
  transition: 225ms ease-in opacity;
}

.footer-link a:hover {
  opacity: 1;
}

body.dark .footer-link img {
  filter: invert(1);
}

.theme-switch {
  /* Track */

  --track-size: calc(var(--thumb-size) * 2);
  --track-padding: 0.225rem;
  --track-inactive: hsl(80 0% 80%);
  --track-active: #d7aefb;

  --track-color-inactive: var(--track-inactive);
  --track-color-active: var(--track-active);

  /* Thumb */

  --thumb-position: 0%;
  --thumb-size: 1.2rem;
  --thumb: hsl(0 0% 100%);
  --thumb-highlight: hsla(0, 0%, 0%, 0.056);

  --thumb-color: var(--thumb);
  --thumb-color-highlight: var(--thumb-highlight);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2ch;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch>span,
.theme-switch>input {
  cursor: pointer;
}

.theme-switch span {
  font-size: 1rem;
  color: var(--sub);
}

.theme-switch>input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: content-box;
  inline-size: var(--track-size);
  block-size: var(--thumb-size);
  padding: var(--track-padding);
  background-color: var(--track-color-inactive);
  border-radius: var(--track-size);
}

.theme-switch>input::after {
  display: block;
  content: "";
  inline-size: var(--thumb-size);
  block-size: var(--thumb-size);
  background-color: var(--thumb-color);
  border-radius: 50%;
  transform: translateX(var(--thumb-position));
  transition: 500ms all cubic-bezier(0.45, 0.05, 0.22, 1.3);
}

input:checked {
  --thumb-position: 100%;
  background-color: var(--track-active);
}

/* Media & Press Section */

/* SECTION: Media Press */
.media-press {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem; /* Increased vertical space */
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* CONTAINER: Main Box */
.media-container {
  display: flex;
  align-items: stretch; /* Stretch children to same height */
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

/* IMAGE BOX */
.image-box {
  flex: 1.2;
  max-width: 100%;
  height: 100%;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}


/* CONTENT BOX */
.content-box {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1.5rem;
  text-align: left;
}

.content-box h2 {
  font-size: 2rem; /* Increased */
  margin-bottom: 1rem;
  color: var(--text-color);
}

.content-box p {
  font-size: 1.25rem; /* Increased */
  line-height: 1.8;
  color: var(--text-color);
}

/* BUTTON */
.read-more {
  text-decoration: none;
  background-color: #ff9800;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: 0.3s ease-in-out;
  border: none;
  align-self: flex-start;
  margin-top: 1.5rem;
}

.read-more:hover {
  background-color: #e68900;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .media-container {
    flex-direction: column;
  }

  .image-box {
    max-width: 100%;
    padding-right: 0;
  }

  .content-box {
    padding-left: 0;
    text-align: center;
    margin-top: 1.5rem;
  }

  .content-box h2 {
    font-size: 1.75rem;
    margin-top: 0;
  }

  .content-box p {
    font-size: 1.1rem;
  }

  .read-more {
    align-self: center;
  }
  .carousel-button-media {
    visibility: hidden;
  }

}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* position */
.positions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
}

.position-box {
  display: flex;
  align-items: center;
  gap: 0px;
  /* No gap between circle & rectangle */
  position: relative;
  transition: transform 0.3s ease;
}

.position-box:hover {
  transform: translateY(-5px);
}

.circle {
  width: 10vw;
  /* Adjusts size based on viewport width */
  height: 10vw;
  max-width: 100px;
  /* Prevents it from getting too big */
  max-height: 100px;
  min-width: 50px;
  /* Ensures it doesn't shrink too much */
  min-height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 0.4vw solid white;
  /* Scales with the circle */
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-right: -1vw;
  /* Keeps slight overlap */
}

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


.rectangle {
  background-color: var(--card-bg);
  color: var(--text-color);
  /* color: #dfd0d0; */
  padding: 12px 20px;
  border-radius: 15px;
  min-width: 200px;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.rectangle h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.rectangle p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #dfd0d0;
}


.center-heading {
  display: flex;
  justify-content: center;
  /* Centers content horizontally */
  align-items: center;
  /* Centers content vertically */
  width: 100%;
  /* Full width */
}

/* ///////////////// */

/* image slider */

.image_slider_box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider_container {
  position: relative;
  width: 70%;
  height: 50rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 1800%;
  /* 100% for each of the 18 images */
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  animation: 36s cubic-bezier(1, 0.95, 0.565, 1) sliding infinite;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
}

.slide .caption {
  position: absolute;
  left: 0;
  bottom: 5%;
  font-size: 5rem;
  font-weight: 600;
  color: white;
  text-transform: capitalize;
  background: rgba(0, 0, 0, 0.348);
  backdrop-filter: blur(10px);
  padding: 1rem 5rem;
  border-radius: 0 2rem 2rem 0;
}

/* Background Colors */
.slide.one {
  background: var(--card-bg);
}

.slide.two {
  background: var(--card-bg);
}

.slide.three {
  background: var(--card-bg);
}

.slide.four {
  background: var(--card-bg);
}

.slide.five {
  background: var(--card-bg);
}

.slide.six {
  background: var(--card-bg);
}

.slide.seven {
  background: var(--card-bg);
}

.slide.eight {
  background: var(--card-bg);
}

.slide.nine {
  background: var(--card-bg);
}

.slide.ten {
  background: var(--card-bg);
}

.slide.eleven {
  background: var(--card-bg);
}

.slide.twelve {
  background: var(--card-bg);
}

.slide.thirteen {
  background: var(--card-bg);
}

.slide.fourteen {
  background: var(--card-bg);
}

.slide.fifteen {
  background: var(--card-bg);
}

.slide.sixteen {
  background: var(--card-bg);
}

.slide.seventeen {
  background: var(--card-bg);
}

.slide.eighteen {
  background: var(--card-bg);
}


/* Fixed @keyframes */
@keyframes sliding {
  0% {
    transform: translateX(0%);
  }

  5.5% {
    transform: translateX(0%);
  }

  11% {
    transform: translateX(-100%);
  }

  16.5% {
    transform: translateX(-200%);
  }

  22% {
    transform: translateX(-300%);
  }

  27.5% {
    transform: translateX(-400%);
  }

  33% {
    transform: translateX(-500%);
  }

  38.5% {
    transform: translateX(-600%);
  }

  44% {
    transform: translateX(-700%);
  }

  49.5% {
    transform: translateX(-800%);
  }

  55% {
    transform: translateX(-900%);
  }

  60.5% {
    transform: translateX(-1000%);
  }

  66% {
    transform: translateX(-1100%);
  }

  71.5% {
    transform: translateX(-1200%);
  }

  77% {
    transform: translateX(-1300%);
  }

  82.5% {
    transform: translateX(-1400%);
  }

  88% {
    transform: translateX(-1500%);
  }

  93.5% {
    transform: translateX(-1600%);
  }

  100% {
    transform: translateX(-1700%);
  }
}

/* ---------------- */

/* c animations */

.c-graphics-section {
  text-align: center;
  margin: 50px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  /* Dashed border to indicate an informal section */
  height: 100vh;
}

.c-graphics-section h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #ffcc00;
  /* Highlighted text to grab attention */
}

.c-graphics-section p {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 20px;
}

.c-graphics-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.c-graphics-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  width: 280px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  margin-top: 10px;
  margin-left: 10px;
}

.c-graphics-card img {
  width: 100%;
  border-radius: 8px;
}

.watch-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.watch-btn:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 900px) {
  .c-graphics-container {
    flex-direction: column;
    align-items: center;
  }
}

.gap {
  margin-top: 8px;
}


/* ------------------ */

.a_card {
  display: inline-block;
  margin-top: 10px;
  padding: 15px;
  text-decoration: none;
  border: 1px #17A2B8 solid;
  color: #17A2B8;
  border-radius: 8px;
  background-color: transparent;
}

.a_card:hover {
  text-decoration: none;
  color: white;
  background-color: #17A2B8;

}

/* Default height (for larger screens) */
/* Default height for larger screens */
.typewriter-loop {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid orange;
  /* Caret */
}

/* First line: 23 characters (adjust if needed) */
.line1 {
  /* The animation alternates between typing and erasing */
  animation: typing1 3s steps(23, end) infinite alternate,
    blink-caret 0.75s step-end infinite;
}

/* Second line: 19 characters, starts after a delay */
.line2 {
  animation: typing2 3s steps(19, end) infinite alternate,
    blink-caret 0.75s step-end infinite;
  animation-delay: 0.5s;
  /* Delay so line2 starts after line1 is typed */
}

/* Keyframe for the first line */
@keyframes typing1 {
  from {
    width: 0;
  }

  to {
    width: 23ch;
  }
}

/* Keyframe for the second line */
@keyframes typing2 {
  from {
    width: 0;
  }

  to {
    width: 19ch;
  }
}

/* Blinking caret animation */
@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.header-text.animated {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 1s; /* Adjust delay as needed */
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Center carousel items on desktop */
@media (min-width: 992px) {
  /* Remove the flex display from carousel items */
  #cGraphicsCarousel .carousel-item {
    text-align: center;
  }
  /* Center the card inside the carousel item */
  #cGraphicsCarousel .c-graphics-card {
    margin-left: auto;
    margin-right: auto;
  }
}


/* Custom controls styling for C Graphics Carousel */
#cGraphicsCarousel .carousel-control-prev,
#cGraphicsCarousel .carousel-control-next {
  margin-top: 150px;  /* Adjust as needed for desktop */
  background: black;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Custom Previous Icon */
#cGraphicsCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 8 8'%3E%3Cpath d='M5.5 0l-4 4 4 4 1-1-3-3 3-3-1-1z'/%3E%3C/svg%3E");
}

/* Custom Next Icon */
#cGraphicsCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 8 8'%3E%3Cpath d='M2.5 8l4-4-4-4-1 1 3 3-3 3 1 1z'/%3E%3C/svg%3E");
}

@media (max-width: 576px) {  /* Adjust width as needed */
  .c-graphics-section {
      height: 800px !important;
  }
}

.carousel-indicators.right-align {
    justify-content: flex-end;
    margin-right: 5px;
  }

/* .carousel-indicators li { */

  /* width: 25px; */
  /* change width for changing the width os indicator line */
/* } */

  /* --------------------------- */
.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100px;
  background-color: #1f1f1f; /* optional background */
  color: white;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---------------------------ARTICLE SECTION ------------------ */
 
/* Carousel Container */
    .carousel-container {
      position: relative;
      width: 100%;
      overflow: hidden;
      margin: 2rem auto;
    }
    /* Slides Wrapper */
    .carousel-track {
      display: flex;
      transition: transform 0.5s ease-in-out;
    }
    /* Individual Slide */
    .carousel-slide {
      min-width: 100%;
      box-sizing: border-box;
      padding: 1rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      background: transparent;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      margin: 20px;
    }
    /* Article Content */
    .article-textbox {
      flex: 1 1 60%;
      padding-right: 1rem;
    }
    .article-textbox h3 {
      margin: 0 0 0.5rem;
      font-size: 1.5rem;
    }
    .article-textbox p {
      margin: 0 0 1rem;
      line-height: 1.4;
    }
    .article-info .link {
      display: inline-block;
      padding: 0.5rem 1rem;
      background: #007BFF;
      color: #fff;
      text-decoration: none;
      border-radius: 4px;
    }
    .article-info .link:hover {
      background: #0056b3;
    }
    .article-illustration {
      flex: 1 1 35%;
      text-align: center;
    }
    .article-illustration img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
    }
    /* Arrow Buttons */
    .carousel-button {
      position: absolute;
  top: 70%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
  transition: background 0.3s;
    }
    .carousel-button--left {
      left: 1rem;
    }
    .carousel-button--right {
      right: 1rem;
    }


    /* ------------------media section---------------- */

    .media-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #111;
  padding: 2rem 0;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 2rem;
  color: white;
}

.media-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.image-box img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
}

.content-box {
  max-width: 600px;
}

.read-more {
  color: #00bfff;
  text-decoration: underline;
}

.carousel-button-media {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-button--left {
  left: 10px;
}

.carousel-button--right {
  right: 10px;
}

