* {
    color: white;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Karim';
    src: url('./fonts/Karim-Regular.ttf');
}

.hero {
    background-image: url('images/hero_background.webp');
    background-color: black;
    background-repeat: no-repeat;
    height: 100vh;
    background-size: cover;
    background-position: bottom center;
    overflow: hidden
}

.projects {
    background-image: url('images/projects_background.webp');
    background-color: black;
    background-repeat: no-repeat;
    height: 100vh;
    background-size: cover;
    background-position: bottom center;
    overflow: hidden
}

.blogs {
    background-image: url('images/blogs_background.webp');
    background-color: black;
    background-repeat: no-repeat;
    height: 100vh;
    background-size: cover;
    background-position: bottom center;
    overflow: hidden
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
}

.hero-bg {
    position: relative;
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

#hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border: none;
    z-index: 0;
}

.hero-content {
    display: flex;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-family: Karim;
    gap: 0;
    overflow: visible; 
}

.hero-text {
    width: 66vw;
    font-size: clamp(3rem, 10vw, 8rem);
    margin: 0;
    text-align: center;
}

.hero-logo {
    min-width: 250px;
    width: 50vw;
    height: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 3vw;
    position: relative;
    z-index: 10;
}

.hero-buttons button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.hero-buttons img {
    width: clamp(80px, 10vw, 150px);
    height: auto;
}

.hero-buttons button:disabled {
    opacity: 1;
}

.hero-buttons button:enabled {
    opacity: 0.4;
}

.hero-buttons button:enabled:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.inspirations-section{
    gap: 1.5vw;
}

.section-title {
    display: block;
    margin: 3rem auto 3rem auto;
    max-width: 80%; 
    object-fit: contain;
    width: auto; 
    height: 30vh;
}

@media (max-width: 768px) {
    .section-title {
        height: 20vh;
    }
}

.anonymous-pro-bold {
    font-family: "Anonymous Pro", monospace;
    font-weight: 700;
    font-style: normal;
}

.about-box{
    width: 80vw;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
    border: 0.8vw solid white;
    background: black;
    font-family: "Anonymous Pro", monospace;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
}

.about-box:hover {
  box-shadow: 0 0 15px #FFFFFF;
}

.dialogue {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 60px);
}

.character {
    color: #92A0FB;
    min-width: 80px;
    margin: 0;
}

.about-text {
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.fun-fact-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    margin-top: 2rem;
    padding: 0 5vw; 
    width: 100%;
    box-sizing: border-box;
}

.rab-bot {
    width: clamp(120px, 20vw, 200px); 
    height: auto;
    flex-shrink: 0;
}

.fact-box {
    flex: 1 1 250px; 
    max-width: 100%; 
    padding: 1rem;
    margin: 1rem 0; 
    border: clamp(2px, 0.4vw, 5px) solid white;
    background: black;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-family: Karim;
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 3rem);
}

.hobbies {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 2vw;
}

.hobby-image {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.hobby {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    margin: 1rem;
    padding: clamp(1rem, 2vw, 2rem);
    border: clamp(4px, 1vw, 10px) solid white;
    background: black;
    font-family: "Anonymous Pro", monospace;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden
}

@media (max-width: 768px) {
    .hobby {
        max-width: 80%;
        margin: 1rem auto;
    }
}

.hobby:last-child {
    text-align: left;
    align-items: flex-start;
}

.hobby ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    width: 100%;
}

.hobby li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: clamp(0.9rem, 1.8vw, 1.5rem);
}

.hobby li::before {
    content: "•";
    color: #FFCC40;
    margin-right: 10px;
    flex-shrink: 0;
}

.hobby:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 15px #FFFFFF;
}

.star-rab-bot {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    align-self: flex-end;
    width: 80%;
    height: auto;
}

.inspirations-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 630px)); 
    justify-content: center;
    gap: 2vw;
    width: 100%;
    padding: 0 5vw; 
    box-sizing: border-box;
    overflow: hidden; 
}

