html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-image: url('back.png');
    background-color: #0b0b0b;
    color: #e0e0e0;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #8A2BE2;
    margin-bottom: 20px;
    object-fit: cover;
}

h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 15px;
    color: #a0a0a0;
}

.contact-info {
    font-size: 1rem;
    margin-top: 20px;
    color: #a0a0a0;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
}

.projects-section {
    padding: 60px 20px;
    text-align: center;
    background-image: url('back.png');
    background-color: #0b0b0b;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #0b0b0b;
    border: 2px solid #8A2BE2;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.project-icon-container {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    overflow: hidden; 
}

.project-image {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
    object-fit: cover; 
    border-radius: 50%; 
}

.discord-button {
    display: inline-block;
    background-color: #333333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.discord-button:hover {
    background-color: #8A2BE2;
    transform: translateY(-2px);
}

.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.top-controls button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

#theme-toggle .fa-sun {
    display: none;
}

body.light-theme #theme-toggle .fa-sun {
    display: inline-block;
}

body.light-theme #theme-toggle .fa-moon {
    display: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
    }

    .contact-info {
        font-size: 0.9rem;
    }

    .social-links a {
        font-size: 1.4rem;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-section {
        padding: 40px 15px;
    }

    .project-card {
        padding: 20px;
    }

    .project-card h3 {
        font-size: 1.4em;
    }

    .project-card p {
        font-size: 1em;
    }

    .discord-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

body.light-theme {
    background-color: #ffffff;
    color: #333333;
}

body.light-theme .description,
body.light-theme .contact-info {
    color: #666666;
}

body.light-theme .social-links a {
    color: #333333;
}

body.light-theme .social-links a:hover {
    color: #000000;
}

body.light-theme .projects-section {
    background-color: #f8f8f8;
}

body.light-theme .section-title {
    color: #000000;
}

body.light-theme .project-card {
    background-color: #ffffff;
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light-theme .project-card h3 {
    color: #333;
}

body.light-theme .project-card p {
    color: #666;
}

body.light-theme .project-icon-container {
    background-color: transparent; 
}

body.light-theme .discord-button {
    background-color: #8A2BE2;
}

body.light-theme .discord-button:hover {
    background-color: #8A2BE2;
}

::-webkit-scrollbar {
    width: 4px; 
}

::-webkit-scrollbar-track {
    background: #333; 
}

::-webkit-scrollbar-thumb {
    background: #8A2BE2; 
}

::-webkit-scrollbar-thumb:hover {
    background: #8A2BE2; 
}

body.light-theme ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #6a0dad; 
    border: 3px solid #f0f0f0;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #8A2BE2;
}