@media (max-width: 600px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .project-card {
        flex-direction: column;
        text-align: center;
    }
    .skills-card {
        flex-direction: column;
        text-align: center;
    }
}







/* PROFILE AND ABOUT ME SECTION */
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    border: 4px solid #5a5a5a;
}
#about {
    text-align: center;
    padding: 20px;
}
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.about-content p {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: left;
}













/* TOGGLE DARK/LIGHT MODE BUTTON SECTION */
#theme-toggle {
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 0;
    outline: none;
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
#theme-toggle:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
    box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.3);
}
/* Icon styles */
#theme-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

body:not(.dark-mode) #theme-toggle {
    background-color: #fadbb183;
}
body.dark-mode #theme-toggle {
    background-color: #3d3d3d83;
}












/* HTML SECTION */
html {
    scroll-behavior: smooth;
}
/* Dark Mode (default) */
body {
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom right, #271e16, #6d533b);
    color: #ba8e68;
    margin: 0;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}
canvas { 
    display: block; 
}
header {
    background-color: #1e1e1e;
    color: #ba8e68;
    padding: 5px 0;
    text-align: center;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 1.4em;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

footer {
    background: #1e1e1e;
    color: #ba8e68;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #ba8e68;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
a {
    color: #ba8e68;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #fdc97a;
    text-shadow: 0 0 5px #363636;
    transition: all 0.3s ease;
}
a:hover.dark-mode {
    color: #333;
    text-shadow: 0 0 5px #363636;
    transition: all 0.3s ease;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #ba8e68;
}
nav ul li {
    margin: 10px 15px;
}
nav ul li a {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: bold;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}
.section {
    margin-bottom: 20px;
}
.section h2 {
    color: #ffc061;
}
/* Light Mode Styles */
body.dark-mode {
    background: linear-gradient(to bottom right, #cfcfcf, white);
    color: #333;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}
header.dark-mode {
    background-color: #ba8e68;
    color: white;
}
nav ul.dark-mode {
    background-color: #5a5a5a;
}
nav ul li a.dark-mode {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
footer.dark-mode {
    background-color: #333;
    color: white;
}
.section h2.dark-mode {
    color: #333;
}











/* PROJECTS SECTION */
#projects {
    background-color: #1e1e1e; 
    color: #ba8e68; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease; 
    transform: scale(0.92);
}
#projects h2 {
    padding-bottom: 1rem;
    border-bottom: 4px solid #ba8e68;
}
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    margin-top: 20px; 
    transform: scale(1.0);
}
.project-card {
    cursor: pointer;
    background-color: #ba8e68; 
    color: #1e1e1e;  
    display: flex;
    flex-direction: column;
    align-items: center;    
    text-align: center;
    padding: 15px; 
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease; 
}
#projects.dark-mode {
    background-color: #bbbbbb; 
    color: #333; 
}
#projects h2.dark-mode {
    border-bottom: 4px solid #333;
}
.project-card.dark-mode {
    background-color: #a7a7a7; 
    color: #333;  
}
.project-card:hover.dark-mode {
    background-color: #ba8e68; 
    color: #333;  
}
.project-card h3 {
    text-align: center; 
    margin: 0; 
}
.project-card p {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: justify;
    margin-top: 10px; 
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}
#projects:hover {
    transform: scale(0.95); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}









/* SKILLS SECTION */
#skills {
    background-color: #1e1e1e; 
    color: #1e1e1e; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease; 
    transform: scale(0.92);
}
#skills h2 {
    padding-bottom: 1rem;
    border-bottom: 4px solid #ba8e68;
}
#skills.dark-mode {
    background-color: #bbbbbb; 
    color: #333; 
}
#skills h2.dark-mode {
    border-bottom: 4px solid #333;
}
.skills-container {
    padding: 10px;
    margin-top: 20px; 
    transform: scale(1.0);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: start;
    align-items: stretch;
    align-content: stretch;
}

.skill:nth-child(1),
.skill:nth-child(2),
.skill:nth-child(3),
.skill:nth-child(4),
.skill:nth-child(5) {
    padding: 10px;
    background-color: #ba8e68;
    border-radius: 10px;
    flex-grow: 1;
    width: 150px;
    font-size: 17px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.skill:nth-child(1):hover,
.skill:nth-child(2):hover,
.skill:nth-child(3):hover,
.skill:nth-child(4):hover,
.skill:nth-child(5):hover {
    padding: 10px;
    background-color: #ba8e68;
    border-radius: 10px;
    flex-grow: 1;
    width: 150px;
    font-size: 17px;
    transform: translateY(-10px);
}

.skill:nth-child(1).dark-mode,
.skill:nth-child(2).dark-mode,
.skill:nth-child(3).dark-mode,
.skill:nth-child(4).dark-mode,
.skill:nth-child(5).dark-mode {
    padding: 10px;
    background-color: #a5a5a5;
    border-radius: 10px;
    flex-grow: 1;
    width: 150px;
    font-size: 17px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.skill:nth-child(1):hover.dark-mode,
.skill:nth-child(2):hover.dark-mode,
.skill:nth-child(3):hover.dark-mode,
.skill:nth-child(4):hover.dark-mode,
.skill:nth-child(5):hover.dark-mode {
    padding: 10px;
    background-color: #ba8e68;
    border-radius: 10px;
    flex-grow: 1;
    width: 150px;
    font-size: 17px;
    transform: translateY(-10px);
}
.skill-icon {
    width: 60px;
    height: 60px;
}

#skills:hover {
    transform: scale(0.95); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}








/* CONTACTS SECTION */
#contact {
    background-color: #1e1e1e; 
    color: #ba8e68; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease; 
    transform: scale(0.92);
}
#contact h2 {
    padding-bottom: 1rem;
    border-bottom: 4px solid #ba8e68;
}
.contact-container {
    display: flex; 
    justify-content: space-around; 
    margin-top: 20px; 
    transform: scale(0.93);
}
.contact-card {
    background-color: #ba8e68; 
    color: #1e1e1e; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    padding: 15px; 
    border-radius: 10px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease; 
    width: 300px; 
    margin: 10px; 
}
.contact-card:hover {
    transform: translateY(-10px);
}
#contact:hover {
    transform: scale(0.96);
}
.contact-card h3 {
    margin: 0; 
}

.contact-card p {
    font-size: 1rem; 
    line-height: 1.4; 
    margin-top: 10px; 
}

.contact-card a {
    color: #1e1e1e; 
    text-decoration: underline; 
}

.contact-card a:hover {
    color: #fdc97a; 
    text-shadow: 0 0 5px #363636; 
}

#contact.dark-mode {
    background-color: #bbbbbb;
}
#contact h2.dark-mode {
    border-bottom: 4px solid #333;
}
.contact-card.dark-mode {
    background-color: #a5a5a5;
}
.contact-card:hover.dark-mode {
    background-color: #ba8e68;
}








/* VIDEO SECTION */
.video-container {
    display: flex; 
    justify-content: space-around;
    margin-top: 20px;
}

.video {
    flex: 1; 
    margin: 10px;
    text-align: center;
}

.video iframe {
    width: 60%; 
    height: 315px; 
    border-radius: 10px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.video video {
    width: 60%; 
    height: 315px; 
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    background-color: black;
}