/* HEADER */
header {
    z-index: 100;
    width: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    left: 20px;
    top: 20px;
    background-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 50px;
    border-radius: 50%;
    height: auto;
}

h2 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: lighter;
}

/* HOME */
#home {
    background-color: #333;
    z-index: -2;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    min-height: 25rem;
}

#text {
    color: #fff;
    font-size: 8vw;
    cursor: default;
    user-select: none;
    font-family: 'Oswald', sans-serif;
}

#light {
    z-index: -1;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    box-shadow: 0 0 15px #fff,
        0 0 50px #fff,
        0 0 100px#fff,
        0 0 200px#fff,
        0 0 300px#fff;
}

/* MAIN */
.main {
    text-align: center;
}

.main p {
    font-family: 'Kelly Slab', cursive;
    color: white;
    margin-top: 30px;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-shadow: 0px 0px 20px white;
}

.main .ex-btn {
    font-family: 'Kelly Slab', cursive;
    width: 200px;
    display: flex;
    gap: 15px;
    font-size: 20px;
    flex-direction: column;
    color: var(--primary);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes swipeup {
    0% {
        bottom: 0px;
    }

    25% {
        bottom: 15px;
    }

    75% {
        bottom: 0px;
    }

    100% {
        bottom: 0px;
    }
}

.main .ex-btn span:nth-child(2) {
    transform: rotate(90deg);
    letter-spacing: -3px;
    position: relative;
    animation: swipeup 2s ease 1s infinite normal forwards;
}

@keyframes popup {
    0% {
        transform: scale(1);
    }
    
    25% {
        transform: scale(0.9);
    }
    
    75% {
        transform: scale(1);
        
    }
    
    100% {
        transform: scale(1);
    }
}

.main .ex-btn span:nth-child(1) {
    animation: popup 2s ease 1s infinite normal forwards;
}

#home .static-wave{
    position: absolute;
    bottom: 0;
    z-index: 10;
    width: 100%;
    height: 100px;
}

/* PROJECTS */
.projects {
    margin-top: 50px;
    
}

.projects .container{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 90%;
    max-width: 90rem;
    margin: 0 auto;
}


.projects h2 {
    text-align: center;
    margin-bottom: 20px;
}

.projects .container .project-card {
    display: inline-block;
    width: 25rem;
    min-width: 14rem;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: inset 16px 14px 14px rgba(0, 0, 0, 0.07), 25px 35px 20px rgba(0, 0, 0, 0.07), 8px 20px 6px rgba(0, 0, 0, 0.07), inset -20px -20px 20px rgba(255, 255, 255, 1);
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

.projects .container .project-card .title{
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects .container .project-card .title img{
    width: 25%;
    /* border: 1px solid red; */
    border-radius: 50%;
    
}

.projects .container .project-card .title h3{
    font-size: 1.3em;
    /* border: 1px solid black; */
    height: 100%;
}


.project-card p {
    margin: 20px 5px 10px 8px;
    font-size: 1.01em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #eee;
    margin: 5px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    background-color: #ddd;
    color: var(--primary);
}


/* FOOTER */
.footer {
    margin-top: 2rem;
    font-family: 'Kelly Slab', cursive;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--blue);
    padding: 10px 0;
}
.footer > div{
    width: 90%;
    max-width: 90rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.footer .footer-col {
    margin: 1rem;
    /* border: 1px solid red; */
}


.footer-col .social-links{
    display: flex;
    gap: 10px;
    
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.2s ease;
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #ffffff;
    transform: scale(1.1);
}


/* RESPONSIVENESS */
@media only screen and (max-width:870px) {
    #text {
        font-size: 9vw;
    }

    .main p {
        font-size: 4.5vw;
    }

    #light {
        opacity: 0;
    }
}

@media only screen and (max-width:540px) {
    header {
        justify-content: center;
    }

    .main {
        padding: 10rem 0;
    }

    .footer > div{
        width: 90%;
        max-width: 90rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media only screen and (max-width:310px) {
    .project-card{
        font-size: 12px;
    }
}