@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/*Keyframes*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

* {
    font-family: "Public Sans", sans-serif;
    font-optical-sizing: auto;
    color: white;
}

html {
    min-height: 100%;
}

body {
    height: 100%;
    background: linear-gradient(#116ff3, rgb(138, 181, 255));

}

.headline-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1.headline {
    font-size: 50px;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    margin: 0;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.35);
}

#hamburger-wrapper {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#hamburger-menu {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    z-index: 1100;
    margin-bottom: 10px;
}
#hamburger-menu span {
    display: block;
    height: 3px;
    width: 30px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
#hamburger-menu.open span:nth-child(1) {
    transform: translateY(12.5px) rotate(45deg);
}
#hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
#hamburger-menu.open span:nth-child(3) {
    transform: translateY(-12.5px) rotate(-45deg);
}

#social-menu.social-container {
    position: absolute;
    top: 50px;
    left: 0;
    background: rgba(17, 111, 243, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}
#social-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#social-menu .social-icon {
    color: white;
    font-size: 22px;
    text-align: left;
    width: 100%;
}

.down-arrow {
    width: 150px;
    height: 150px;
    margin-top: 30px;
    color: white;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards,
               bounce 2s ease-in-out infinite;
    animation-delay: 1s, 2s;
}

#body-grid {
    display: grid;
    justify-items: center;
    align-items: center;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 5%;
}

.projects-container, .work-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects-container h2 {
    justify-self: left;
    font-size: 50px;
    margin: 15px;
    margin-bottom: 30px;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.35);
}

.work-container h2 {
    font-size: 50px;
    margin: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.35);
}

.experience-list, .card-grid {
    margin: auto auto;
    display: grid;
    grid-template-columns: auto;
    max-width: 80%;
    grid-gap: 20px;
    justify-items: center;
}

.card-grid {
    margin: auto auto;
    display: grid;
    grid-template-columns: auto auto;
    max-width: 80%;
    grid-gap: 20px;
    justify-items: center;
}

.card, .experience-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid white;
    border-radius: 30px;
    padding: 50px;
    width: 80%;
}

    .card p, .card h3, .card li, .card a {
        color: #000;        
    }

    .experience-card p, .experience-card h3, .experience-card li, .experience-card a {
        color: #000;        
    }

    .experience-details {
        list-style: none;
        padding: 0;
        margin: 15px 0 0 0;
    }

    .experience-details li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 12px;
        line-height: 1.6;
        font-size: 16px;
    }

    .experience-details li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #116ff3;
        font-weight: bold;
        font-size: 18px;
    }

    .experience-details li:last-child {
        margin-bottom: 0;
    }

    .card img {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 20px;
        transition: transform 0.2s ease;
    }

    .card img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.card-body a, .experience-header h3 {
    font-size: 30px;
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 600;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.35);
    text-decoration: none;
}

.social-container a {
    text-decoration: none;
    font-size: 25px;
} 

.social-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.skills-list li {
    background: rgba(17, 111, 243, 0.15);
    color: #116ff3;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(17, 111, 243, 0.08);
    transition: background 0.2s, color 0.2s;
    border: 1px solid #b3d1ff;
    display: inline-block;
}

@media screen and (max-width: 1300px) {

    .card-grid, .experience-list {
        display: grid;
        grid-template-columns: auto;
        max-width: 80%;
        grid-gap: 20px;
    }

    .card, .experience-card {
        display: flex;
        flex-direction: column;
        background: white;
        border: 2px solid white;
        border-radius: 30px;
        padding: 30px;
    }
}

@media screen and (max-width: 600px) {
    #hamburger-wrapper {
        top: 15px;
        left: 15px;
    }
    #social-menu.social-container {
        padding: 15px 18px;
        gap: 15px;
    }
}