
*{
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;

    
}


html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}


body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: rgb(25, 18, 18);
  
}

nav{
    display: flex;
   width: 100%;
   justify-content: flex-start;
   
   

}

#navAbout>h3{
    color: #ffe9e9f2;
}

.navBg {
    display: flex;
    width: 100%;
    height: max-content;
    align-items: center;
    z-index: 1;
    font-family: raleway, sans-serif;
    justify-content: space-evenly;
    padding: 0px;
}
.navBg > h3 {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-top: 5vh;
    font-size: clamp(.6rem, .4vw, 20px);
    
}

nav a {
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    padding: 7px 5vw;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: url(#filter);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)

}

.background {
    margin: 0;
    padding: 0;
    
    height: 100%;
    width: 100%;
    display: block;
}

#backgroundPortfolio{
    background:
    radial-gradient( 
    farthest-corner at top left,
    #ffe9e9 0%,
    #e2cbe8 40%, 
    transparent 100%),

    radial-gradient(
    farthest-corner at top right, 
    rgb(95, 206, 231) 20%,
    rgb(207, 223, 255) 40%, 
    transparent 100%), 

    radial-gradient(
    farthest-corner at bottom center, 
    rgb(255, 231, 246) 0%,
    rgb(245, 245, 245) 50%, 
    transparent 100%) ;
    animation: radialGradient 10s ease infinite;
    background-size: 400% 400%;
}

#backgroundAbout{
    background:
    radial-gradient( 
    farthest-corner at top left,
    #222222 0%,
    #2f291d 40%, 
    transparent 100%),

    radial-gradient(
    farthest-corner at top right, 
    rgb(35, 38, 38) 20%,
    rgb(83, 83, 83) 40%, 
    transparent 100%), 

    radial-gradient(
    farthest-corner at bottom center, 
    rgb(57, 44, 52) 0%,
    rgb(126, 126, 126) 50%, 
    transparent 100%) ;
    animation: radialGradient 10s ease infinite;
    background-size: 400% 400%;
    
}


@keyframes radialGradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 100%;
	}
	100% {
		background-position: 0% 50%;
	}
}


#backgroundAbout.weebMode{
    background:
    radial-gradient( 
    farthest-corner at top left,
    #8c1f1f 0%,
    #0f6396 40%, 
    transparent 100%),

    radial-gradient(
    farthest-corner at top right, 
    rgb(24, 115, 115) 20%,
    rgb(18, 43, 102) 40%, 
    transparent 100%), 

    radial-gradient(
    farthest-corner at bottom center, 
    rgb(151, 23, 102) 0%,
    rgb(173, 146, 30) 50%, 
    transparent 100%) ;
    animation: radialGradient_weeb 3s ease infinite;
    background-size: 400% 400%;
    
}


@keyframes radialGradient_weeb {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 100%;
	}
	100% {
		background-position: 0% 50%;
	}
}




.container {
    display: grid;
    margin-top: 15vh;
    width: 100%;
    height: 70%;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;

    justify-self: center;
    align-self: center;
}


.card1 { grid-area: 1 / 1; }
.card2 { grid-area: 1 / 2; }
.card3 { grid-area: 1 / 3; }
.card4 { grid-area: 2 / 1; }
.card5 { grid-area: 2 / 2; }
.card6 { grid-area: 2 / 3; }
.card7 { grid-area: 3 / 1 / 3 / 4; }

.card{
    display: grid;
    grid-template-areas: "stack";
   
    box-shadow: 6px 4px 6px rgba(0, 0, 0, 0.1);

    z-index: 0;
    font-family: raleway, sans-serif;
    padding: 0px;
    overflow: hidden;
    background-color: azure;
}



.card > * {
    grid-area: stack;
    
}

