html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.loader-text {
    font-size: 3vw;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    overflow: hidden;
}

.loader-text span {
    color: #111;
    font-family: 'Anton SC', monospace ;
    letter-spacing: 1px;
    display: inline-block;
    transform: translateY(100%);
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgb(201, 201, 201);
    margin-top: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: #111;
    transition: width 0.4s ease;
}

#scroll-container{
    height: 100%;
    /* overflow: hidden auto; */
}

:root{
    --bg-color: white;
    --text-color: #111;
    --button-background: #111;
    --button-text: white;
    --button-hover-background: white;
    --button-hover-text: #111;
    --button-hover-border: #111;
    --lightBackground: white;
    --lightText: #111;
    --darkBackground: #111;
    --darkText: white;
    --darkShadow: rgba(255, 255, 255, 0.5);
    --darkButtonBackground: white;
    --darkButtonText: #111;
    --darkButtonHoverBackground: #111;
    --darkButtonHoverText: white;
    --darkButtonBorder: white;
    --darkButtonHoverBorder: white;
    --lightButtonBackground: #111;
    --lightButtonText: white;
    --lightButtonHoverBackground: white;
    --lightButtonHoverText: #111;
    --lightButtonBorder: #111;
    --lightButtonHoverBorder: #111;
}


body{
    /* cursor: none; */
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Jetbrains Mono', monospace;
}



body.theme-dark{
    --shadow: var(--darkShadow);
    --bg-color: var(--darkBackground);
    --text-color: var(--darkText);
    --button-background: var(--darkButtonBackground);
    --button-text: var(--darkButtonText);
    --button-hover-background: var(--darkButtonHoverBackground);
    --button-hover-text: var(--darkButtonHoverText);
    --button-border: var(--darkButtonBorder);
    --button-hover-border: var(--darkButtonHoverBorder);
}

body.theme-light{
    --bg-color: var(--lightBackground);
    --text-color: var(--lightText);
    --button-background: var(--lightButtonBackground);
    --button-text: var(--lightButtonText);
    --button-hover-background: var(--lightButtonHoverBackground);
    --button-hover-text: var(--lightButtonHoverText);
    --button-border: var(--lightButtonBorder);
    --button-hover-border: var(--lightButtonHoverBorder);
}

.navbar{
    box-sizing: border-box;
    padding-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    /* background-color: var(--bg-color); */
    background-color: transparent;
    /* position: fixed; */
    top: 0;
    left: 0;
    padding-bottom: 20px;
    z-index: 1;
    /* border-bottom: 1px solid var(--text-color); */
    /* animation: floatDown 2s ease forwards; */
    height: 80px;
}

a{
    font-size: 30px;
    color: black;
    text-decoration: none;
}

@keyframes floatDown {
from {
    opacity: 0;
    transform: translateY(-150px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.signature h1{
    font-family: 'Allison', cursive;
    font-weight: 500;
    font-size: 42px;
    font-style: italic;
    color: var(--text-color);
    letter-spacing: 3px;
    /* padding-left: 1.5vw; */
    position: fixed;
    left: 1vw;
    top: 20px;
}

.dynamic{
    display: flex;
}

#contact{
    font-family: 'Allison', cursive;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 3vw;
    height: 50px;
}

#contact a{
    font-size: 42px;
    color: var(--text-color);
    /* padding-right: 40px; */
    position: fixed;
    top: 20px;
    left: 88%;
}

#theme i {
    width: 80px;
    height: 50px;
    align-content: center;
    text-align: center;
    color: var(--text-color);
    transition: transform 0.6s ease, opacity 0.3s ease;
    position: fixed;
    left: 93%;
}

#theme i.bx-moon {
    transform: rotate(0deg);
    opacity: 1;
}

#theme i.bx-sun {
    transform: rotate(180deg);
    opacity: 1;
}

.language{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 3vw;
    height: 50px;
    position: fixed;
    left: 97%;
}

.language a{
    text-align: center;
    color: var(--text-color);
    padding-left: 40px;
    padding-right: 60px;
}

#overlay {
  position: fixed;
  left: 50vw;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
}

#popup {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#popup p{
    color: #111;
}

header{
    margin-top: -10vh;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 100px;
    text-align: left;
    overflow: hidden;
}

.text{
    text-align: left;
}

.header .text div{
    font-family: 'Anton SC', serif;
    text-align: left;
    justify-self: left;
    font-size: 200px;
    font-weight: bold;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    padding-right: 30px;
    animation-delay: 4s;
}

#text2{
    padding-top: 5px;
    font-family: 'Jetbrains Mono', monospace;
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 35px;
    padding-left: 40px;
    width: 100%;
    float:left;
    animation: floatRight 2.5s ease forwards;
}

