body {
    font-family: 'Cascadia Code', monospace;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 40px auto 10px;
    object-fit: cover;
    /* transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1; */
}

.profile-pic:hover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Use 'auto' for the original photo size */
    width: auto;
    height: auto;
    /* Add max values to prevent oversized images from breaking the layout */
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    cursor: pointer;
}

.profile-pic:hover ~ .overlay {
    opacity: 1;
    visibility: visible;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 5px 0;
}

.navigation {
    margin-bottom: 30px;
}

.navigation a {
    margin: 0 15px;
    color: #337ab7;
    text-decoration: none;
    font-weight: 600;
}

.navigation a:hover {
    text-decoration: underline;
}

main {
    text-align: left;
}

section {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.8em;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skills-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.skill-item {
    width: calc(20% - 10px);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    background-color: #fff;
    border: 2px solid #333333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.skill-item a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.skill-item a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .skills-list {
        flex-wrap: wrap;
    }
    
    .skill-item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .skill-item {
        width: 100%;
    }
}

.skill-item:not(:nth-child(4n))::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    height: 80%;
    border-right: 1px solid #ccc;
}

.skill-item a {
    color: inherit;
    color: #337ab7;
    text-decoration: none;
}

.skill-item a:hover {
    text-decoration: underline;
}

.name-link {
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.name-link:hover {
    color: #337ab7;
}

.name-link:hover::after {
    content: "visit";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: popup 0.3s ease forwards;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.clock-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 100;
}

#clock {
    font-size: 1.2em;
    font-weight: bold;
    color: #337ab7;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease, color 0.5s ease;
    white-space: nowrap;
}

#clock {
    font-size: 1.2em;
    font-weight: bold;
    color: #337ab7;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.dark-mode #clock {
    color: #bb86fc;
    background: rgba(42, 42, 42, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

#dropdown-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.dark-mode #dropdown-arrow {
    background: rgba(42, 42, 42, 0.8);
    color: #bb86fc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dark-mode #clock {
    color: #bb86fc;
    background: rgba(42, 42, 42, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dark-mode .dropdown-content {
    background-color: #2d2d2d;
}

.dropdown-content a {
    color: #337ab7;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.dark-mode .dropdown-content a {
    color: #bb86fc;
}

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

.dark-mode .dropdown-content a:hover {
    background-color: #3d3d3d;
}

.dropdown.show .dropdown-content {
    display: block;
}

#theme-toggle:hover {
    transform: scale(1.2);
}

#theme-toggle:active {
    animation: clickEffect 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes clickEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Smooth transitions for theme changes */
body {
    font-family: 'Cascadia Code', monospace;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, a, p {
    transition: color 0.5s ease;
}

.project-card {
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item a {
    transition: color 0.5s ease;
}

.navigation a {
    transition: color 0.5s ease;
}

#theme-toggle:hover {
    transform: scale(1.2);
}

#theme-toggle:active {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth transitions for theme change */
body {
    font-family: 'Cascadia Code', monospace;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    /* cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA6ElEQVQ4y7WUQQ6DMAwEV8qX+BF/6Bf6iX6oF3qkHtr0Aa26cYpsKkVqD5FWMzvjXRYAABGhKApU6c1hIcJms0EpRQAw57y11qK1xjlnACilIKVEKYVSCqUUOOcwxiCEwFpLkiRN0zjnAGCMQWuNUgqlFEqpO+c8AMw5jDEopVBKoZRCa421Fq01zjkAwDmH1hqtdUspDQDnnCulGABSSpRSKKVQSuG9x3uPEAIhhPfeA4C1Fq013nut9V0IQUrpUsqllJRSLoS4lFLmnHsppZRSaq3v3vvH4/E78wGSEzfE2Y0ZQQAAAABJRU5ErkJggg=='), auto; */
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Project Cards */
.projects-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.projects-track {
    display: flex;
    width: max-content;
    animation: slideLoop 40s linear infinite;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 220px;
    height: 180px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    margin: 0 10px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.project-card p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

@keyframes slideLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.dark-mode {
    background-color: #1a1a1a;
    color: #f9f9f9;
}

.dark-mode .project-card {
    background-color: #2d2d2d;
    border-color: #444;
    color: #f9f9f9;
}

.dark-mode .project-card p {
    color: #ccc;
}

.dark-mode .container {
    background-color: #1a1a1a;
    color: #f9f9f9;
}

.dark-mode a {
    color: #bb86fc;
}

.dark-mode a:hover {
    text-decoration: underline;
}

.dark-mode .navigation a {
    color: #bb86fc;
}

.dark-mode .navigation a:hover {
    text-decoration: underline;
}

.dark-mode h2 {
    border-bottom-color: #333;
}

.dark-mode .skill-item:not(:nth-child(4n))::after {
    border-right-color: #555;
}

.dark-mode .name-link {
    color: inherit;
}

.dark-mode .name-link:hover::after {
    background-color: #f9f9f9;
    color: #333;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .navigation a {
        display: inline-block;
        margin: 0 10px;
    }
    
    .clock-container {
        top: 15px;
        left: 15px;
    }
    
    .profile-pic {
        margin: 40px auto 5px;
    }
    
    h1 {
        margin: 5px 0;
    }
    
    #clock {
        font-size: 1em;
    }
    
    #theme-toggle {
        top: 15px;
        right: 15px;
    }
    
    .dropdown-content {
        min-width: 120px;
        right: 0;
        left: auto;
    }
}

#lyrics-display {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 1em;
    min-height: 2em;
    transition: opacity 0.5s ease;
}

.dark-mode #lyrics-display {
    color: #ccc;
    border-top: 1px solid #333;
}

.dark-mode .skill-tooltip {
    background-color: rgba(0, 0, 0, 0.7);
}

.dark-mode .tooltip-content {
    background-color: #2d2d2d;
    border-color: #333333;
}

.dark-mode .tooltip-skill {
    border: 1px solid #444;
}

.dark-mode .tooltip-skill:hover {
    background-color: #3d3d3d;
}

.dark-mode .skill-item {
    background-color: #2d2d2d;
    border-color: #333333;
}

.dark-mode .skill-item a {
    color: #bb86fc;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1001; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 80%; 
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.dark-mode .modal-content {
    background-color: #2d2d2d;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.dark-mode .close-button {
    color: #ccc;
}

.dark-mode .close-button:hover,
.dark-mode .close-button:focus {
  color: white;
}

.feedback-section {
  margin-top: 20px;
}

#feedback-form {
  display: flex;
  flex-direction: column;
}

#feedback {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Cascadia Code', monospace;
  font-size: 1em;
  box-sizing: border-box;
  resize: vertical;
  background-color: #f9f9f9;
  color: #333;
}

.dark-mode #feedback {
  background-color: #2d2d2d;
  color: #f9f9f9;
  border-color: #444;
}

#send-feedback {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #337ab7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Cascadia Code', monospace;
  font-size: 1em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

#send-feedback:hover {
  background-color: #285a94;
}

#send-feedback:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.dark-mode #send-feedback {
  background-color: #bb86fc;
  color: #1a1a1a;
}

.dark-mode #send-feedback:hover {
  background-color: #9a67ea;
}

.dark-mode #send-feedback:disabled {
  background-color: #6c757d;
}