html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

body {

    margin: 0;
    background: #ffffff;
    width: 100%;
    height: 100%;

    overflow-x: hidden;
    /*min-height: 100vh;*/

}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    scrollbar-width: none;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    display: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    font-family: Monaco, monospace;
    padding: 0 2% 1% 2%;

}




.profilePictureContainer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: 100vw;

    position: relative;
    overflow: hidden;
}

.profilePictureBackground{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:fit-content;
    z-index: 1;

}

/*round picture*/
.rounded-img {
    position: relative;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    margin-top: 2%;
}


.GreetingText{
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 750px;
    max-height: 700px;
    font-size: 17px;
    font-family: Monaco, monospace;
    flex: 2;
    z-index: 2;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 0;
    height: 80px;
}

.nav-bar {
    display: flex;
    gap: 0;

    margin: 0;
    padding: 0;
}

nav ul {
    display: flex;

    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
    justify-content: space-between;

}
nav ul li a {

    color: white;
    font-size: 18px;
}

.nav-bar li a {
    text-decoration: none; /* remove default underline */

    transition: all 0.3s ease; /* smooth effect */
}

.nav-bar a:hover {
    text-decoration: underline;
    color: #444444;

}

main {
    flex: 1;
}

section {
    min-height: 70vh;
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.6s ease-out;
    font-family: Monaco, monospace;
    /*margin-bottom: 70px;*/
}

section h2 {

    margin-bottom: 1em;
    font-weight: bold;
    font-size: 2rem;
    color: #222;

}
section h3 {


}

section.active {
    opacity: 1;
    transform: translateY(0);
}

#home{
    margin-bottom: 130px;
}

#experience {
    padding: 60px 20px;

}

#experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
#experience h3 {
padding: 0 0 0 20px;
}

.experience-category {
    margin-bottom: 90px;
}

.experience-category h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #222;
}

.skillLogo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 150px;
    font-size: 20px;

}

.skillLogo i {
    font-size: 100px;
}


.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 20px;
}
.logo-grid-Database {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 20px;
}
.logo-grid-Tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 20px;
}
.logo-grid-Other {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 20px;
}

.logo-card {
    background: white;
    padding: 10px;
    max-width: 200px;
    max-height: 230px;
    border-radius: 8px;
    box-shadow: 8px 6px 10px 0 rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;


}

.logo-card img {
    width: 100%;
    height: 60%;
    /*max-width: 200px;*/
    /*max-height: 135px;*/
    object-fit: contain;
    margin-bottom: 8px;
    justify-content: flex-start;
}

.logo-card span {
    font-size: 1rem;
    color: #444;
}


.skillLogo:hover{
    transform: scale(1.1) translateY(-3px);
}


.skill {
    margin-top: auto;
    /*margin-bottom: 20px;*/
    max-width: 400px;
    width: 100%;
    padding: 0 0 0 0 ;

}

.skill-name {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0px;
    display: block;
}

.skill-name2 {
    font-weight: bold;
    margin-top: 43px;
    margin-bottom: 6px;
    display: block;

}

.databaseContainer{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 110px;
    height: 150px;

}

.databaseContainer .skillLogo {
    max-width: 95%;
    max-height: 80%;

}

.databaseContainer .img {
    max-width: 95%;
    max-height: 95%;
}

.skill-bar {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    gap: 2px;
}

.bar {
    flex: 1;
    height: 100%;
    background-color: #ddd;
    border-radius: 4px;
    transition: background-color 5.3s ease;
}

.bar.filled {
    background-color: #4caf50;
}

.skill-level-label {
    font-size: 0.9rem;
    color: #333;
    font-style: italic;
    margin-top: 6px;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

#projects h2{
    padding: 0 0 0 20px;
}


/* Images take full card */
.project-card img {
    width: 100%;
    height: 55%;
    display: block;
    transition: transform 0.3s ease;
}


/* Overlay div hidden by default */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}


