* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    background: #131313;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position:sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar__logo {
    background-color: coral;
    background-image: linear-gradient(to top, orangered, rgb(255, 191, 0) 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

/*.fa-gem {
    margin-right: 0.5rem;
}*/

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%
}

.button {
    display: flex;
    justify-items: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 22px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background: coral;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-out;
    text-decoration: none;
}

.button:hover {
    background: #1e90ff;
    transition: all 0.3s ease-out;
    color: #fff;
}

.navbar__links:hover {
    color: coral;
    transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px; 
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
        background: #131313;
    }

    .navbar__menu.active {
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 50vh;
        font-size: 1.6rem;
    }

    .navbar__logo {
        padding-left: 25px;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 80px;
        margin: 0;
    }

    .navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #fff;
    display: block;
    cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

     #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

     #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* iPhone-specific adjustments */
@media screen and (max-width: 480px) {
  .navbar {
    height: 70px; /* slightly shorter navbar */
    font-size: 1rem; /* smaller text */
  }

  .navbar__container {
    display: flex;
    justify-content: space-between; /* logo left, hamburger right */
    align-items: center; /* vertically center both */
    padding: 0 10px;
    height: 70px;
  }

  #navbar__logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center; /* vertical center */
  }
  .navbar__menu {
    top: -1000px;
    opacity: 0;
    height: 50vh;
  }

  .navbar__menu.active {
    font-size: 1.2rem; /* smaller menu links */
    height: 50vh;
  }

  .navbar__links {
    padding: 1.5rem; /* reduce link padding */
    width: 100%;
    font-size: 0.9rem; /* smaller font for links */
  }

  .navbar__btn {
    padding-bottom: 1rem;
  }

  .button {
    width: 90%;
    height: 60px; /* smaller button */
    font-size: 0.85rem;
  }

  #mobile-menu {
    position: relative; /* stay in line with logo */
    top: 0;
    right: 0;
    transform: none;
  }

/* Mobile hamburger adjustments */
@media screen and (max-width: 480px) {
  .navbar__toggle .bar {
    width: 18px;        /* slightly smaller width */
    height: 2px;        /* thinner bars */
    margin: 3px auto;   /* smaller spacing between bars */
    transition: all 0.3s ease-in-out;
    background: #fff;
    display: block;
    cursor: pointer;
  }

  #navbar__logo img {
    width: 60px;  /* smaller than the default 90px */
    height: auto; /* maintain aspect ratio */
  }


  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg); /* smaller translation for thinner bars */
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  #mobile-menu {
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1;
  }
}
}

/* Hero Section */
.main {
    background: #141414;
    padding: 200px 0;
}

.main__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main__heading {
    font-size: 100px;
    margin-bottom: 24px;
    font-weight: bold;
    color: #fff;
}

