@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Exo+2:wght@600&display=swap');

* {
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}
body {
    font-family: 'Exo 2', sans-serif;
    background: url('../images/background/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    line-height: 1.5;
    display : flex;
    flex-direction: column;
    min-height: 100vh;
}

header{
    background-color: rgb(0, 0, 0);
}

#nav-list{
    font-size: 90%;
    letter-spacing: 4px;
    float: right;
    padding-right: 50px;
}

#nav-list{
    line-height: 75px;
}

#nav-list ul{
    margin-right: 30px;
    list-style-type: none;
}

#nav-list li {
    float: left;
    margin-right: 25px;
  }

#nav-list a{
    text-decoration: none;
    color: #ffffff;
}

#nav-list a:hover{
    border-bottom: 1px solid #ffffff;
}

.active{
    border-bottom: 1px solid #ffffff;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    flex : 1 ;
}


#social-media i {
    font-size: 2.5rem; 
}

.text-image-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; 
}

.text-image-container img {
    width: 150px; 
    height: auto; 
    border-radius: 10px; 
}

.text-content {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
}

.text-content h2 {
    text-align: left;
    margin-bottom: 10px; 
}

.text-content p {
    text-align: justify;
}

#welcome {
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 15px; 
    padding: 20px; 
    width: 500px; 
    height: auto; 
    margin: 20px auto; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    text-align: center; 
}

#welcome img {
    border-radius: 10px; 
    width: 100px; 
    height: auto; 
    margin-bottom: 10px; 
}

/* Footer vertical layout and black & white icons */
footer {
    background: #000;
    color: #fff;
    padding: 30px 0 10px 0;
    width: 100%;
}


#social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-media-links h2 {
    color: #fff;
    margin-bottom: 15px;
    list-style: none;
    text-align: center;
}

.social-media-links ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    gap: 15px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.social-media-links li {
    margin: 0;
}

.social-media-links a {
    color: #fff;
    background: #000;
    font-size: 2.5rem;
    border-radius: 50%;
    padding: 10px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.social-media-links a:hover {
    background: #fff;
    color: #000;
}

/* Tools and Languages Section */
.tools-list, .languages-list, .web-dev-tools, .human-languages-list, .other-tools {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tools-list ul,
.languages-list ul,
.web-dev-tools ul,
.human-languages-list ul,
.other-tools ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}
/* dropdown menus */
.dropbtn {
  background-color: #3498DB;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #2980B9;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}

.link {
    color: inherit;         
    text-decoration: underline;
    font-weight: bold;      
}

/* Firefly effect */
canvas{
  filter: blur(1px);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  max-width: 100%;
}

.cdropdown-container {
  position: relative;
  z-index: 999;
}

.cdropdown-content {
    position: absolute;
    background-color: #000000;
    padding: 8px 30px;
    border-radius: 8px;

    z-index: 999;
    width: 100px;
    display: none;
    flex-direction: column;
    bottom: -240px;
    color: rgb(255, 255, 255);
}

.cdropdown-item{
    color: rgb(253, 253, 253);
}

.cdropdown-item a {
    
    color: rgb(255, 255, 255) !important;
}

.cdropdown-container:hover .cdropdown-content {
    display: flex;
}

ul.cdropdown-content {
    list-style: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    #nav-list {
        font-size: 80%;
        padding-right: 20px;
    }

    .text-image-container {
        flex-direction: column; 
        align-items: center; 
    }

    .text-image-container img {
        width: 100px; 
    }

    #welcome {
        width: 90%; 
    }

    .tools-list, .languages-list, .web-dev-tools, .human-languages-list, .other-tools {
        width: 90%; 
    }
    
}