/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light Mode (default) */
body {
    font-family: cursive, sans-serif;
    line-height: 1.6;
    color: #000000;
    padding: 0 2%;
    background-image: url(naruto.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-color 0.3s ease;
}

header {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    color: #000000;
    padding: 2rem 2%;
    border-radius: 8px;
    position: relative;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    font-style: italic;
}

header nav ul {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

header nav ul li .highlight {
    color: #ff4500; /* Visible orange for light mode */
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}

header nav ul li .highlight:hover {
    color: #ff4500;
}

header nav ul li .highlight::before,
header nav ul li .highlight::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0; /* Use border instead of height */
    border-top: 2px solid #ff4500;
    transition: width 0.3s ease-out;
}

header nav ul li .highlight::before {
    top: 0; /* Position above the link */
    right: 0; /* Start from the right */
    border-top: 2px solid #ff4500;
    border-bottom: none;
}

header nav ul li .highlight::after {
    bottom: 0; /* Position below the link */
    left: 0; /* Start from the left */
    border-bottom: 2px solid #ff4500;
    border-top: none;
}

header nav ul li .highlight:hover::before {
    width: 100%; /* Expand from right to left */
}

header nav ul li .highlight:hover::after {
    width: 100%; /* Expand from left to right */
}

main {
    max-width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(25px);
    transition: background-color 0.3s ease;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
}

section h2 {
    margin-bottom: 1.5rem;
    color: #ff4500; /* Visible orange for light mode */
    border-bottom: 2px solid #ff4500;
    display: inline-block;
}

section.profile img {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 3s ease-in-out;
}

section.profile img:hover {
    transform: rotate(360deg);
}

section.profile p a {
    text-decoration: none;
    color: #ff4500; /* Visible orange for light mode */
    transition: text-decoration 0.3s ease;
}

section.profile p a:hover {
    text-decoration: underline;
}

section p {
    margin-bottom: 1rem;
}

section ul {
    list-style: none;
    padding-left: 2rem;
}

.skills ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    text-align: center;
    gap: 10px;
}

.skills ul li {
    background-color: #ff4500a3;
    color: #000000;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 1s ease-in-out;
}

.skills ul li:hover {
    transform: scale(1.1);
}

.projects ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.projects ul li {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(35, 36, 56, 0.37);
    color: #ff4500; /* Visible orange for light mode */
    margin: 0.5rem 0;
    padding: 1rem 2rem;
    width: 10rem;
    height: 10rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.projects ul li:hover {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
}

.projects ul li a {
    text-decoration: none;
    color: #ff6347; /* Tomato color for links */
}

.contact-links ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-top: 2rem;
}

.contact-links a {
    text-decoration: none;
    color: #ff4500;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #ff6347; /* Tomato color on hover */
    text-decoration: underline;
}

.contact-links ul li {
    list-style: none;
}

.contact-links ul li a {
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ff4500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    color: #000000;
}

.contact-links ul li a:hover {
    background-color: #ff6347; /* Tomato color on hover */
    color: #333333;
    text-decoration: none;
}

footer {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-size: large;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.607);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, color 0.3s;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#theme-icon {
    margin-right: 8px;
    font-size: 20px;
    color: #ff6347;
}

#theme-toggle:hover #theme-icon {
    animation: rotate 1s ease-in-out;
    color: #000000;
}

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

#theme-toggle:hover {
    background-color: #ff6347;
    color: #ffffff;
    transform: scale(1.1);
}

/* Dark Mode */
body.dark-mode {
    background-image: url(Gojo\ wallpaper.jpeg);
    color: #ffffff;
    background-color: #333333;
}

body.dark-mode header {
    background-color: #333333;
    color: #ffffff;
}

body.dark-mode section h2 {
    color: #ff4500; /* Visible orange for dark mode */
    border-bottom: 2px solid #ff4500;
}

body.dark-mode .skills ul li {
    background-color: #ff4500a3; /* Visible orange for dark mode */
    color: #ffffff;
}

body.dark-mode .projects ul li {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(35, 36, 56, 0.37);
    color: #ff4500; /* Visible orange for dark mode */
}

body.dark-mode .projects ul li:hover {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
}

body.dark-mode .contact-links ul li a {
    border: 2px solid #ff4500;
    color: #ffffff;
}

body.dark-mode .contact-links ul li a:hover {
    background-color: #ff4500;
    color: #ffffff;
}

body.dark-mode footer {
    background-color: #333333;
    color: #ffffff;
}

body.dark-mode #theme-toggle {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode #theme-toggle:hover {
    background-color: #ff4500;
}

body.dark-mode #theme-icon {
    color: #000000;
}

body.dark-mode #theme-toggle:hover #theme-icon {
    color: white;
}

@media (max-width: 768px) {
    header {
        font-size: 1.2rem;
    }

    main {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
    }

    section.profile img {
        width: 10rem;
        height: 10rem;
    }

    .skills ul li {
        font-size: 0.8rem;
    }

    .projects ul li {
        width: 10rem;
        height: 8rem;
        font-size: 0.8rem;
    }

    .contact-links ul li a {
        font-size: 0.8rem;
    }

    footer {
        font-size: 1rem;
    }
}

/* Add more responsive styles as needed */
@media (max-width: 480px) {
    body {
        font-family: Arial, Helvetica, sans-serif;
    }

    header {
        font-size: 1rem;
    }

    main {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
    }

    section.profile img {
        width: 8rem;
        height: 8rem;
    }

    .skills ul li {
        font-size: 0.6rem;
    }

    .projects ul li {
        width: 8rem;
        height: 6rem;
        font-size: 0.6rem;
    }

    .contact-links ul li a {
        font-size: 0.6rem;
    }

    footer {
        font-size: 0.8rem;
    }
}
