body
{
    font-family: "Inter", sans-serif;
}

#hero
{
    min-height: 100vh;
    max-height: 120vh;
    color: white;
    overflow-x: hidden;
    position: relative;
    font-family: "Winky Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: light;
    font-style: normal;
}

#hero-kyle-gregory
{
    margin-left: 3rem;
    margin-top: 3rem;
    font-size: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

#hero-description-container
{
    margin-top: 30vh;
    margin-left: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

#hero-sub-title
{
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

#hero-left {
    content: "";
    min-width: 70%;
    min-height: 100vh;
    background: linear-gradient(135deg, #B24BCB, #8B3AA3);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

#hero-right
{
    content: "";
    min-width: 100%;
    min-height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #64CB4B, #4A9B36);
    z-index: -2;
}

#hero-avatar-container {
    position: absolute;
    top: 30vh;
    left: calc(70vw - 100px);
    width: 200px;
    height: 250px;
    animation: float 6s ease-in-out infinite;
}

#hero-avatar-container::before,
#hero-avatar-container::after {
    content: "";
    position: absolute;
    height: 160px;
    width: 100px;
    border: 2px solid;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

#hero-avatar-container::before {
    top: -50px;
    left: -50px;
    border-color: #FFD2AB;
    animation-delay: -10s;
}

#hero-avatar-container::after {
    bottom: -50px;
    right: -50px;
    border-color: #6A85F6;
}

#hero-avatar-container-image
{
    min-width: 200px;
    min-height: 250px;
    background-image: url(/images/me.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#hero-avatar-container-image:hover {
    transform: scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#first-description
{
    text-align: center;
    max-width: 60%;
    margin: -2rem auto 0;
    padding: 2rem;
    background-color: #EFEFEF;
    border-radius: 1rem;
    position: relative;
    z-index: 1;
    min-height: 50vh;
}

#first-description-title
{
    font-size: 2rem;
    margin-bottom: 1rem;
}

.first-description-text
{
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#projects-section {
    background-color: #F5F5F5;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

#projects-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: #B24BCB;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-block;
    color: #B24BCB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #8B3AA3;
}

#footer {
    background-color: #B24BCB;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-link {
    color: white;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}


@media screen and (max-width: 1120px) and (min-width: 741px) {
    #hero-avatar-container {
        top: 7vh;
        left: calc(70vw - 100px);
    }
    #hero-avatar-container::before {
        top: -30px;
        left: -30px;
        border-color: #FFD2AB;
    }
    
    #hero-avatar-container::after {
        bottom: -30px;
        right: -30px;
        border-color: #6A85F6;
    }
}

@media screen and (max-width: 740px) {
    #hero-avatar-container {
        position: relative;
        top: 0;
        left: 0;
        margin: 3rem auto;
        display: block;
    }
    #hero-avatar-container::before {
        display: none;
    }
    
    #hero-avatar-container::after {
        display: none;
    }

    #hero-right {
        display: none;
    }

    #hero-left {
        display: none;
    }
    #hero
    {
        background-color: #B24BCB;
    }

    #hero-description-container {
        margin-top: 2rem;
        margin-left: 0;
        text-align: center;
    }

    #hero-kyle-gregory {
        margin-left: 0;
        text-align: center;
    }
}