:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #3498db;
    --box-bg: #f4f4f4;
}

body.dark-mode {
    --bg-color: #1e1e1e;
    --text-color: #f0f0f0;
    --link-color: #4ea8de;
    --box-bg: #2c2c2c;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color:  var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin:auto;
    background: var(--box-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    background: var(--box-bg);
    padding: 10px 0;
    margin-bottom: 20px;
}

.top-nav a {
    margin: 0 10px;
    text-decoration: none;
    columns: var(--link-color);
    font-weight: bold;
}

.top-nav button {
    background-color: var(--link-color);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var (--link-color);
}

.intro h1 {
    font-size: 20px;
    color: var(--link-color);
}

section {
    margin-bottom: 30px;
}

h2 {
    color: var(--link-color);
    margin-bottom: 10px;
}

ul {
    list-style: square;
    padding-left: 20px;
}

a {
    color: var(--link-color);
    text-decoration: none;

}

a:hover {
    text-decoration: underline;
}

/*---Project menu animation---*/
.project-menu ul {
    list-style: none;
    padding-left: 0;
    overflow: hidden;
}

.project-menu ul {
    transform: translateX(-100%);
    opacity: 0;
    animation: slideIn 0.6s forwards;
    animation-delay: calc(var(--i) * 0.2s);
    margin-bottom: 10px;
}

.project-menu li:nth-child(1) { --i: 1; }
project-menu li:nth-child(2) { --i: 2; }
.project-menu li:nth-child(3) { --i: 3; }

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
