/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 Mahesh R-10
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /**
   * colors
   */
  --smokey-black: hsl(0, 0%, 7%);
  --eerie-black: hsl(0, 0%, 9%);
  --radical-red: hsl(346, 100%, 58%);
  --white_a9: hsla(0, 0%, 100%, 0.09);
  --white_a15: hsla(0, 0%, 100%, 0.15);
  --white_a25: hsla(0, 0%, 100%, 0.25);
  --white_a50: hsla(0, 0%, 100%, 0.5);
  --white_a70: hsla(0, 0%, 100%, 0.7);
  --white_a75: hsla(0, 0%, 100%, 0.75);
  --white_a80: hsla(0, 0%, 100%, 0.8);
  --jet-1: hsl(0, 0%, 20%);
  --jet-2: hsl(0, 0%, 16%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);

  /**
   * gradient color
   */
  --gradient-1: linear-gradient(180deg, transparent, var(--smokey-black));
  --gradient-2: linear-gradient(
    180deg,
    var(--smokey-black, rgba(0, 0, 0, 0.7)) 25%,
    hsla(0, 0%, 0%, 0.3) 80%
  );
  
  /**
   * typography
   */
  --ff-recoleta: "Recoleta", serif;
  --ff-gordita: "Gordita", sans-serif;
  
  --fs-1: 6rem;
  --fs-2: 5rem;
  --fs-3: 3.8rem;
  --fs-4: 2.8rem;
  --fs-5: 2.6rem;
  --fs-6: 2.2rem;
  --fs-7: 2rem;
  --fs-8: 1.8rem;
  --fs-9: 1.5rem;
  --fs-10: 1.4rem;
  --fs-11: 1.2rem;
  
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;

  /**
   * spacing
   */
  --section-padding: 60px;

  /**
   * shadow
   */
  --shadow: 0 12px 30px -10px hsla(0, 0%, 14%, 0.1);

  /**
   * border radius
   */
  --radius-circle: 50%;
  --radius-5: 5px;
  --radius-25: 25px;

  /**
   * transition
   */
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 1s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a,
img,
span,
button,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-gordita);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--smokey-black);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: var(--fw-400);
  line-height: 2.15;
  overflow-x: hidden;
}

body.active { overflow: hidden; }

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background-color: var(--white); }
::-webkit-scrollbar-thumb { background-color: var(--jet-2); }

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

.shape { display: none; }

.section { padding-block: var(--section-padding); }

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--ff-recoleta);
  line-height: 1.2;
}

.h1 {
  font-size: var(--fs-1);
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.05em;
}

.h2,
.h3 {
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.05em;
}

.h4,
.h5,
.h6 {
  font-weight: var(--fw-300);
  letter-spacing: 0.03em;
}

.h2 { font-size: var(--fs-2); }
.h3 { font-size: var(--fs-3); }
.h4 { font-size: var(--fs-4); }
.h5 { font-size: var(--fs-5); }
.h6 { font-size: var(--fs-6); }

.h1:hover,
.h2:hover,
.h3:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--jet-1);
  overflow: hidden;
}

.has-before {
  position: relative;
  z-index: 1;
}

.has-before::before {
  content: "";
  position: absolute;
}

.img-holder.has-before::before {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-image: var(--gradient-1);
}

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

.btn-icon {
  background-color: var(--bg-color, var(--white));
  border-radius: var(--border-radius, var(--radius-circle));
  display: grid;
  place-content: center;
  transition: var(--transition-2);
}

.btn-icon path { transition: var(--transition-2); }

.btn-icon:is(:hover, :focus-visible) {
  background-color: var(--hover-bg-color, var(--white));
}

.btn-icon:is(:hover, :focus-visible) path {
  stroke: var(--hover-text-color, var(--black));
}

.section-subtitle {
  color: var(--white_a25);
  font-size: var(--fs-7);
  text-transform: uppercase;
  letter-spacing: 3.5px;
}

[data-reveal] {
  transform: translateY(50px);
  opacity: 0;
  transition: var(--transition-3);
}

[data-reveal="left"] { transform: translate(-50px, 0); }
[data-reveal="right"] { transform: translate(50px, 0); }

[data-reveal].revealed {
  transform: translate(0, 0);
  opacity: 1;
}

/*-----------------------------------*\
  #LOADING
\*-----------------------------------*/

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--white);
  z-index: 5;
  transform-origin: bottom;
  transition: 0.5s var(--cubic-in);
  transition-delay: 0.5s;
}

.loading.loaded {
  transform: scaleY(0);
  pointer-events: none;
}

.loading > * {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-2);
}

.loading.loaded > * { opacity: 0; }

.loading .circle { animation: rotate360 1.5s linear infinite; }

@keyframes rotate360 {
  0% { transform: translate(-50%, -50%) rotate(0); }
  100% { transform: translate(-50%, -50%) rotate(1turn); }
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 18px;
  transition: var(--transition-2);
  z-index: 4;
}

.header.active {
  background-color: var(--eerie-black);
  padding-block: 12px;
  box-shadow: var(--shadow);
}

.header .container,
.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;         /* Push to the right */
  margin-right: 10px;        /* Add extra space from the edge (adjust as needed) */
  cursor: pointer;
}

.nav-open-btn img {
  width: 26px;               /* Increase icon size */
  height: 26px;
}

.navbar {
  position: fixed;
  top: 0;
  right: -280px;
  background-color: var(--eerie-black);
  height: 100vh;
  max-width: 280px;
  width: 100%;
  padding: 25px;
  overflow-y: auto;
  z-index: 2;
  transition: 0.25s var(--cubic-out);
  visibility: hidden;
}

.navbar.active {
  visibility: visible;
  transform: translateX(-280px);
  transition-duration: 0.5s;
}

.navbar-top .logo .img {
  width: 250px;
  max-width: 100%;
  height: auto;
}

.nav-close-btn {
  width: 25px;
  height: 25px;
}

.nav-close-btn .span {
  background-color: var(--white_a80);
  width: 25px;
  height: 3px;
  border-radius: 5px;
  transition: var(--transition-1);
}

.nav-close-btn .one { transform: rotate(45deg) translate(2px, 2px); }
.nav-close-btn .two { transform: rotate(-45deg); }

.nav-close-btn:is(:hover, :focus-visible) .span { 
  background-color: var(--radical-red); 
}

.navbar-list {
  text-align: center;
  padding-block: 40px;
}

.navbar-link {
  font-size: var(--fs-7);
  font-weight: var(--fw-400);
  padding-block: 2px;
  text-transform: capitalize;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible) { color: var(--radical-red); }

.navbar-title {
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  line-height: 1;
  margin-block-end: 15px;
}