/* Project cards */
.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-height: 500px;
    max-width: 500px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-card-smart-me {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-height: 500px;
    max-width: 500px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.project-card-smart-me img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.smartImageWrapper{
    max-height: 500px;
    max-width: 487px;
}


.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


/* Zoom on hover */
.project-card:hover img {
    transform: scale(1.05);
}
.project-card-smart-me:hover img {
    transform: scale(1.05);
}

/* Overlay hidden by default */
.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.project-card-smart-me .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Show overlay on hover */
.project-card:hover .overlay {
    opacity: 1;
}
.project-card-smart-me:hover .overlay {
    opacity: 1;
}

/* Overlay text styling */
.overlay-text h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.overlay-text p {
    font-size: 1rem;
    line-height: 1;
}



form input, form textarea, form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

.project-actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.project-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 20px;
    text-decoration: none;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-btn.github {
    background-color: #24292e;
}

.project-btn.live {
    background-color: #1e90ff;
}

.project-btn:hover {
    transform: scale(1.15);
}




.switch-container {
    padding: 0 0 0 50px;
    margin-left: 50%;

}

.switch {
    padding: 0 20px 40px 0;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 25px;
}


.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


@keyframes dance {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    25%  { transform: translateY(-7px) rotate(-4deg) scale(1.05); }
    50%  { transform: translateY(0) rotate(4deg) scale(1); }
    75%  { transform: translateY(-7px) rotate(-4deg) scale(1.05); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

.LightDarkLabel{
    padding: 10px 0 0 10px;
    width: 90px;
    color: white;
    align-content: center;
    display: inline-block;
    animation: dance 2.5s ease-in-out infinite;
}


.typing {
    border-right: 2px solid #020202;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #000000; }
}




.top-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

}

.social-links a {
    text-decoration: none;
    margin-bottom: 15px;
    color: #c8c6c6;
    transition: color 0.3s;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;

}


.social-links .githubLogo:hover{
    color: black;
    transform: scale(1.2);
}

.social-links .LinkedinLogo:hover{
    color: #1874bf;
    transform: scale(1.2);

}





.social-links .ResumeLogo:hover {
color: #912020;
    transform: scale(1.2);

}






#contact {
    width: 100%;
    background-color: transparent;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

#contact h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: Monaco, monospace;
}

#contact-form {
    width: 100%;
    max-width: 500px;
}

#contact-form button, #contact-form input , #contact-form textarea {
    width: 100%;
}

#contact input {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 7px;
    font-family: Monaco, monospace;
}

#contact form textarea {
    margin-bottom: 15px;
    border-radius: 9px;
    font-family: Monaco, monospace;
}

#contact form button {;
    margin-bottom: 15px;
    border: none;
    border-radius: 9px;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    font-family: Monaco, monospace;
}

#contact button:hover {
    background-color: #494949;
}


#contact input::placeholder,
#contact textarea::placeholder {
    color: #000000;
}

#contact input,
#contact textarea {
    border: 1px solid #818181;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#contact input:focus,
#contact textarea:focus {
    border: 2px solid #000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}


.footer{

    text-align: center;
    background-color: black;
    padding: 35px 0;
    color: white;
    font-family: Monaco, monospace;
    width: 100%;
}


#top-button {
    height: 40px;
    width: 80px;
    border-radius: 50px;
    --glow-color: rgb(255, 31, 31);
    --glow-spread-color: rgb(255, 0, 0);
    --btn-color: rgb(253, 81, 81);

    border: .25em solid var(--glow-color);
    color: var(--glow-color);
    font-size: 15px;
    font-weight: bold;
    background-color: transparent;
    outline: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;

}

#top-button::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(2em);
    opacity: 0;
    transform: perspective(1.5em) rotateX(35deg) scale(1, .6);
    transition: opacity 0.3s;
}

#top-button:hover {
    color: var(--btn-color);
    background-color: var(--glow-color);
    box-shadow:
            0 0 1em .25em var(--glow-color),
            0 0 4em 2em var(--glow-spread-color),
            inset 0 0 .75em .25em var(--glow-color);
}

#top-button:hover::after {
    opacity: 0.9;
}

#python {
    transform: translateY(-12px);
}

@media (max-width: 1300px) {
    #experience{
        margin-top: 60px;
    }

    .rounded-img{
        width : 350px;
        height: 350px;
    }
    .GreetingText {
        width: 60%;
        font-size: 14px;
        padding-left: 5%;

    }
}

@media (max-width: 991px) {
    nav {
        padding: 0 10px;
    }

    .nav-bar {
        flex-direction: row;
        align-items: center;

    }

    .nav-bar li {
        margin: 5px 10px;
    }

    .nav-bar li a {
        font-size: 16px;
    }

    .switch-container {
        margin-left: 0;
        padding: 0;
    }
}

@media (max-width: 900px) {

    #projects .projects-grid{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

}

@media (max-width: 768px) {

    .rounded-img{
        width : 250px;
        height:250px;
    }

    .top-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top:10%;
    }
    .social-links {
        flex-direction: row;
        justify-content: center;
    }

}

@media (max-width: 700px) {
    #experience{
        margin-top: 90px;
    }
}

@media (max-width: 575px) {

    .profilePictureContainer{
        display : flex;
        flex-direction: column;
    }
    .GreetingText {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;

    }

    nav {
        padding: 0 5px;
    }

    .nav-bar {
        flex-direction: row;
        align-items: center;

    }

    .nav-bar li a {
        font-size: 14px;
    }

    .switch-container {
        margin-left: 0;
        padding: 0;
    }

    #top-button {
        width: 60px;
        height: 35px;
        font-size: 13px;
    }

    .LightDarkLabel {
        width: 70px;
        font-size: 12px;
    }

    #projects .project-card, .project-card-smart-me{
        width: 340px;
        height: 200px;
    }


}


