* {
  --upper-grid-spacing: 300px;
  --upper-grid-line-width: 3px;
  --lower-grid-spacing: 200px;
  --lower-grid-line-width: 1px;

  --logo-animation-duration: 8s;
}

@media (max-width: 400px) {
  * {
    --upper-grid-spacing: 100px;
    --upper-grid-line-width: 3px;
    --lower-grid-spacing: 50px;
    --lower-grid-line-width: 1px;

    --logo-animation-duration: 16s;
  }
}

* {
  --grid-direction: -1;
  --upper-grid-pitch: calc(
    var(--upper-grid-spacing) + var(--upper-grid-line-width)
  );
  --lower-grid-pitch: calc(
    var(--lower-grid-spacing) + var(--lower-grid-line-width)
  );

  --upper-speed: 4s;
  --lower-speed: 4s;
}

html {
  background-color: #000;
  height: 100svh;
}

body {
  height: 100svh;
  padding: 0;
  margin: 0;
}

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

.grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.vertical-lines {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.horizontal-lines {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.upper-grid .horizontal-lines {
  padding-top: calc(var(--upper-grid-pitch) / 2);
}

.lower-grid .horizontal-lines {
  padding-top: calc(var(--lower-grid-pitch) / 2);
}

.upper-grid .vertical-lines {
  gap: var(--upper-grid-spacing);
}

.upper-grid .horizontal-lines {
  gap: var(--upper-grid-spacing);
}

.lower-grid .vertical-lines {
  gap: var(--lower-grid-spacing);
}

.lower-grid .horizontal-lines {
  gap: var(--lower-grid-spacing);
}

@keyframes upperGridAnimation {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(
      calc(var(--upper-grid-pitch) * var(--grid-direction, 0))
    );
  }
}

@keyframes lowerGridAnimation {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(
      calc(var(--lower-grid-pitch) * var(--grid-direction, 0))
    );
  }
}

.vertical-line {
  background-color: blue;
  height: 100%;

  animation-timing-function: linear;
  animation-iteration-count: infinite;

  box-shadow: blue 0px 0px 15px;

  will-change: transform;
  backface-visibility: hidden;
}

.upper-grid .vertical-line {
  animation-name: upperGridAnimation;
  animation-duration: var(--upper-speed);
  min-width: var(--upper-grid-line-width);
}

.lower-grid .vertical-line {
  animation-name: lowerGridAnimation;
  animation-duration: var(--lower-speed);
  min-width: var(--lower-grid-line-width);
}

.horizontal-line {
  background-color: blue;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.lower-grid .vertical-line,
.lower-grid .horizontal-line {
  opacity: 0.5;
}

.upper-grid .horizontal-line {
  box-shadow: blue 0px 0px 15px;
  min-height: var(--upper-grid-line-width);
}

.lower-grid .horizontal-line {
  box-shadow: blue 0px 0px 7px;
  min-height: var(--lower-grid-line-width);
}

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

.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.menu {
  bottom: 0;
  position: absolute;
  z-index: 999;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;
}

@media (max-height: 1000px) {
    .menu{
        height: 70%;
    }
}

@media (max-height: 768px) {
    .menu{
        height: 65%;
    }
}





.menu-bar {
  position: relative;
  z-index: 999;
  height: 20px;
  width: 100%;
  box-shadow: blue 0px 0px 25px 10px;
  background: #0000ff;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 255, 1) 0%,
    rgba(0, 0, 255, 1) 20%,
    rgba(255, 255, 255, 1) 50%,
    rgba(0, 0, 255, 1) 80%,
    rgba(0, 0, 255, 1) 100%
  );
}

.menu-bg {
  --max-menu: 500px;
  position: relative;
  background-color: #000;
  width: 100%;
  animation: 2s menu-open;
  min-height: var(--max-menu);

}

@media (max-height: 1200px) {
    .menu-bg {
        --max-menu: 400px;
    }
}

@media (max-height: 768px) {
    .menu-bg {
        --max-menu: 375px;
    }
}

@keyframes menu-open {
  from {
    min-height: 0;
  }

  to {
    min-height: var(--max-menu);
  }
}

.menu-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;

  overflow: hidden;

  opacity: 0;
  animation: 2s linear 0.5s forwards menu-content-fade;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;

  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

@keyframes menu-content-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 9999;
}


.sine-letters-container {
  color: #fff;
  display: flex;
  position: relative;
  z-index: 999;
}


.my-name{
  margin: 60px;
  font-size: 50px;
  font-family: "Aldrich", sans-serif;

  color: #00ff00;
  text-shadow: 0 0 20px #00ff00;

  opacity: 0;
  transform: translateY(-400%);
  animation: 1s linear forwards fadein, 2s ease-out forwards name-lower ;
}

.sub-header{
  margin: 10px;
  font-size: 25px;
  font-family: "Aldrich", sans-serif;

  color: #caff1d;
  text-shadow: 0 0 20px #caff1d;

  opacity: 0;
  animation: 2s linear 1.5s forwards fadein ;
}

.social-icons{
    font-size: 70px;
    padding-left: 8px;
    padding-right: 8px;
    margin: 10px;
}

.social-icons a{
    text-decoration: none;
    color: cyan;
    text-shadow: 0 0 20px cyan;
    cursor: pointer;
    opacity: 0;
}

.social-icons :nth-child(1){
    animation: 2s linear 2.0s forwards fadein ;
}

.social-icons :nth-child(2){
    animation: 2s linear 2.5s forwards fadein ;
}
.social-icons :nth-child(3){
    animation: 2s linear 3s forwards fadein ;
}


