body {
    font-family: 'Poppins', sans-serif;
    background-color: #1c1c1c;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
    
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #121212;
}

footer {
    background-color: #121212;
    color: #a5a5a5;
    padding: 20px 10%;
    text-align: center;
    font-size: 10px;
}

a, a:visited {
    color: #FFFFFF;  
    text-decoration: none; 
}

a:hover, a:active {
    color: #CCCCCC;  
}

 .k-menu {
    font-weight: bold;
}

.k-menu:hover {
    color: #FFFFFF;  
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
    font-size: 0.8em;
}

nav ul li a:hover {
    color: #a5a5a5;
}

section.content {
    padding: 100px 10%;
}

@media only screen and (max-width: 768px) {
    section.content {
        padding: 50px 5%;  
    }
}

#about .intro {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px; 
    line-height: 1.2;    
}
header h1 {
    font-size: 1.5em;
}


section.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #1c1c1c;
}

.hero-image, .hero-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-image img {
    height: 90%;
    max-width: 100%;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero-text h1 {
    margin-top: 0px;
    margin-bottom: 30px;
}

.hero-text {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 60px;
    line-height: 100%;
    padding-left: 50px;
}

.hero-headline {
    margin-bottom: 15px;
}

.hero-text .hero-headline {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 100%;
}

@media only screen and (max-width: 600px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 50px;
        padding-top: 20px;
        margin: 20px 0; 
        width: 100%;
        text-align: left;
        line-height: 0;
        
    }

        section.hero {
        display: block;
        text-align: left;
        width: 100%;
    }

}







#projects {
    position: relative;
    color: #fff; 
    margin-left: 10px;
}

.project {
    width: 100%; 
    background-size: cover;
    background-position: center;
    padding: 0px; 
    color: #ffffff; 
    text-align: center;
}

.more-projects {
    font-size: 12px;
    font-weight: normal;  
    text-align: right;  
    margin-top: 50px;  
    margin-right: 10px;;
    color: #ffffff; 
}


#p5-sketch {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
}



/* Skills Section */
#skills {
    padding: 100px 0; 
}

.skill-set {
    margin-bottom: 80px; 
}

#skills h2 {
    font-size: 24px;
    margin-left: 10px;
    margin-bottom: 20px; 
    text-align: left;
}

#skills p {
    font-size: 16px;
    margin-left: 10px;
    line-height: 1.8; 
    text-align: left;
}

@media only screen and (max-width: 768px) {
    #skills {
        padding: 50px 0;
        
    }
}

/* Learn More / Contact Section */
#learn-contact {
    text-align: center;  
}

#learn-contact h2 {
    font-size: 24px;  
}

.nav-link {
    text-decoration: none;  
    color: white;  
    transition: color 0.3s ease;  
}

.nav-link:hover {
    color: #a5a5a5;  
}

.hero-section {
    margin: 50px auto;
    padding: 50px;
    text-align: left;
    transform-style: preserve-3d;
    opacity: 1;
}

.hero-section h1 {
    max-width: 60%;
    font-size: 1.5em;
    margin-bottom: 24px;
    line-height: 1.3;
}

.p-container {
    margin-left: 40px;  
    margin-bottom: 100px;
    display: flex;
    justify-content: flex-end;  
}

.p-container p {
    font-size: 1em;
    width: 30%;
    line-height: 1.5;
    margin-top:  100px;
    margin-bottom: 5px; 
    margin-left: 10px;
}

.hero-section img.hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 600px) {
    .hero-section h1 {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 600px) {
    .p-container {
        max-width: 100%;
        height: auto;
        display: block;
        margin-top:  20px;
        margin-bottom: 20px; 
        margin-left: 0px;
    }
}


.image-caption {
    font-size: 0.8em;  
    color: #aaa;  
    text-align: center;  
    margin-top: 10px;  
}

#about-page main {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 50px;
}

#about-page section {
    display: flex;
    gap: 50px;
}

#about-page section img {
    max-width: 100%;
    border-radius: 5px;
}

#about-page section p {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.6;
}

@media only screen and (max-width: 768px) {
    .hero-section {
        padding: 20px;
    }

    .hero-section h1 {
        font-size: 1.2em;
        margin-bottom: 16px;
    }

    .p-container {
        margin-left: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .p-container p {
        width: 100%;
        margin-bottom: 16px;
    }

    .hero-section img.hero-image {
        width: 100%;
        max-width: none;
    }
}

.serious-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.text-part {
    width: 40%;  
    text-align: left;
    margin-left: 10px;
}

.serious-image {
    width: 45%;  
    margin-right: 10px;
}

.serious-image img {
    width: 100%;
    max-width: 600px;  
}

@media only screen and (max-width: 600px) {
    .serious-content {
        flex-direction: column;
    }
    .text-part, .serious-image {
        width: 90%;
        text-align: left;
    }
    .image-caption {
        text-align: center;
    }
}

.center-image {
    text-align: center;
    margin: 50px 0;
}

#event-img {
    max-width: 80%;
    height: auto;
}

.additional-info {
    margin: 50px auto;
    text-align: center;
    max-width: 800px; 
}

.additional-info h2 {
    font-size: 1.5em;
    margin-bottom: 24px;
}

.additional-info .text-columns {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 10px;
}

.additional-info p {
    font-size: 1em;
    line-height: 1.5;
    width: 48%; 
    margin-top: 100px;
}

.additional-info a {
    color: #ffffff; 
    text-decoration: underline;
    transition: color 0.3s ease;
}

.additional-info a:hover {
    color: #a5a5a5; 
}

.additional-info .text-columns {
    flex-direction: column;  
    align-items: center; 
}

.additional-info p {
    width: 100%;  
    margin-top: 20px; 
}

.socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    }
    
    .socials h2 {
        font-size: 1.5em;
    }
    
    .icons {
        display: flex;
        justify-content: center;
        gap: 30px;
    }
    
    .icons img {
        width: 40px;
        height: 40px;
        transition: transform 0.3s;
    }
    
    .icons a:hover img {
        transform: scale(1.1);
    }

    .contact-section {
        padding: 50px;
        text-align: center;
    }
    
    .contact-form {
        max-width: 800px;  
        margin: auto;
    }
    
    .half-width {
        float: left;
        width: 48%;
        padding: 0 8px;  
    }
    
    .full-width {
        clear: both;
        width: 100%;
        padding: 10px 0;
    }
    
    label {
        display: block;
        margin-bottom: 5px;
    }
    
    input[type="text"],
    input[type="email"],
    textarea {
        width: calc(100% - 20px);  
        padding: 10px;
        margin-bottom: 20px;  
    }
    
    textarea {
        height: 100px;  
        resize: vertical;
    }
    
/* Style for the button in normal state */
input[type="submit"] {
    background-color: white;
    color: black;
    border: 2px solid black; 
    padding: 10px 20px; 
    cursor: pointer; 
    transition: background-color 0.3s, color 0.3s; 
}

/* Style for the button on hover and on focus */
input[type="submit"]:hover,
input[type="submit"]:focus {
    background-color: black;
    color: white;
}

/* Style for the button on active (clicked) */
input[type="submit"]:active {
    background-color: black;
    color: white;
}

@media only screen and (max-width: 600px) {
    .half-width {
        width: 100%;
        padding: 0 0px;
    }
}