
body.dark-mode {
    --sidebar-bg: #181818;
    --card-bg: #222222;
    --text-color: #ffffff;
    --hover-color: #444444;
    --background-color: #19171b;
    --primary-color: #17dfdb;
    --secondary-color: #06a3ec;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body.light-mode {
    --sidebar-bg: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #333333;
    --hover-color: #dddddd;
    --background-color: #eaeaea;
    --primary-color: #17dfdb;
    --secondary-color: #06a3ec;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* ========== General Styles ========== */
body {
    font-family: "Poppins", sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loading-line-1, .loading-line-2 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#mode {
    background-color: transparent;
}

#main-content.hidden {
    display: none;
}
.sidebar-design {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    background: transparent;
    padding: 10px;
    transition: left 0.3s ease-in-out;
}
.sidebar-design .design-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.sidebar-design .design-icon {
    width: 70px;
    transition: transform 0.2s ease-in-out;
}

.sidebar-design .design-item:hover .design-icon {
    transform: scale(1.1);
}

.sidebar-design .tooltip {
    position: absolute;
    left: 60px;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-design .design-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.container {
    display: flex;
    justify-content: space-between;
    padding-left: 200px;
    min-height: 100vh;
    align-items: center;
    flex-direction: row-reverse;
}

.content-left,
.content-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.content-left {
    width: 50%;
    padding-right: 30px;
}

.glitch {
    position: relative;
    font-size: 3.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}
h1 {
    margin: 0%;
}

.theme-toggle {
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: 50px;
    height: 50px;
  }
  
  .theme-toggle input {
    display: none;
  }
  
  .theme-toggle .toggle-icon {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 2rem;
    line-height: 50px;
    transition: transform 0.3s ease;
  }
  
  .theme-toggle .toggle-icon::before {
    content: "\263D";
  }
  
  .theme-toggle input:checked + .toggle-icon::before {
    content: "\2600";
  }
  
  .theme-toggle:hover .toggle-icon {
    transform: scale(1.1);
  }
  

.content-right {
    width: 50%;
    text-align: left;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

button, .contact-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    text-decoration: none;
}

button:hover, .contact-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.social-img {
    width: 40px;
    transition: transform 0.3s ease-in-out;
}

.social-img:hover {
    transform: scale(1.2);
}

.projects-container {
    text-align: center;
    padding: 50px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    position: relative;
    flex-wrap: wrap;
}

.project-card {
    height: 500px;
    width: 700px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    display: none;
    transition: transform 0.3s ease-in-out, background 0.3s ease;
}

.project-card.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-card img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
}

.project-card:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

.projects-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.projects-navigation button {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 18px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.projects-navigation button:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .projects-wrapper {
        max-width: 90%;
    }

    .project-card {
        width: 90%;
        height: auto;
    }

    .project-card img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .projects-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 100%;
        height: auto;
    }

    .projects-navigation button {
        font-size: 1.1rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .project-card {
        width: 100%;
        padding: 20px;
    }

    .projects-navigation button {
        padding: 10px 14px;
        font-size: 1rem;
    }
}

#about {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 40px;
    transition: background 0.3s ease, color 0.3s ease;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.about-left {
    flex: 1;
    text-align: center;
}

.about-left img {
    width: 50%;
    border-radius: 10px;
}

.about-right {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.about-right h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.about-right p {
    font-size: 1.2rem;
}

footer {
    background: var(--sidebar-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}