.card > h1 {
    z-index: 1;
    align-self: flex-end;
    justify-self: end;
    padding: 10px;
    color: rgba(42, 41, 41, 0.626);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    padding: 7px 10px;
    border-radius: 10px;
    background-color: rgba(227, 227, 227, 0.586);
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    margin-right:10px ;
    font-size: 2vh;
    backdrop-filter: url(#filter);
    -webkit-backdrop-filter: blur(2px);
}

.gridBg{
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    animation: crossfade ease-in-out 12s infinite;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.image1 {
    animation-delay: 8s; 
}

.image2 {
    animation-delay: 4s; 
}

.image3 {
    animation-delay: 0ms; 
}

@keyframes crossfade {
  0% { opacity: 0; }
  17% { opacity: 1; } /* Image fully visible for a period */
  33% { opacity: 1; }
  50% { opacity: 0; } /* Fade out */
  100% { opacity: 0; }
}


.card > * {
    grid-area: stack;
    object-fit: cover;
}


.card7 {
    height: inherit;
   text-align: center;
   justify-items: center;
   
   letter-spacing: 1em;
   text-transform: uppercase;
   color: rgba(69, 69, 69, 0.508);
   grid-column: span 3;
   text-shadow: 2px 2px 4px rgba(145, 145, 145, 0.243);
   -webkit-text-stroke: .5px rgba(231, 231, 231, 0.679);
}

.card7>h2 {
    margin-top: 20px;
    font-size:2vw;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;

}
@media screen and (max-width:600px) {
   
.body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.background{
    width: 100%;
    height: 200%;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    flex-direction: column;
    gap: 0;
    width: 100vw;
    height: auto;
    margin-top: 5vh;
    
}

.card>h1 {
    font-size: .7rem;
}

.card {
        /* Keep the internal "stack" for the images/text, 
           but the card itself now follows the Flexbox flow */
        display: grid; 
        grid-template-areas: "stack"; 
        height: 100px !important;   
        overflow: hidden;         /* Give them a fixed height so they don't collapse */
        width: 100%;
        position: relative;       /* Ensures layering stays internal */
    }

.card1, .card2, .card3, .card4, .card5, .card6, .card7 {
    grid-area: auto !important; 
    grid-column: auto !important;
    grid-row: auto !important;
    height: fit-content;
}
}

@media (hover:hover){
    
.card1:hover{
    grid-column: 1 / span 2 ;
    z-index: 100;
    
}

.card2:hover{
    grid-row: span 2 / 3 ;
    z-index: 100 ;
}
.card2:hover > h1{
   align-self: flex-end ;
   justify-self: center ;
}


.card3:hover{
    grid-column: 2 /  span 2 ;
    order: 2 ;
    z-index: 100 ;
    
}

.card3:hover > h1{
   align-self: flex-end ;
   justify-self: flex-start ;
   margin-left: 10px ;
}

.card4:hover{
    grid-row: 1 / span 2 ;
    order: 2;
    z-index: 100;
}



.card4:hover > h1{
   align-self: flex-start;
   justify-self: center;
   margin: 10px;
}


.card5:hover{
    grid-column: 2 /  span 2;
    order: 2;
    z-index: 100;
    
}

.card6:hover{
    grid-row: 1 /  span 2;
    z-index: 100;

}

.card6:hover > h1{
   align-self: flex-end;
   justify-self: center;
   margin: 10px;
}

}


@media (hover: none) {

    .card1:hover, 
    .card2:hover, 
    .card3:hover, 
    .card4:hover, 
    .card5:hover, 
    .card6:hover {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        height: 100px !important;
        z-index: 1 !important;
        
    }

.card1,.card2,.card3,.card4,.card5,.card6:hover > h1 {
        align-self: flex-end !important;
        justify-self: end !important;
        
    }

    }

/* about */

.aboutBody {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: raleway, sans-serif;
}

.about {
    display: flex;
    margin-top: 20vh;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    gap: 20px;
    
}



#photo {
    position: relative;
    width: 300px;
    height: auto;
    object-fit: cover;
    min-height: 100%;
    margin-right: 20px;
    padding-top: 0;
    border-radius: 20px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    z-index: 0;
}

.aboutText {
    position: relative;
    display: inline-block;
    flex:1;
    flex-direction: column;
    justify-content: center;
    z-index: 0;
}

.aboutText > h3 {
    font-size: 2rem;
    color: #e9e9e995;
    margin-bottom: 20px;
}

.aboutText > p {
    font-size: clamp (1vw 1em 10pt);
    text-align: justify;
    color: #e9e9e995;
}

#weeb {
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    
}


#sticker {
    z-index: 100;
    width: 100%;
    height: auto;
    position: relative;
    display: none;
    
}

.sticker {
    position: absolute;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1/1;
    
}

.anime1 {
inset-inline-start: 6vw;
inset-block-start: 10vh;
}

.anime2 {
inset-inline-start: 20vw;
inset-block-start: 60vh;
}

.anime3 {
inset-inline-start: 25vw;
inset-block-start: 1vh;
}

.anime4 {
inset-inline-start: 80vw;
inset-block-start: 50vh;
}

.anime5 {
inset-inline-start: 70vw;
inset-block-start: 68vh;

}

.anime6 {
inset-inline-start: 60vw;
inset-block-start: 10vh;
width: 30px;
}

.anime7 {
inset-inline-start: 70vw;
inset-block-start: 20vh;
}

.anime8 {
inset-inline-start: 80vw;
inset-block-start: 1vh;
}

.anime9 {
inset-inline-start: 10vw;
inset-block-start: 60vh;
width: 40px;
}