/* Main Styles for Personal Portfolio Website */
body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    min-height: 100%;
    scroll-behavior: smooth; /* Smooth scrolling */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #fff;
    background-color: inherit;
}

header .logo h1 {
    margin: 0;
    font-size: 2.5em;
    color: #333;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid #333;
    border-radius: 5px;
}

nav ul li a:hover {
    background: #666;
    border-color: #666;
    color: #fff;
}

.intro {
    text-align: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.intro h1 {
    font-size: 5em; 
    margin-bottom: 10px;
    color: #333;
}

.intro h2 {
    font-size: 2.5em; 
    margin-bottom: 20px;
    color: #555;
}

.intro p {
    font-size: 1.5em;
    color: #666;
}

.content {
    padding: 20px;
    background: #fff;
    margin: 20px auto;
    max-width: 800px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh; /* Ensure content covers at least the full viewport height */
    padding-bottom: 100px; /* Add space at the bottom */
}

h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

ul {
    padding-left: 20px;
    list-style-type: disc;
}

ul li {
    margin-bottom: 10px;
}

.profile-photo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.welcome-text {
    text-align: left;
}

.welcome-text p {
    font-size: 1.2em;
    line-height: 1.4;
    text-align: justify;
}

form label {
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #555;
}

.post {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.post h3 {
    margin-top: 0;
}

.post p {
    margin: 5px 0;
}

.title h1 {
    font-size: 3em; 
    text-align: center; 
    margin: 20px 0; 
    color: #333; 
}

#typed-output, #typed-about, #typed-projects, #typed-experience, #typed-blog, #typed-contact {
    font-size: 2.5em;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
}

#scrollToTopBtn {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 99; 
    font-size: 25px; 
    border: none; 
    outline: none; 
    background-color: #333; 
    color: white; 
    cursor: pointer; 
    padding: 5px; 
    border-radius: 10px; 
    width: 40px;
    height: 40px;
    transition: opacity 0.3s; 
}

#scrollToTopBtn:hover {
    background-color: #555; 
}

/* Default Light Theme */
body {
    background-color: #ffffff;
    color: #000000;
    img.broken {
        display: none;
      }      
}

header, .title, .content {
    background-color: inherit;
    color: inherit;
}

/* Skill Bar Default Style */
.skill-bar {
    width: 0;
    height: 30px;
    background-color: #000; 
    border-radius: 5px;
    margin-bottom: 10px;
    transition: width 1s;
}

/* Skill Bar Label */
.skill-bar-label {
    position: absolute;
    color: #fff;
    padding: 5px;
    line-height: 30px;
}

/* Dark Theme */
body.dark-theme {
    background-color: #000000; 
    color: #ffffff; 
}

body.dark-theme header,
body.dark-theme .title,
body.dark-theme .content {
    background-color: #000000; 
    color: #ffffff; 
}

body.dark-theme .skill-bar {
    background-color: #555555; 
}

/* Style for the typed elements */
#typed-output,
#typed-about,
#typed-projects,
#typed-experience,
#typed-blog,
#typed-contact {
    background-color: transparent; 
    color: inherit; 
}

/* Theme Toggle Button */
#themeToggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#themeToggle:hover {
    background-color: #555;
}

/* Floating Share Buttons */
.share-buttons {
    position: fixed;
    top: 80px; 
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.share-buttons button {
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s;
}

.share-buttons button:hover {
    background-color: #555;
}

.share-buttons button img {
    width: 30px;
    height: 30px;
}

/* Fade-in and fade-out animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-out {
    animation: fadeOut 1s ease forwards;
    opacity: 0; /* Ensure the element is hidden after fade out */
}

.hidden {
    opacity: 0;
    pointer-events: none; /* Disable interactions when hidden */
}