:root {
    --bg-darker: #0f111a;
    --bg-dark: #1a1e29;
    --accent-purple: #b088ff;
    --accent-blue: #4468b7;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !important;
    margin: 0;
    padding: 0;
    animation: fadeIn 2s ease forwards;
    transition: background-color 0.3s ease;
}

body.light {
    background-color: var(--text-main);
}

.header,
.footer {
    background-color: var(--text-muted);
    padding: 15px;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer {
    display: block;
    border-radius: 20px 20px 0 0;
    color: var(--text-main);
    text-align: center;
}

.header-text,
.fa-adjust {
    font-size: 20px;
    cursor: pointer;
    color: var(--bg-dark);
    transition: color 0.3s ease;
}

.fa-adjust:hover {
    color: var(--text-main);
}

.hero {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding: 10px;
    margin: 20px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.hero:hover,
.chat:hover {
    transform: translateY(-7px);
}

.hero-head {
    font-size: 20px;
}

.hero-italic {
    color: red;
}

.line {
    border: 1px solid var(--accent-purple);
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.chat {
    background-color: var(--bg-dark);
    padding: 10px;
    margin: 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.question {
    text-align: center;
    font-size: 20px;
}

.question-interviewer,
.question-seif {
    text-align: center;
    font-size: 17px;
    background-color: var(--accent-blue);
    color: var(--text-main);
    width: 50%;
    margin: 20px;
    padding: 10px;
    position: relative;
}

.question-seif {
    background-color: var(--accent-purple);
    margin-left: auto;
}

.question-interviewer-icon {
    position: absolute;
    left: -12px;
    top: -1.5px;
    color: var(--accent-blue);
}

.question-seif-icon {
    position: absolute;
    right: -12px;
    top: -1.5px;
    color: var(--accent-purple);
}

.fa-heart {
    color: red;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-grid-card {
    background-color: var(--bg-dark);
    border-radius: 20px;
    transition: transform 0.3s ease;
    padding: 10px;
}

.project-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--accent-purple);
}

.project-card-image,
.project-card-video {
    width: 100%;
    border-radius: 20px;
}

.project-grid-card a {
    color: #4468b7;
}

.contact {
    text-align: center;
}

.contact-link {
    color: var(--accent-purple);
}
.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.skill-cell {
    border-radius: 100px;
    padding: 10px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.skill-cell:hover {
    transform: scale(1.1);
}

.email {
    background-color: #1a1e29;
    padding: 10px;
    border-radius: 20px;
    font-weight: bold;
    border: none;
    margin-bottom: 15px;
    color: white;
}

.view {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    width: 90%;
    border: 2px solid #4468b7;
    max-height: 90%;
    overflow: auto;
}

.taskbar-container {
    margin-bottom: 10px;
    background-color: var(--bg-darker);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.taskbar-item,
.try-btn {
    background-color: gray;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 20px;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.taskbar-item:hover,
.try-btn:hover {
    background-color: rgb(110, 108, 108);
}

.taskbar-item-selected {
    background-color: var(--accent-blue);
}

.taskbar-item-selected:hover {
    background-color: blue;
}

.taskbar-panel {
    display: none;
}

.taskbar-panel-selected {
    display: block;
}

.nanoscript-code-block {
    background-color: var(--bg-darker);
    padding: 10px;
    border-radius: 10px;
    position: relative;
    max-width: 100%;
    overflow: auto;
}

.copy-nanoscript-code {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-nanoscript-code:hover {
    color: #eee;
}

.swal2-container {
    z-index: 99999 !important;
}

.group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    overflow: auto;
}

@media (max-width: 500px) {
    .skills-container {
        justify-content: flex-start;
        overflow: auto;
    }
}

.imp-note {
    color: red;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes flip {
    from {
        transform: rotateX(0);
    } to {
        transform: rotateX(360deg);
    }
}