@media (max-height: 1000px) {
    .my-name{
       margin: 50px;
       font-size: 40px;
    }
    .sub-header{
        font-size: 22px;
    }

    .social-icons{
       font-size: 60px;
    }
}

@media (max-height: 768px) {
    .my-name{
       margin: 40px;
       font-size: 30px;
    }

    .sub-header{
        font-size: 20px;
    }

    .social-icons{
       font-size: 50px;
    }
}



@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes name-lower {
  from {
    transform: translateY(-400%);
  }

  to {
    transform: translateY(0%);
  }
}





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

.carousel-track a{ text-decoration: none;}

.carousel-track > * {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.carousel-dot.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  border: none;
  cursor: pointer;
  background: none;
  padding: 16px;
  color: #fff;
  transition: all 0.3s ease;
}

.carousel-btn i {
  font-size: 72px;
  color: #ff8c00;
  text-shadow: 0 0 20px #ff8c00, 0 0 40px #ff8c00, 0 0 60px #ff8c00;
  transition: all 0.3s ease;
}

.carousel-btn:hover i {
  text-shadow: 0 0 30px #ff8c00, 0 0 60px #ff8c00, 0 0 90px #ff8c00;
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-track .image{
    width: 400px;
    height: 250px;
    background-size: cover;
}

.carousel-track .image i{
  font-size: 130px !important;
}

@media (max-width: 700px) {
  .carousel-track .image {
    width: 280px;
    height: 175px;
  }

  .carousel-track .image i {
    font-size: 80px !important;
  }

  .carousel-btn i {
    font-size: 40px;
  }

  .carousel-btn {
    padding: 8px;
  }

  #hyphen .title,
  #fti .title,
  #fpd .title,
  #fte .title,
  .modal-trigger .title {
    font-size: 24px;
  }

  #hyphen,
  #fti,
  #fpd,
  #fte,
  .modal-trigger {
    gap: 12px;
  }

  .carousel-track > * {
    padding: 0 36px;
  }
}

@media (max-width: 520px) {
  .carousel-track .image {
    width: 200px;
    height: 125px;
  }

  .carousel-track .image i {
    font-size: 60px !important;
  }

  .carousel-btn i {
    font-size: 32px;
  }

  .carousel-btn {
    padding: 4px;
  }

  #hyphen .title,
  #fti .title,
  #fpd .title,
  #fte .title,
  .modal-trigger .title {
    font-size: 20px;
  }

  .carousel-track > * {
    padding: 0 28px;
  }

  #hyphen div:not(.image),
  #fti div:not(.image),
  #fpd div:not(.image),
  #fte div:not(.image),
  .modal-trigger div:not(.image) {
    text-align: center;
  }
}

.carousel-track .image i{
  font-size: 130px !important;
}

#hyphen{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Aldrich", sans-serif;
    color: #fff;
    gap: 20px;
}

#hyphen .image{
    background-image: url(images/hyphen.jpg); 
}

#hyphen .title{
    font-size: 35px;
}

#swa{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Aldrich", sans-serif;
    color: #fff;
    gap: 20px;
}

#swa .image{
    background-image: url(images/swa.png); 
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


#swa .title{
    font-size: 35px;
}



#fti{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Aldrich", sans-serif;
    color: #fff;
    gap: 20px;
}

#fti .image{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#fti .image i{
    font-size: 70px;
}

#fti .title{
    font-size: 35px;
}


#fpd{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Aldrich", sans-serif;
    color: #fff;
    gap: 20px;
}

#fpd .image{
    background-image: url(images/dashboard.jpg); 
}


#fpd .title{
    font-size: 35px;
}


#fte{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Aldrich", sans-serif;
    color: #fff;
    gap: 20px;
}

#fte .image{
    background-image: url(images/theme-editor.png); 
}


#fte .title{
    font-size: 35px;
}

.modal-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Aldrich", sans-serif;
    color: #fff;
    gap: 20px;
    cursor: pointer;
    user-select: none;
}

.modal-trigger .image{
    width: 250px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-trigger .image i{
    font-size: 70px;
    color: #ff8c00;
    text-shadow: 0 0 20px #ff8c00;
}

.modal-trigger .title{
    font-size: 35px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    border-radius: 15px;
    
    border: 5px solid white;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
    font-family: "Aldrich", sans-serif;

    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;

    box-shadow: blue 0px 0px 25px 10px;
}



.modal-overlay.open .modal-content { 
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
    text-shadow: 0 0 20px red;
}

.modal-title {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 20px red;
    margin: 12px 0 20px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
}

.model-centre
{
  display: flex;
  
}


.modal-bg {
  --max-menu: 500px;
  position: relative;
  background-color: #000;
  flex-grow: 1;
  animation: 2s menu-open;
  min-height: var(--max-menu);
  padding: 40px;
  position: relative;
  z-index: 998;
  box-shadow:  blue 0px 0px 25px 10px inset;
}

.skill-group {
  margin-bottom: 20px;
}

.skill-group-header {
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 15px red;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}

.hobbies-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

@media (max-width: 500px) {
  .hobbies-items {
    grid-template-columns: 1fr;
  }
}

.skill-items span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #ccc;
}

.skill-items span i {
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 10px red;
  width: 24px;
  text-align: center;
}

.modal-link {
  color: #fff;
  text-shadow: 0 0 10px red;
  text-decoration: none;
  font-size: 14px;
}

.modal-link:hover {
  text-decoration: underline;
}