.navbar-text {
  color: var(--white_a75);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-block-end: 15px;
}

.navbar .contact-link {
  color: var(--radical-red);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
}

.navbar .contact-link:is(:hover, :focus-visible) { 
  text-decoration: underline; 
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black);
  z-index: 1;
  transition: var(--transition-1);
  opacity: 0;
  pointer-events: none;
}

.overlay.active {
  opacity: 0.75;
  pointer-events: all;
}

@media (max-width: 992px) {
  .nav-open-btn {
    margin-right: 15px; /* slightly more margin for compact nav */
  }

  .nav-open-btn img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .nav-open-btn {
    padding: 6px;
    margin-right: 30px;
  }

  .nav-open-btn img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .nav-open-btn {
    padding: 4px;
    margin-right: 40px;
  }

  .nav-open-btn img {
    width: 32px;
    height: 32px;
  }
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  padding-block-start: 120px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero-banner {
  max-width: 150px;
  margin-inline: auto;
  margin-block-end: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

/* Animated text container */
.animated-text-container {
  height: 2.5em;
  overflow: visible;
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.text-animation {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.role {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.role.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.role span {
  display: inline-block;
  opacity: 0;
  transform: rotateX(90deg);
  animation-fill-mode: forwards;
}

.role.active span { animation: swirlIn 0.5s forwards; }
.role.exit span { animation: swirlOut 0.5s forwards; }

@keyframes swirlIn {
  0% {
    opacity: 0;
    transform: rotateX(90deg) rotateY(10deg) translateY(20px);
  }
  50% {
    opacity: 0.8;
    transform: rotateX(30deg) rotateY(5deg) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg) translateY(0);
  }
}

@keyframes swirlOut {
  0% {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: rotateX(-30deg) rotateY(-5deg) translateY(-5px);
  }
  100% {
    opacity: 0;
    transform: rotateX(-90deg) rotateY(-10deg) translateY(-20px);
  }
}

/* Resume Button */
.resume-btn-wrapper {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.resume-btn {
  position: relative;
  background-color: transparent;
  color: white;
  font-size: 16px;
  font-weight: var(--fw-500);
  padding: 12px 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid white;
}

.resume-btn:hover {
  background-color: white;
  color: var(--eerie-black);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  border-color: white;
}

.resume-btn:active { transform: translateY(0); }

.resume-btn .btn-text {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Download Animation */
.download-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--eerie-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
  border-radius: 6px;
}

.resume-btn.downloading {
  background-color: var(--eerie-black);
  border-color: var(--eerie-black);
}

.resume-btn.downloading .btn-text { opacity: 0; }

.resume-btn.downloading .download-animation {
  opacity: 1;
  transform: translateY(0);
}

.dino {
  width: 22px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 43' fill='white'%3E%3Cpath d='M29.2,25.1c-1.3,0-2.3-1-2.3-2.3c0-1.3,1-2.3,2.3-2.3c1.3,0,2.3,1,2.3,2.3C31.5,24.1,30.5,25.1,29.2,25.1z M11.9,40.1V27.5c0-0.6-0.5-1-1.1-1H5.5v-6.4H1.9v20h6.9C10.4,40.1,11.9,38.6,11.9,40.1z M38.5,20.1h-5.8c-0.6,0-1.1,0.5-1.1,1c-0.2,2.7-1.5,4.9-3.7,7.1h10.7V20.1z M6.5,6C7.8,6,9,6.6,9,7.9c0,1.1-1.7,1.8-2.8,2.1C5.9,10.1,5.5,10,5.2,9.7c0,0,0-0.1-0.1-0.1C4.6,9.2,4.2,9,4.2,8.5c0-1.2,1.6-2.5,2.3-2.5V6z M22.1,3.3v4.4h5.4v3.5h-5.4v4.3H40v-7.5L30.2,3.3H22.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  animation: dinoBounce 0.6s infinite ease-in-out;
  z-index: 3;
}

.cactus {
  width: 15px;
  height: 25px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24' fill='white'%3E%3Cpath d='M10,24H8V12c0-1.1-0.9-2-2-2V8c2.2,0,4,1.8,4,4V24z M4,24H2V8c0-2.2,1.8-4,4-4v2C4.9,6,4,6.9,4,8V24z M7,4H5V0h2V4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(0, -40%);
  animation: cactusMove 2s infinite linear;
  z-index: 2;
}

.ground {
  width: 80%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 65%;
  left: 10%;
}

.progress-bar {
  width: 80%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: absolute;
  bottom: 25%;
  overflow: hidden;
}

.progress {
  width: 0%;
  height: 100%;
  background-color: var(--radical-red);
  border-radius: 2px;
  transition: width 0.1s linear;
}

@keyframes dinoBounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -60%) scale(1.05); }
}

@keyframes cactusMove {
  0% { right: -10%; }
  100% { right: 120%; }
}

/*-----------------------------------*\
  #MOBILE RESPONSIVE
\*-----------------------------------*/

/* Large Tablets */
@media (max-width: 1024px) {
  :root {
    --fs-1: 5rem;
    --fs-2: 4.2rem;
    --fs-3: 3.5rem;
    --section-padding: 50px;
  }
  
  .container { padding-inline: 20px; }
  
  .hero-content {
    max-width: 700px;
    padding: 0 20px;
  }
  
  .animated-text-container {
    max-width: 500px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --fs-1: 4rem;
    --fs-2: 3.5rem;
    --fs-3: 3rem;
    --fs-4: 2.4rem;
    --fs-5: 2.2rem;
    --fs-6: 2rem;
    --fs-7: 1.8rem;
    --fs-8: 1.6rem;
    --section-padding: 40px;
  }

  .hero {
    padding-block-start: 100px;
    padding-inline: 20px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .animated-text-container {
    height: 2.2em;
    margin-bottom: 30px;
    font-size: 0.9em;
    max-width: 100%;
  }

  .resume-btn-wrapper {
    margin-top: 80px;
  }

  .resume-btn {
    padding: 10px 25px;
    font-size: 15px;
  }

  .navbar {
    max-width: 260px;
  }

  .navbar-top .logo .img {
    width: 200px;
  }

  .section-subtitle {
    letter-spacing: 2.5px;
  }

  /* Disable hover effects on mobile */
  .h1:hover,
  .h2:hover,
  .h3:hover {
    transform: none;
  }

  .resume-btn:hover {
    transform: none;
    background-color: transparent;
    color: white;
    box-shadow: none;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  :root {
    --fs-1: 3.2rem;
    --fs-2: 2.8rem;
    --fs-3: 2.4rem;
    --fs-4: 2rem;
    --fs-5: 1.8rem;
    --fs-6: 1.6rem;
    --fs-7: 1.5rem;
    --fs-8: 1.4rem;
    --section-padding: 30px;
  }

  .container { padding-inline: 15px; }

  .hero {
    padding-block-start: 80px;
    padding-inline: 15px;
  }

  .hero-content {
    padding: 0 10px;
  }

  .hero-banner {
    max-width: 120px;
    margin-block-end: 15px;
  }

  .hero-title {
    margin-bottom: 10px;
    line-height: 1.1;
  }

  .animated-text-container {
    height: 2em;
    margin-bottom: 25px;
    font-size: 0.85em;
  }

  .resume-btn-wrapper {
    margin-top: 60px;
  }

  .resume-btn {
    padding: 8px 20px;
    font-size: 14px;
    gap: 6px;
  }

  .navbar {
    max-width: 240px;
    padding: 20px;
  }

  .navbar-top .logo .img {
    width: 180px;
  }

  .navbar-list {
    padding-block: 30px;
  }

  .section-subtitle {
    letter-spacing: 2px;
    font-size: var(--fs-8);
  }

  .header {
    padding-block: 15px;
  }

  .header.active {
    padding-block: 10px;
  }

  /* Animation adjustments for mobile */
  .dino {
    width: 18px;
    height: 20px;
  }

  .cactus {
    width: 12px;
    height: 20px;
  }

  .progress-bar {
    height: 3px;
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  :root {
    --fs-1: 2.8rem;
    --fs-2: 2.4rem;
    --fs-3: 2rem;
    --section-padding: 25px;
  }

  .hero {
    padding-inline: 10px;
  }

  .hero-content {
    padding: 0 5px;
  }

  .hero-banner {
    max-width: 100px;
  }

  .resume-btn {
    padding: 7px 18px;
    font-size: 13px;
  }

  .navbar {
    max-width: 220px;
  }

  .navbar-top .logo .img {
    width: 160px;
  }

  .animated-text-container {
    font-size: 0.8em;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .dino,
  .cactus {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
/*-----------------------------------*\
  #GALLERY
\*-----------------------------------*/

.achievement-list {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

.achievement-item,
.achievement-card { position: relative; }

.achievement-card {
  display: flex;
  flex-direction: row;
  height: 300px; /* Increased height for horizontal cards */
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius-8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.achievement-card .card-banner {
  width: 400px; /* Increased width for the image portion */
  height: 100%;
  flex-shrink: 0;
}

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

.achievement-card :is(.card-content, .btn-icon) {
  position: absolute;
  z-index: 1;
}

.achievement-card .card-content {
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px; /* Increased padding */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.achievement-card .card-tag {
  color: var(--white_a70);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
}

.achievement-card .card-title {
  font-weight: var(--fw-400);
  font-size: var(--fs-7); /* Slightly increased font size */
  max-width: max-content;
  margin-block-end: 5px;
  color: var(--white);
}

.achievement-card .card-title:is(:hover, :focus-visible) { 
  text-decoration: underline;
  color: var(--radical-red);
}

.achievement-card .btn-icon {
  top: 0;
  right: 0;
  width: 55px; /* Increased size */
  height: 55px; /* Increased size */
  --border-radius: 0 0 0 var(--radius-25);
  background-color: var(--radical-red);
}

.achievement-card .btn-icon img {
  width: 25px; /* Increased size */
  transform: rotate(-45deg);
}

.achievement-card .btn-icon:is(:hover, :focus-visible) {
  border-bottom-left-radius: var(--radius-8);
  background-color: var(--eerie-black);
}

.achievement-card { animation: changeCard 10s linear infinite; }

.achievement-item .achievement-card:last-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  animation-delay: 5s;
}

@keyframes changeCard {
  0%,
  55%,
  100% {
    opacity: 0;
    visibility: hidden;
  }

  5%,
  50% {
    opacity: 1;
    visibility: visible;
  }
}

.achievement-item:is(:hover, :focus-within) .achievement-card { animation-play-state: paused; }

.achievement .container {
  padding-inline: 15px;
  max-width: 1280px;
  margin-inline: auto;
}

.achievement .scroll-down {
  width: 70px;
  height: 70px;
  display: grid;
  place-content: center;
  margin-inline: auto;
  margin-block-start: 60px;
  border: 1px solid var(--white_a15);
  border-radius: var(--radius-circle);
  transition: var(--transition-2);
  animation: scrollDown 2.5s linear infinite alternate;
}

.achievement .scroll-down img { width: 25px; }

.achievement .scroll-down:is(:hover, :focus-visible) {
  background-color: var(--radical-red);
  border-color: var(--radical-red);
}

@keyframes scrollDown {
  0% { transform: translateY(-12px); }
  100% { transform: translateY(12px); }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .achievement-list {
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 40px;
  }
  
  .achievement-card {
    height: 320px;
  }
  
  .achievement-card .card-banner {
    width: 450px;
  }
}

@media (min-width: 1024px) {
  .achievement-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .achievement .container {
    padding-inline: 30px;
  }
}

@media (max-width: 767px) {
  .achievement-card {
    height: 250px;
  }
  
  .achievement-card .card-banner {
    width: 320px;
  }
  
  .achievement .container {
    padding-inline: 10px;
  }
}

@media (max-width: 767px) {
  .achievement-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .achievement-card {
    flex-direction: column;
    height: auto;
  }
  
  .achievement-card .card-banner {
    width: 100%;
    height: 200px;
  }
  
  .achievement-card .card-content {
    position: relative;
    background: var(--eerie-black, #1d1d1d);
    padding: 15px;
  }
  
  .achievement-card .btn-icon {
    top: 0;
    right: 0;
  }
}

/*-----------------------------------*\
  #QUALIFICATIONS
\*-----------------------------------*/

.category {
  --section-padding: 40px;
  border-block: 1px solid var(--white_a9);
  padding-block: var(--section-padding);
  position: relative;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 15px;
  margin-bottom: 40px;
  position: relative;
}

.category-header {
  text-align: center;
  margin-block: 40px 30px;
  width: 100%;
}

.section-title {
  color: var(--white);
  font-size: 5em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--white_a25);
}

.category-list {
  display: flex;
  justify-content: center;  /* Center the row */
  align-items: stretch;
  flex-wrap: wrap;
  gap: 45px 25px;
  width: 100%;
  position: relative;
}

/* Target only Technical Skills section */
.skills-wrapper .category-list {
  display: flex;
  justify-content: center; /* Centers the boxes */
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.skills-wrapper .category-item {
  flex: 1 1 calc(25% - 30px); /* Four boxes per row */
  max-width: calc(25% - 30px);
  background: #111;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .skills-wrapper .category-item {
    flex: 1 1 calc(50% - 30px); /* Two per row */
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  .skills-wrapper .category-item {
    flex: 1 1 100%; /* One per row */
    max-width: 100%;
  }
}


/* Common styles for all category items */
.category-item {
  flex: 0 0 calc(25% - 18.75px);
  max-width: calc(25% - 18.75px);
  transition: transform 0.3s ease;
  position: relative;
}

.category-list {
  justify-content: center;
}




/* Handle special case for when there are 4 or 7 items */
.category-list .category-item:nth-child(3n+4):last-child,
.category-list .category-item:nth-child(3n+1):last-child {
  margin-left: auto;
  margin-right: auto;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-card {
  background: var(--white_a5);
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card .card-title {
  color: var(--white);
  margin-block: 15px;
  text-align: center;
  transition: var(--transition-2);
  font-size: 1.2em;
  padding: 0 15px;
}

.card-content {
  padding: 15px;
  background: var(--white_a5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.institution,
.company-name {
  color: var(--white);
  font-weight: 500;
  text-align: center;
  margin-bottom: 5px;
}

.timeline-date {
  color: var(--white_a25);
  text-align: center;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.tag {
  background: var(--white_a9);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85em;
}

.experience-description {
  color: var(--white_a25);
  text-align: center;
  margin-top: 10px;
  font-size: 0.9em;
  line-height: 1.5;
}

/* Timeline styles */
.education-wrapper, .experience-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.timeline-line {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white_a25);
  z-index: 1;
}

/* Only apply dot markers to education and experience items */
.education-item::after,
.experience-item::after {
  content: '';
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Tablet Responsive Design */
@media (max-width: 992px) {
  .category-item {
    flex: 0 0 calc(50% - 12.5px);
    max-width: calc(50% - 12.5px);
  }
  
  .category-list .category-item:nth-child(3n+4):last-child,
  .category-list .category-item:nth-child(3n+1):last-child {
    margin-left: 0;
    margin-right: 0;
  }
  
  .category-list .category-item:nth-child(2n+1):last-child {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .category {
    --section-padding: 30px;
  }
  
  .wrapper {
    padding-inline: 20px;
    margin-bottom: 30px;
  }
  
  .category-header {
    margin-block: 30px 20px;
  }
  
  .section-title {
    font-size: 2.8em;
  }
  
  .category-list {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }
  
  .category-item {
    flex: 1;
    max-width: 100%;
    margin-top: 0 !important;
    position: relative;
  }
  
  /* Reset all special positioning on mobile */
  .category-list .category-item:nth-child(n):last-child {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Remove timeline elements on mobile */
  .education-wrapper, 
  .experience-wrapper {
    margin-bottom: 0;
    padding: 0;
  }
  
  .timeline-line {
    display: none;
  }
  
  .education-item::after,
  .experience-item::after {
    display: none;
  }
  
  /* Add mobile-specific card styling */
  .category-card {
    border-left: 4px solid var(--white_a25);
    border-radius: 12px;
    margin-bottom: 8px;
  }
  
  .category-card .card-title {
    font-size: 1.1em;
    margin-block: 12px;
    padding: 0 12px;
    font-weight: 600;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .timeline-date {
    background: var(--white_a9);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-bottom: 12px;
    font-weight: 500;
  }
  
  .skill-tags {
    margin-top: 12px;
    gap: 6px;
  }
  
  .tag {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 10px;
  }
  
  .experience-description {
    font-size: 0.85em;
    line-height: 1.4;
    margin-top: 8px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .wrapper {
    padding-inline: 16px;
  }
  
  .section-title {
    font-size: 2.2em;
  }
  
  .category-list {
    gap: 16px;
  }
  
  .category-card .card-title {
    font-size: 1em;
    padding: 0 10px;
  }
  
  .card-content {
    padding: 14px;
  }
  
  .timeline-date {
    font-size: 0.75em;
    padding: 3px 10px;
  }
  
  .tag {
    font-size: 0.75em;
    padding: 2px 6px;
  }
  
  .experience-description {
    font-size: 0.8em;
  }
}
/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  --section-padding: 40px;
  padding-block: var(--section-padding);
  position: relative;
}

.about .container {
  display: grid;
  gap: 45px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 15px;
}

.about .wrapper,
.about-banner { 
  padding-inline-start: 45px; 
}

.about .section-title { 
  margin-block-end: 35px; 
}

.about .section-text {
  font-size: var(--fs-6);
  color: var(--white_a70);
  font-weight: var(--fw-300);
  line-height: 1.7;
  margin-block-end: 35px;
}

.about .wrapper::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  background-image: url("../images/about-quote.svg");
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 20px;
}

.about .section-text .em {
  color: var(--white);
  font-weight: var(--fw-400);
  text-decoration: underline;
}

.about-banner { 
  position: relative;
  overflow: hidden;
}

.about-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}

.about .shape-1 {
  display: block;
  position: absolute;
  bottom: 10%;
  left: 0;
  z-index: 1;
  width: 100px;
  height: auto;
}

/*-----------------------------------*\
  #SERVICES NEW
\*-----------------------------------*/

.service {
  --section-padding: 40px;
  padding-block: var(--section-padding);
  padding-inline: 15px;
  position: relative;
}

.service .container {
  max-width: 1200px;
  margin-inline: auto;
}

.service .section-subtitle {
  padding-inline: 10px;
  margin-block-end: 55px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list > li:not(:last-child) { 
  border-block-start: 1px solid var(--white_a9); 
}

.service-list > li:last-child { 
  border-block: 1px solid var(--white_a9); 
}

.service-card { 
  padding: 30px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s ease;
}

.service-card:hover {
  background-color: var(--white_a5);
}

.service-card .card-content {
  flex: 1;
  min-width: 0;
}

.service-card .card-title {
  color: var(--white);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-bottom: 8px;
  line-height: 1.4;
}

.service-card .card-subtitle {
  color: var(--white_a50);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  line-height: 1.5;
  margin-block: 10px 0;
}

.service-card .btn-icon {
  width: 55px;
  height: 55px;
  border: 1px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all 0.3s ease;
  color: var(--white);
  flex-shrink: 0;
}

.service-card .btn-icon i {
  font-size: 25px;
  transition: all 0.3s ease;
}

.service-card .btn-icon:hover {
  background-color: var(--skin-color);
  border-color: var(--skin-color);
  transform: scale(1.1);
}

.service-card .btn-icon:hover i {
  color: #ffffff;
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/* Tablet Responsive Design */
@media (max-width: 992px) {
  .about .container {
    gap: 35px;
  }
  
  .about .wrapper,
  .about-banner { 
    padding-inline-start: 30px; 
  }
  
  .about .wrapper::before {
    width: 18px;
    height: 18px;
  }
  
  .about .shape-1 {
    width: 80px;
  }
  
  .service-card {
    padding: 25px 15px;
  }
  
  .service-card .btn-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-card .btn-icon i {
    font-size: 22px;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .about {
    --section-padding: 30px;
  }
  
  .about .container {
    gap: 25px;
    padding-inline: 20px;
  }
  
  .about .wrapper,
  .about-banner { 
    padding-inline-start: 0; 
  }
  
  .about .wrapper {
    position: relative;
    padding-top: 30px;
  }
  
  .about .wrapper::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
  }
  
  .about .section-title {
    text-align: center;
    margin-block-end: 25px;
    font-size: 10px;
    margin-left: 80px;
  }
  
  .about .section-text {
    font-size: var(--fs-7);
    margin-block-end: 25px;
    text-align: center;
    padding-inline: 10px;
  }
  
.about-banner {
  margin-inline: auto;
  max-width: 100%;
  margin-left: 45px; /* This shifts the entire banner left */
}

.about-banner img {
  border-radius: 12px;
  max-height: 400px;
  object-fit: cover;
  width: 100%; /* Ensures it scales within its container */
}
  
  .about .shape-1 {
    width: 60px;
    bottom: 5%;
    left: 5%;
    opacity: 0.7;
  }
  
  /* Services Mobile Styles */
  .service {
    --section-padding: 30px;
    padding-inline: 20px;
  }
  
  .service .section-subtitle {
    padding-inline: 5px;
    margin-block-end: 30px;
    text-align: center;
  }
  
  .service-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  
  .service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .service-card .card-content {
    order: 2;
  }
  
  .service-card .btn-icon {
    order: 1;
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }
  
  .service-card .btn-icon i {
    font-size: 20px;
  }
  
  .service-card .card-title {
    font-size: var(--fs-5);
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .service-card .card-subtitle {
    font-size: var(--fs-8);
    line-height: 1.4;
    margin-top: 8px;
  }
  
  /* Remove default borders on mobile and add card styling */
  .service-list > li:not(:last-child),
  .service-list > li:last-child {
    border: none;
  }
  
  .service-list > li {
    margin-bottom: 15px;
    background: var(--white_a5);
    border: 1px solid var(--white_a9);
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  
  .service-list > li:hover {
    background: var(--white_a9);
    border-color: var(--skin-color);
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .about .container {
    padding-inline: 16px;
    gap: 20px;
  }
  
  .about .section-title {
    font-size: 2.2em;
  }
  
  .about .section-text {
    font-size: var(--fs-8);
    padding-inline: 5px;
  }
  
  .about-banner img {
    max-height: 300px;
    border-radius: 10px;
  }
  
  .about .shape-1 {
    width: 50px;
    bottom: 3%;
    left: 3%;
  }
  
  .about .wrapper::before {
    width: 14px;
    height: 14px;
  }
  
  /* Services Small Mobile */
  .service {
    padding-inline: 16px;
  }
  
  .service-card {
    padding: 16px 12px;
    gap: 12px;
  }
  
  .service-card .btn-icon {
    width: 40px;
    height: 40px;
  }
  
  .service-card .btn-icon i {
    font-size: 18px;
  }
  
  .service-card .card-title {
    font-size: 1em;
    margin-bottom: 6px;
  }
  
  .service-card .card-subtitle {
    font-size: 0.8em;
    margin-top: 6px;
  }
  
  .service-list > li {
    margin-bottom: 12px;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .about .container {
    padding-inline: 12px;
  }
  
  .about .section-title {
    font-size: 1.8em;
  }
  
  .about-banner img {
    max-height: 250px;
  }
  
  .service {
    padding-inline: 12px;
  }
  
  .service-card {
    padding: 14px 10px;
  }
  
  .service-card .btn-icon {
    width: 35px;
    height: 35px;
  }
  
  .service-card .btn-icon i {
    font-size: 16px;
  }
}
/*-----------------------------------*\
  #CERTIFICATIONS
\*-----------------------------------*/

.certifications {
  --section-padding: 40px;
  border-block: 1px solid var(--white_a9);
  padding-block: var(--section-padding);
  position: relative;
}

.certifications-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 15px;
  margin-bottom: 40px;
  position: relative;
}

.certifications-header {
  text-align: center;
  margin-block: 40px 30px;
  width: 100%;
}

.certifications .section-title {
  color: var(--white);
  font-size: 5em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.certifications .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--white_a25);
}

.certifications .section-subtitle {
  padding-inline: 10px;
  margin-block-end: 55px;
}

.certifications-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 120px;
}

.certifications-timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--white_a9);
}

.cert-item {
  position: relative;
  margin-bottom: 50px;
  transition: transform 0.3s ease;
}

.cert-item:hover {
  transform: translateY(-5px);
}

.cert-date {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-date span {
  padding: 5px 12px;
  background-color: var(--skin-color);
  color: var(--white);
  font-weight: var(--fw-500);
  font-size: var(--fs-6);
  border-radius: 4px;
  white-space: nowrap;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  background: var(--white_a5);
  border: 1px solid var(--white_a9);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-left: 20px;
  position: relative;
}

.cert-card::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--skin-color);
  border: 2px solid var(--white);
  border-radius: 50%;
  z-index: 1;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cert-icon {
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cert-icon i {
  font-size: 22px;
  color: var(--white);
  transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
  background-color: var(--skin-color);
  border-color: var(--skin-color);
}

.cert-card:hover .cert-icon i {
  color: #ffffff;
}

.cert-content {
  flex: 1;
}

.cert-title {
  color: var(--white);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-bottom: 8px;
}

.cert-issuer {
  color: var(--skin-color);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  margin-bottom: 10px;
}

.cert-description {
  color: var(--white_a25);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.cert-link {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cert-link i {
  font-size: 18px;
  color: var(--white);
  transition: all 0.3s ease;
}

.cert-link:hover {
  background-color: var(--skin-color);
  border-color: var(--skin-color);
}

.cert-link:hover i {
  color: #ffffff;
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/* Tablet Responsive Design */
@media (max-width: 992px) {
  .certifications-timeline {
    padding-left: 100px;
  }
  
  .certifications-timeline::before {
    left: 80px;
  }
  
  .cert-date {
    left: -100px;
    width: 70px;
  }
  
  .cert-card {
    margin-left: 20px;
  }
  
  .cert-card::before {
    left: -31px;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .certifications {
    --section-padding: 30px;
  }
  
  .certifications-wrapper {
    padding-inline: 20px;
    margin-bottom: 30px;
  }
  
  .certifications-header {
    margin-block: 30px 20px;
  }
  
  .certifications .section-title {
    font-size: 2.8em;
  }
  
  .certifications .section-subtitle {
    padding-inline: 5px;
    margin-block-end: 30px;
  }
  
  /* Remove timeline styling on mobile */
  .certifications-timeline {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .certifications-timeline::before {
    display: none;
  }
  
  .cert-item {
    padding-left: 0;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
  }
  
  .cert-item:hover {
    transform: none;
  }
  
  .cert-date {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    justify-content: flex-start;
    transform: none;
    left: 0;
    top: auto;
  }
  
  .cert-date span {
    padding: 4px 12px;
    font-size: var(--fs-7);
    background: var(--white_a9);
    display: inline-block;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 0;
  }
  
  /* Mobile card styling */
  .cert-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 12px;
    border-left: 4px solid var(--white_a25);
    border-radius: 12px;
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cert-card::before {
    display: none;
  }
  
  .cert-card:hover {
    transform: none;
  }
  
  .cert-icon {
    margin-bottom: 10px;
    min-width: 40px;
    height: 40px;
  }
  
  .cert-icon i {
    font-size: 18px;
  }
  
  .cert-content {
    margin-bottom: 10px;
  }
  
  .cert-title {
    font-size: var(--fs-5);
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .cert-issuer {
    font-size: var(--fs-7);
    margin-bottom: 8px;
  }
  
  .cert-description {
    font-size: var(--fs-8);
    line-height: 1.4;
    margin-top: 8px;
  }
  
  .cert-link {
    min-width: 35px;
    height: 35px;
  }
  
  .cert-link i {
    font-size: 16px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .certifications-wrapper {
    padding-inline: 16px;
  }
  
  .certifications .section-title {
    font-size: 2.2em;
  }
  
  .cert-item {
    margin-bottom: 16px;
    width: 100%;
  }
  
  .cert-card {
    padding: 14px;
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  
  .cert-title {
    font-size: 1em;
    margin-bottom: 6px;
  }
  
  .cert-issuer {
    font-size: 0.85em;
    margin-bottom: 6px;
  }
  
  .cert-description {
    font-size: 0.8em;
    margin-top: 6px;
  }
  
  .cert-date span {
    font-size: 0.75em;
    padding: 3px 10px;
    margin-left: 0;
  }
  
  .cert-icon {
    min-width: 35px;
    height: 35px;
  }
  
  .cert-icon i {
    font-size: 16px;
  }
  
  .cert-link {
    min-width: 30px;
    height: 30px;
  }
  
  .cert-link i {
    font-size: 14px;
  }
}
/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.portfolio { 
  padding-block-end: 120px; 
  overflow: hidden;
  position: relative;
}

.portfolio .section-title { 
  margin-block-end: 50px; 
}

.portfolio-list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  padding-block: 30px;
  margin-inline: -20px;
  padding-inline: 20px;
}

.portfolio-list::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.portfolio-card {
  position: relative;
  flex: 0 0 auto;
  width: 550px;
  height: 400px;
  margin-inline: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

.portfolio-card .card-banner {
  width: 100%;
  height: 400px;
}

.portfolio-card .card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card :is(.card-content, .btn-icon) {
  position: absolute;
  z-index: 1;
}

.portfolio-card .card-content {
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.portfolio-card .card-tag {
  color: var(--white_a70);
  font-weight: var(--fw-300);
  font-size: 2.1rem;
}

.portfolio-card .card-title {
  color: var(--white);
  margin-block-end: 8px;
  font-size: 3.1rem;
  font-weight: bold;
}

.portfolio-card .btn-icon {
  top: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  color: #333;
  font-size: 24px;
}

.portfolio-card .btn-icon:hover {
  background-color: var(--radical-red);
  color: var(--white);
}

.portfolio-card .card-title:is(:hover, :focus) { 
  text-decoration: underline; 
}

/* Portfolio navigation positioning */
.portfolio-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
  width: 100%;
  padding-inline: 20px;
}

.portfolio-nav-btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s ease;
  position: relative;
}

.portfolio-nav-btn:hover {
  background-color: var(--radical-red);
}

.portfolio-nav-btn:hover svg {
  stroke: var(--white);
}

.portfolio-nav-btn svg {
  width: 28px;
  height: 28px;
  stroke: #000;
  stroke-width: 2;
}

.portfolio-nav-btn.prev {
  margin-left: 15px;
}

.portfolio-nav-btn.next {
  margin-right: 15px;
}

/* Container adjustments */
.portfolio .container {
  position: relative;
  overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .portfolio { 
    padding-block-end: 80px; 
  }
  
  .portfolio .section-title { 
    margin-block-end: 30px; 
  }
  
  .portfolio-list {
    padding-block: 20px;
    margin-inline: -15px;
    padding-inline: 15px;
  }
  
  .portfolio-card {
    width: 280px;
    height: 200px;
    margin-inline: 10px;
    border-radius: 8px;
  }
  
  .portfolio-card .card-banner {
    height: 200px;
  }
  
  .portfolio-card .card-content {
    padding: 15px 12px;
  }
  
  .portfolio-card .card-title {
    font-size: 1.6rem;
    margin-block-end: 4px;
  }
  
  .portfolio-card .card-tag {
    font-size: 1.1rem;
  }
  
  .portfolio-card .btn-icon {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
    font-size: 18px;
  }
  
  /* Hide navigation buttons on mobile for better touch scrolling experience */
  .portfolio-navigation {
    display: none;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .portfolio-card {
    width: 260px;
    height: 180px;
  }
  
  .portfolio-card .card-banner {
    height: 180px;
  }
  
  .portfolio-card .card-title {
    font-size: 1.4rem;
  }
  
  .portfolio-card .card-tag {
    font-size: 1rem;
  }
  
  .portfolio-card .btn-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-card {
    width: 450px;
    height: 320px;
  }
  
  .portfolio-card .card-banner {
    height: 320px;
  }
  
  .portfolio-card .card-title {
    font-size: 2.6rem;
  }
  
  .portfolio-card .card-tag {
    font-size: 1.8rem;
  }
  
  .portfolio-nav-btn {
    width: 50px;
    height: 50px;
  }
  
  .portfolio-nav-btn svg {
    width: 24px;
    height: 24px;
  }
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer { 
  position: relative; 
  overflow: hidden;
}

.footer .abs-img { display: none; }

.footer-top {
  padding-block: 100px 140px;
  border-block-start: 1px solid var(--white_a9);
  text-align: center;
  z-index: 1;
  position: relative;
}

.footer-top .section-title {
  margin-block: 20px 50px;
  line-height: normal;
}

/* Contact Icons Container */
.contact-icons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center icons on each line */
  gap: 30px 40px; /* row-gap and column-gap */
  margin-bottom: 60px;
  padding: 0 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.contact-icon {
  width: 120px;
  text-align: center;
  flex-shrink: 0;
}


.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-black-900);
  transition: all 0.3s ease;
  height: 100%;
}

.icon-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 60px;
  font-size: 28px;
  border-radius: 50%;
  margin-bottom: 15px;
  color: var(--radical-red);
  border: 2px solid var(--radical-red);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.icon-link span {
  font-weight: var(--fw-500);
  font-size: 16px;
  transition: all 0.3s ease;
  line-height: 1.3;
  word-break: break-word;
}

/* Hover effects */
.icon-link:hover i {
  background-color: var(--radical-red);
  color: white;
  transform: scale(1.1);
}

.icon-link:hover span {
  color: var(--radical-red);
}

.footer-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: -1;
}

.footer-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--gradient-2);
}

.footer-bg .img-cover { 
  object-position: top; 
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.footer-bottom .logo {
  margin-inline: auto;
  max-width: max-content;
  margin-block-end: 20px;
}

.copyright {
  font-weight: var(--fw-300);
  letter-spacing: 0.5px;
  text-align: center;
  padding-block-end: 15px;
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) {
  .footer-top {
    padding-block: 80px 120px;
  }
  
  .contact-icons-container {
    gap: 25px;
    margin-bottom: 50px;
  }
  
  .contact-icon {
    width: 110px;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .footer-top {
    padding-block: 60px 80px;
  }
  
  .footer-top .section-title {
    margin-block: 15px 30px;
  }
  
  .contact-icons-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
    margin-bottom: 40px;
    padding: 0 15px;
    max-width: 300px;
  }
  
  .contact-icon {
    width: 100px;
  }
  
  .icon-link i {
    height: 50px;
    width: 50px;
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .icon-link span {
    font-size: 14px;
  }
  
  .footer-bg {
    height: 50%;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .footer-top {
    padding-block: 50px 60px;
  }
  
  .contact-icons-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
    margin-bottom: 30px;
    padding: 0 10px;
    max-width: 250px;
  }
  
  .contact-icon {
    width: 80px;
  }
  
  .icon-link i {
    height: 45px;
    width: 45px;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .icon-link span {
    font-size: 12px;
  }
  
  .footer-bg {
    height: 45%;
  }
}

/* Very small screens - keep 2x2 grid layout */
@media (max-width: 360px) {
  .contact-icons-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    max-width: 200px;
  }
  
  .contact-icon {
    width: 70px;
  }
  
  .icon-link i {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }
  
  .icon-link span {
    font-size: 11px;
  }
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 30px;
  right: -70px;
  width: 70px;
  height: 70px;
  border: 1px dashed currentColor;
  color: var(--radical-red);
  font-size: var(--fs-11);
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  visibility: hidden;
  transition: var(--transition-2);
  z-index: 3;
}

.back-top-btn.show {
  transform: translateX(-120px);
  visibility: visible;
}

.back-top-btn:hover { 
  color: var(--white); 
}

/* Mobile back-to-top adjustments */
@media (max-width: 768px) {
  .back-top-btn {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: -60px;
  }
  
  .back-top-btn.show {
    transform: translateX(-100px);
  }
}

@media (max-width: 480px) {
  .back-top-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: -50px;
  }
  
  .back-top-btn.show {
    transform: translateX(-112px);
  }
}

/*-----------------------------------*\
  #CUSTOM CURSOR
\*-----------------------------------*/

.cursor { display: none; }

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * spacing
     */

    --section-padding: 80px;

  }



  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  :is(.header, .achievement, .category, .portfolio) .container { max-width: unset; }



  /**
   * HEADER
   */

  .navbar {
    max-width: 500px;
    right: -500px;
  }

  .navbar.active { transform: translateX(-500px); }



  /**
   * GALLERY
   */

  .achievement-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
  }

  .achievement-card .btn-icon {
    transform-origin: top right;
    transform: scale(0);
  }

  .achievement-card:is(:hover, :focus-within) .btn-icon { transform: scale(1); }

  .achievement-card :is(.card-title, .card-tag) {
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition-2);
  }

  .achievement-card .card-tag { transition-delay: 0.1s; }

  .achievement-card:is(:hover, :focus-within) :is(.card-title, .card-tag) {
    transform: translateY(0);
    opacity: 1;
  }

  .achievement [data-reveal] {
    transform: translateY(0);
    opacity: 1;
  }

  

  /**
   * CATEGORY
   */

  .category-item { max-width: 235px; }



  /**
   * PORTFOLIO
   */

  .portfolio-list {
    display: flex;
    column-gap: 30px;
  }



  /**
   * FOOTER
   */

  .footer-bottom { padding-block-end: 40px; }

  .footer-bottom .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .footer-bottom .logo { margin: 0; }

  .copyright,
  .social-list { padding-block-end: 0; }

  .social-list {
    order: 1;
    justify-content: flex-end;
  }

}





/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-3: 4.5rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }



  /**
   * ABOUT
   */

  .about-banner {
    max-width: 500px;
    margin-inline: auto;
  }



  /**
   * SERVICE
   */

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

  .service-card .card-subtitle { margin-block-end: 15px; }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 8rem;

  }



  /**
   * REUSED STYLE
   */

  .section { position: relative; }

  .container { max-width: 960px; }

  .shape {
    display: block;
    position: absolute;
  }



  /**
   * HEADER
   */

  .header { padding-block: 30px; }

  .navbar {
    padding: 40px;
    padding-block-end: 10px;
  }

  .navbar-link { --fs-7: 2.4rem; }

  .navbar-title { --fs-8: 2.2rem; }

  .navbar-text {
    font-size: 1.9rem;
    margin-block-end: 30px;
  }



  /**
   * HERO
   */

  .hero { padding-block-start: 150px; }

  .hero .container {
    position: relative;
    z-index: 1;
  }

  .hero-title { 
    left: 30%;
    text-align: center; }

  .hero .wrapper {
    --fs-2: 8rem;
    margin-block: -5px 10px;
  }

  .hero .shape {
    display: block;         /* Make it visible */
    position: relative;     /* Or absolute, if needed */
  }  


  /**
   * GALLERY
   */

  .achievement { padding-block-end: 140px; }

  .achievement-list { grid-template-columns: repeat(4, 1fr); }

  .achievement-item:nth-child(even) { margin-block-start: 100px; }

  .achievement .scroll-down {
    width: 85px;
    height: 85px;
    margin-block-start: 100px;
  }

  .achievement .scroll-down img { width: 26px; }

  .achievement .shape {
    left: 5%;
    bottom: 25%;
    width: 300px;   /* Increased from 220px */
    height: auto;   /* Maintains aspect ratio */
  }

  



  /**
   * CATEGORY
   */

  .category { --section-padding: 60px; }

  .category-card { position: relative; }

  .category-card .card-banner {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -20px);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-2);
  }

  .category-card:is(:hover, :focus-visible) .card-banner {
    transform: translate(-50%, 0);
    visibility: visible;
    opacity: 1;
  }

  .category-card .card-title { --fs-4: 5.5rem; }

  .category-item { min-width: max-content; }

  .category-list {
    row-gap: 0;
    justify-content: flex-start;
  }



  /**
   * ABOUT
   */

  .about .container {
    grid-template-columns: 0.9fr 1fr;
    align-items: flex-start;
    gap: 80px;
  }

  .about-content { order: 1; }

  .about-banner .shape-2 {
    width: 100%;
    bottom: -20px;
    left: 0;
    animation: moving 8s linear infinite;
  }

  @keyframes moving {
    0%,
    100% { transform: translateY(0); }

    50% { transform: translateY(30px); }
  }

  .about .shape-3 {
    bottom: 2%;
    right: 0;
  }



  /**
   * SERVICE
   */

  .service-card { position: relative; }

  .service-card .img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-1);
    z-index: -1;
  }

  .service-card:is(:hover, :focus-within) .img {
    opacity: 1;
    visibility: visible;
  }



  /**
   * PORTFOLIO
   */

  .portfolio {
    padding-block-end: 150px;
    margin-block-end: 60px;
  }

  .portfolio .shape {
    bottom: 0;
    right: 0;
  }



  /**
   * FOOTER
   */

  .footer .shape {
    top: 25%;
    left: 0;
  }

  .footer .abs-img {
    display: block;
    position: absolute;
    max-width: max-content;
    z-index: -10;
  }

  .footer .abs-img-1 {
    width: 9%;
    top: 12%;
    left: 10%;
  }

  .footer .abs-img-2 {
    width: 14%;
    top: 50%;
    right: 0;
  }

  .footer .abs-img-3 {
    width: 16%;
    left: 0;
    bottom: 10%;
  }

  .footer .abs-img-4 {
    width: 9%;
    right: 15%;
    bottom: 10%;
  }



  /**
   * CUSTOM CURSOR
   */

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 75px;
    height: 75px;
    background-color: var(--white);
    mix-blend-mode: exclusion;
    border-radius: var(--radius-circle);
    transform: translate(-50%, -50%) scale(0.35);
    transition: transform 0.35s;
    pointer-events: none;
    z-index: 6;
  }

  .cursor.hovered { transform: translate(-50%, -50%) scale(1.2); }

  .cursor.disabled { transform: translate(-50%, -50%) scale(0); }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 10rem;
    --fs-2: 9rem;
    --fs-3: 6.8rem;
    --fs-4: 3.6rem;
    --fs-6: 2.8rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1140px; }



  /**
   * HEADER
   */

  .header .container { padding-inline: 35px; }



  /**
   * HERO
   */

  .hero { padding-block: 170px 150px; }

  .hero .container { max-width: 1250px; }

  .hero .wrapper {
    --fs-2: 10rem;
    margin-block: -10px 15px;
  }

  .hero .wrapper .strong { 
    text-align: left;
    left: 20%;}

  .hero-text {
    --fs-10: 2rem;
    font-weight: var(--fw-400);
    letter-spacing: 8px;
  }

  .hero-banner { max-width: 290px; }

  .hero .shape {
    display: block;
    top: 60%;
    left: 0;
  }

  @media (max-width: 600px) {
    .hero-title {
      font-size: 2rem;
      text-align: center;
    }
  
    .hero .wrapper {
      align-items: left;
      left: 30%;
    }
  
    .hero .wrapper .strong {
      text-align: left;
      left: 0;
    }
  }
  


  /**
   * GALLERY
   */

  .achievement-list { gap: 50px; }

  .achievement-card .card-title { font-weight: var(--fw-300); }



  /**
   * CATEGORY
   */

  .category-list { column-gap: 15px; }

  .category-card .card-title { --fs-4: 7rem; }



  /**
   * ABOUT
   */

  .about .container { gap: 120px; }

  .about .shape-1 { width: max-content; }

  .about .section-title { margin-block-end: 70px; }

  .about .wrapper { padding-inline-start: 80px; }

  .about .wrapper::before {
    width: 35px;
    height: 30px;
  }

  .about .section-text {
    --fs-6: 3.2rem;
    margin-block-end: 50px;
  }



  /**
   * SERVICE
   */

  .service-card { padding-block: 50px; }

  .service-card .card-subtitle { --fs-7: 2.4rem; }

  .service-card .img { width: max-content; }

  .service-card .btn-icon {
    width: 95px;
    height: 95px;
  }

  .service-card .btn-icon svg { width: 40px; }



  /**
   * PORTFOLIO
   */

  .portfolio-list { column-gap: 90px; }

  .portfolio-card { margin-block-end: 100px; }

  .portfolio-card .card-content { padding-inline: 50px; }

  .portfolio-card .btn-icon {
    width: 60px;
    height: 60px;
    top: auto;
    bottom: 45px;
    right: 50px;
    opacity: 0;
    transition: var(--transition-2);
  }

  .portfolio-card .btn-icon svg { width: 25px; }

  .portfolio-card:is(:hover, :focus-within) .btn-icon { opacity: 1; }



  /**
   * FOOTER
   */

  .footer-top { padding-block: 300px; }

  .footer-top .section-title {
    --fs-2: 8rem;
    margin-block-start: 50px;
  }

  .footer .btn-icon {
    width: 90px;
    height: 90px;
  }

  .footer .btn-icon img { width: 45px; }

}





/**
 * responsive for large than 1400px screen
 */

@media (min-width: 1400px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 13rem;
    --fs-2: 10rem;
    --fs-3: 8rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1320px; }

  :is(.header, .achievement, .category, .portfolio) .container { max-width: 1580px; }



  /**
   * HEADER
   */

  .header .container { padding-inline: 60px; }



  /**
   * HERO
   */

  .hero .container { max-width: 1500px; }

  .hero-content { margin-inline-end: 400px; }

  .hero .wrapper { --fs-2: 13rem; }

  .hero-text { --fs-10: 2.4rem; }

  .hero-banner { max-width: max-content; }



  /**
   * CATEGORY
   */

  .category .container { padding-inline: 40px; }

  .category-card .card-title { --fs-4: 8rem; }



  /**
   * ABOUT
   */

  .about { padding-block: 180px 120px; }



  /**
   * SERVICE
   */

  .service { padding-inline: 70px; }

  .service-card { padding-block: 65px; }



  /**
   * PORTFOLIO
   */

  .portfolio .container { padding-inline: 45px; }



  /**
   * FOOTER
   */

  .footer-top .container { max-width: 1200px; }

}