.cursor-shadow {
    /* will-change: transform; */
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    pointer-events: none;
    border-radius: 20%;
    mix-blend-mode: difference; /* <-- Inverts colors behind */
    background: white;          /* White with 'difference' causes invert */
    transform: translate(-50%, -50%);
    z-index: 99999;
    transition: top 0.02s ease-out, left 0.02s ease-out;
    box-shadow: 0 0 50px var(--shadow);
  }


img{
    padding: 0;
    margin: 0;
    margin-left: -10vw;
    background-color: transparent;
    height: 1100px;
    animation: floatUp 1.4s ease forwards;
}

@keyframes floatUp {
from {
    opacity: 0;
    transform: translateY(400px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes floatLeft {
from {
    opacity: 0;
    transform: translateX(200px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.mainContent{
    margin-top: 300px;
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
}



@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-50px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.about-section{
    min-height: 50vh;
    width: 70vw;
    padding-left: 60px;
    margin-top: -100px;
    font-size: 24px;
    padding-bottom: 40vh;
    list-style:circle;
}

.about-section li{
    font-family: 'Jetbrains Mono', monospace;
    font-weight: 100;
    padding-bottom: 30px;
}

.about-section li span{
    font-weight: 600;
}

.about-section li {
  opacity: 0;
  transform: translateX(-500px);
  transition: opacity 1.6s ease, transform 1s ease;
}

.about-section li.visible {
  opacity: 1;
  transform: translateX(0);
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-bottom: 40vh;
    padding-right: 20px;
    padding-left: 20px;
}

.project {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.project.slide-left {
    transform: translateX(-300px);
}

.project.slide-right {
    transform: translateX(300px);
}

.project.animate {
    opacity: 1;
    transform: translateX(0);
}

.project:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    min-height: 350px;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    margin: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 100100;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
}

.project h2 {
    font-family: 'Anton SC', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.project p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    font-family: 'Jetbrains Mono', monospace;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-link {
    font-size: 20px;
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 100;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.skills{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding-bottom: 40vh;
    margin-top: -80px;
}

.masonry-skills{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 2fr));
    grid-auto-rows: 1fr;
    grid-gap: 18px;
    max-width: 80vw;
    width: 100%;
}

.brick{
    cursor: pointer;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2vw;
    padding-left: 2vw;
    padding-right: 2vw;
    min-height: 120px;
}

.brick:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.brick-header{
    font-family: 'Jetbrains Mono', monospace;
    color: white;
    font-weight: 600;
    margin: 0 auto 12px;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    font-size: 18px;
    text-align: center;
    width: fit-content;
}

.brick-content{
    font-family: 'Jetbrains Mono', monospace;
    color: black;
    line-height: 1.5;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
}

.wide{
    grid-column: span 2;
}

.worksHeader{
    font-family: 'Anton SC', serif;
    width: 100vw;
    text-align: left;
    display: block;
    box-sizing: border-box;
    font-size: 200px;
    padding-bottom: 20vh;
    padding-left: 30px;
    overflow: hidden;
}

#certificate{
    width: 100vw;
    display: flex;
    justify-content: left;
    align-items: center;
    padding-bottom: 40vh;
}

#certificate img{
    /* max-width: 900px; */
    width: 20vw;
    height: auto;
    box-shadow: 0 0 50px var(--shadow);
    padding: 0;
    margin:0;
    border: 12px solid grey;
    margin-left: 30px;
}

#certificate img:hover{
    cursor: pointer;

}

.worksHeader2{
    font-family: 'Anton SC', serif;
    width: 70vw;
    text-align: left;
    display: block;
    box-sizing: border-box;
    font-size: 200px;
    padding-bottom: 100vh;
    padding-left: 30px;
}

.blur-bottom {
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.line {
display: block;
overflow: hidden;
white-space: nowrap;
max-width: 100vw;
}

.char {
display: inline-block;
transform: translateY(100%);
opacity: 0;
transition: transform 0.85s ease-out, opacity 0.85s ease-out;
}

.visible .char {
transform: translateY(0);
opacity: 1;
}

footer{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
}

footer div:nth-of-type(1){
    padding-top: 33vh;
    color: grey;
    font-size: 28px;
}

footer div:nth-of-type(2){
    font-family: 'Anton SC';
    color: var(--text-color);
    font-size: 92px;
    letter-spacing: 4px;
}

.socials{
    display: flex;
    padding-top: 100px;
    gap: 50px;
}

.socials a{
    color: var(--text-color);
}

.socials a:hover{
    transform: scale(1.1);
    transition: all .6s ease;
}

#emailContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.tooltip {
    font-family: 'Jetbrains Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    position: absolute;
    top: 100%;
    margin-top: 15px;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

#emailContainer:hover .tooltip {
    opacity: 1;
    color: white;
}

#emailContainer.copied .tooltip{
    background-color: #4CAF50;
}

#copyright{
    text-align: center;
    max-width: 600px;
    letter-spacing: normal;
    margin-top: 30vh;
    letter-spacing: 1px;
}

.misc{
    width: 100vw;
    display: flex;
    align-items: center;
    height: auto;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

#version{
    max-width: 100px;
    text-align: left;
    padding-left: 30px;
}

#inspiration{
    max-width: 900px;
    text-align: center;
}

