@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root{
    --grid-color-one: rgb(255, 255, 255);
    --grid-color-two: rgb(245, 245, 245);
    --grid-size: 100px 100px;
    --grid-speed: 300s;

}

html {
    scrollbar-color: #378af2 #0000;
    scrollbar-width: thin;
}

body {
    display: flex;
    flex-direction: column;  /* stack children vertically */
    justify-content: flex-start; /* optional: start from top */
    align-items: center;        /* center horizontally */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-size: var(--grid-size);
    animation: scroll var(--grid-speed) linear infinite;
    background-image: repeating-conic-gradient(
        var(--grid-color-two) 0% 25%, 
        var(--grid-color-one) 0% 50%
    );
    overflow-y: visible;
    overflow-x: hidden;

    transform:rotate(-2deg);
}


@keyframes scroll {
    100% {
        background-position: 500% -1000%;
    }
}

.main-container {
    width: 70%;
    max-width: 1200px;
    margin: 2rem auto;
}

.project-card {
    display: flex;
    background: #378af2;
    padding: 0.6rem;
    gap: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    
    box-shadow: 10px 10px rgba(200, 200, 200, 1);
}

.project-card:hover {
    display: flex;
    background: #378af2;
    padding: 0.6rem;
    gap: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    
    box-shadow: 5px 5px rgba(200, 200, 200, 1);
    transform:translateY(4px);
}

.project-image {
    width: clamp(150px, 20vw, 315px);
    height: clamp(120px, 16vw, 250px);
    flex: 0 0 auto;
    box-sizing: border-box;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.2rem;
    outline: 3px solid white;
    outline-offset: -2px;
}

.project-content {
    flex: 1 1 auto;
    background: white;
    padding: 1rem;
    height: clamp(120px, 16vw, 250px);
    overflow-y: auto;
    border-radius: 0.2rem;
    box-sizing: border-box;
    
}

.project-content h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
    font-family:'Montserrat';
    font-weight:900;
    color:#0f4588;
}

.project-content p {
    font-size: 1rem;
    line-height: 1.6;
    font-family:'Montserrat';
    font-weight:500;
    color:#0f4588;
}

.project-button{
    background-color: #378af2;
    border: none;
    color: white;
    padding: 1vh 2vh;
    font-family:'Montserrat';
    font-weight:500;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 3px 3px rgba(200, 200, 200, 1);
}

/* Custom Scrollbar */
.project-content::-webkit-scrollbar {
    width: 0.6vw;
}

.project-content::-webkit-scrollbar-thumb {
    background: #378af2;
}


h2{
    margin:1%;
}

h2 a{
    font-family:'Montserrat';
    text-decoration:none;
    color:#378af2;
}

h2 a:hover{
    text-decoration:underline;
    color:#0f4588;
}

#back{
    padding:0px;
    margin:-10px 0 0 0;
    font-size:2vh;
    transform: rotate(2deg);
}

.title {
    background-color: #378af2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* centers horizontally */
    width: 110%;
    transform: rotate(3deg);
    top:-4vh;
}

#titletext{
    font-family: 'Montserrat';
    font-weight: 900;
    color: white;
    font-size: 15vh;
    padding: 0;
    margin:6vh 0 -2vh 0;
    text-align: center;

    position:relative;
    left:2vw;
}

#subtitletext{
    font-family: 'Montserrat';
    font-weight: 500;
    color: white;
    font-size: 2.5vh;
    padding: 0;
    margin: 0 0 2vh 0;
    text-align: center;

    position:relative;
    left:2vw
}

.signature{
    font-family:'Bebas Neue';
    color:#378af2;
    text-align:center;
    position:relative;
    font-size:1em;
    transform: rotate(2deg);
}

.signature a {
    color:#0f4588;
    text-decoration:none;
}

.signature a:hover{
    text-decoration:underline;
}