.main__heading span {
    color: orangered;
    background: -webkit-linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background: linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.main__subheading {
    font-size: 25px;
    background: -webkit-linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background: linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

#dynamic-text {
    font-size: 85px;
    display: inline-block;
    font-style: italic;
}

.main__subheading {
  font-size: 2rem;
  background: linear-gradient(to right, orangered, orange);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cursor {
  display: inline-block;
  font-weight: bold;
  color: #fff;
  animation: blink 1.7s infinite;
  font-size: 85px;
  font-style: italic;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


#dynamic-text.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.highlight {
    border-bottom: 4px solid coral;
    font-weight: bold;
    text-decoration: none;
}


.main__content span {
    font-size: 100px;
    margin-bottom: 24px;
    background-color: orangered;
    background-image: linear-gradient(to top, orangered, orange 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
  /*  text-transform: uppercase; */
    margin-bottom: 32px;
}

.main__content h2 {
    font-size: 2rem;
    background-color: orangered;
    background-image: linear-gradient(to top, coral, orangered 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.main__content p {
    font-size: 2rem;
    color: #fff;
    margin-top: 1rem;
    font-weight: 300;
}

.main__description {
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.main__btn {
    position: relative; /* <-- anchor the pseudo-element */
    font-size: 1rem;
    background-image: linear-gradient(to right, coral , coral 100%);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    color: #fff;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.35s;
    outline: none;
    overflow: hidden;
}

.main__btn a {
    position: relative;
    z-index: 2; 
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.main__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1e90ff; 
    border-radius: 4px;
    transition: all 0.35s;
    z-index: 1;
}

.main__btn:hover:after {
    width: 100%; 
}

.main__icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: auto;
    margin-top: 24px;
}

.main__icons .main__icon--link i {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.main__icons .main__icon--link:hover i {
    color: coral; 
}

.main__img--container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.main__img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    z-index: 2;
}

.main__img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Spiral below the images */
.spiral_1 {
    position: absolute;
    bottom: -50px; /* pushes spiral below images */
    left: 50%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border-top: 1px solid rgba(255, 120, 0, 0.6);
    animation: spin 12s linear infinite, grow 10s ease-in-out infinite;
    transform: translateX(-50%);
    z-index: 1; /* behind images */
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes grow {
    0%, 100% { width: 400px; height: 400px; opacity: 0.7; }
    50% { width: 600px; height: 600px; opacity: 0.3; }
}

/* Journey Section */
.journey {
  background: #141414;
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.journey:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.journey__heading {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: orangered;
  background: -webkit-linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background: linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.journey__subheading {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 4rem;
  color: #fff;
}

/* Timeline base */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Two intertwining bars */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 10px;
  z-index: 0;
}

.timeline::before {
  left: 48.5%; /* closer to center */
  background: linear-gradient(to bottom, #1e90ff, #00bfff);
  animation: wave1 6s infinite ease-in-out;
}

.timeline::after {
  left: 51.5%; /* slightly to the right */
  background: linear-gradient(to bottom, orangered, orange);
  animation: wave2 6s infinite ease-in-out;
}

/* Subtle weave animation */
@keyframes wave1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

@keyframes wave2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Timeline items */
.container {
  position: relative;
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 1;
}

.container.education { left: 0; text-align: right; }
.container.job { left: 50%; text-align: left; }

/* Content card */
.container .desc {
  position: relative;
  display: inline-block;
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 80%;
}

.container.job h3 {
    color: #1e90ff;
    font-size: 1.8rem;
}

.container.education h3 {
    color: orangered;
    font-size: 1.8rem;
}

.container.education .desc {
  border-right: 4px solid orangered;
}

.container.job .desc {
  border-left: 4px solid #1e90ff;
}

.container .desc:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

/* Circle markers aligned to card middle */
.container::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* centers vertically */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #141414;
  border: 4px solid currentColor;
  z-index: 2;
}


.container.education::before {
  right: -32px; /* sits between bar and card */
  color: orangered;
}

.container.job::before {
  left: -32px;
  color: #1e90ff;
}

/* Responsive fix */
@media screen and (max-width: 768px) {
  .timeline::before,
  .timeline::after {
    left: 20px;
  }

  .container {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding-left: 3rem;
  }

  .container .desc {
    max-width: 100%;
  }

  .container::before {
    display: none;
  }
}


/* Project Section */
.projects {
    background: #141414;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10rem 0;
}

.projects h1 {
    background-color: coral;
    background-image: linear-gradient(to right, orangered, orange 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    font-size: 3.5rem;
    margin-bottom: 5rem;
}

.projects__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* space between cards */
    justify-content: center;
}

.projects__card {
    margin: 10px;
    height: 350px;
    width: 300px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    transition: 0.3s ease-in;
}

.projects__card:nth-child(1) {
    background-image: url('images/Turtle Games.png');
    background-size: cover;
    background-position: center;
}

.projects__card:nth-child(2) {
    background-image: url('images/GAEA AI.png');
    background-size: cover;
    background-position: center;
}

.projects__card:nth-child(3) {
    background-image: url('images/logo.png');
    background-size: cover;
    background-position: center;
}

.projects__card:nth-child(4) {
    background-image: url('images/Rocket.png');
    background-size: cover;
    background-position: center;
}

.projects__card h2 {
    text-align: center;
    font-size: 1.5rem
}

.projects__card p {
    text-align: center;
    margin-top: 16px;
    font-size: 1rem;
}

.projects__btn {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    width: 100%

}

.projects__btn a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
    font-size: 1rem; /* smaller for mobile */
    padding: 8px 16px;
    max-width: 180px;
    border-radius: 4px;
    background: coral;
}

.projects__btn a:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1e90ff; 
    border-radius: 4px;
    transition: all 0.35s;
    z-index: 1;
}

.projects__card:hover {
    transform: scale(1.075);
    transition: 0.3s ease-in;
    cursor: pointer;
}

/* Project Cards Background Images */
.projects__card:nth-child(1),
.projects__card:nth-child(2),
.projects__card:nth-child(3),
.projects__card:nth-child(4) {
    background-size: cover;       /* scale image to cover card */
    background-position: center;  /* center image */
    background-repeat: no-repeat; 
}

/* About Section */

.about {
    background: #141414;
    padding: 10rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
    gap: 2rem;
    padding: 0 2rem;
}

.about__container:hover {
    transform: scale(1.075);
    transition: 0.3s ease-in;
    cursor: pointer;
}

.about__content {
    color: #fff;
    width: 100%;
}

.about__content h1 {
    background-color: orangered;
    background-image: linear-gradient(to right, orangered, orange 100%);
    background-size: 100%;
    margin-bottom: 2rem;
    font-size: 3rem;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    margin-bottom: 32px;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.about__content h2 {
    font-size: 2rem;
    background: orangered;
    background: -webkit-linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background: linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.about__content p {
    margin-top: 1.2rem;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 1rem 0;
    line-height: 1.5;
    color: #fff;
}

.about__btn {
    position: relative; /* <-- anchor the pseudo-element */
    font-size: 1rem;
    background-image: linear-gradient(to right, coral , coral 100%);
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    color: #fff;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.35s;
    outline: none;
    overflow: hidden;
    margin-top: 1.5rem;
}

.about__btn a {
    position: relative;
    z-index: 2; 
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.about__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1e90ff; 
    border-radius: 4px;
    transition: all 0.35s;
    z-index: 1;
}

.about__btn:hover:after {
    width: 100%; 
}

/* .about__container {
    display: flex;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 90%;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
} */

.about__img--container {
    text-align: center;
}

.about__img--card {
    margin: 10px;
    height: auto;
    width: 500px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background-image: url('images/Wetsuit.jpg');
    background-size: cover;
    background-position: center;
    margin: 0 auto;
}

.about__img--card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.about__icons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem;
    width: auto;
}

.about__icons .about__icons--link i {
    color: #fff;
    font-size: 36px;
    transition: color 0.3s ease;
}

.about__icons .about__icons--link:hover i {
    color: coral;
}

.about__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

/* End Section */

.end__img--container {
    text-align:left;
}
           
.end {
    background: #141414;
    padding: 10rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .end__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 90%;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
} */

.end__content {
    color: #fff;
    width: 100%;
}

.end__content h1 {
    background-color: #fff;
    background-image: linear-gradient(to right, coral, #fff 100%);
    background-size: 100%;
    margin-bottom: 5rem;
    font-size: 2.5rem;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    text-transform: uppercase;
    margin-bottom: 32px;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.end__content h2 {
    font-size: 4rem;
    background: orangered;
    background: -webkit-linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background: linear-gradient(
        to right, 
        orangered, 
        orange 100%
    );
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.end__content p {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 1.5rem 0;
    line-height: 1.5;
    color: #fff;
}

.end__btn {
    position: relative; /* <-- anchor the pseudo-element */
    font-size: 1rem;
    background-image: linear-gradient(to right, coral , coral 100%);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    color: #fff;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.35s;
    outline: none;
    overflow: hidden;
}

.end__btn a {
    position: relative;
    z-index: 2; 
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.end__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1e90ff; 
    border-radius: 4px;
    transition: all 0.35s;
    z-index: 1;
}

.end__btn:hover:after {
    width: 100%; 
}

.end__container {
    display: flex;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 90%;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
}

.end__img--container {
    text-align: center;
}

.end__img--card {
    margin: 10px;
    height: 500px;
    width: 500px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background-image: url('images/Image - aus.jpg');
    background-size: cover;
    background-position: center;
}

/* Carousel container */
.end__carousel {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 2rem auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Each slide */
.carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active slide */
.carousel__slide.active {
    opacity: 1;
}

/* Quote styling */
.carousel__quote {
    background: rgba(0,0,0,0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.4;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 2;
}

.carousel__btn:hover {
    background:  #1e90ff;
}

.carousel__btn--prev {
    left: 10px;
}

.carousel__btn--next {
    right: 10px;
}

/* Mobile Responsive */
@media screen and (max-width: 1100px) {
    .main__heading {
        font-size: 70px;
    }

    .main__container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .main__content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .main__subheading {
        font-size: 40px;
    }

    .main__content span {
        font-size: 70px;
    }

    .main__content h2 {
        font-size: 1.5rem;
    }

    .main__content p {
        font-size: 1.5rem;
    }

    .main__description {
        font-size: 1rem;
    }

    .main__img {
        max-width: 600px;
    }

    .about__container {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
        width: 100%;
        margin: 0 auto;
        height: 90%;
    }

    .about__img--container {
        display: flex;
        justify-content: center;
    }

.about__img--card,
.end__img--card {
    height: auto;
    width: 90%;
    max-width: 500px;
}

    .about__content {
        text-align: center;
        margin-bottom: 4rem;
    }

    .about__content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .about__content h2 {
        font-size: 3rem;
    }

    .about__content p {
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    .about__icons {
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    .end__container {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
        width: 100%;
        margin: 0 auto;
        height: 90%;
    }

    .end__img--container {
        display: flex;
        justify-content: center;
    }

    .end__content {
        text-align: center;
        margin-bottom: 4rem;
    }

    .end__content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .end__content h2 {
        font-size: 3rem;
    }

    .end__content p {
        margin-top: 1rem;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .main__img,
    .about__img--card,
    .end__img--card {
        width: 90%;
        height: auto;
        max-width: 400px;
}



    .main__content h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }

    .main__content h2 {
        font-size: 2rem;
    }

    .main__content p {
        margin-top: 2rem;
        font-size: 1.5rem;
    }

    .main__btn {
        padding: 12px 36px;
        margin: 2.5rem 0;
    }


    .about__content h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }

    .about__content h2 {
        font-size: 2rem;
    }

    .about__content p {
        margin-top: 2rem;
        font-size: 1.5rem;
    }

    .about__btn {
        padding: 12px 36px;
        margin: 2.5rem 0;
    }

    .about__icons {
        margin: 2rem;
        padding: 12px 36px;
    }

    .end__content h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }

    .end__content h2 {
        font-size: 2rem;
    }

    .end__content p {
        margin-top: 2rem;
        font-size: 1.5rem;
    }

    .end__btn {
        padding: 12px 36px;
        margin: 2.5rem 0;
    }
}

/* Footer Section */
.footer__container {
    background: #131313;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#footer__logo {
    background-color: #141414;
    color: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

#footer__logo:hover {
    color: orangered;
    transition: 0.3s ease-out;
}

.footer__links {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

.footer__link--wrapper {
    display: flex;
}

.footer__link--items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 16px;
    text-align: left;
    width: 160px;
    box-sizing: border-box;
    color: coral;
}

.footer__link--items h2 {
    margin-bottom: 16px;
    color: coral;
}

.footer__link--items a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 14px;
    transition: 0.3s ease-out;
}

.footer__link--items a:hover {
    color: coral;
    transition: 0.3s ease-out;
}

.social__icons {
    color: #fff;
    font-size: 24px;
}

.social__media {
    max-width: 1000px;
    width: 100%;
}

.social__media--wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.social__icons {
    display: flex;
    justify-content:flex-start;
    align-items: center;
    gap: 24px;
    width: auto;
}

.social__icons .social__icon--link i {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social__icons .social__icon--link:hover i {
    color: coral; 
}

.website__rights {
    color: #fff;
    margin-bottom: 16px;
}

@media screen and (max-width: 820px) {
    .footer__links {
        padding-top: 2rem;
        flex-direction: column; /* stack the links */
        align-items: center;
    }

    #footer__logo {
        margin-bottom: 2rem;
    }

    .website__rights {
        margin-bottom: 2rem;
        text-align: center; /* center text */
    }

    .footer__link--wrapper {
        flex-direction: column;
        align-items: center; /* center inside wrapper */
    }

    .footer__link--items {
        margin: 10px 0;
        padding: 10px;
        width: 100%;
        text-align: center; /* center links */
        align-items: center; /* center items */
    }

    .social__media--wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem; /* add spacing between logo, rights & icons */
    }
    
    .social__icons {
        align-items: center;
        text-align: center;
        width: 24px;
    }
}

@media screen and (max-width: 1200px) {
    .main__icons,
    .about__icons,
    .end__icons,
    .social__icons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
    }
}


/* CV Section Styling */
.cv {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* children stretch full width */
  justify-content: flex-start;
  background: #141414;
  color: #fff;
  padding: 4rem 2rem;
}

.cv__container {
  width: 100%;
  max-width: 1300px;      /* matches the ribbons on desktop */
  margin: 0 auto;          /* center the container */
  padding: 0 20px;         /* slight breathing room inside */
  box-sizing: border-box;
  text-align: center;
}

.cv__container h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  background: -webkit-linear-gradient(to right, orangered, orange 100%);
  background: linear-gradient(to right, orangered, orange 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.cv__container h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: -webkit-linear-gradient(to right, orangered, orange 100%);
  background: linear-gradient(to right, orangered, orange 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.cv__intro {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: #fff;
}

.cv__intro span.highlight {
  background: linear-gradient(to right, orangered, orange);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: italic;
  font-weight: 600;
  text-decoration: none !important;
}

.cv__intro .highlight {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(to right, orangered, orange);
  background-clip: text;
  -webkit-background-clip: text;

  /* Instead of text-fill: transparent, use masking */
  color: transparent;
  -webkit-text-fill-color: unset;
}



@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

.cv__skills:hover,
.cv__experience:hover {
    transform: scale(1.075);
    transition: 0.3s ease-in;
}

.cv__intro:hover,
.cv__skills li:hover, 
.cv__experience li:hover {
  transform: translateY(-3px) scale(1.02);
  color: orange;
  text-shadow: 0 0 3px rgba(255,140,0,0.7);
  transition: all 0.3s ease-in-out;
}

.cv__container h2:hover {
    transform: scale(1.075);
    transition: 0.3s ease-in;
}

.cv__container h1, .cv__container h2 {
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}


.cv__skills,
.cv__experience {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cv__skills li,
.cv__experience li {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  position: relative;
  padding-left: 1.5rem;
}

.cv__skills li::before,
.cv__experience li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: orangered;
  font-size: 1.5rem;
  line-height: 1;
}

.cv__frame--wrapper {
  display: flex;
  justify-content: center;
  width: 100%;              /* stretch to parent container */
  max-width: 1300px;        /* match .cv__container and skill grid */
  margin: 3rem auto 0;      /* top margin + center horizontally */
}

.cv__section-title {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: orangered;
  background: linear-gradient(to right, orangered, orange);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.cv__skills li,
.cv__experience li {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.cv__skills li em {
  font-style: italic;
}


.cv__frame {
  width: 100%;
  height: 80vh;       /* desktop height */
  border: none;
  filter: blur(8px);  /* blurred effect stays */
  pointer-events: none; /* disables interaction */
}

.cv__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cv__buttons .button {
  padding: 12px 24px;
  border-radius: 4px;
  background: coral;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cv__buttons .button:hover {
  background: #1e90ff;
  color: #fff;
  transform: scale(1.05);
}

/* Blur the PDF and overlay button */
.cv__request-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv__blurred {
  filter: blur(8px);
  pointer-events: none; /* disable interactions */
}

.cv__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv__request-btn {
  padding: 16px 32px;
  font-size: 1.2rem;
  background: coral;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cv__request-btn:hover {
  background: #1e90ff;
  transform: scale(1.05);
}

/* Ripple Ribbon */
.cv__ribbon {
  position: relative;
  width: 100%;
  height: 8px; /* thinner ribbon */
  margin: 3rem 0;
  background: linear-gradient(90deg, orangered,#141414, orangered);
  background-size: 200% 100%;
  border-radius: 50px;
  animation: slide 5s linear infinite, ripple 5s ease-in-out infinite;
  z-index: 1;
  opacity: 0.6; /* reduce brightness */
}

/* Horizontal movement */
@keyframes slide {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* Vertical ripple effect */
@keyframes ripple {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-2px); }
}

/* Optional subtle glow */
.cv__ribbon::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 16px;
  background: inherit;
  filter: blur(6px); /* softer glow */
  opacity: 0.3;
  border-radius: 50px;
  z-index: -1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .cv__container h1 {
    font-size: 3rem;
  }

  .cv__container {
    width: 95%;
    padding: 0 10px;
  }

  .cv__intro {
    font-size: 1.2rem;
  }

  .cv__skills li,
  .cv__experience li,
  .cv__education li {
    font-size: 1rem;
  }

  .cv__frame {
    height: 60vh;
  }
}

@media screen and (max-width: 480px) {
  .cv__container h1 {
    font-size: 2rem;
  }

  .cv__intro {
    font-size: 1rem;
  }

  .cv__frame {
    height: 50vh;
  }

  .cv__overlay {
    width: 90%; /* give some horizontal margin */
    padding: 0 10px;
  }

  .cv__request-btn {
    width: 100%; /* button stretches nicely */
    font-size: 1rem;
    padding: 12px 16px;
  }

  .cv__buttons .button {
    width: 100%;
  }
}

/* Adjust section spacing */
body {
  background-color: #141414;
  margin: 0; /* removes default browser margins */
  padding: 0;
}

section {
  background-color: #141414;
  color: #fff;
  padding: 4rem 2rem;
  margin: 0; /* removes white gaps between sections */
}

/* Ultra small devices (≤ 380px) */
@media screen and (max-width: 380px) {
  .main__heading, 
  .main__content span {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .main__img, 
  .about__img--card, 
  .end__img--card {
    width: 90%;
    height: auto;
  }
  .projects__card {
    width: 90%;
    height: auto;
  }
}

/* Tablet portrait (≤ 768px) */
@media screen and (max-width: 768px) {
  .main__container,
  .about__container,
  .end__container {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .main__img, 
  .about__img--card, 
  .end__img--card {
    max-width: 100%;
    height: auto;
  }
}

/* Mid-size screens (≤ 1100px) */
@media screen and (max-width: 1100px) {
  .main__heading {
    font-size: clamp(2rem, 6vw, 4rem);
  }
  .main__subheading {
    font-size: clamp(1rem, 4vw, 2rem);
  }
}

@media screen and (max-width: 480px) {
  .main {
    padding: 120px 1rem; /* reduce vertical padding */
  }

  .main__container {
    flex-direction: column; /* stack heading and images */
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
  }

  .main__heading {
    font-size: 3rem; /* smaller heading */
    text-align: center;
    margin-bottom: 16px;
  }

  #dynamic-text,
  .cursor,
  .main__content span {
    font-size: 2rem; /* shrink dynamic text */
  }

  .main__subheading {
    font-size: 1.5rem;
    text-align: center;
    display: block;
  }

  .main__content h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .main__content p,
  .main__description {
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
  }

  .main__btn {
    width: 80%;
    font-size: 0.9rem;
    margin: 1.5rem 0;
  }

  .main__btn a {
    font-size: 0.9rem;
  }

  .main__icons {
    justify-content: center;
    gap: 8px;
  }

  .main__icons .main__icon--link i {
    font-size: 20px;
  }

  .main__img--container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .main__img {
    width: 80%;
    height: auto;
    max-width: 300px; /* scale down images for iPhone */
  }

  .spiral_1 {
    width: 300px;
    height: 300px;
    bottom: -30px;
  }
}

@media screen and (max-width: 480px) {
  .journey {
    padding: 3rem 1rem;
  }

  .journey__heading {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .journey__subheading {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .timeline {
    max-width: 90%;
    padding: 2rem 0;
  }

  /* Keep the timeline bars centered */
  .timeline::before,
  .timeline::after {
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
  }

  .container {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left !important;
  }

  .container.education,
  .container.job {
    left: 0 !important;
  }

  /* Scale content cards down */
  .container .desc {
    max-width: 90%;
    padding: 1rem;
  }

  .container.job h3,
  .container.education h3 {
    font-size: 1.2rem;
  }

  .container.education .desc {
    border-right: 3px solid orangered;
  }

  .container.job .desc {
    border-left: 3px solid #1e90ff;
  }

  /* Scale circle markers */
  .container::before {
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .container.education::before {
    right: -24px;
  }

  .container.job::before {
    left: -24px;
  }
}

@media screen and (max-width: 1300px) {
    .projects__wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

@media screen and (max-width: 768px) {
    .projects h1 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .projects__wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .projects__card {
        height: 300px;
        width: 90%;
    }

    .projects__card h2 {
        font-size: 1.3rem;
    }

    .projects__card p {
        font-size: 0.9rem;
    }

    .projects__btn a {
        font-size: 0.9rem;
        padding: 6px 12px;
        max-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .about__container {
        grid-template-columns: 1fr; /* stack content & image */
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .about__content h1 {
        font-size: 2.5rem;
    }

    .about__content h2 {
        font-size: 1.8rem;
    }

    .about__content p {
        font-size: 1rem;
    }

    .about__img--card {
        width: 90%;
        height: 300px; /* smaller for mobile */
    }

    .about__icons {
        justify-content: center; /* center icons on mobile */
    }

    .about__actions {
        align-items: center; /* center button & icons */
    }
}

/* Make sure the image is visible on mobile */
@media screen and (max-width: 768px) {
    .about__img--card {
        width: 90%;        /* nearly full width */
        height: auto;      /* maintain aspect ratio */
        min-height: 250px; /* ensure it has some height */
        background-size: contain; /* scale the image instead of cropping */
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Mobile responsiveness for End Section */
@media screen and (max-width: 768px) {
    .end__container {
        flex-direction: column;
        padding: 0 2rem;
        height: auto;
    }

    .end__img--container, 
    .end__carousel {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 2rem;
    }

    .end__img--card {
        width: 100%;
        max-width: 400px; /* shrink images */
        height: auto; /* keep aspect ratio */
        margin: 0 auto;
    }

    .end__content h1,
    .end__content h2 {
        font-size: 2.5rem; /* reduce font for mobile */
        text-align: center;
    }

    .end__content p {
        font-size: 1.4rem;
        text-align: center;
    }

    .end__btn a {
        font-size: 1rem;
        width: 80%;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    /* Carousel buttons smaller on mobile */
    .carousel__btn {
        font-size: 1.5rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Extra small screens: iPhone SE, small devices */
@media screen and (max-width: 375px) {
    .end__container {
        flex-direction: column;
        padding: 0 1rem;
        height: auto;
    }
  
    .end__img--card {
        width: 100%;
        max-width: 300px; /* further shrink for tiny screens */
        height: auto; /* maintain aspect ratio */
        margin: 0 auto;
    }

    .end__content h1,
    .end__content h2 {
        font-size: 2rem; /* smaller headings for small screens */
        text-align: center;
    }

    .end__content p {
        font-size: 1.2rem;
        text-align: center;
    }

    .end__btn a {
        font-size: 0.95rem;
        width: 90%;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    /* Carousel buttons smaller on very small screens */
    .carousel__btn {
        font-size: 1.2rem;
        padding: 0.2rem 0.5rem;
    }
}


@media screen and (max-width: 768px) {
    .end__container {
        flex-direction: column;
        padding: 0 1rem;
        height: auto;
    }

    .end__img--container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .end__img--card {
        width: 100%;
        max-width: 300px;
        height: auto; /* maintains aspect ratio */
        margin: 0 auto;
    }

    .end__content h1,
    .end__content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .end__content p {
        font-size: 1.2rem;
        text-align: center;
    }

    .end__btn a {
        font-size: 0.95rem;
        width: 90%;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    /* Keep carousel visible with min-height */
    .end__carousel {
        width: 100%;
        max-width: 100%;
        height: 300px; /* minimum visible height */
        margin-bottom: 1.5rem;
    }

    .carousel__slide {
        height: 100%; /* fill carousel container */
        background-size: cover;
        background-position: center;
    }

    .carousel__btn {
        font-size: 1.2rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Skill grid to match container width */
.cv__skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;            /* ensure it fills the container */
}

.skill-card {
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255,140,0,0.5);
}

.skill-card i {
  font-size: 2rem;
  color: orangered;
  margin-bottom: 0.8rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.skill-card p {
  font-size: 0.95rem;
  color: #ccc;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
  .skill-card {
    padding: 1rem;
  }
  .skill-card h3 {
    font-size: 1rem;
  }
  .skill-card p {
    font-size: 0.85rem;
  }
}

/* Easter Egg animation */
.pacman-section {
  position: relative;
  width: 100%;
  height: 300px;
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
  overflow: hidden;
}

.pacman-section h2 {
  color: orange;
  margin-bottom: 1rem;
}

#pacman-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media screen and (max-width: 480px) {
  .pacman-ghost-section {
    height: 200px; /* smaller height for small screens */
  }
}