@keyframes floatRight {
from {
    opacity: 0;
    transform: translateX(-200px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}


/* Mobile (Small) */
@media (max-width: 480px) {
    /* Styles for tiny phones */

    .loader-text{
        font-size: 40px;
    }

    .navbar{
        height: 50px;
    }

    .signature h1{
        font-size: 24px;
        top: 12.5px;
    }

    #contact a{
        font-size: 24px;
        top: 12.5px;
        left: 60%;
    }

    #theme i{
        font-size: 20px;
        left: 70%;
    }

    .language{
        padding-right: 20px;
        padding-left: 0;
    }

    #langButton{
        font-size: 20px;
        left: 85%;
        padding-left: 0;
    }

    #overlay{
        margin-top: 100px;
        font-size: 8px;
        width: 200px;;
    }

    header{
        flex-wrap: wrap;
    }

    .header .text div{
        font-size: 48px;
        padding-left: 5px;
        padding-top: 100px;
    }

    #text2{
        padding-left: 10px;
        font-size: 12px;
        letter-spacing: .5px;
        width: 90vw;
        line-height: 10px;
    }

    img{
        height: 400px;
        width: auto;
    }

    .worksHeader{
        font-size: 42px;
        padding-left: 5px;
    }

    .about-section{
        font-size: 12px;
        padding-left: 30px;
    }

    .projects-container .project{
        flex-direction: column;
        flex-wrap: wrap;
    }

    .projects-container{
        padding: 5px;
        padding-bottom: 230px;
    }

    .project{
        margin: 0;
        padding: 0;
    }

    .project-content{
        padding-bottom: 30px;
    }

    .project-image{
        width: 93vw;
    }

    .project h2{
        font-size: 24px;
    }

    .tag{
        font-size: 10px;
    }

    .project p{
        font-size: 12px;
    }

    .project-link{
        font-size: 16px;
    }

    #skillsTitle{
        font-size: 28px;
    }

    .masonry-skills{
        grid-template-columns: repeat(auto-fill, minmax(120px, 2fr));
        grid-gap: 10px;
        max-width: 90vw;
    }

    .brick-header{
        font-size: 12px;
    }

    .brick-content{
        font-size: 10px;
    }

    #cert-title{
        font-size: 48px;
    }

    #certificate{
        padding-bottom: 20vh;
        display: flex;
        flex-direction: column;
        margin-top: -100px;
    }

    #certificate img{
        width: 80vw;
        border-width: 3px;
    }

    footer div:nth-of-type(1){
        font-size: 16px;
    }

    footer div:nth-of-type(2){
        font-size: 36px;
    }

    .socials{
        gap: 30px;
    }

    .socials a{
        font-size: 20px;
    }

    .tooltip{
        font-size: 10px;
    }

    #copyright{
        font-size: 8px;
        width: 100vw;
        margin-bottom: -60px;
        padding-bottom: 10px;
    }

    .misc{
        display: none;
    }
}

/* Mobile (Large) */
@media (min-width: 481px) and (max-width: 767px) {
    /* Larger phones */

}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    /* iPads, small tablets */

}

/* Laptop */
@media (min-width: 1024px) and (max-width: 1439px) {
    /* Standard laptops */

}

/* Desktop (Large) */
@media (min-width: 1440px) and (max-width: 1920px){
    /* Big monitors */
    .header .text div{
        font-size: 150px;
    }

    img{
        height: 1100px;
        margin-left: -20vw;
    }

    .about-section{
        padding-bottom: 100px;
        margin-top: 0;
    }

    .worksHeader{
        font-size: 150px;
        padding-bottom: 100px;
    }

    .skills{
        margin-top: -20px;
        padding-bottom: 30vh;
    }

    #cert-title{
        padding-bottom: 100px;
    }

    #certificate{
        padding-bottom: 20vh;
    }
}

@media (min-height: 1440px) and (min-width: 2560px){
    img{
        height: 1500px;
        margin-left: -200px;
    }

    .about-section{
        margin-top: 0;
        padding-bottom: 200px;
        font-size: 32px;
    }

    .worksHeader{
        padding-bottom: 100px;
    }

    .skills{
        margin-top: 0;
    }

    #certificate{
        padding-bottom: 20vh;
    }

    footer div:nth-of-type(1){
        font-size: 36px;
    }

    footer div:nth-of-type(2){
        font-size: 120px;
    }

    .socials a{
        font-size: 40px;
    }

    #copyright{
        margin-top: 35vh;
        font-size: 20px;
    }

    .misc{
        font-size: 20px;
    }
}

