/* Global Resets */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; 
}


/* General Styles */
body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6; 
}

body.darkmode {
    background-color: #333;
    color: white;
}

dialog.darkmode {
    background-color: #333;
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 3px solid #33C18B;
    transition: opacity 0.2s; 
}

nav a{
    border: none;
}

a:hover,
a:focus{
    opacity: 0.7;
    outline: none;
    cursor: pointer;
}

a.darkmode {
    color: white;
}

p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5em;
}

/* Typography */
h2 {
    margin-top: 2rem;
}

h1, h2 {
    font-size: 24px; 
}

@media (max-width: 468px) {
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }
}

/* Buttons */
button,
.social-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 0.7rem ;
}

.social-btn{
    padding: 0.6rem;

}

button:hover, 
.social-btn:hover {
    transform: scale(1.05);
    opacity: 0.7;
}

button:focus {
    outline: none;
}

button:active {
    transform: scale(1);
}

#toggle-theme-btn, #btn-hotkeys {
    font-size: 1.2rem;
}

/* Images */
img {
    max-width: auto;
    max-height: 200px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

#profile-image{
    margin-bottom: 2rem;
    max-width: 10rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

#cv{
    max-width: 80%;
    max-height: 80%;
    margin: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);

}

/* Containers */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

#gradientFill-Container{
    width: 100%;
    height: 8rem;
    background: linear-gradient(to right, #FFFFAD, #E9FBFF, #7AB9FF);
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin: 1rem;
   
}

body.darkmode #gradientFill-Container {
    background: linear-gradient(to right, #3a0ca3, #4361ee, #4cc9f0);
}


#social-buttons-container,
#creating-text-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
  
}

#profileImage-container{
      flex-direction: column; 
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 3rem;
      max-width: 10rem;

}

#imageGallery-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5rem;
    gap: 2rem;
}

#social-buttons-container{
    display: flex;
}

#content-container {
    margin: 5rem auto;
    max-width: 700px;
}

.closeDialogBtn-container{
    display: flex;
    justify-content: end;
}

#photography-text-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin-top: 4rem;
}


#toTopBtn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: none; 
    background-color: #333;
    border: none;
    padding: 12px 17px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    
}
    



/* Dialog */
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 90%;
    width: 400px;
    z-index: 1000;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Layout */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 2rem;
}

#cv-language-content{

    gap: 20px;
}

#cv-language-list-container{
    display: flex;
    gap: 15px;
}

/* Media Queries */
@media (max-width: 468px) {
    p {
        font-size: 16px;
    }

    #social-buttons-container{
        gap: 0.7rem;
        text-align: center;
        flex-direction: column;
    }

    #creating-text-container{
        flex-direction: column;
    }

    #imageGallery-container{
        flex-direction: column;
        align-items: center;
    }

    #profileImage{
        max-width: 130px;
    }

    #btn-hotkeys{
        display: none;
    }
}

/* Disable Hover on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    button:hover,
    .social-btn:hover {
        transform: none;
        opacity: 1;
    }
}
