    /* Reset some basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Adjust this value based on your header height */
section {
    scroll-margin-top: 70px;
}

body {
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.main-bg {
    background: linear-gradient( 135deg, #2f4f4f 0%, #2f4f4f 40%, #1e2b2b 100%);
}

a:link {
    text-decoration: none;
}

/* Root of Navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    background-color: #333;
    padding: 8px clamp(6px, 0.5vw, 24px);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 1px 12px rgba(0, 0, 0, 0.8);
    gap: clamp(6px, 0.5vw, 24px);
}

.navbar-left,
.navbar-middle,
.navbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.navbar-left {
    transition: transform 0.3s ease;
    flex-shrink: 1;
}

.navbar-left a {
    padding-left: clamp(2px, 1vw, 80px);
    font-size: clamp(16px, 2vw, 44px);
    font-family: Arial, sans-serif;
    color: inherit;
    font-weight: bold;
    white-space: nowrap;
}

.navbar-left:hover {
    transform: scale(1.05);
}

.wavy-text {
    display: inline-block;
    cursor: pointer;
}

.wavy-text span {
    display: inline-block;
    animation: wave 0.8s ease alternate;
    will-change: transform;
}

.wavy-text .spacer {
    width: 0;
    animation: none !important;
    transform: none !important;
}

.wavy-text:hover span {
    animation: floatWave 1s ease-in-out infinite;
}

@keyframes floatWave {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(4px);
    }

    100% {
        transform: translateY(0);
    }
}

.wavy-text span:nth-child(1) {
    animation-delay: 0s;
}

.wavy-text span:nth-child(2) {
    animation-delay: 0.12s;
}

.wavy-text span:nth-child(3) {
    animation-delay: 0.24s;
}

.wavy-text span:nth-child(4) {
    animation-delay: 0.36s;
}

.wavy-text span:nth-child(5) {
    animation-delay: 0.48s;
}

.wavy-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.wavy-text span:nth-child(7) {
    animation-delay: 0.72s;
}

.wavy-text span:nth-child(8) {
    animation-delay: 0.84s;
}

.wavy-text span:nth-child(9) {
    animation-delay: 0.96s;
}

.wavy-text span:nth-child(10) {
    animation-delay: 1.08s;
}

.wavy-text span:nth-child(11) {
    animation-delay: 1.2s;
}

.wavy-text span:nth-child(12) {
    animation-delay: 1.32s;
}

.navbar-middle {
    flex: 1;
    justify-content: center;
    gap: clamp(0px, 0.01vw, 18px);
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
}

.nav-button {
    position: relative;
    display: inline-block;
    overflow: visible;
    color: white;
    text-decoration: none;
    margin: 0 clamp(2px, 1vw, 12px);
    padding: clamp(2px, 1vw, 6px) clamp(2px, 1vw, 10px);
    font-weight: bold;
    font-size: clamp(18px, 2vw, 28px);
    font-family: sans-serif;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: clamp(3px, 0.5vw, 5px);
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease, height 0.3s ease;
  transform-origin: left;
}

.nav-button:hover::after,
.nav-button.active::after {
    transform: scaleX(1);
}

.g-nav-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: clamp(3px, 0.5vw, 5px);
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease, height 0.3s ease;
  transform-origin: left;
}

.g-nav-button:hover::after,
.g-nav-button.active::after {
    transform: scaleX(1);
}

.g-nav-button {
    position: relative;
    display: inline-block;
    overflow: visible;
    color: white;
    text-decoration: none;
    margin: 0 clamp(0px, 0.5vw, 12px);
    padding: clamp(0px, 0.5vw, 6px) clamp(2px, 0.5vw, 10px);
    font-weight: bold;
    font-size: clamp(10px, 1.5vw, 28px);
    font-family: sans-serif;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 16px);
}

.contact-icons {
    display: flex;
    gap: clamp(4px, 1vw, 12px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: clamp(18px, 4vw, 36px);
    color: white;
    cursor: pointer;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  font-weight: bold;
  top: 60px;
  right: 16px;
  background-color: #222;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

.dropdown-menu.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.dropdown-menu i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover i {
  transform: scale(1.2);
}

.dropdown-menu a:hover {
  color: #e0f216;
}

.dropdown-menu.visible {
    display: flex;
}

/* Responsive trigger: show hamburger, hide icons */
@media (max-width: 1000px) {
    .contact-icons {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* Main page hover colors */
.intro-btn:hover, .intro-btn.active {
    color: #1ce6d7;
}

.games-btn:hover, .games-btn.active {
    color: #0ad114;
}

.projects-btn:hover, .projects-btn.active {
    color: #d487ff;
}

.contact-btn:hover, .contact-btn.active {
    color: #f6ff52;
}

/* Navbar right icons */
.navbar-right a {
    margin-right: clamp(2px, 1vw, 16px);
    display: flex;
    align-items: center;
}

.navbar-right i {
    font-size: clamp(18px, 3vw, 38px);
    color: white;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.navbar-right i:hover {
    transform: scale(1.15);
}

/* Main page highlight colors */
.intro-btn:hover,
.intro-btn.active {
    color: #1ce6d7;
}

.games-btn:hover,
.games-btn.active {
    color: #0ad114;
}

.projects-btn:hover,
.projects-btn.active {
    color: #d487ff;
}
.contact-btn:hover,
.contact-btn.active {
    color: #f6ff52;
}

.navbar-right a {
    margin-right: 20px;
}

.navbar-right i {
    font-size: clamp(18px, 3vw, 38px);
    color: white;
    transition: transform 0.3s ease;
}
  
.navbar-right i:hover {
    transform: scale(1.15);
}

/* Games page highlight colors */
.vk-btn:hover,
.vk-btn.active {
    color: #ed7c74;
}

.sg-btn:hover,
.sg-btn.active {
    color: #4cc74e;
}

.bb-btn:hover,
.bb-btn.active {
    color: #688cf7;
}

.s-btn:hover,
.s-btn.active {
    color: #a39b8c;
}

.e-btn:hover,
.e-btn.active {
    color: #ebd078;
}

.nav-button:hover::after,
.nav-button.active::after {
    transform: scaleX(1);
}

/* Root of intro section */
.intro {
    padding: 80px 30px 80px;
}

.intro-about {
    display: flex;
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Aligns the content vertically */
    padding: 60px 0 20px;
    gap: 100px;
}

@media (max-width: 800px) {
    .intro-about {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0 20px;
    }
}

.intro-text {
    position: relative;
    font-family: sans-serif;
    color: white;
    font-size: 28px;
    max-width: 1000px;
}

.intro-text p {
    position: relative;
    padding: 24px;
    z-index: 2;
}

.intro-box {
    position: absolute;
    inset: 0;
    background-color: gray;
    border-radius: 16px;
    opacity: 0.6;
}

.intro-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    align-items: center;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.intro-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    color: white;
    font-size: 22px;
    gap: 40px;
    padding: 0 20px;
}

.jams {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 14px;
}

.jams h2 {
    z-index: 20;
    text-align: center;
}

.jams i {
    font-size: 36px;
    z-index: 20;
}

.jams-box {
    position: absolute;
    inset: 0;
    background-color: gray;
    border-radius: 10px;
    opacity: 0.6;
}

.skills {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    gap: 6px;
}

.skills h2 {
    margin: 0;
    text-align: center;
    z-index: 20;
}

.skill-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items:center;
    gap: 10px;
    z-index: 20;
}

.skill-logos img {
    display: block;
    width: 32px;
    height: 32px;
}

.skill-box {
    position: absolute;
    inset: 0;
    background-color: gray;
    border-radius: 10px;
    opacity: 0.6;
}

.education {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    gap: 6px;
}

.education h2 {
    margin: 0;
    text-align: center;
    font-weight: normal;
    z-index: 20;
}

.education i {
    font-size: 32px;
    z-index: 2
}

.edu-icon {
    display: flex;
    z-index: 2;
    gap: 20px;
}

.edu-box {
    position: absolute;
    inset: 0;
    background-color: gray;
    border-radius: 10px;
    opacity: 0.6;
}

/* Root of projects section */
.pro-bg {
    background-color: #333;
    box-shadow: 0px -1px 12px black;
    color: white;
    font-family: sans-serif;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 30px;
    font-size: 32px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 50px 120px;
}

.pro-card {
    position: relative;
    width: 480px;
    height: 400px;
    background-color: #767676;
    border-radius: 14px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease;
}

.vk {
    background-color: #c76d67;
}

.sg {
    background-color: #47b049;
}

.bb {
    background-color: #734d30;
}

.e {
    background-color: #b0aa84;
}

.pro-img {
    position: absolute;
    width: 448px;
    height: 252px;
    translate: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.media-img,
.media-vid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.media-image {
    pointer-events: none;
  }

.media-vid {
    opacity: 0;
    border-radius: 7px;
}

.pro-card:hover {
    transform: scale(1.08);
}

.pro-card:hover .media-img {
    opacity: 0;
}

.pro-card:hover .media-vid {
    opacity: 1;
    pointer-events: auto;
}

.pro-img-bg {
    position: relative;
    translate: 10px 30px;
    width: 460px;
    height: 294px;
    background-color: #404040;
    border-radius: 12px;
    z-index: 3;
}

.pro-title {
    position: absolute;
    translate: 30px 8px;
    width: 128px;
    height: 40px;
    background-color: #404040;
    border-radius: 7px;
    font-size: 13px;
    padding: 3px;
}

.pro-stats {
    display: flex;
    position: absolute;
    translate: 20px 263px;
}

.pro-stats {
    display: absolute;
    translate: 22px 253px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
    z-index: 14;
}
  
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
  
.stat-item i {
    font-size: 23px;
}

.pro-desc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    translate: 0px 47px;
    font-size: 26px;
}

.pro-desc i {
    font-size: 30px;
}

/* Root of other section */
.other {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 120px 35px;
    width: 100%;
    color: white;
    font-family: sans-serif;
    font-size: 32px;
}

.other h1 {
    white-space: nowrap;
}

.design-left {
    display: flex;
    flex-direction: row;
    justify-content: start;
    padding-top: 50px;
    gap: 60px;
}

@media (max-width: 780px) {
    .design-left {
        flex-direction: column;
        align-items: center;
    }
}

.dl-text {
    font-size: 23px;
    max-width: 1200px;
    min-width: 460px;
}

.dl-text a {
    color: #d487ff;
    font-weight: bold;
    transition: color 0.25s ease;
}

.dl-text a:hover {
    color: #e0f216;
}

.dl-text p {
    padding-top: 24px;
}

.dl-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.dl-media-wrapper {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 20px;
    max-width: 100%;
}

.dl-box {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    border-radius: 18px;
    z-index: 1;
    background-color: gray;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.35);
}

.dl-media {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 140px;
}

.dl-media img {
    display: block;
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.design-right {
    display: flex;
    flex-direction: row;
    justify-content: start;
    padding-top: 50px;
    gap: 60px;
}

@media (max-width: 780px) {
    .design-right {
        flex-direction: column-reverse;
        align-items: center;
    }
}

.dr-text {
    font-size: 23px;
    max-width: 1200px;
    min-width: 460px;
}

.dr-text a {
    color: #d487ff;
    font-weight: bold;
    transition: color 0.2s ease;
}

.dr-text a:hover {
    color: #e0f216;
}

.dr-text p {
    padding-top: 24px;
}

.dr-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.dr-media-wrapper {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 20px;
    max-width: 100%;
}

.dr-box {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    border-radius: 18px;
    z-index: 1;
    background-color: gray;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.35);
}

.dr-media {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 140px;
}

.dr-media img {
    display: block;
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.cs-box {
    background-color: #60bf7a;
}

.sm-box {
    background-color: #ff2600;
}

.cc-box {
    background-color: #ef75ff;
}

/* Root contact section */
.contact-section {
    background: linear-gradient(135deg, #1c1c1c, #292929);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    box-shadow: 0px 0px 20px 2px black;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #e0f216;
}

.contact-section .tagline {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 20px;
    margin: 5px 0;
}

.contact-info a {
    color: #39c5bb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #e0f216;
}

.contact-social {
    margin-top: 25px;
}

.location {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.flag-icon {
    height: 20px;
    width: auto;
    margin-left: 2px;
    vertical-align: middle;
}

/* Connect with me button */
.connect-button-wrapper {
    margin: 40px 0;
}

.connect-button {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    padding: 15px 30px;
    background: #39c5bb;
    color: white;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connect-button .icon {
    margin-right: 12px;
    font-size: 26px;
    transition: transform 0.3s ease;
}

.connect-button:hover {
    background: #e0f216;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0px 15px rgba(224, 242, 22, 0.3);
}

.connect-button:hover .icon {
    transform: rotate(360deg);
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(6px, 3vw, 32px);
    white-space: nowrap;
}

.contact-social a {
    font-size: clamp(20px, 4vw, 26px);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

.contact-social a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0f216;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.contact-social a:hover {
    color: #e0f216;
}

.contact-social a:hover::after {
    transform: scaleX(1);
}

.media-link,
.media-link:visited
.media-link:hover
.media-link:active {
    color: inherit;
}

/* Root of gameproject pages */
.vk-bg {
    background: linear-gradient(to bottom, #61312e, #3a1c1a);
}

.sg-bg {
    background: linear-gradient(to bottom, #296e29, #173e17);
}

.bb-bg {
    background: linear-gradient(to bottom, #22305c, #111931);
}

.s-bg {
    background: linear-gradient(to bottom, #474036, #2d2821);
}

.e-bg {
    background: linear-gradient(to bottom, #63572e, #3e370f);
}

.gameproject {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px;
    gap: 20px;
    color: white;
    font-size: 24px;
    font-family: sans-serif;
    text-align: center;
}

.gp-media {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.gpm-wrapper {
    position: relative;
    display: inline-block;
    padding: 16px;
    border-radius: 14px;
}

.gpm-box {
    position: absolute;
    inset: 0;
    background-color: gray;
    border-radius: 14px;
    opacity: 0.6;
    z-index: 1;
}

.gpm-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.gpm-images img {
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: 6px;
    flex: 1 1 300px;
}

.gpm-vertical-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.gpm-vertical-images img {
    width: 100%;
    max-width: 156px;
    height: auto;
    border-radius: 6px;
    flex: 1 1 300px;
}

.gpm-tools {
    font-size: 22px;
    color: white;
    text-align: center;
    z-index: 2;
    position: relative;
}

.gpm-tools h3 {
    margin-bottom: 8px;
    font-weight: normal;
}

.gpm-tools img {
    width: 30px;
    height: auto;
    margin: 0 5px;
    vertical-align: middle;
}

.gpm-divider {
    height: 2px;
    width: 94%;
    margin: 16px auto;
    border-radius: 1px;
    position: relative;
    z-index: 2;
    background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100% );
}

.gp-desc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px;
}

.gpd-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    padding: 22px;
}

.gpd-box {
    position: absolute;
    inset: 0;
    background-color: gray;
    opacity: 0.6;
    border-radius: 14px;
}

.gpd-divider {
    height: 2px;
    width: 85%;
    margin: 14px auto;
    border-radius: 1px;
    position: relative;
    z-index: 2;
    background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100% );
}

.gpd-content h2 {
    font-size: 32px;
    margin-top: 8px;
    z-index: 2;
    position: relative;
}

.gpd-content p {
    font-size: 20px;
    margin-top: 12px;
    margin-bottom: 8px;
    z-index: 2;
    position: relative;
}

.dl-container {
    display: flex;
    justify-content: center;
}

.download {
    transition: filter 0.4s ease, transform 0.3s ease;
}

.download:hover {
    transform: scale(1.12);
    filter: drop-shadow(0px 0px 12px rgba(96, 209, 40, 0.6));
}

.download-content {
    position: relative;
    padding: 20px;
}

.download-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    gap: 16px;
    z-index: 2;
}

.download-icon i {
    font-size: 30px;
}

.download-icon h2 {
    font-size: 26px;
}

.download-box {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background-color: #60d128;
    opacity: 0.6;
}

.download-gray {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 18px;
    transition: transform 0.5s ease;
}

.dg-content {
    position: relative;
    padding: 20px;
}

.dg-text {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.dg-box {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background-color: #4f4f4f;
}