/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.5s, color 0.5s;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

/* Container */
.container {
    max-width: 800px;
    padding: 1.5rem;
}

/* Dark Mode Switch */
.dark-mode-switch {
    position: absolute;
    top: 10px;
    right: 20px;
}

.dark-mode-switch img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s ease-in-out;
}

.dark-mode-switch img:hover {
    transform: scale(1.1);
}

/* Ensure image visibility in dark mode */
body.dark-mode .dark-mode-switch img {
    filter: invert(1) hue-rotate(180deg); /* Invert colors for dark mode */
    display: block; /* Ensure the image stays visible */
}


/* Sections */
h1 {
    font-size: 2.5rem;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    text-align: center;
}

.bio {
    text-align: center;
    font-style: italic;
}

hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #ccc;
}

body.dark-mode hr {
    border-color: #444;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.skills-list span {
    background: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    color: #333;
    transition: background-color 0.5s, color 0.5s;
}

body.dark-mode .skills-list span {
    background: #333;
    color: #e0e0e0;
}

/* Contact Section */
.conttext {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.button {
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    margin-top: 0.2rem;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s;
}

.button:hover {
    background: #333;
    color: #fff;
}

body.dark-mode .button {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark-mode .button:hover {
    background: #e0e0e0;
    color: #121212;
}


/* Links */
.bloglist{
    text-align: center;
}
a {
    color: #3498db;
    text-decoration: none;
    font-size:1.1em;
    text-align: center;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  body.dark-mode a {
    color: #74b9ff;
  }