.inspiration {
    display: flex;
    align-items: center;
    gap: 2vw;
    background: black;
    box-sizing: border-box; 
    border: clamp(4px, 0.8vw, 10px) solid white; 
    padding: 2vw;
    font-family: "Anonymous Pro", monospace;
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 1.8rem);
}

.inspiration:hover {
  box-shadow: 0 0 15px #FFFFFF;
}

.inspiration-image {
    width: 45%;
    height: auto;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@media (max-width: 1399px) {
    .inspirations-content {
        grid-template-columns: 1fr; 
        width: 80%;
        margin: 0 auto;
    }

    .inspiration {
        transform: translateX(10px); 
    }
    
    .inspiration:nth-child(even) {
        transform: translateX(-10px);
    }
}

@media (min-width: 1400px) {
    .inspiration:nth-child(4n+1),
    .inspiration:nth-child(4n+2) {
        transform: translateX(40px);
    }

    .inspiration:nth-child(4n+3),
    .inspiration:nth-child(4n+4) {
        transform: translateX(-40px);
    }
}

.socials {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(20px,2vw,2vw);
}

.Icon {
    background: none;
    border: none;
    padding: 1vw;
    cursor: pointer;
    transition: transform 0.15s ease;
    margin-top: 5vw; 
    display: flex;
    padding: 0;
}

.icon {
    width: 6vw; 
    height: 6vw;
    min-width: 40px;
    min-height: 40px;
    max-width: 100px;
    max-height: 100px;
}
.Icon:hover {
    transform: translateY(-4px);
}

.hero-icon:hover {
    filter: invert(10%) sepia(32%) saturate(6300%) hue-rotate(190deg) brightness(90%);
}

.projects-icon:hover {
    filter: invert(16%) sepia(36%) saturate(7300%) hue-rotate(300deg) brightness(85%) contrast(95%);
}

.download-font {
    text-align: center;
    font-family: "Karim", sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    white-space: nowrap;
    margin-top: clamp(2rem, 10vh, 6rem);
    margin-bottom: clamp(1rem, 5vh, 4rem);
    padding: 0 2vw;
    box-sizing: border-box;
    text-decoration: none;
}

.font-link-hero {
    color: #92A0FB;
    text-decoration: underline;
}

.font-link-projects {
    color: #CE5C86;
    text-decoration: underline;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    white-space: nowrap;
    font-family: Karim;
    font-size: clamp(0.8rem, 6vw, 2.5rem);
    text-decoration: none;
    width: 90vw;
    max-width: 1000px;
    margin: 4rem auto 2rem auto;
}

.footer p {
    margin: 0 10px;
}

.repo-link {
    text-decoration: none;
    color: inherit;
}

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

.Signature {
    width: clamp(100px, 30vw, 200px);
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
}
button:has(.button-centered) {
    display: block;
    margin: 2rem auto 2rem auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.button-centered {
    width: 176px;
    height: auto;
    image-rendering: pixelated;
    display: block;
}

.button-centered:active {
    transform: scale(0.95) translateY(2px);
}

.games-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

.game-card {
    width: 30vw;
    flex: 0 0 auto;
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
    border: 0.4vw solid white;
    transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 15px #FFFFFF;
}

.websites-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

.website-card {
    width: 40vw;
    flex: 0 0 auto;
    text-align: center;
    align-content: center
}

.website-card img {
    overflow: visible;
    width: 100%;
    height: auto;
    display: block;
    border: 0.4vw solid white;
}

.website-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 15px #FFFFFF;
}

@media (max-width: 768px) {
    .games-carousel, 
    .websites-carousel {
        display: block;
        height: auto;
        overflow: visible;
    }

    .games-group, 
    .websites-group {
        flex-direction: column;
        width: 100%;
        animation: none;
        gap: 40px;
        padding: 20px 0;
    }

    .game-card, 
    .website-card {
        width: 85vw;
    }
}