body {
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; 
    box-sizing: border-box; 
}

*, *:before, *:after {
    box-sizing: border-box;
}



body.dark-mode {
    background-color: #333;
    color: #fff;
}

.navbar {
    background-color: rgba(248, 248, 248, 0.8); 
    padding: 0px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.navbar a {
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.dark-mode .navbar {
    background-color: rgba(34, 34, 34, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.navbar h3{
    color: grey;
    font-weight: 900;
}

.speak{
    height: 35px;
    width: 35px;
    border-radius: 100%;
    font-size: 16px;
    background-color: black;
    color: white;
    vertical-align: middle;
}

.dark-mode .speak{
    background-color: white;
    color: black;
}



.title {
    color: black;
}

.dark-mode .title {
    color: white;
}

.picture {
    width: 40px;
    height: 40px;
    align-self: flex-start;
    border-radius: 100%;
}

.body-pic {
    justify-content: center;
    align-self: center;
    padding: 20px;
}

.body-pic h3{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.body-picture {
    width: 180px;
    height: 180px;
    align-self: flex-start;
    border-radius: 100%;
    border: 4px solid black;
}

.dark-emoji {
    filter: brightness(60%); 
    font-size: 20px;
}

.about-top {
    font-size: 1.6rem;
    font-weight: bold;
    color: #898989;
}
.about {
    font-size: 0.7rem;
    color: #898989;
    margin-bottom: 20px;
    line-height: normal;
}

.dark-mode .body-picture {
    border: 4px solid white;
}

.body-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.body-content h4{
    margin-bottom: 40px;
}

.body-about {
    background-color: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.dark-mode .body-about {
    background-color: rgba(34, 34, 34, 0.8);
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.socials button {
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.dark-mode .socials button {
    background-color: white;
    color: black;
}

.body-text {
    text-align: start;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 10px;
    width: 100%;
    max-width: 1400px !important;
    line-height: 35px;
}

@media (min-width: 768px) {
    .body-text{
        padding-left: 200px;
        padding-right: 200px;
    }
}

sup {
    border: 1px solid black;
    border-radius: 5px;
    font-size: 10px;
    padding-left: 3px;
    padding-right: 3px;
}

.dark-mode sup{
    border: 1px solid white;
}

.port-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 164px;
    padding: 0 30px;
    border-bottom: 0.5px solid #eaeaea;
    font-size: 14px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    color: #9c9c9c;
    cursor: pointer;
    position: relative;
}

.tab i {
    font-size: 16px;
}

.tab.active {
    color: black;
    font-weight: bold; 
}

.dark-mode .tab.active{
    color: white;
}

.gem-pic {
    width: 50px;
    height: 15px;
    position: relative;
    top: 2.5px;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: black;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.dark-mode .tab.active::after {
    background: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100vw);
    }
}

.tab-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}


.tab-panel {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100vw);
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.tab-panel img{
    width: 100%;
    max-width: 1366px;
    height: 100%;
    max-height: 540px;
}

.tab-panel h3{
    font-weight: 700;
    line-height: 30px;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 15px;
    max-width: 100%;
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), 
                opacity 0.1s cubic-bezier(0.33, 1, 0.68, 1);
}

.tab-panel.previous {
    display: flex;
    opacity: 0;
    transform: translateX(-100vw);
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0.1s cubic-bezier(0.33, 1, 0.68, 1);
}
 
.first-game,
.second-game,
.third-game,
.fourth-game,
.fifth-game,
.sixth-game,
.seventh-game,
.portfolio-item {
    width: 100%;
    padding: 15px;
    transition: transform 0.3s ease;
    display: block;
    justify-content: center;
    align-items: center;
    max-width: 100%; 
}

.body-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 0 15px;
}

.body-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    max-width: 100%; 
}

.img-responsive {
    border-radius: 5% !important;
}

.btn-primary{
    background-color: rgb(58, 140, 248);
    height: 60px;
    width: 100%;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    color: white;
}

.game {
    text-align: center;
    margin: 10px 0;
    font-size: 1.3rem;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    .port-tabs {
        padding: 0 10px; 
        gap: 25px; 
    }
    
    .tab-panel.active {
        padding: 10px; 
    }
    
    .body-text {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%; 
        max-width: 100%;
    }
}

 
@media (min-width: 768px) {
    .tab-panel.active {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .first-game,
    .second-game,
    .third-game,
    .fourth-game,
    .fifth-game,
    .sixth-game,
    .seventh-game,
    .portfolio-item {
        width: calc(50% - 30px); 
        max-width: 400px;
    }

    
}

@media (min-width: 1200px) {
    .first-game,
    .second-game,
    .third-game,
    .fourth-game,
    .fifth-game,
    .sixth-game,
    .seventh-game,
    .portfolio-item {
        width: 100%;
    }

    .body-image img {
        max-height: 300px;
    }
}

.game-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px;
    width: 100%; 
    margin: 0 auto; 
}

@media (max-width: 768px) {
    .game-title-wrapper {
        justify-content: center;
        padding: 0 10px;
    }
}

.info-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    margin: 0;
}

.info-button:hover {
    color: #333;
}

.dark-mode .info-button {
    color: #999;
}

.dark-mode .info-button:hover {
    color: #fff;
}

.project-modal {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: transparent;
    backdrop-filter: none;
    opacity: 0; 
    transition: opacity 0.2s ease-out;
}

.project-modal.visible {
    opacity: 1;
}

.modal-content {
    position: absolute;
    background-color: #fff;
    padding: 15px;
    width: 250px;
    max-width: 90vw;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease-out;
}

.modal-content.fadeout {
    animation: modalFadeOut 0.2s ease-out forwards;
}


.dark-mode .modal-content {
    background-color: #333;
    color: #fff;
}

.modal-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem; 
    font-weight: bold;
    padding-right: 20px; 
}

.modal-description {
    font-size: 0.8rem; 
    line-height: 1.4;
    margin: 0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(5px);
    }
}

.quote-section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.quote-container {
    background-color: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.dark-mode .quote-container {
    background-color: rgba(34, 34, 34, 0.8);
}

.quote-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 20px;
}

.quote-text {
    font-style: italic;
    margin-right: 5px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.quote-attribution {
    font-style: normal;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.quote-label {
    font-size: 1.6rem;
    color: #898989;
    font-weight: bold;
}

.quote-below {
    font-size: 0.7rem;
    color: #898989;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .quote-section {
        padding: 0 15px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

@media (min-width: 768px) {
    .form-group input,
    .form-group textarea{
        width: 400px;
    }
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea{
        width: 280px;
    }
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.form-group button {
    padding: 8px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    height: 50px;
    font-weight: bold;
    font-size: 18px;
}

.dark-mode .form-group button{
    background-color: rgb(168, 168, 168);
    color: black;
}

.form-group button:hover {
    background-color: grey;
}

.footer {
    background-color: #f8f8f8;
    padding: 20px 15px;
    font-size: 14px;
    justify-content: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.dark-mode .footer {
    background-color: #222;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.dark-mode-switch {
    cursor: pointer;
    font-size: 1.5rem;
}

.dark-mode-switch .fa-sun {
    display: none;
    color: white;
}

.dark-mode-switch .fa-moon {
    display: inline-block;
    color: black;
}

body.dark-mode .dark-mode-switch .fa-sun {
    display: inline-block;
}

body.dark-mode .dark-mode-switch .fa-moon {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .generating {
    animation: spin 2s linear infinite;
  }